[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:41]OFD Sender: No OFD packet to send [04:35:46]OFD Sender: No OFD packet to send [04:35:51]OFD Sender: No OFD packet to send [04:35:56]OFD Sender: No OFD packet to send [04:36:01]OFD Sender: No OFD packet to send [04:36:06]OFD Sender: No OFD packet to send [04:36:11]OFD Sender: No OFD packet to send [04:36:16]OFD Sender: No OFD packet to send [04:36:21]OFD Sender: No OFD packet to send [04:36:26]OFD Sender: No OFD packet to send [04:36:31]OFD Sender: No OFD packet to send [04:36:36]OFD Sender: No OFD packet to send [04:36:41]OFD Sender: No OFD packet to send [04:36:46]OFD Sender: No OFD packet to send [04:36:51]OFD Sender: No OFD packet to send [04:36:56]OFD Sender: No OFD packet to send [04:37:01]OFD Sender: No OFD packet to send [04:37:06]OFD Sender: No OFD packet to send [04:37:11]OFD Sender: No OFD packet to send [04:37:16]OFD Sender: No OFD packet to send [04:37:21]OFD Sender: No OFD packet to send [04:37:26]OFD Sender: No OFD packet to send [04:37:31]OFD Sender: No OFD packet to send [04:37:36]OFD Sender: No OFD packet to send [04:37:41]OFD Sender: No OFD packet to send [04:37:46]OFD Sender: No OFD packet to send [04:37:51]OFD Sender: No OFD packet to send [04:37:56]OFD Sender: No OFD packet to send [04:38:01]OFD Sender: No OFD packet to send [04:38:06]OFD Sender: No OFD packet to send [04:38:11]OFD Sender: No OFD packet to send [04:38:16]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:11]OFD Sender: No OFD packet to send [04:52:16]OFD Sender: No OFD packet to send [04:52:21]OFD Sender: No OFD packet to send [04:52:26]OFD Sender: No OFD packet to send [04:52:31]OFD Sender: No OFD packet to send [04:52:36]OFD Sender: No OFD packet to send [04:52:41]OFD Sender: No OFD packet to send [04:52:46]OFD Sender: No OFD packet to send [04:52:51]OFD Sender: No OFD packet to send [04:52:56]OFD Sender: No OFD packet to send [04:53:01]OFD Sender: No OFD packet to send [04:53:06]OFD Sender: No OFD packet to send [04:53:11]OFD Sender: No OFD packet to send [04:53:16]OFD Sender: No OFD packet to send [04:53:21]OFD Sender: No OFD packet to send [04:53:26]OFD Sender: No OFD packet to send [04:53:31]OFD Sender: No OFD packet to send [04:53:36]OFD Sender: No OFD packet to send [04:53:41]OFD Sender: No OFD packet to send [04:53:46]OFD Sender: No OFD packet to send [04:53:51]OFD Sender: No OFD packet to send [04:53:56]OFD Sender: No OFD packet to send [04:54:01]OFD Sender: No OFD packet to send [04:54:06]OFD Sender: No OFD packet to send [04:54:11]OFD Sender: No OFD packet to send [04:54:16]OFD Sender: No OFD packet to send [04:54:21]OFD Sender: No OFD packet to send [04:54:26]OFD Sender: No OFD packet to send [04:54:31]OFD Sender: No OFD packet to send [04:54:36]OFD Sender: No OFD packet to send [04:54:41]OFD Sender: No OFD packet to send [04:54:46]OFD Sender: No OFD packet to send [04:54: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:02]OFD Sender: No OFD packet to send [05:06:07]OFD Sender: No OFD packet to send [05:06:12]OFD Sender: No OFD packet to send [05:06:17]OFD Sender: No OFD packet to send [05:06:22]OFD Sender: No OFD packet to send [05:06:27]OFD Sender: No OFD packet to send [05:06:32]OFD Sender: No OFD packet to send [05:06:37]OFD Sender: No OFD packet to send [05:06:42]OFD Sender: No OFD packet to send [05:06:47]OFD Sender: No OFD packet to send [05:06:52]OFD Sender: No OFD packet to send [05:06:57]OFD Sender: No OFD packet to send [05:07:02]OFD Sender: No OFD packet to send [05:07:07]OFD Sender: No OFD packet to send [05:07:12]OFD Sender: No OFD packet to send [05:07:17]OFD Sender: No OFD packet to send [05:07:22]OFD Sender: No OFD packet to send [05:07:27]OFD Sender: No OFD packet to send [05:07:32]OFD Sender: No OFD packet to send [05:07:37]OFD Sender: No OFD packet to send [05:07:42]OFD Sender: No OFD packet to send [05:07:47]OFD Sender: No OFD packet to send [05:07:52]OFD Sender: No OFD packet to send [05:07:57]OFD Sender: No OFD packet to send [05:08:02]OFD Sender: No OFD packet to send [05:08:07]OFD Sender: No OFD packet to send [05:08:12]OFD Sender: No OFD packet to send [05:08:17]OFD Sender: No OFD packet to send [05:08:22]OFD Sender: No OFD packet to send [05:08:27]OFD Sender: No OFD packet to send [05:08:32]OFD Sender: No OFD packet to send [05:08:37]OFD Sender: No OFD packet to send [05:08:42]OFD Sender: No OFD packet to send [05:08:47]OFD Sender: No OFD packet to send [05:08:52]OFD Sender: No OFD packet to send [05:08:57]OFD Sender: No OFD packet to send [05:09:02]OFD Sender: No OFD packet to send [05:09:07]OFD Sender: No OFD packet to send [05:09:12]OFD Sender: No OFD packet to send [05:09:17]OFD Sender: No OFD packet to send [05:09:22]OFD Sender: No OFD packet to send [05:09:27]OFD Sender: No OFD packet to send [05:09:32]OFD Sender: No OFD packet to send [05:09:37]OFD Sender: No OFD packet to send [05:09:42]OFD Sender: No OFD packet to send [05:09:47]OFD Sender: No OFD packet to send [05:09:52]OFD Sender: No OFD packet to send [05:09:57]OFD Sender: No OFD packet to send [05:10:02]OFD Sender: No OFD packet to send [05:10:07]OFD Sender: No OFD packet to send [05:10:12]OFD Sender: No OFD packet to send [05:10:17]OFD Sender: No OFD packet to send [05:10:22]OFD Sender: No OFD packet to send [05:10:27]OFD Sender: No OFD packet to send [05:10:32]OFD Sender: No OFD packet to send [05:10:37]OFD Sender: No OFD packet to send [05:10:42]OFD Sender: No OFD packet to send [05:10:47]OFD Sender: No OFD packet to send [05:10:52]OFD Sender: No OFD packet to send [05:10:57]OFD Sender: No OFD packet to send [05:11:02]OFD Sender: No OFD packet to send [05:11:07]OFD Sender: No OFD packet to send [05:11:12]OFD Sender: No OFD packet to send [05:11:17]OFD Sender: No OFD packet to send [05:11:22]OFD Sender: No OFD packet to send [05:11:27]OFD Sender: No OFD packet to send [05:11:32]OFD Sender: No OFD packet to send [05:11:37]OFD Sender: No OFD packet to send [05:11:42]OFD Sender: No OFD packet to send [05:11:47]OFD Sender: No OFD packet to send [05:11:52]OFD Sender: No OFD packet to send [05:11:57]OFD Sender: No OFD packet to send [05:12:02]OFD Sender: No OFD packet to send [05:12:07]OFD Sender: No OFD packet to send [05:12:12]OFD Sender: No OFD packet to send [05:12:17]OFD Sender: No OFD packet to send [05:12:22]OFD Sender: No OFD packet to send [05:12:27]OFD Sender: No OFD packet to send [05:12:32]OFD Sender: No OFD packet to send [05:12:37]OFD Sender: No OFD packet to send [05:12:42]OFD Sender: No OFD packet to send [05:12:47]OFD Sender: No OFD packet to send [05:12:52]OFD Sender: No OFD packet to send [05:12:57]OFD Sender: No OFD packet to send [05:13:02]OFD Sender: No OFD packet to send [05:13:07]OFD Sender: No OFD packet to send [05:13:12]OFD Sender: No OFD packet to send [05:13:17]OFD Sender: No OFD packet to send [05:13:22]OFD Sender: No OFD packet to send [05:13:27]OFD Sender: No OFD packet to send [05:13:32]OFD Sender: No OFD packet to send [05:13:37]OFD Sender: No OFD packet to send [05:13:42]OFD Sender: No OFD packet to send [05:13:47]OFD Sender: No OFD packet to send [05:13:52]OFD Sender: No OFD packet to send [05:13:57]OFD Sender: No OFD packet to send [05:14:02]OFD Sender: No OFD packet to send [05:14:08]OFD Sender: No OFD packet to send [05:14:13]OFD Sender: No OFD packet to send [05:14:18]OFD Sender: No OFD packet to send [05:14:23]OFD Sender: No OFD packet to send [05:14:28]OFD Sender: No OFD packet to send [05:14:33]OFD Sender: No OFD packet to send [05:14:38]OFD Sender: No OFD packet to send [05:14:43]OFD Sender: No OFD packet to send [05:14:48]OFD Sender: No OFD packet to send [05:14:53]OFD Sender: No OFD packet to send [05:14:58]OFD Sender: No OFD packet to send [05:15:03]OFD Sender: No OFD packet to send [05:15:08]OFD Sender: No OFD packet to send [05:15:13]OFD Sender: No OFD packet to send [05:15:18]OFD Sender: No OFD packet to send [05:15:23]OFD Sender: No OFD packet to send [05:15:28]OFD Sender: No OFD packet to send [05:15:33]OFD Sender: No OFD packet to send [05:15:38]OFD Sender: No OFD packet to send [05:15:43]OFD Sender: No OFD packet to send [05:15:48]OFD Sender: No OFD packet to send [05:15:53]OFD Sender: No OFD packet to send [05:15:58]OFD Sender: No OFD packet to send [05:16:03]OFD Sender: No OFD packet to send [05:16:08]OFD Sender: No OFD packet to send [05:16:13]OFD Sender: No OFD packet to send [05:16:18]OFD Sender: No OFD packet to send [05:16:23]OFD Sender: No OFD packet to send [05:16:28]OFD Sender: No OFD packet to send [05:16:33]OFD Sender: No OFD packet to send [05:16:38]OFD Sender: No OFD packet to send [05:16:43]OFD Sender: No OFD packet to send [05:16:48]OFD Sender: No OFD packet to send [05:16:53]OFD Sender: No OFD packet to send [05:16:58]OFD Sender: No OFD packet to send [05:17:03]OFD Sender: No OFD packet to send [05:17:08]OFD Sender: No OFD packet to send [05:17:13]OFD Sender: No OFD packet to send [05:17:18]OFD Sender: No OFD packet to send [05:17:23]OFD Sender: No OFD packet to send [05:17:28]OFD Sender: No OFD packet to send [05:17:33]OFD Sender: No OFD packet to send [05:17:38]OFD Sender: No OFD packet to send [05:17:43]OFD Sender: No OFD packet to send [05:17:48]OFD Sender: No OFD packet to send [05:17:53]OFD Sender: No OFD packet to send [05:17:58]OFD Sender: No OFD packet to send [05:18:03]OFD Sender: No OFD packet to send [05:18:08]OFD Sender: No OFD packet to send [05:18:13]OFD Sender: No OFD packet to send [05:18:18]OFD Sender: No OFD packet to send [05:18:23]OFD Sender: No OFD packet to send [05:18:28]OFD Sender: No OFD packet to send [05:18:33]OFD Sender: No OFD packet to send [05:18:38]OFD Sender: No OFD packet to send [05:18:43]OFD Sender: No OFD packet to send [05:18:48]OFD Sender: No OFD packet to send [05:18:53]OFD Sender: No OFD packet to send [05:18:58]OFD Sender: No OFD packet to send [05:19:03]OFD Sender: No OFD packet to send [05:19:08]OFD Sender: No OFD packet to send [05:19:13]OFD Sender: No OFD packet to send [05:19:18]OFD Sender: No OFD packet to send [05:19:23]OFD Sender: No OFD packet to send [05:19:28]OFD Sender: No OFD packet to send [05:19:33]OFD Sender: No OFD packet to send [05:19:38]OFD Sender: No OFD packet to send [05:19:43]OFD Sender: No OFD packet to send [05:19:48]OFD Sender: No OFD packet to send [05:19:53]OFD Sender: No OFD packet to send [05:19:58]OFD Sender: No OFD packet to send [05:20:03]OFD Sender: No OFD packet to send [05:20:08]OFD Sender: No OFD packet to send [05:20:13]OFD Sender: No OFD packet to send [05:20:18]OFD Sender: No OFD packet to send [05:20:23]OFD Sender: No OFD packet to send [05:20:28]OFD Sender: No OFD packet to send [05:20:33]OFD Sender: No OFD packet to send [05:20:38]OFD Sender: No OFD packet to send [05:20:43]OFD Sender: No OFD packet to send [05:20:48]OFD Sender: No OFD packet to send [05:20:53]OFD Sender: No OFD packet to send [05:20:58]OFD Sender: No OFD packet to send [05:21:03]OFD Sender: No OFD packet to send [05:21:08]OFD Sender: No OFD packet to send [05:21:13]OFD Sender: No OFD packet to send [05:21:18]OFD Sender: No OFD packet to send [05:21:23]OFD Sender: No OFD packet to send [05:21:28]OFD Sender: No OFD packet to send [05:21:33]OFD Sender: No OFD packet to send [05:21:38]OFD Sender: No OFD packet to send [05:21:43]OFD Sender: No OFD packet to send [05:21:48]OFD Sender: No OFD packet to send [05:21:53]OFD Sender: No OFD packet to send [05:21:58]OFD Sender: No OFD packet to send [05:22:03]OFD Sender: No OFD packet to send [05:22:08]OFD Sender: No OFD packet to send [05:22:13]OFD Sender: No OFD packet to send [05:22:18]OFD Sender: No OFD packet to send [05:22:23]OFD Sender: No OFD packet to send [05:22:28]OFD Sender: No OFD packet to send [05:22:33]OFD Sender: No OFD packet to send [05:22:38]OFD Sender: No OFD packet to send [05:22:43]OFD Sender: No OFD packet to send [05:22:48]OFD Sender: No OFD packet to send [05:22:53]OFD Sender: No OFD packet to send [05:22:58]OFD Sender: No OFD packet to send [05:23:03]OFD Sender: No OFD packet to send [05:23:08]OFD Sender: No OFD packet to send [05:23:13]OFD Sender: No OFD packet to send [05:23:18]OFD Sender: No OFD packet to send [05:23:23]OFD Sender: No OFD packet to send [05:23:28]OFD Sender: No OFD packet to send [05:23:33]OFD Sender: No OFD packet to send [05:23:38]OFD Sender: No OFD packet to send [05:23:43]OFD Sender: No OFD packet to send [05:23:48]OFD Sender: No OFD packet to send [05:23:53]OFD Sender: No OFD packet to send [05:23:58]OFD Sender: No OFD packet to send [05:24:03]OFD Sender: No OFD packet to send [05:24:08]OFD Sender: No OFD packet to send [05:24:13]OFD Sender: No OFD packet to send [05:24:18]OFD Sender: No OFD packet to send [05:24:23]OFD Sender: No OFD packet to send [05:24:28]OFD Sender: No OFD packet to send [05:24:33]OFD Sender: No OFD packet to send [05:24:38]OFD Sender: No OFD packet to send [05:24:43]OFD Sender: No OFD packet to send [05:24:48]OFD Sender: No OFD packet to send [05:24:53]OFD Sender: No OFD packet to send [05:24:58]OFD Sender: No OFD packet to send [05:25:03]OFD Sender: No OFD packet to send [05:25:08]OFD Sender: No OFD packet to send [05:25:13]OFD Sender: No OFD packet to send [05:25:18]OFD Sender: No OFD packet to send [05:25:23]OFD Sender: No OFD packet to send [05:25:28]OFD Sender: No OFD packet to send [05:25:33]OFD Sender: No OFD packet to send [05:25:38]OFD Sender: No OFD packet to send [05:25:43]OFD Sender: No OFD packet to send [05:25:48]OFD Sender: No OFD packet to send [05:25:53]OFD Sender: No OFD packet to send [05:25:58]OFD Sender: No OFD packet to send [05:26:03]OFD Sender: No OFD packet to send [05:26:08]OFD Sender: No OFD packet to send [05:26:13]OFD Sender: No OFD packet to send [05:26:18]OFD Sender: No OFD packet to send [05:26:23]OFD Sender: No OFD packet to send [05:26:28]OFD Sender: No OFD packet to send [05:26:33]OFD Sender: No OFD packet to send [05:26:38]OFD Sender: No OFD packet to send [05:26:43]OFD Sender: No OFD packet to send [05:26:48]OFD Sender: No OFD packet to send [05:26:53]OFD Sender: No OFD packet to send [05:26:58]OFD Sender: No OFD packet to send [05:27:03]OFD Sender: No OFD packet to send [05:27:08]OFD Sender: No OFD packet to send [05:27:13]OFD Sender: No OFD packet to send [05:27:18]OFD Sender: No OFD packet to send [05:27:23]OFD Sender: No OFD packet to send [05:27:28]OFD Sender: No OFD packet to send [05:27:33]OFD Sender: No OFD packet to send [05:27:38]OFD Sender: No OFD packet to send [05:27:43]OFD Sender: No OFD packet to send [05:27:48]OFD Sender: No OFD packet to send [05:27:53]OFD Sender: No OFD packet to send [05:27:58]OFD Sender: No OFD packet to send [05:28:03]OFD Sender: No OFD packet to send [05:28:08]OFD Sender: No OFD packet to send [05:28:13]OFD Sender: No OFD packet to send [05:28:18]OFD Sender: No OFD packet to send [05:28:23]OFD Sender: No OFD packet to send [05:28:28]OFD Sender: No OFD packet to send [05:28:33]OFD Sender: No OFD packet to send [05:28:38]OFD Sender: No OFD packet to send [05:28:43]OFD Sender: No OFD packet to send [05:28:48]OFD Sender: No OFD packet to send [05:28:53]OFD Sender: No OFD packet to send [05:28:58]OFD Sender: No OFD packet to send [05:29:03]OFD Sender: No OFD packet to send [05:29:08]OFD Sender: No OFD packet to send [05:29:13]OFD Sender: No OFD packet to send [05:29:18]OFD Sender: No OFD packet to send [05:29:23]OFD Sender: No OFD packet to send [05:29:28]OFD Sender: No OFD packet to send [05:29:33]OFD Sender: No OFD packet to send [05:29:38]OFD Sender: No OFD packet to send [05:29:43]OFD Sender: No OFD packet to send [05:29:48]OFD Sender: No OFD packet to send [05:29:53]OFD Sender: No OFD packet to send [05:29:58]OFD Sender: No OFD packet to send [05:30:03]OFD Sender: No OFD packet to send [05:30:08]OFD Sender: No OFD packet to send [05:30:13]OFD Sender: No OFD packet to send [05:30:18]OFD Sender: No OFD packet to send [05:30:23]OFD Sender: No OFD packet to send [05:30:28]OFD Sender: No OFD packet to send [05:30:33]OFD Sender: No OFD packet to send [05:30:38]OFD Sender: No OFD packet to send [05:30:43]OFD Sender: No OFD packet to send [05:30:48]OFD Sender: No OFD packet to send [05:30:53]OFD Sender: No OFD packet to send [05:30:58]OFD Sender: No OFD packet to send [05:31:03]OFD Sender: No OFD packet to send [05:31:08]OFD Sender: No OFD packet to send [05:31:13]OFD Sender: No OFD packet to send [05:31:18]OFD Sender: No OFD packet to send [05:31:23]OFD Sender: No OFD packet to send [05:31:28]OFD Sender: No OFD packet to send [05:31:33]OFD Sender: No OFD packet to send [05:31:38]OFD Sender: No OFD packet to send [05:31:43]OFD Sender: No OFD packet to send [05:31:48]OFD Sender: No OFD packet to send [05:31:53]OFD Sender: No OFD packet to send [05:31:58]OFD Sender: No OFD packet to send [05:32:03]OFD Sender: No OFD packet to send [05:32:08]OFD Sender: No OFD packet to send [05:32:13]OFD Sender: No OFD packet to send [05:32:18]OFD Sender: No OFD packet to send [05:32:23]OFD Sender: No OFD packet to send [05:32:28]OFD Sender: No OFD packet to send [05:32:33]OFD Sender: No OFD packet to send [05:32:38]OFD Sender: No OFD packet to send [05:32:43]OFD Sender: No OFD packet to send [05:32:48]OFD Sender: No OFD packet to send [05:32:53]OFD Sender: No OFD packet to send [05:32:58]OFD Sender: No OFD packet to send [05:33:03]OFD Sender: No OFD packet to send [05:33:08]OFD Sender: No OFD packet to send [05:33:13]OFD Sender: No OFD packet to send [05:33:19]OFD Sender: No OFD packet to send [05:33:24]OFD Sender: No OFD packet to send [05:33:29]OFD Sender: No OFD packet to send [05:33:34]OFD Sender: No OFD packet to send [05:33:39]OFD Sender: No OFD packet to send [05:33:44]OFD Sender: No OFD packet to send [05:33:49]OFD Sender: No OFD packet to send [05:33:54]OFD Sender: No OFD packet to send [05:33:59]OFD Sender: No OFD packet to send [05:34:04]OFD Sender: No OFD packet to send [05:34:09]OFD Sender: No OFD packet to send [05:34:14]OFD Sender: No OFD packet to send [05:34:19]OFD Sender: No OFD packet to send [05:34:24]OFD Sender: No OFD packet to send [05:34:29]OFD Sender: No OFD packet to send [05:34:34]OFD Sender: No OFD packet to send [05:34:39]OFD Sender: No OFD packet to send [05:34:44]OFD Sender: No OFD packet to send [05:34:49]OFD Sender: No OFD packet to send [05:34:54]OFD Sender: No OFD packet to send [05:34:59]OFD Sender: No OFD packet to send [05:35:04]OFD Sender: No OFD packet to send [05:35:09]OFD Sender: No OFD packet to send [05:35:14]OFD Sender: No OFD packet to send [05:35:19]OFD Sender: No OFD packet to send [05:35:24]OFD Sender: No OFD packet to send [05:35:29]OFD Sender: No OFD packet to send [05:35:34]OFD Sender: No OFD packet to send [05:35:39]OFD Sender: No OFD packet to send [05:35:44]OFD Sender: No OFD packet to send [05:35:49]OFD Sender: No OFD packet to send [05:35:54]OFD Sender: No OFD packet to send [05:35:59]OFD Sender: No OFD packet to send [05:36:04]OFD Sender: No OFD packet to send [05:36:09]OFD Sender: No OFD packet to send [05:36:14]OFD Sender: No OFD packet to send [05:36:19]OFD Sender: No OFD packet to send [05:36:24]OFD Sender: No OFD packet to send [05:36:29]OFD Sender: No OFD packet to send [05:36:34]OFD Sender: No OFD packet to send [05:36:39]OFD Sender: No OFD packet to send [05:36:44]OFD Sender: No OFD packet to send [05:36:49]OFD Sender: No OFD packet to send [05:36:54]OFD Sender: No OFD packet to send [05:36:59]OFD Sender: No OFD packet to send [05:37:04]OFD Sender: No OFD packet to send [05:37:09]OFD Sender: No OFD packet to send [05:37:14]OFD Sender: No OFD packet to send [05:37:19]OFD Sender: No OFD packet to send [05:37:24]OFD Sender: No OFD packet to send [05:37:29]OFD Sender: No OFD packet to send [05:37:34]OFD Sender: No OFD packet to send [05:37:39]OFD Sender: No OFD packet to send [05:37:44]OFD Sender: No OFD packet to send [05:37:49]OFD Sender: No OFD packet to send [05:37:54]OFD Sender: No OFD packet to send [05:37:59]OFD Sender: No OFD packet to send [05:38:04]OFD Sender: No OFD packet to send [05:38:09]OFD Sender: No OFD packet to send [05:38:14]OFD Sender: No OFD packet to send [05:38:19]OFD Sender: No OFD packet to send [05:38:24]OFD Sender: No OFD packet to send [05:38:29]OFD Sender: No OFD packet to send [05:38:34]OFD Sender: No OFD packet to send [05:38:39]OFD Sender: No OFD packet to send [05:38:44]OFD Sender: No OFD packet to send [05:38:49]OFD Sender: No OFD packet to send [05:38:54]OFD Sender: No OFD packet to send [05:38:59]OFD Sender: No OFD packet to send [05:39:04]OFD Sender: No OFD packet to send [05:39:09]OFD Sender: No OFD packet to send [05:39:14]OFD Sender: No OFD packet to send [05:39:19]OFD Sender: No OFD packet to send [05:39:24]OFD Sender: No OFD packet to send [05:39:29]OFD Sender: No OFD packet to send [05:39:34]OFD Sender: No OFD packet to send [05:39:39]OFD Sender: No OFD packet to send [05:39:44]OFD Sender: No OFD packet to send [05:39:49]OFD Sender: No OFD packet to send [05:39:54]OFD Sender: No OFD packet to send [05:39:59]OFD Sender: No OFD packet to send [05:40:04]OFD Sender: No OFD packet to send [05:40:09]OFD Sender: No OFD packet to send [05:40:14]OFD Sender: No OFD packet to send [05:40:19]OFD Sender: No OFD packet to send [05:40:24]OFD Sender: No OFD packet to send [05:40:29]OFD Sender: No OFD packet to send [05:40:34]OFD Sender: No OFD packet to send [05:40:39]OFD Sender: No OFD packet to send [05:40:44]OFD Sender: No OFD packet to send [05:40:49]OFD Sender: No OFD packet to send [05:40:54]OFD Sender: No OFD packet to send [05:40:59]OFD Sender: No OFD packet to send [05:41:04]OFD Sender: No OFD packet to send [05:41:09]OFD Sender: No OFD packet to send [05:41:14]OFD Sender: No OFD packet to send [05:41:19]OFD Sender: No OFD packet to send [05:41:24]OFD Sender: No OFD packet to send [05:41:29]OFD Sender: No OFD packet to send [05:41:34]OFD Sender: No OFD packet to send [05:41:39]OFD Sender: No OFD packet to send [05:41:44]OFD Sender: No OFD packet to send [05:41:49]OFD Sender: No OFD packet to send [05:41:54]OFD Sender: No OFD packet to send [05:41:59]OFD Sender: No OFD packet to send [05:42:04]OFD Sender: No OFD packet to send [05:42:09]OFD Sender: No OFD packet to send [05:42:14]OFD Sender: No OFD packet to send [05:42:19]OFD Sender: No OFD packet to send [05:42:24]OFD Sender: No OFD packet to send [05:42:29]OFD Sender: No OFD packet to send [05:42:34]OFD Sender: No OFD packet to send [05:42:39]OFD Sender: No OFD packet to send [05:42:44]OFD Sender: No OFD packet to send [05:42:49]OFD Sender: No OFD packet to send [05:42:54]OFD Sender: No OFD packet to send [05:42:59]OFD Sender: No OFD packet to send [05:43:04]OFD Sender: No OFD packet to send [05:43:09]OFD Sender: No OFD packet to send [05:43:14]OFD Sender: No OFD packet to send [05:43:19]OFD Sender: No OFD packet to send [05:43:24]OFD Sender: No OFD packet to send [05:43:29]OFD Sender: No OFD packet to send [05:43:34]OFD Sender: No OFD packet to send [05:43:39]OFD Sender: No OFD packet to send [05:43:44]OFD Sender: No OFD packet to send [05:43:49]OFD Sender: No OFD packet to send [05:43:54]OFD Sender: No OFD packet to send [05:43:59]OFD Sender: No OFD packet to send [05:44:04]OFD Sender: No OFD packet to send [05:44:09]OFD Sender: No OFD packet to send [05:44:14]OFD Sender: No OFD packet to send [05:44:19]OFD Sender: No OFD packet to send [05:44:24]OFD Sender: No OFD packet to send [05:44:29]OFD Sender: No OFD packet to send [05:44:34]OFD Sender: No OFD packet to send [05:44:39]OFD Sender: No OFD packet to send [05:44:44]OFD Sender: No OFD packet to send [05:44:49]OFD Sender: No OFD packet to send [05:44:54]OFD Sender: No OFD packet to send [05:44:59]OFD Sender: No OFD packet to send [05:45:04]OFD Sender: No OFD packet to send [05:45:09]OFD Sender: No OFD packet to send [05:45:14]OFD Sender: No OFD packet to send [05:45:19]OFD Sender: No OFD packet to send [05:45:24]OFD Sender: No OFD packet to send [05:45:29]OFD Sender: No OFD packet to send [05:45:34]OFD Sender: No OFD packet to send [05:45:39]OFD Sender: No OFD packet to send [05:45:44]OFD Sender: No OFD packet to send [05:45:49]OFD Sender: No OFD packet to send [05:45:54]OFD Sender: No OFD packet to send [05:45:59]OFD Sender: No OFD packet to send [05:46:04]OFD Sender: No OFD packet to send [05:46:09]OFD Sender: No OFD packet to send [05:46:14]OFD Sender: No OFD packet to send [05:46:19]OFD Sender: No OFD packet to send [05:46:24]OFD Sender: No OFD packet to send [05:46:29]OFD Sender: No OFD packet to send [05:46:34]OFD Sender: No OFD packet to send [05:46:39]OFD Sender: No OFD packet to send [05:46:44]OFD Sender: No OFD packet to send [05:46:49]OFD Sender: No OFD packet to send [05:46:54]OFD Sender: No OFD packet to send [05:46:59]OFD Sender: No OFD packet to send [05:47:04]OFD Sender: No OFD packet to send [05:47:09]OFD Sender: No OFD packet to send [05:47:14]OFD Sender: No OFD packet to send [05:47:19]OFD Sender: No OFD packet to send [05:47:24]OFD Sender: No OFD packet to send [05:47:29]OFD Sender: No OFD packet to send [05:47:34]OFD Sender: No OFD packet to send [05:47:39]OFD Sender: No OFD packet to send [05:47:44]OFD Sender: No OFD packet to send [05:47:49]OFD Sender: No OFD packet to send [05:47:54]OFD Sender: No OFD packet to send [05:47:59]OFD Sender: No OFD packet to send [05:48:04]OFD Sender: No OFD packet to send [05:48:09]OFD Sender: No OFD packet to send [05:48:14]OFD Sender: No OFD packet to send [05:48:19]OFD Sender: No OFD packet to send [05:48:24]OFD Sender: No OFD packet to send [05:48:29]OFD Sender: No OFD packet to send [05:48:34]OFD Sender: No OFD packet to send [05:48:39]OFD Sender: No OFD packet to send [05:48:44]OFD Sender: No OFD packet to send [05:48:49]OFD Sender: No OFD packet to send [05:48:54]OFD Sender: No OFD packet to send [05:48:59]OFD Sender: No OFD packet to send [05:49:04]OFD Sender: No OFD packet to send [05:49:09]OFD Sender: No OFD packet to send [05:49:11]accept exits with 9 [05:49:11]New connection [05:49:11]New thread 3067321700 created [05:49:11]Thread 3067465060 joined [05:49:11]Waiting for new connection... [05:49:11] Sock 9.Parse request [05:49:11]Sock 9.Check first char [05:49:11]Sock 9.First char is OK [05:49:11]request: POST /json_proto HTTP/1.0 [05:49:11]Method: POST [05:49:11]URL: /json_proto [05:49:11]Method is POST - this is cgi request [05:49:11]url: /json_proto [05:49:11]query_string will be loaded in cgi processing [05:49:11]execute_cgi json_proto POST (null) [05:49:11]execute_cgi path=json_proto method=POST [05:49:11]POST find Content-Length [05:49:11]Host: 172.17.59.68:8080 [05:49:11]Content-Length: 678 [05:49:11]Content-Type: application/json [05:49:11] [05:49:11]POST finish read [05:49:11]Found Content-Length = 678 [05:49:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.050, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:49:11]execute_script... [05:49: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)320154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.050, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:49:11]POST & json_proto [05:49:11]process_json_proto [05:49:11]json parsed OK: [05:49:11]protocol is kg_v1.0 [05:49:11]action value=close_receipt [05:49:11]process_action close_receipt [05:49:11]cmd_close_receipt [05:49:11]MH_GetDate [05:49:11]Write to MH i2c: F0 00 00 D0 44 03 [05:49:11]Write i2c OK [05:49:11]MH_I2C_Read... [05:49:11]Read from MH i2c: F0 [05:49:11]MH_I2C_Read... [05:49:11]Read from MH i2c: F0 09 00 [05:49:11]MH_I2C_Read... [05:49:11]Read from MH i2c: F0 09 00 D0 44 00 F0 C2 73 66 BC EC 60 65 04 [05:49:11]GetLastDocTimeStamp 1718852339 [05:49:11]current date 1718862576 [05:49:11]FM_GetShiftState [05:49:11]SAM_PROTO_GetShiftState [05:49:11]wFMCommunicate request_size=4 [05:49:11]MH_SAM_APDU [05:49:11]CAPDU: 80 13 01 00 [05:49:11]Write to MH i2c: E2 08 00 D1 44 80 13 01 00 00 00 00 00 92 [05:49:11]Write i2c OK [05:49:11]MH_I2C_Read... [05:49:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:49:11]Read from MH i2c: E2 [05:49:11]MH_I2C_Read... [05:49:11]Read from MH i2c: E2 0E 00 [05:49:11]MH_I2C_Read... [05:49:11]Read from MH i2c: E2 0E 00 D1 44 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 0D [05:49:11]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [05:49:11]wFMCommunicate OK [05:49:11]SAM_PROTO_GetShiftState done [05:49:11]FM_GetShiftState done [05:49:11]opened in 1718847247 [05:49:11]opened+sec_in_day 1718933647 [05:49:11]quantity*price = 80012 [05:49:11]sum+1 = 80013 [05:49:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 7 20.06.2024 05:49 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111557 ФПД: 254189251243833 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T054936&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111557&fm=254189251243833&tin=02508201610067®Number=0000000000092771&sum=80000 [05:49:12]StoreToDocumentArchive [05:49:12]shift 389 fd 111557 [05:49:12]save to /storage/0389/doc_00111557 [05:49:12]save last doc name /storage/0389/doc_00111557 to /storage/kkm_last_doc_name [05:49:12]save OK [05:49:12]Clear old archive folders... [05:49:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:49:12]tlvbuf is 00F1ECF0 [05:49:12]SAM_PROTO_ClearQueue [05:49:12]wFMCommunicate request_size=4 [05:49:12]MH_SAM_APDU [05:49:12]CAPDU: 80 09 00 00 [05:49:12]Write to MH i2c: E2 08 00 DE 44 80 09 00 00 00 00 00 00 94 [05:49:12]Write i2c OK [05:49:12]MH_I2C_Read... [05:49:12]Read from MH i2c: E2 [05:49:12]MH_I2C_Read... [05:49:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:49:12]Read from MH i2c: E2 03 00 [05:49:12]MH_I2C_Read... [05:49:12]Read from MH i2c: E2 03 00 DE 44 00 90 00 96 [05:49:12]RAPDU: 90 00 [05:49:12]wFMCommunicate OK [05:49:12]SAM_PROTO_ClearQueue done [05:49:12]KKMCreateOFDPacket [05:49:12]OFDProtocolAddRootSTLVToBuf [05:49:12]FM_MakeSignedData [05:49:12]FM_MakeSignedData [05:49:12]SAM_PROTO_SignData [05:49:12]wFMCommunicate request_size=4 [05:49:12]MH_SAM_APDU [05:49:12]CAPDU: 80 0D 01 02 [05:49:12]Write to MH i2c: E2 08 00 DF 44 80 0D 01 02 00 00 00 00 9C [05:49:12]Write i2c OK [05:49:12]MH_I2C_Read... [05:49:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:49:12]Read from MH i2c: E2 [05:49:12]MH_I2C_Read... [05:49:12]Read from MH i2c: E2 03 00 [05:49:12]MH_I2C_Read... [05:49:12]Read from MH i2c: E2 03 00 DF 44 00 90 00 97 [05:49:12]RAPDU: 90 00 [05:49:12]wFMCommunicate OK [05:49:12]wFMCommunicate request_size=255 [05:49:12]MH_SAM_APDU [05:49:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 F0 C2 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C5 B3 01 00 35 04 06 00 E7 [05:49:12]Write to MH i2c: E2 02 01 E0 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 F0 C2 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C5 B3 01 00 35 04 06 00 E7 00 00 B7 [05:49:12]Write i2c OK [05:49:12]MH_I2C_Read... [05:49:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:49:13]Read from MH i2c: E2 [05:49:13]MH_I2C_Read... [05:49:13]Read from MH i2c: E2 03 00 [05:49:13]MH_I2C_Read... [05:49:13]Read from MH i2c: E2 03 00 E0 44 00 90 00 98 [05:49:13]RAPDU: 90 00 [05:49:13]wFMCommunicate OK [05:49:13]wFMCommunicate request_size=10 [05:49:13]MH_SAM_APDU [05:49:13]CAPDU: 80 0D 02 02 05 2F 0C 06 AF 39 [05:49:13]Write to MH i2c: E2 0D 00 E1 44 80 0D 02 02 05 00 2F 0C 06 AF 39 00 00 D2 [05:49:13]Write i2c OK [05:49:13]MH_I2C_Read... [05:49:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:49:13]Read from MH i2c: E2 [05:49:13]MH_I2C_Read... [05:49:13]Read from MH i2c: E2 03 00 [05:49:13]MH_I2C_Read... [05:49:13]Read from MH i2c: E2 03 00 E1 44 00 90 00 99 [05:49:13]RAPDU: 90 00 [05:49:13]wFMCommunicate OK [05:49:13]wFMCommunicate request_size=4 [05:49:13]MH_SAM_APDU [05:49:13]CAPDU: 80 0D 03 02 [05:49:13]Write to MH i2c: E2 08 00 E2 44 80 0D 03 02 00 00 00 00 A1 [05:49:13]Write i2c OK [05:49:13]MH_I2C_Read... [05:49:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:49:13]Read from MH i2c: E2 [05:49:13]MH_I2C_Read... [05:49:13]Read from MH i2c: E2 0B 00 [05:49:13]MH_I2C_Read... [05:49:13]Read from MH i2c: E2 0B 00 E2 44 00 2B 81 8C 59 E2 3C CD CA 90 00 E8 [05:49:13]RAPDU: 2B 81 8C 59 E2 3C CD CA 90 00 [05:49:13]wFMCommunicate OK [05:49:13]SAM_PROTO_SignData done [05:49:13]FM_MakeSignedData done [05:49:13]CreateOFDProtocolMessage [05:49:13]wFMCommunicate request_size=4 [05:49:13]MH_SAM_APDU [05:49:13]CAPDU: 80 11 00 00 [05:49:13]Write to MH i2c: E2 08 00 E3 44 80 11 00 00 00 00 00 00 A1 [05:49:13]Write i2c OK [05:49:13]MH_I2C_Read... [05:49:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:49:13]Read from MH i2c: E2 [05:49:13]MH_I2C_Read... [05:49:13]Read from MH i2c: E2 17 00 [05:49:13]MH_I2C_Read... [05:49:13]Read from MH i2c: E2 17 00 E3 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F3 [05:49:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [05:49:13]wFMCommunicate OK [05:49:13]CreateOFDProtocolMessage done [05:49:13]OFDSenderStorePacket 111557 [05:49:13]StoreOFDPacket docnum=111557 [05:49:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B1 BC 07 01 90 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 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 F0 C2 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C5 B3 01 00 35 04 06 00 E7 2F 0C 06 AF 39 2B 81 8C 59 E2 3C CD CA [05:49:13]CheckFolder [05:49:13]dirname=/storage/ofd_packets [05:49:13]CheckFolder done [05:49:13]ProducePacketName [05:49:13]name=ofd_packets/00111557 [05:49:13]NVStorageSaveData ofd_packets/00111557 [05:49:13]File name is /storage/ofd_packets/00111557 [05:49:13]Write 301 bytes [05:49:13]NVStorageSaveData done [05:49:13]OFDSenderStorePacket done [05:49:13]KKMCreateOFDPacket done [05:49:13]NVStorageSaveData kkm_last_timestamp [05:49:13]File name is /storage/kkm_last_timestamp [05:49:13]Write 4 bytes [05:49:13]NVStorageSaveData done [05:49:13]ExternCall_PrintAddStr [05:49:13]wPrintStart [05:49:13]Write to MH i2c: 01 00 00 E4 44 28 [05:49:13]Write i2c OK [05:49:13]MH_I2C_Read... [05:49:13]Read from MH i2c: 01 [05:49:13]MH_I2C_Read... [05:49:13]Read from MH i2c: 01 07 00 [05:49:13]MH_I2C_Read... [05:49:13]Read from MH i2c: 01 07 00 E4 44 00 00 00 00 00 FF 0F 3D [05:49:13]RasterBufferAndPrint [05:49:13]line Счет N : (1)320154 [05:49:13]line ИНН: 02508201610067 [05:49:13]line Контрольно-Кассовый Чек [05:49:13]line ПРОДАЖА [05:49:13]line ТРК (МРК, ГНК) : 11 [05:49:13]line Товар: 2710124130 [05:49:13]line Аи-92-К-5 [05:49:13]line 12.050 * 66.40 [05:49:13]line = 800.12 [05:49:13]line НДС 12% НСП 1% [05:49:13]line > о реализуемом товаре [05:49:13]line ОКРУГЛЕНИЕ: -0.12 [05:49:13]line ИТОГО: 800.00 [05:49:13]line Внесено: 800.00 [05:49:13]line СДАЧА: 0.00 [05:49:13]line НСП 1% : 7.08 [05:49:13]line НДС 12% : 84.97 [05:49:13]line Наличными: 800.00 [05:49:13]line Безнал.: 0.00 [05:49:13]line Место: АЗС № 65 "Партнер Нефть" [05:49:13]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [05:49:13]line СНО: Общий режим [05:49:13]line Чек 7 20.06.2024 05:49 [05:49:13]line Смена: 389 ФФД: 1.0 [05:49:13]line ЗНМ: 0300000198 [05:49:13]line РНМ: 0000000000092771 [05:49:13]line Версия ККМ: 001 [05:49:13]line ФМ: 0000000000875083 [05:49:13]line ФД: 111557 [05:49:13]line ФПД: 254189251243833 [05:49:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T054936&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111557&fm=254189251243833&tin=02508201610067®Number=0000000000092771&sum=80000 [05:49:13]OFD Sender: Processing packet 111557 [packets to send 38, broken 37] [05:49:13]ProducePacketName [05:49:13]name=ofd_packets/00111557 [05:49:13]OFD Sender: To server: pG, [05:49:13]CommunicateWithHost lk.salyk.kg:30040 [05:49:13]ConnectInit lk.salyk.kg [05:49:13]written 0, free lines is 4095 [05:49:13]Connected sock=10 [05:49:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B1 BC 07 01 90 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 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 F0 C2 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C5 B3 01 00 35 04 06 00 E7 2F 0C 06 AF 39 2B 81 8C 59 E2 3C CD CA [05:49:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A8 48 47 00 9E 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 35 30 38 33 10 04 04 00 C5 B3 01 00 F4 03 04 00 43 5A 73 66 B6 04 01 00 00 B5 4E E0 FC 3D 58 71 0B [05:49:14]CommunicateWithHost err = 0 [05:49:14]CheckOFDResponse [05:49:14]1017 (14) - 77093643461234 [05:49:14]1041 (16) - 0000000000875083 [05:49:14]1040 (4) - 111557 [05:49:14]1012 (4) - 19.06.2024 22:22 [05:49:14]1206 (1) - 0 [05:49:14]OFD Sender: Remove packet 111557 [05:49:14]ProducePacketName [05:49:14]name=ofd_packets/00111557 [05:49:14]NVStorageDeleteData [05:49:14]Write to MH i2c: 01 00 00 0F 45 54 [05:49:14]Write i2c OK [05:49:14]MH_I2C_Read... [05:49:14]Read from MH i2c: 01 [05:49:14]MH_I2C_Read... [05:49:14]Read from MH i2c: 01 07 00 [05:49:14]MH_I2C_Read... [05:49:14]Read from MH i2c: 01 07 00 0F 45 00 00 00 00 00 D0 0C 37 [05:49:14]RasterBufferAndPrint [05:49:14]line [05:49:14]line [05:49:14]line [05:49:14]line [05:49:14]line [05:49:14]written 0, free lines is 3287 [05:49:14]MH_Cut [05:49:14]Write to MH i2c: D1 01 00 16 45 01 2D [05:49:14]Write i2c OK [05:49:14]MH_I2C_Read... [05:49:14]Read from MH i2c: D1 [05:49:14]MH_I2C_Read... [05:49:14]Read from MH i2c: D1 01 00 [05:49:14]MH_I2C_Read... [05:49:14]Read from MH i2c: D1 01 00 16 45 00 2C [05:49:14]Write to MH i2c: 01 00 00 17 45 5C [05:49:14]Write i2c OK [05:49:14]MH_I2C_Read... [05:49:14]OFD Sender: No OFD packet to send [05:49:14]*** Cut start [05:49:14]*** Partial cut [05:49:14]*** CUTSNS_PIN = 1 [05:49:14]*** CUTSNS_PIN = 0 [05:49:15]*** Brake cut motor [05:49:15]Read from MH i2c: 01 [05:49:15]MH_I2C_Read... [05:49:15]*** Stop cut motor [05:49:15]*** Cut end [05:49:15]Read from MH i2c: 01 07 00 [05:49:15]MH_I2C_Read... [05:49:15]Read from MH i2c: 01 07 00 17 45 00 00 00 00 00 FF 0F 71 [05:49:15]process_action close_receipt done [05:49:15]requested_data is exist [05:49:15]produce_requested_data [05:49:15]requested_item fm.sn is exist - process it [05:49:15]wFMCommunicate request_size=4 [05:49:15]MH_SAM_APDU [05:49:15]CAPDU: 80 11 00 00 [05:49:15]Write to MH i2c: E2 08 00 18 45 80 11 00 00 00 00 00 00 D7 [05:49:15]Write i2c OK [05:49:15]MH_I2C_Read... [05:49:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:49:15]Read from MH i2c: E2 [05:49:15]MH_I2C_Read... [05:49:15]Read from MH i2c: E2 17 00 [05:49:15]MH_I2C_Read... [05:49:15]Read from MH i2c: E2 17 00 18 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 29 [05:49:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [05:49:15]wFMCommunicate OK [05:49:15]requested_item fd.num is exist - process it [05:49:15]SAM_PROTO_GetFieldsCounters [05:49:15]wFMCommunicate request_size=4 [05:49:15]MH_SAM_APDU [05:49:15]CAPDU: 80 13 00 00 [05:49:15]Write to MH i2c: E2 08 00 19 45 80 13 00 00 00 00 00 00 DA [05:49:15]Write i2c OK [05:49:15]MH_I2C_Read... [05:49:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:49:15]Read from MH i2c: E2 [05:49:15]MH_I2C_Read... [05:49:15]Read from MH i2c: E2 62 00 [05:49:15]MH_I2C_Read... [05:49:15]Read from MH i2c: E2 62 00 19 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C5 B3 01 00 0E 04 04 00 85 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 0F [05:49:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C5 B3 01 00 0E 04 04 00 85 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 [05:49:15]wFMCommunicate OK [05:49:15]SAM_PROTO_GetFieldsCounters done [05:49:15]requested_item shift.num is exist - process it [05:49:15]requested_item shift.opened is exist - process it [05:49:15]req_shift_opened [05:49:15]FM_GetShiftState [05:49:15]SAM_PROTO_GetShiftState [05:49:15]wFMCommunicate request_size=4 [05:49:15]MH_SAM_APDU [05:49:15]CAPDU: 80 13 01 00 [05:49:15]Write to MH i2c: E2 08 00 1A 45 80 13 01 00 00 00 00 00 DC [05:49:15]Write i2c OK [05:49:15]MH_I2C_Read... [05:49:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:49:15]Read from MH i2c: E2 [05:49:15]MH_I2C_Read... [05:49:15]Read from MH i2c: E2 0E 00 [05:49:15]MH_I2C_Read... [05:49:15]Read from MH i2c: E2 0E 00 1A 45 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 57 [05:49:15]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [05:49:15]wFMCommunicate OK [05:49:15]SAM_PROTO_GetShiftState done [05:49:15]FM_GetShiftState done [05:49:15]req_shift_opened done [05:49:15]requested_item shift.open_date is exist - process it [05:49:15]req_shift_open_date [05:49:15]req_shift_open_date done [05:49:15]produce_requested_data done [05:49:15]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111557,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [05:49:15]process_action_free close_receipt [05:49:15]json_value_free [05:49:15]json_value_free done [05:49:15]process_json_proto returns [05:49:15]Send response to host [05:49:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111557,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [05:49:15]free response buf [05:49:15]execute_script done [05:49:15]execute_script returns [05:49:15]free content buf [05:49:15]Sock 9.Close socket [05:49:15]Sock 9.Thread stoped [05:49:19]OFD Sender: No OFD packet to send [05:49:24]OFD Sender: No OFD packet to send [05:49:29]OFD Sender: No OFD packet to send [05:49:34]OFD Sender: No OFD packet to send [05:49:39]OFD Sender: No OFD packet to send [05:49:44]OFD Sender: No OFD packet to send [05:49:49]OFD Sender: No OFD packet to send [05:49:54]OFD Sender: No OFD packet to send [05:49:59]OFD Sender: No OFD packet to send [05:50:04]OFD Sender: No OFD packet to send [05:50:09]OFD Sender: No OFD packet to send [05:50:14]OFD Sender: No OFD packet to send [05:50:19]OFD Sender: No OFD packet to send [05:50:24]OFD Sender: No OFD packet to send [05:50:29]OFD Sender: No OFD packet to send [05:50:34]OFD Sender: No OFD packet to send [05:50:39]OFD Sender: No OFD packet to send [05:50:44]OFD Sender: No OFD packet to send [05:50:49]OFD Sender: No OFD packet to send [05:50:54]OFD Sender: No OFD packet to send [05:50:59]OFD Sender: No OFD packet to send [05:51:04]OFD Sender: No OFD packet to send [05:51:09]OFD Sender: No OFD packet to send [05:51:14]OFD Sender: No OFD packet to send [05:51:19]OFD Sender: No OFD packet to send [05:51:24]OFD Sender: No OFD packet to send [05:51:29]OFD Sender: No OFD packet to send [05:51:34]OFD Sender: No OFD packet to send [05:51:39]OFD Sender: No OFD packet to send [05:51:44]OFD Sender: No OFD packet to send [05:51:49]OFD Sender: No OFD packet to send [05:51:54]OFD Sender: No OFD packet to send [05:51:59]OFD Sender: No OFD packet to send [05:52:04]OFD Sender: No OFD packet to send [05:52:09]OFD Sender: No OFD packet to send [05:52:14]OFD Sender: No OFD packet to send [05:52:19]OFD Sender: No OFD packet to send [05:52:24]OFD Sender: No OFD packet to send [05:52:29]OFD Sender: No OFD packet to send [05:52:34]OFD Sender: No OFD packet to send [05:52:39]OFD Sender: No OFD packet to send [05:52:44]OFD Sender: No OFD packet to send [05:52:49]OFD Sender: No OFD packet to send [05:52:54]OFD Sender: No OFD packet to send [05:52:59]OFD Sender: No OFD packet to send [05:53:04]OFD Sender: No OFD packet to send [05:53:09]OFD Sender: No OFD packet to send [05:53:14]OFD Sender: No OFD packet to send [05:53:19]OFD Sender: No OFD packet to send [05:53:24]OFD Sender: No OFD packet to send [05:53:29]OFD Sender: No OFD packet to send [05:53:34]OFD Sender: No OFD packet to send [05:53:39]OFD Sender: No OFD packet to send [05:53:44]OFD Sender: No OFD packet to send [05:53:49]OFD Sender: No OFD packet to send [05:53:54]OFD Sender: No OFD packet to send [05:53:59]OFD Sender: No OFD packet to send [05:54:04]OFD Sender: No OFD packet to send [05:54:09]OFD Sender: No OFD packet to send [05:54:14]OFD Sender: No OFD packet to send [05:54:19]OFD Sender: No OFD packet to send [05:54:24]OFD Sender: No OFD packet to send [05:54:29]OFD Sender: No OFD packet to send [05:54:34]OFD Sender: No OFD packet to send [05:54:39]OFD Sender: No OFD packet to send [05:54:44]OFD Sender: No OFD packet to send [05:54:49]OFD Sender: No OFD packet to send [05:54:54]OFD Sender: No OFD packet to send [05:54:59]OFD Sender: No OFD packet to send [05:55:04]OFD Sender: No OFD packet to send [05:55:09]OFD Sender: No OFD packet to send [05:55:14]OFD Sender: No OFD packet to send [05:55:19]OFD Sender: No OFD packet to send [05:55:24]OFD Sender: No OFD packet to send [05:55:29]OFD Sender: No OFD packet to send [05:55:34]OFD Sender: No OFD packet to send [05:55:39]OFD Sender: No OFD packet to send [05:55:44]OFD Sender: No OFD packet to send [05:55:49]OFD Sender: No OFD packet to send [05:55:54]OFD Sender: No OFD packet to send [05:55:59]OFD Sender: No OFD packet to send [05:56:04]OFD Sender: No OFD packet to send [05:56:09]OFD Sender: No OFD packet to send [05:56:14]OFD Sender: No OFD packet to send [05:56:19]OFD Sender: No OFD packet to send [05:56:24]OFD Sender: No OFD packet to send [05:56:29]OFD Sender: No OFD packet to send [05:56:34]OFD Sender: No OFD packet to send [05:56:39]OFD Sender: No OFD packet to send [05:56:44]OFD Sender: No OFD packet to send [05:56:49]OFD Sender: No OFD packet to send [05:56:54]OFD Sender: No OFD packet to send [05:56:59]OFD Sender: No OFD packet to send [05:57:04]OFD Sender: No OFD packet to send [05:57:09]OFD Sender: No OFD packet to send [05:57:14]OFD Sender: No OFD packet to send [05:57:19]OFD Sender: No OFD packet to send [05:57:24]OFD Sender: No OFD packet to send [05:57:29]OFD Sender: No OFD packet to send [05:57:34]OFD Sender: No OFD packet to send [05:57:39]OFD Sender: No OFD packet to send [05:57:44]OFD Sender: No OFD packet to send [05:57:49]OFD Sender: No OFD packet to send [05:57:54]OFD Sender: No OFD packet to send [05:57:59]OFD Sender: No OFD packet to send [05:58:04]OFD Sender: No OFD packet to send [05:58:09]OFD Sender: No OFD packet to send [05:58:14]OFD Sender: No OFD packet to send [05:58:19]OFD Sender: No OFD packet to send [05:58:24]OFD Sender: No OFD packet to send [05:58:30]OFD Sender: No OFD packet to send [05:58:35]OFD Sender: No OFD packet to send [05:58:40]OFD Sender: No OFD packet to send [05:58:45]OFD Sender: No OFD packet to send [05:58:50]OFD Sender: No OFD packet to send [05:58:55]OFD Sender: No OFD packet to send [05:59:00]OFD Sender: No OFD packet to send [05:59:05]OFD Sender: No OFD packet to send [05:59:10]OFD Sender: No OFD packet to send [05:59:15]OFD Sender: No OFD packet to send [05:59:20]OFD Sender: No OFD packet to send [05:59:25]OFD Sender: No OFD packet to send [05:59:30]OFD Sender: No OFD packet to send [05:59:35]OFD Sender: No OFD packet to send [05:59:40]OFD Sender: No OFD packet to send [05:59:45]OFD Sender: No OFD packet to send [05:59:50]OFD Sender: No OFD packet to send [05:59:55]OFD Sender: No OFD packet to send [06:00:00]OFD Sender: No OFD packet to send [06:00:05]OFD Sender: No OFD packet to send [06:00:10]OFD Sender: No OFD packet to send [06:00:15]OFD Sender: No OFD packet to send [06:00:20]OFD Sender: No OFD packet to send [06:00:25]OFD Sender: No OFD packet to send [06:00:30]OFD Sender: No OFD packet to send [06:00:35]OFD Sender: No OFD packet to send [06:00:40]OFD Sender: No OFD packet to send [06:00:45]OFD Sender: No OFD packet to send [06:00:50]OFD Sender: No OFD packet to send [06:00:55]OFD Sender: No OFD packet to send [06:01:00]OFD Sender: No OFD packet to send [06:01:05]OFD Sender: No OFD packet to send [06:01:10]OFD Sender: No OFD packet to send [06:01:15]OFD Sender: No OFD packet to send [06:01:20]OFD Sender: No OFD packet to send [06:01:25]OFD Sender: No OFD packet to send [06:01:30]OFD Sender: No OFD packet to send [06:01:35]OFD Sender: No OFD packet to send [06:01:40]OFD Sender: No OFD packet to send [06:01:45]OFD Sender: No OFD packet to send [06:01:50]OFD Sender: No OFD packet to send [06:01:55]OFD Sender: No OFD packet to send [06:02:00]OFD Sender: No OFD packet to send [06:02:05]OFD Sender: No OFD packet to send [06:02:10]OFD Sender: No OFD packet to send [06:02:15]OFD Sender: No OFD packet to send [06:02:20]OFD Sender: No OFD packet to send [06:02:25]OFD Sender: No OFD packet to send [06:02:30]OFD Sender: No OFD packet to send [06:02:35]OFD Sender: No OFD packet to send [06:02:40]OFD Sender: No OFD packet to send [06:02:45]OFD Sender: No OFD packet to send [06:02:50]OFD Sender: No OFD packet to send [06:02:55]OFD Sender: No OFD packet to send [06:03:00]OFD Sender: No OFD packet to send [06:03:05]OFD Sender: No OFD packet to send [06:03:10]OFD Sender: No OFD packet to send [06:03:15]OFD Sender: No OFD packet to send [06:03:20]OFD Sender: No OFD packet to send [06:03:25]OFD Sender: No OFD packet to send [06:03:30]OFD Sender: No OFD packet to send [06:03:35]OFD Sender: No OFD packet to send [06:03:40]OFD Sender: No OFD packet to send [06:03:45]OFD Sender: No OFD packet to send [06:03:50]OFD Sender: No OFD packet to send [06:03:55]OFD Sender: No OFD packet to send [06:04:00]OFD Sender: No OFD packet to send [06:04:05]OFD Sender: No OFD packet to send [06:04:10]OFD Sender: No OFD packet to send [06:04:15]OFD Sender: No OFD packet to send [06:04:20]OFD Sender: No OFD packet to send [06:04:25]OFD Sender: No OFD packet to send [06:04:30]OFD Sender: No OFD packet to send [06:04:35]OFD Sender: No OFD packet to send [06:04:40]OFD Sender: No OFD packet to send [06:04:45]OFD Sender: No OFD packet to send [06:04:50]OFD Sender: No OFD packet to send [06:04:55]OFD Sender: No OFD packet to send [06:05:00]OFD Sender: No OFD packet to send [06:05:05]OFD Sender: No OFD packet to send [06:05:10]OFD Sender: No OFD packet to send [06:05:15]OFD Sender: No OFD packet to send [06:05:20]OFD Sender: No OFD packet to send [06:05:25]OFD Sender: No OFD packet to send [06:05:30]OFD Sender: No OFD packet to send [06:05:35]OFD Sender: No OFD packet to send [06:05:40]OFD Sender: No OFD packet to send [06:05:45]OFD Sender: No OFD packet to send [06:05:50]OFD Sender: No OFD packet to send [06:05:55]OFD Sender: No OFD packet to send [06:06:00]OFD Sender: No OFD packet to send [06:06:05]OFD Sender: No OFD packet to send [06:06:10]OFD Sender: No OFD packet to send [06:06:15]OFD Sender: No OFD packet to send [06:06:20]OFD Sender: No OFD packet to send [06:06:25]OFD Sender: No OFD packet to send [06:06:30]OFD Sender: No OFD packet to send [06:06:35]OFD Sender: No OFD packet to send [06:06:40]OFD Sender: No OFD packet to send [06:06:45]OFD Sender: No OFD packet to send [06:06:50]OFD Sender: No OFD packet to send [06:06:55]OFD Sender: No OFD packet to send [06:07:00]OFD Sender: No OFD packet to send [06:07:05]OFD Sender: No OFD packet to send [06:07:10]OFD Sender: No OFD packet to send [06:07:15]OFD Sender: No OFD packet to send [06:07:20]OFD Sender: No OFD packet to send [06:07:25]OFD Sender: No OFD packet to send [06:07:30]OFD Sender: No OFD packet to send [06:07:35]OFD Sender: No OFD packet to send [06:07:40]OFD Sender: No OFD packet to send [06:07:45]OFD Sender: No OFD packet to send [06:07:50]OFD Sender: No OFD packet to send [06:07:55]OFD Sender: No OFD packet to send [06:08:00]OFD Sender: No OFD packet to send [06:08:05]OFD Sender: No OFD packet to send [06:08:10]OFD Sender: No OFD packet to send [06:08:15]OFD Sender: No OFD packet to send [06:08:20]OFD Sender: No OFD packet to send [06:08:25]OFD Sender: No OFD packet to send [06:08:30]OFD Sender: No OFD packet to send [06:08:35]OFD Sender: No OFD packet to send [06:08:40]OFD Sender: No OFD packet to send [06:08:45]OFD Sender: No OFD packet to send [06:08:50]OFD Sender: No OFD packet to send [06:08:55]OFD Sender: No OFD packet to send [06:09:00]OFD Sender: No OFD packet to send [06:09:05]OFD Sender: No OFD packet to send [06:09:10]OFD Sender: No OFD packet to send [06:09:15]OFD Sender: No OFD packet to send [06:09:20]OFD Sender: No OFD packet to send [06:09:25]OFD Sender: No OFD packet to send [06:09:30]OFD Sender: No OFD packet to send [06:09:35]OFD Sender: No OFD packet to send [06:09:40]OFD Sender: No OFD packet to send [06:09:45]OFD Sender: No OFD packet to send [06:09:50]OFD Sender: No OFD packet to send [06:09:55]OFD Sender: No OFD packet to send [06:10:00]OFD Sender: No OFD packet to send [06:10:05]OFD Sender: No OFD packet to send [06:10:10]OFD Sender: No OFD packet to send [06:10:15]OFD Sender: No OFD packet to send [06:10:20]OFD Sender: No OFD packet to send [06:10:25]OFD Sender: No OFD packet to send [06:10:30]OFD Sender: No OFD packet to send [06:10:35]OFD Sender: No OFD packet to send [06:10:40]OFD Sender: No OFD packet to send [06:10:45]OFD Sender: No OFD packet to send [06:10:50]OFD Sender: No OFD packet to send [06:10:55]OFD Sender: No OFD packet to send [06:11:00]OFD Sender: No OFD packet to send [06:11:05]OFD Sender: No OFD packet to send [06:11:10]OFD Sender: No OFD packet to send [06:11:15]OFD Sender: No OFD packet to send [06:11:20]OFD Sender: No OFD packet to send [06:11:25]OFD Sender: No OFD packet to send [06:11:30]OFD Sender: No OFD packet to send [06:11:35]OFD Sender: No OFD packet to send [06:11:40]OFD Sender: No OFD packet to send [06:11:45]OFD Sender: No OFD packet to send [06:11:50]OFD Sender: No OFD packet to send [06:11:55]OFD Sender: No OFD packet to send [06:12:00]OFD Sender: No OFD packet to send [06:12:05]OFD Sender: No OFD packet to send [06:12:10]OFD Sender: No OFD packet to send [06:12:15]OFD Sender: No OFD packet to send [06:12:20]OFD Sender: No OFD packet to send [06:12:25]OFD Sender: No OFD packet to send [06:12:30]OFD Sender: No OFD packet to send [06:12:35]OFD Sender: No OFD packet to send [06:12:40]OFD Sender: No OFD packet to send [06:12:45]OFD Sender: No OFD packet to send [06:12:50]OFD Sender: No OFD packet to send [06:12:55]OFD Sender: No OFD packet to send [06:12:57]accept exits with 7 [06:12:57]New connection [06:12:57]New thread 3067465060 created [06:12:57]Thread 3067321700 joined [06:12:57]Waiting for new connection... [06:12:57] Sock 7.Parse request [06:12:57]Sock 7.Check first char [06:12:57]Sock 7.First char is OK [06:12:57]request: POST /json_proto HTTP/1.0 [06:12:57]Method: POST [06:12:57]URL: /json_proto [06:12:57]Method is POST - this is cgi request [06:12:57]url: /json_proto [06:12:57]query_string will be loaded in cgi processing [06:12:57]execute_cgi json_proto POST (null) [06:12:57]execute_cgi path=json_proto method=POST [06:12:57]POST find Content-Length [06:12:57]Host: 172.17.59.68:8080 [06:12:57]Content-Length: 677 [06:12:57]Content-Type: application/json [06:12:57] [06:12:57]POST finish read [06:12:57]Found Content-Length = 677 [06:12:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 2.260, "sum" : 150.06, "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" ] } } [06:12:57]execute_script... [06:12: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)320155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 2.260, "sum" : 150.06, "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" ] } } [06:12:57]POST & json_proto [06:12:57]process_json_proto [06:12:57]json parsed OK: [06:12:57]protocol is kg_v1.0 [06:12:57]action value=close_receipt [06:12:57]process_action close_receipt [06:12:57]cmd_close_receipt [06:12:57]MH_GetDate [06:12:57]Write to MH i2c: F0 00 00 1B 45 4F [06:12:57]Write i2c OK [06:12:57]MH_I2C_Read... [06:12:57]Read from MH i2c: F0 [06:12:57]MH_I2C_Read... [06:12:57]Read from MH i2c: F0 09 00 [06:12:57]MH_I2C_Read... [06:12:57]Read from MH i2c: F0 09 00 1B 45 00 83 C8 73 66 BC EC 60 65 E9 [06:12:57]GetLastDocTimeStamp 1718862576 [06:12:57]current date 1718864003 [06:12:57]FM_GetShiftState [06:12:57]SAM_PROTO_GetShiftState [06:12:57]wFMCommunicate request_size=4 [06:12:57]MH_SAM_APDU [06:12:57]CAPDU: 80 13 01 00 [06:12:57]Write to MH i2c: E2 08 00 1C 45 80 13 01 00 00 00 00 00 DE [06:12:57]Write i2c OK [06:12:57]MH_I2C_Read... [06:12:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:12:57]Read from MH i2c: E2 [06:12:57]MH_I2C_Read... [06:12:57]Read from MH i2c: E2 0E 00 [06:12:57]MH_I2C_Read... [06:12:57]Read from MH i2c: E2 0E 00 1C 45 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 59 [06:12:57]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [06:12:57]wFMCommunicate OK [06:12:57]SAM_PROTO_GetShiftState done [06:12:57]FM_GetShiftState done [06:12:57]opened in 1718847247 [06:12:57]opened+sec_in_day 1718933647 [06:12:57]quantity*price = 15006 [06:12:57]sum+1 = 15007 [06:12:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.94 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 8 20.06.2024 06:13 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111558 ФПД: 170803608261529 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T061323&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111558&fm=170803608261529&tin=02508201610067®Number=0000000000092771&sum=15000 [06:12:59]StoreToDocumentArchive [06:12:59]shift 389 fd 111558 [06:12:59]save to /storage/0389/doc_00111558 [06:12:59]save last doc name /storage/0389/doc_00111558 to /storage/kkm_last_doc_name [06:12:59]save OK [06:12:59]Clear old archive folders... [06:12:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:12:59]tlvbuf is 00ED6E40 [06:12:59]SAM_PROTO_ClearQueue [06:12:59]wFMCommunicate request_size=4 [06:12:59]MH_SAM_APDU [06:12:59]CAPDU: 80 09 00 00 [06:12:59]Write to MH i2c: E2 08 00 29 45 80 09 00 00 00 00 00 00 E0 [06:12:59]Write i2c OK [06:12:59]MH_I2C_Read... [06:12:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:12:59]Read from MH i2c: E2 [06:12:59]MH_I2C_Read... [06:12:59]Read from MH i2c: E2 03 00 [06:12:59]MH_I2C_Read... [06:12:59]Read from MH i2c: E2 03 00 29 45 00 90 00 E2 [06:12:59]RAPDU: 90 00 [06:12:59]wFMCommunicate OK [06:12:59]SAM_PROTO_ClearQueue done [06:12:59]KKMCreateOFDPacket [06:12:59]OFDProtocolAddRootSTLVToBuf [06:12:59]FM_MakeSignedData [06:12:59]FM_MakeSignedData [06:12:59]SAM_PROTO_SignData [06:12:59]wFMCommunicate request_size=4 [06:12:59]MH_SAM_APDU [06:12:59]CAPDU: 80 0D 01 02 [06:12:59]Write to MH i2c: E2 08 00 2A 45 80 0D 01 02 00 00 00 00 E8 [06:12:59]Write i2c OK [06:12:59]MH_I2C_Read... [06:12:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:12:59]Read from MH i2c: E2 [06:12:59]MH_I2C_Read... [06:12:59]Read from MH i2c: E2 03 00 [06:12:59]MH_I2C_Read... [06:12:59]Read from MH i2c: E2 03 00 2A 45 00 90 00 E3 [06:12:59]RAPDU: 90 00 [06:12:59]wFMCommunicate OK [06:12:59]wFMCommunicate request_size=255 [06:12:59]MH_SAM_APDU [06:12: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 D4 08 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 9E 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 3A 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 08 00 00 00 F4 03 04 00 83 C8 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C6 B3 01 00 35 04 06 00 9B [06:12:59]Write to MH i2c: E2 02 01 2B 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 08 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 9E 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 3A 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 08 00 00 00 F4 03 04 00 83 C8 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C6 B3 01 00 35 04 06 00 9B 00 00 DF [06:12:59]Write i2c OK [06:12:59]MH_I2C_Read... [06:12:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:12:59]Read from MH i2c: E2 [06:12:59]MH_I2C_Read... [06:12:59]Read from MH i2c: E2 03 00 [06:12:59]MH_I2C_Read... [06:12:59]Read from MH i2c: E2 03 00 2B 45 00 90 00 E4 [06:12:59]RAPDU: 90 00 [06:12:59]wFMCommunicate OK [06:12:59]wFMCommunicate request_size=10 [06:12:59]MH_SAM_APDU [06:12:59]CAPDU: 80 0D 02 02 05 58 50 65 93 99 [06:12:59]Write to MH i2c: E2 0D 00 2C 45 80 0D 02 02 05 00 58 50 65 93 99 00 00 2E [06:12:59]Write i2c OK [06:12:59]MH_I2C_Read... [06:12:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:12:59]Read from MH i2c: E2 [06:12:59]MH_I2C_Read... [06:12:59]Read from MH i2c: E2 03 00 [06:12:59]MH_I2C_Read... [06:12:59]Read from MH i2c: E2 03 00 2C 45 00 90 00 E5 [06:12:59]RAPDU: 90 00 [06:12:59]wFMCommunicate OK [06:12:59]wFMCommunicate request_size=4 [06:12:59]MH_SAM_APDU [06:12:59]CAPDU: 80 0D 03 02 [06:12:59]Write to MH i2c: E2 08 00 2D 45 80 0D 03 02 00 00 00 00 ED [06:12:59]Write i2c OK [06:12:59]MH_I2C_Read... [06:12:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:12:59]Read from MH i2c: E2 [06:12:59]MH_I2C_Read... [06:12:59]Read from MH i2c: E2 0B 00 [06:12:59]MH_I2C_Read... [06:12:59]Read from MH i2c: E2 0B 00 2D 45 00 80 AD 1C A8 BC EE 1B F3 90 00 97 [06:12:59]RAPDU: 80 AD 1C A8 BC EE 1B F3 90 00 [06:12:59]wFMCommunicate OK [06:12:59]SAM_PROTO_SignData done [06:12:59]FM_MakeSignedData done [06:12:59]CreateOFDProtocolMessage [06:12:59]wFMCommunicate request_size=4 [06:12:59]MH_SAM_APDU [06:12:59]CAPDU: 80 11 00 00 [06:12:59]Write to MH i2c: E2 08 00 2E 45 80 11 00 00 00 00 00 00 ED [06:12:59]Write i2c OK [06:12:59]MH_I2C_Read... [06:12:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:12:59]Read from MH i2c: E2 [06:12:59]MH_I2C_Read... [06:12:59]Read from MH i2c: E2 17 00 [06:12:59]MH_I2C_Read... [06:12:59]Read from MH i2c: E2 17 00 2E 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3F [06:12:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [06:12:59]wFMCommunicate OK [06:12:59]CreateOFDProtocolMessage done [06:12:59]OFDSenderStorePacket 111558 [06:12:59]StoreOFDPacket docnum=111558 [06:12:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DC F9 07 01 BC 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 08 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 9E 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 3A 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 08 00 00 00 F4 03 04 00 83 C8 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C6 B3 01 00 35 04 06 00 9B 58 50 65 93 99 80 AD 1C A8 BC EE 1B F3 [06:12:59]CheckFolder [06:12:59]dirname=/storage/ofd_packets [06:12:59]CheckFolder done [06:12:59]ProducePacketName [06:12:59]name=ofd_packets/00111558 [06:12:59]NVStorageSaveData ofd_packets/00111558 [06:12:59]File name is /storage/ofd_packets/00111558 [06:12:59]Write 301 bytes [06:12:59]NVStorageSaveData done [06:12:59]OFDSenderStorePacket done [06:12:59]KKMCreateOFDPacket done [06:12:59]NVStorageSaveData kkm_last_timestamp [06:12:59]File name is /storage/kkm_last_timestamp [06:12:59]Write 4 bytes [06:12:59]NVStorageSaveData done [06:12:59]ExternCall_PrintAddStr [06:12:59]wPrintStart [06:12:59]Write to MH i2c: 01 00 00 2F 45 74 [06:12:59]Write i2c OK [06:12:59]MH_I2C_Read... [06:12:59]Read from MH i2c: 01 [06:12:59]MH_I2C_Read... [06:12:59]Read from MH i2c: 01 07 00 [06:12:59]MH_I2C_Read... [06:12:59]Read from MH i2c: 01 07 00 2F 45 00 00 00 00 00 FF 0F 89 [06:12:59]RasterBufferAndPrint [06:12:59]line Счет N : (1)320155 [06:12:59]line ИНН: 02508201610067 [06:12:59]line Контрольно-Кассовый Чек [06:12:59]line ПРОДАЖА [06:12:59]line ТРК (МРК, ГНК) : 11 [06:12:59]line Товар: 2710124130 [06:12:59]line Аи-92-К-5 [06:12:59]line 2.260 * 66.40 [06:12:59]line = 150.06 [06:12:59]line НДС 12% НСП 1% [06:12:59]line > о реализуемом товаре [06:12:59]line ОКРУГЛЕНИЕ: -0.06 [06:12:59]line ИТОГО: 150.00 [06:12:59]line Внесено: 150.00 [06:12:59]line СДАЧА: 0.00 [06:12:59]line НСП 1% : 1.33 [06:12:59]line НДС 12% : 15.94 [06:12:59]line Наличными: 150.00 [06:12:59]line Безнал.: 0.00 [06:12:59]line Место: АЗС № 65 "Партнер Нефть" [06:12:59]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [06:12:59]line СНО: Общий режим [06:12:59]line Чек 8 20.06.2024 06:13 [06:12:59]line Смена: 389 ФФД: 1.0 [06:12:59]line ЗНМ: 0300000198 [06:12:59]line РНМ: 0000000000092771 [06:12:59]line Версия ККМ: 001 [06:12:59]line ФМ: 0000000000875083 [06:12:59]line ФД: 111558 [06:12:59]line ФПД: 170803608261529 [06:12:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T061323&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111558&fm=170803608261529&tin=02508201610067®Number=0000000000092771&sum=15000 [06:12:59]OFD Sender: Processing packet 111558 [packets to send 38, broken 37] [06:12:59]ProducePacketName [06:12:59]name=ofd_packets/00111558 [06:12:59]OFD Sender: To server: pG, [06:12:59]CommunicateWithHost lk.salyk.kg:30040 [06:12:59]ConnectInit lk.salyk.kg [06:12:59]written 0, free lines is 4095 [06:13:00]Connected sock=10 [06:13:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DC F9 07 01 BC 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 08 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 9E 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 3A 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 08 00 00 00 F4 03 04 00 83 C8 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C6 B3 01 00 35 04 06 00 9B 58 50 65 93 99 80 AD 1C A8 BC EE 1B F3 [06:13:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 7A 7B 47 00 0B FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C6 B3 01 00 F4 03 04 00 D5 5F 73 66 B6 04 01 00 00 46 16 5C E9 45 7C 03 D7 [06:13:00]CommunicateWithHost err = 0 [06:13:00]CheckOFDResponse [06:13:00]1017 (14) - 77093643461234 [06:13:00]1041 (16) - 0000000000875083 [06:13:00]1040 (4) - 111558 [06:13:00]1012 (4) - 19.06.2024 22:46 [06:13:00]1206 (1) - 0 [06:13:00]OFD Sender: Remove packet 111558 [06:13:00]ProducePacketName [06:13:00]name=ofd_packets/00111558 [06:13:00]NVStorageDeleteData [06:13:00]Write to MH i2c: 01 00 00 5A 45 9F [06:13:00]Write i2c OK [06:13:00]MH_I2C_Read... [06:13:00]Read from MH i2c: 01 [06:13:00]MH_I2C_Read... [06:13:00]Read from MH i2c: 01 07 00 [06:13:00]MH_I2C_Read... [06:13:00]Read from MH i2c: 01 07 00 5A 45 00 00 00 00 00 C4 0C 76 [06:13:00]RasterBufferAndPrint [06:13:00]line [06:13:00]line [06:13:00]line [06:13:00]line [06:13:00]line [06:13:00]written 0, free lines is 3274 [06:13:00]MH_Cut [06:13:00]Write to MH i2c: D1 01 00 61 45 01 78 [06:13:00]Write i2c OK [06:13:00]MH_I2C_Read... [06:13:00]Read from MH i2c: D1 [06:13:00]MH_I2C_Read... [06:13:00]Read from MH i2c: D1 01 00 [06:13:00]MH_I2C_Read... [06:13:00]Read from MH i2c: D1 01 00 61 45 00 77 [06:13:00]Write to MH i2c: 01 00 00 62 45 A7 [06:13:00]Write i2c OK [06:13:00]MH_I2C_Read... [06:13:00]OFD Sender: No OFD packet to send [06:13:01]*** Cut start [06:13:01]*** Partial cut [06:13:01]*** CUTSNS_PIN = 1 [06:13:01]*** CUTSNS_PIN = 0 [06:13:01]*** Brake cut motor [06:13:01]Read from MH i2c: 01 [06:13:01]MH_I2C_Read... [06:13:01]*** Stop cut motor [06:13:01]*** Cut end [06:13:01]Read from MH i2c: 01 07 00 [06:13:01]MH_I2C_Read... [06:13:01]Read from MH i2c: 01 07 00 62 45 00 00 00 00 00 FF 0F BC [06:13:01]process_action close_receipt done [06:13:01]requested_data is exist [06:13:01]produce_requested_data [06:13:01]requested_item fm.sn is exist - process it [06:13:01]wFMCommunicate request_size=4 [06:13:01]MH_SAM_APDU [06:13:01]CAPDU: 80 11 00 00 [06:13:01]Write to MH i2c: E2 08 00 63 45 80 11 00 00 00 00 00 00 22 [06:13:01]Write i2c OK [06:13:01]MH_I2C_Read... [06:13:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:13:01]Read from MH i2c: E2 [06:13:01]MH_I2C_Read... [06:13:01]Read from MH i2c: E2 17 00 [06:13:01]MH_I2C_Read... [06:13:01]Read from MH i2c: E2 17 00 63 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 74 [06:13:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [06:13:01]wFMCommunicate OK [06:13:01]requested_item fd.num is exist - process it [06:13:01]SAM_PROTO_GetFieldsCounters [06:13:01]wFMCommunicate request_size=4 [06:13:01]MH_SAM_APDU [06:13:01]CAPDU: 80 13 00 00 [06:13:01]Write to MH i2c: E2 08 00 64 45 80 13 00 00 00 00 00 00 25 [06:13:01]Write i2c OK [06:13:01]MH_I2C_Read... [06:13:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:13:01]Read from MH i2c: E2 [06:13:01]MH_I2C_Read... [06:13:01]Read from MH i2c: E2 62 00 [06:13:01]MH_I2C_Read... [06:13:01]Read from MH i2c: E2 62 00 64 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C6 B3 01 00 0E 04 04 00 85 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 5E [06:13:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C6 B3 01 00 0E 04 04 00 85 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 [06:13:01]wFMCommunicate OK [06:13:01]SAM_PROTO_GetFieldsCounters done [06:13:01]requested_item shift.num is exist - process it [06:13:01]requested_item shift.opened is exist - process it [06:13:01]req_shift_opened [06:13:01]FM_GetShiftState [06:13:01]SAM_PROTO_GetShiftState [06:13:01]wFMCommunicate request_size=4 [06:13:01]MH_SAM_APDU [06:13:01]CAPDU: 80 13 01 00 [06:13:01]Write to MH i2c: E2 08 00 65 45 80 13 01 00 00 00 00 00 27 [06:13:01]Write i2c OK [06:13:01]MH_I2C_Read... [06:13:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:13:01]Read from MH i2c: E2 [06:13:01]MH_I2C_Read... [06:13:01]Read from MH i2c: E2 0E 00 [06:13:01]MH_I2C_Read... [06:13:01]Read from MH i2c: E2 0E 00 65 45 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 A2 [06:13:01]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [06:13:01]wFMCommunicate OK [06:13:01]SAM_PROTO_GetShiftState done [06:13:01]FM_GetShiftState done [06:13:01]req_shift_opened done [06:13:01]requested_item shift.open_date is exist - process it [06:13:01]req_shift_open_date [06:13:01]req_shift_open_date done [06:13:01]produce_requested_data done [06:13:01]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111558,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [06:13:01]process_action_free close_receipt [06:13:01]json_value_free [06:13:01]json_value_free done [06:13:01]process_json_proto returns [06:13:01]Send response to host [06:13:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111558,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [06:13:01]free response buf [06:13:01]execute_script done [06:13:01]execute_script returns [06:13:01]free content buf [06:13:01]Sock 7.Close socket [06:13:01]Sock 7.Thread stoped [06:13:05]OFD Sender: No OFD packet to send [06:13:10]OFD Sender: No OFD packet to send [06:13:15]OFD Sender: No OFD packet to send [06:13:20]OFD Sender: No OFD packet to send [06:13:25]OFD Sender: No OFD packet to send [06:13:30]OFD Sender: No OFD packet to send [06:13:35]OFD Sender: No OFD packet to send [06:13:40]OFD Sender: No OFD packet to send [06:13:45]OFD Sender: No OFD packet to send [06:13:50]OFD Sender: No OFD packet to send [06:13:55]OFD Sender: No OFD packet to send [06:14:00]OFD Sender: No OFD packet to send [06:14:05]OFD Sender: No OFD packet to send [06:14:10]OFD Sender: No OFD packet to send [06:14:15]OFD Sender: No OFD packet to send [06:14:20]OFD Sender: No OFD packet to send [06:14:25]OFD Sender: No OFD packet to send [06:14:30]OFD Sender: No OFD packet to send [06:14:35]OFD Sender: No OFD packet to send [06:14:40]OFD Sender: No OFD packet to send [06:14:45]OFD Sender: No OFD packet to send [06:14:50]OFD Sender: No OFD packet to send [06:14:55]OFD Sender: No OFD packet to send [06:15:00]OFD Sender: No OFD packet to send [06:15:05]OFD Sender: No OFD packet to send [06:15:10]OFD Sender: No OFD packet to send [06:15:15]OFD Sender: No OFD packet to send [06:15:20]OFD Sender: No OFD packet to send [06:15:25]OFD Sender: No OFD packet to send [06:15:30]OFD Sender: No OFD packet to send [06:15:35]OFD Sender: No OFD packet to send [06:15:40]OFD Sender: No OFD packet to send [06:15:45]OFD Sender: No OFD packet to send [06:15:50]OFD Sender: No OFD packet to send [06:15:55]OFD Sender: No OFD packet to send [06:16:00]OFD Sender: No OFD packet to send [06:16:05]OFD Sender: No OFD packet to send [06:16:10]OFD Sender: No OFD packet to send [06:16:15]OFD Sender: No OFD packet to send [06:16:20]OFD Sender: No OFD packet to send [06:16:25]OFD Sender: No OFD packet to send [06:16:30]OFD Sender: No OFD packet to send [06:16:35]OFD Sender: No OFD packet to send [06:16:40]OFD Sender: No OFD packet to send [06:16:45]OFD Sender: No OFD packet to send [06:16:50]OFD Sender: No OFD packet to send [06:16:55]OFD Sender: No OFD packet to send [06:17:00]OFD Sender: No OFD packet to send [06:17:05]OFD Sender: No OFD packet to send [06:17:10]OFD Sender: No OFD packet to send [06:17:15]OFD Sender: No OFD packet to send [06:17:20]OFD Sender: No OFD packet to send [06:17:25]OFD Sender: No OFD packet to send [06:17:30]OFD Sender: No OFD packet to send [06:17:35]OFD Sender: No OFD packet to send [06:17:40]OFD Sender: No OFD packet to send [06:17:45]OFD Sender: No OFD packet to send [06:17:50]OFD Sender: No OFD packet to send [06:17:55]OFD Sender: No OFD packet to send [06:18:00]OFD Sender: No OFD packet to send [06:18:05]OFD Sender: No OFD packet to send [06:18:10]OFD Sender: No OFD packet to send [06:18:16]OFD Sender: No OFD packet to send [06:18:21]OFD Sender: No OFD packet to send [06:18:26]OFD Sender: No OFD packet to send [06:18:31]OFD Sender: No OFD packet to send [06:18:36]OFD Sender: No OFD packet to send [06:18:41]OFD Sender: No OFD packet to send [06:18:46]OFD Sender: No OFD packet to send [06:18:51]OFD Sender: No OFD packet to send [06:18:56]OFD Sender: No OFD packet to send [06:19:01]OFD Sender: No OFD packet to send [06:19:06]OFD Sender: No OFD packet to send [06:19:11]OFD Sender: No OFD packet to send [06:19:16]OFD Sender: No OFD packet to send [06:19:21]OFD Sender: No OFD packet to send [06:19:26]OFD Sender: No OFD packet to send [06:19:31]OFD Sender: No OFD packet to send [06:19:36]OFD Sender: No OFD packet to send [06:19:41]OFD Sender: No OFD packet to send [06:19:46]OFD Sender: No OFD packet to send [06:19:51]OFD Sender: No OFD packet to send [06:19:56]OFD Sender: No OFD packet to send [06:20:01]OFD Sender: No OFD packet to send [06:20:06]OFD Sender: No OFD packet to send [06:20:11]OFD Sender: No OFD packet to send [06:20:16]OFD Sender: No OFD packet to send [06:20:21]OFD Sender: No OFD packet to send [06:20:26]OFD Sender: No OFD packet to send [06:20:31]OFD Sender: No OFD packet to send [06:20:36]OFD Sender: No OFD packet to send [06:20:41]OFD Sender: No OFD packet to send [06:20:46]OFD Sender: No OFD packet to send [06:20:51]OFD Sender: No OFD packet to send [06:20:56]OFD Sender: No OFD packet to send [06:21:01]OFD Sender: No OFD packet to send [06:21:06]OFD Sender: No OFD packet to send [06:21:11]OFD Sender: No OFD packet to send [06:21:16]OFD Sender: No OFD packet to send [06:21:21]OFD Sender: No OFD packet to send [06:21:26]OFD Sender: No OFD packet to send [06:21:31]OFD Sender: No OFD packet to send [06:21:36]OFD Sender: No OFD packet to send [06:21:41]OFD Sender: No OFD packet to send [06:21:46]OFD Sender: No OFD packet to send [06:21:51]OFD Sender: No OFD packet to send [06:21:56]OFD Sender: No OFD packet to send [06:22:01]OFD Sender: No OFD packet to send [06:22:06]OFD Sender: No OFD packet to send [06:22:11]OFD Sender: No OFD packet to send [06:22:16]OFD Sender: No OFD packet to send [06:22:21]OFD Sender: No OFD packet to send [06:22:26]OFD Sender: No OFD packet to send [06:22:31]OFD Sender: No OFD packet to send [06:22:36]OFD Sender: No OFD packet to send [06:22:41]OFD Sender: No OFD packet to send [06:22:46]OFD Sender: No OFD packet to send [06:22:51]OFD Sender: No OFD packet to send [06:22:56]OFD Sender: No OFD packet to send [06:23:01]OFD Sender: No OFD packet to send [06:23:06]OFD Sender: No OFD packet to send [06:23:11]OFD Sender: No OFD packet to send [06:23:16]OFD Sender: No OFD packet to send [06:23:21]OFD Sender: No OFD packet to send [06:23:26]OFD Sender: No OFD packet to send [06:23:31]OFD Sender: No OFD packet to send [06:23:36]OFD Sender: No OFD packet to send [06:23:41]OFD Sender: No OFD packet to send [06:23:46]OFD Sender: No OFD packet to send [06:23:51]OFD Sender: No OFD packet to send [06:23:56]OFD Sender: No OFD packet to send [06:24:01]OFD Sender: No OFD packet to send [06:24:06]OFD Sender: No OFD packet to send [06:24:11]OFD Sender: No OFD packet to send [06:24:16]OFD Sender: No OFD packet to send [06:24:21]OFD Sender: No OFD packet to send [06:24:26]OFD Sender: No OFD packet to send [06:24:31]OFD Sender: No OFD packet to send [06:24:36]OFD Sender: No OFD packet to send [06:24:41]OFD Sender: No OFD packet to send [06:24:46]OFD Sender: No OFD packet to send [06:24:51]OFD Sender: No OFD packet to send [06:24:56]OFD Sender: No OFD packet to send [06:25:01]OFD Sender: No OFD packet to send [06:25:06]OFD Sender: No OFD packet to send [06:25:11]OFD Sender: No OFD packet to send [06:25:16]OFD Sender: No OFD packet to send [06:25:21]OFD Sender: No OFD packet to send [06:25:26]OFD Sender: No OFD packet to send [06:25:31]OFD Sender: No OFD packet to send [06:25:36]OFD Sender: No OFD packet to send [06:25:41]OFD Sender: No OFD packet to send [06:25:46]OFD Sender: No OFD packet to send [06:25:51]OFD Sender: No OFD packet to send [06:25:56]OFD Sender: No OFD packet to send [06:26:01]OFD Sender: No OFD packet to send [06:26:06]OFD Sender: No OFD packet to send [06:26:11]OFD Sender: No OFD packet to send [06:26:16]OFD Sender: No OFD packet to send [06:26:21]OFD Sender: No OFD packet to send [06:26:26]OFD Sender: No OFD packet to send [06:26:31]OFD Sender: No OFD packet to send [06:26:36]OFD Sender: No OFD packet to send [06:26:41]OFD Sender: No OFD packet to send [06:26:46]OFD Sender: No OFD packet to send [06:26:51]OFD Sender: No OFD packet to send [06:26:56]OFD Sender: No OFD packet to send [06:27:01]OFD Sender: No OFD packet to send [06:27:06]OFD Sender: No OFD packet to send [06:27:11]OFD Sender: No OFD packet to send [06:27:16]OFD Sender: No OFD packet to send [06:27:21]OFD Sender: No OFD packet to send [06:27:26]OFD Sender: No OFD packet to send [06:27:31]OFD Sender: No OFD packet to send [06:27:36]OFD Sender: No OFD packet to send [06:27:41]OFD Sender: No OFD packet to send [06:27:46]OFD Sender: No OFD packet to send [06:27:51]OFD Sender: No OFD packet to send [06:27:56]OFD Sender: No OFD packet to send [06:28:01]OFD Sender: No OFD packet to send [06:28:06]OFD Sender: No OFD packet to send [06:28:11]OFD Sender: No OFD packet to send [06:28:16]OFD Sender: No OFD packet to send [06:28:21]OFD Sender: No OFD packet to send [06:28:26]OFD Sender: No OFD packet to send [06:28:31]OFD Sender: No OFD packet to send [06:28:36]OFD Sender: No OFD packet to send [06:28:41]OFD Sender: No OFD packet to send [06:28:46]OFD Sender: No OFD packet to send [06:28:51]OFD Sender: No OFD packet to send [06:28:56]OFD Sender: No OFD packet to send [06:29:01]OFD Sender: No OFD packet to send [06:29:06]OFD Sender: No OFD packet to send [06:29:11]OFD Sender: No OFD packet to send [06:29:16]OFD Sender: No OFD packet to send [06:29:21]OFD Sender: No OFD packet to send [06:29:26]OFD Sender: No OFD packet to send [06:29:31]OFD Sender: No OFD packet to send [06:29:36]OFD Sender: No OFD packet to send [06:29:41]OFD Sender: No OFD packet to send [06:29:46]OFD Sender: No OFD packet to send [06:29:51]OFD Sender: No OFD packet to send [06:29:56]OFD Sender: No OFD packet to send [06:30:01]OFD Sender: No OFD packet to send [06:30:06]OFD Sender: No OFD packet to send [06:30:11]OFD Sender: No OFD packet to send [06:30:16]OFD Sender: No OFD packet to send [06:30:21]OFD Sender: No OFD packet to send [06:30:26]OFD Sender: No OFD packet to send [06:30:31]OFD Sender: No OFD packet to send [06:30:36]OFD Sender: No OFD packet to send [06:30:41]OFD Sender: No OFD packet to send [06:30:46]OFD Sender: No OFD packet to send [06:30:51]OFD Sender: No OFD packet to send [06:30:56]OFD Sender: No OFD packet to send [06:31:01]OFD Sender: No OFD packet to send [06:31:06]OFD Sender: No OFD packet to send [06:31:11]OFD Sender: No OFD packet to send [06:31:16]OFD Sender: No OFD packet to send [06:31:21]OFD Sender: No OFD packet to send [06:31:26]OFD Sender: No OFD packet to send [06:31:31]OFD Sender: No OFD packet to send [06:31:36]OFD Sender: No OFD packet to send [06:31:41]OFD Sender: No OFD packet to send [06:31:46]OFD Sender: No OFD packet to send [06:31:51]OFD Sender: No OFD packet to send [06:31:56]OFD Sender: No OFD packet to send [06:32:01]OFD Sender: No OFD packet to send [06:32:06]OFD Sender: No OFD packet to send [06:32:11]OFD Sender: No OFD packet to send [06:32:16]OFD Sender: No OFD packet to send [06:32:21]OFD Sender: No OFD packet to send [06:32:26]OFD Sender: No OFD packet to send [06:32:31]OFD Sender: No OFD packet to send [06:32:36]OFD Sender: No OFD packet to send [06:32:41]OFD Sender: No OFD packet to send [06:32:46]OFD Sender: No OFD packet to send [06:32:51]OFD Sender: No OFD packet to send [06:32:56]OFD Sender: No OFD packet to send [06:33:01]OFD Sender: No OFD packet to send [06:33:06]OFD Sender: No OFD packet to send [06:33:11]OFD Sender: No OFD packet to send [06:33:16]OFD Sender: No OFD packet to send [06:33:21]OFD Sender: No OFD packet to send [06:33:26]OFD Sender: No OFD packet to send [06:33:31]OFD Sender: No OFD packet to send [06:33:36]OFD Sender: No OFD packet to send [06:33:41]OFD Sender: No OFD packet to send [06:33:46]OFD Sender: No OFD packet to send [06:33:51]OFD Sender: No OFD packet to send [06:33:56]OFD Sender: No OFD packet to send [06:34:01]OFD Sender: No OFD packet to send [06:34:06]OFD Sender: No OFD packet to send [06:34:11]OFD Sender: No OFD packet to send [06:34:16]OFD Sender: No OFD packet to send [06:34:21]OFD Sender: No OFD packet to send [06:34:26]OFD Sender: No OFD packet to send [06:34:31]OFD Sender: No OFD packet to send [06:34:36]OFD Sender: No OFD packet to send [06:34:41]OFD Sender: No OFD packet to send [06:34:46]OFD Sender: No OFD packet to send [06:34:51]OFD Sender: No OFD packet to send [06:34:56]OFD Sender: No OFD packet to send [06:35:01]OFD Sender: No OFD packet to send [06:35:06]OFD Sender: No OFD packet to send [06:35:11]OFD Sender: No OFD packet to send [06:35:16]OFD Sender: No OFD packet to send [06:35:21]OFD Sender: No OFD packet to send [06:35:26]OFD Sender: No OFD packet to send [06:35:31]OFD Sender: No OFD packet to send [06:35:36]OFD Sender: No OFD packet to send [06:35:41]OFD Sender: No OFD packet to send [06:35:46]OFD Sender: No OFD packet to send [06:35:51]OFD Sender: No OFD packet to send [06:35:56]OFD Sender: No OFD packet to send [06:36:01]OFD Sender: No OFD packet to send [06:36:06]OFD Sender: No OFD packet to send [06:36:11]OFD Sender: No OFD packet to send [06:36:16]OFD Sender: No OFD packet to send [06:36:21]OFD Sender: No OFD packet to send [06:36:26]OFD Sender: No OFD packet to send [06:36:31]OFD Sender: No OFD packet to send [06:36:36]OFD Sender: No OFD packet to send [06:36:41]OFD Sender: No OFD packet to send [06:36:46]OFD Sender: No OFD packet to send [06:36:51]OFD Sender: No OFD packet to send [06:36:56]OFD Sender: No OFD packet to send [06:37:01]OFD Sender: No OFD packet to send [06:37:06]OFD Sender: No OFD packet to send [06:37:11]OFD Sender: No OFD packet to send [06:37:16]OFD Sender: No OFD packet to send [06:37:21]OFD Sender: No OFD packet to send [06:37:27]OFD Sender: No OFD packet to send [06:37:32]OFD Sender: No OFD packet to send [06:37:37]OFD Sender: No OFD packet to send [06:37:42]OFD Sender: No OFD packet to send [06:37:47]OFD Sender: No OFD packet to send [06:37:52]OFD Sender: No OFD packet to send [06:37:57]OFD Sender: No OFD packet to send [06:38:02]OFD Sender: No OFD packet to send [06:38:07]OFD Sender: No OFD packet to send [06:38:12]OFD Sender: No OFD packet to send [06:38:17]OFD Sender: No OFD packet to send [06:38:22]OFD Sender: No OFD packet to send [06:38:27]OFD Sender: No OFD packet to send [06:38:32]OFD Sender: No OFD packet to send [06:38:37]OFD Sender: No OFD packet to send [06:38:42]OFD Sender: No OFD packet to send [06:38:47]OFD Sender: No OFD packet to send [06:38:52]OFD Sender: No OFD packet to send [06:38:57]OFD Sender: No OFD packet to send [06:39:02]OFD Sender: No OFD packet to send [06:39:07]OFD Sender: No OFD packet to send [06:39:12]OFD Sender: No OFD packet to send [06:39:17]OFD Sender: No OFD packet to send [06:39:22]OFD Sender: No OFD packet to send [06:39:27]OFD Sender: No OFD packet to send [06:39:32]OFD Sender: No OFD packet to send [06:39:37]OFD Sender: No OFD packet to send [06:39:42]OFD Sender: No OFD packet to send [06:39:47]OFD Sender: No OFD packet to send [06:39:52]OFD Sender: No OFD packet to send [06:39:57]OFD Sender: No OFD packet to send [06:40:02]OFD Sender: No OFD packet to send [06:40:07]OFD Sender: No OFD packet to send [06:40:12]OFD Sender: No OFD packet to send [06:40:17]OFD Sender: No OFD packet to send [06:40:22]OFD Sender: No OFD packet to send [06:40:27]OFD Sender: No OFD packet to send [06:40:32]OFD Sender: No OFD packet to send [06:40:37]OFD Sender: No OFD packet to send [06:40:42]OFD Sender: No OFD packet to send [06:40:47]OFD Sender: No OFD packet to send [06:40:52]OFD Sender: No OFD packet to send [06:40:57]OFD Sender: No OFD packet to send [06:41:02]OFD Sender: No OFD packet to send [06:41:07]OFD Sender: No OFD packet to send [06:41:12]OFD Sender: No OFD packet to send [06:41:17]OFD Sender: No OFD packet to send [06:41:22]OFD Sender: No OFD packet to send [06:41:27]OFD Sender: No OFD packet to send [06:41:32]OFD Sender: No OFD packet to send [06:41:37]OFD Sender: No OFD packet to send [06:41:42]OFD Sender: No OFD packet to send [06:41:47]OFD Sender: No OFD packet to send [06:41:52]OFD Sender: No OFD packet to send [06:41:57]OFD Sender: No OFD packet to send [06:42:02]OFD Sender: No OFD packet to send [06:42:07]OFD Sender: No OFD packet to send [06:42:12]OFD Sender: No OFD packet to send [06:42:17]OFD Sender: No OFD packet to send [06:42:22]OFD Sender: No OFD packet to send [06:42:27]OFD Sender: No OFD packet to send [06:42:32]OFD Sender: No OFD packet to send [06:42:37]OFD Sender: No OFD packet to send [06:42:42]OFD Sender: No OFD packet to send [06:42:47]OFD Sender: No OFD packet to send [06:42:52]OFD Sender: No OFD packet to send [06:42:57]OFD Sender: No OFD packet to send [06:43:02]OFD Sender: No OFD packet to send [06:43:07]OFD Sender: No OFD packet to send [06:43:12]OFD Sender: No OFD packet to send [06:43:17]OFD Sender: No OFD packet to send [06:43:22]OFD Sender: No OFD packet to send [06:43:27]OFD Sender: No OFD packet to send [06:43:32]OFD Sender: No OFD packet to send [06:43:37]OFD Sender: No OFD packet to send [06:43:42]OFD Sender: No OFD packet to send [06:43:47]OFD Sender: No OFD packet to send [06:43:52]OFD Sender: No OFD packet to send [06:43:57]OFD Sender: No OFD packet to send [06:44:02]OFD Sender: No OFD packet to send [06:44:07]OFD Sender: No OFD packet to send [06:44:12]OFD Sender: No OFD packet to send [06:44:17]OFD Sender: No OFD packet to send [06:44:22]OFD Sender: No OFD packet to send [06:44:27]OFD Sender: No OFD packet to send [06:44:32]OFD Sender: No OFD packet to send [06:44:37]OFD Sender: No OFD packet to send [06:44:42]OFD Sender: No OFD packet to send [06:44:47]OFD Sender: No OFD packet to send [06:44:52]OFD Sender: No OFD packet to send [06:44:57]OFD Sender: No OFD packet to send [06:45:02]OFD Sender: No OFD packet to send [06:45:07]OFD Sender: No OFD packet to send [06:45:12]OFD Sender: No OFD packet to send [06:45:17]OFD Sender: No OFD packet to send [06:45:22]OFD Sender: No OFD packet to send [06:45:27]OFD Sender: No OFD packet to send [06:45:32]OFD Sender: No OFD packet to send [06:45:37]OFD Sender: No OFD packet to send [06:45:42]OFD Sender: No OFD packet to send [06:45:47]OFD Sender: No OFD packet to send [06:45:52]OFD Sender: No OFD packet to send [06:45:57]OFD Sender: No OFD packet to send [06:46:02]OFD Sender: No OFD packet to send [06:46:07]OFD Sender: No OFD packet to send [06:46:12]OFD Sender: No OFD packet to send [06:46:17]OFD Sender: No OFD packet to send [06:46:22]OFD Sender: No OFD packet to send [06:46:27]OFD Sender: No OFD packet to send [06:46:32]OFD Sender: No OFD packet to send [06:46:37]OFD Sender: No OFD packet to send [06:46:42]OFD Sender: No OFD packet to send [06:46:47]OFD Sender: No OFD packet to send [06:46:52]OFD Sender: No OFD packet to send [06:46:57]OFD Sender: No OFD packet to send [06:47:02]OFD Sender: No OFD packet to send [06:47:07]OFD Sender: No OFD packet to send [06:47:12]OFD Sender: No OFD packet to send [06:47:17]OFD Sender: No OFD packet to send [06:47:22]OFD Sender: No OFD packet to send [06:47:27]OFD Sender: No OFD packet to send [06:47:32]OFD Sender: No OFD packet to send [06:47:37]OFD Sender: No OFD packet to send [06:47:42]OFD Sender: No OFD packet to send [06:47:47]OFD Sender: No OFD packet to send [06:47:52]OFD Sender: No OFD packet to send [06:47:57]OFD Sender: No OFD packet to send [06:48:02]OFD Sender: No OFD packet to send [06:48:07]OFD Sender: No OFD packet to send [06:48:12]OFD Sender: No OFD packet to send [06:48:17]OFD Sender: No OFD packet to send [06:48:22]OFD Sender: No OFD packet to send [06:48:27]OFD Sender: No OFD packet to send [06:48:32]OFD Sender: No OFD packet to send [06:48:37]OFD Sender: No OFD packet to send [06:48:42]OFD Sender: No OFD packet to send [06:48:47]OFD Sender: No OFD packet to send [06:48:52]OFD Sender: No OFD packet to send [06:48:57]OFD Sender: No OFD packet to send [06:49:02]OFD Sender: No OFD packet to send [06:49:07]OFD Sender: No OFD packet to send [06:49:12]OFD Sender: No OFD packet to send [06:49:17]OFD Sender: No OFD packet to send [06:49:22]OFD Sender: No OFD packet to send [06:49:27]OFD Sender: No OFD packet to send [06:49:32]OFD Sender: No OFD packet to send [06:49:37]OFD Sender: No OFD packet to send [06:49:42]OFD Sender: No OFD packet to send [06:49:47]OFD Sender: No OFD packet to send [06:49:52]OFD Sender: No OFD packet to send [06:49:57]OFD Sender: No OFD packet to send [06:50:02]OFD Sender: No OFD packet to send [06:50:07]OFD Sender: No OFD packet to send [06:50:12]OFD Sender: No OFD packet to send [06:50:17]OFD Sender: No OFD packet to send [06:50:22]OFD Sender: No OFD packet to send [06:50:27]OFD Sender: No OFD packet to send [06:50:32]OFD Sender: No OFD packet to send [06:50:37]OFD Sender: No OFD packet to send [06:50:42]OFD Sender: No OFD packet to send [06:50:47]OFD Sender: No OFD packet to send [06:50:52]OFD Sender: No OFD packet to send [06:50:57]OFD Sender: No OFD packet to send [06:51:02]OFD Sender: No OFD packet to send [06:51:07]OFD Sender: No OFD packet to send [06:51:12]OFD Sender: No OFD packet to send [06:51:17]OFD Sender: No OFD packet to send [06:51:22]OFD Sender: No OFD packet to send [06:51:27]OFD Sender: No OFD packet to send [06:51:32]OFD Sender: No OFD packet to send [06:51:37]OFD Sender: No OFD packet to send [06:51:42]OFD Sender: No OFD packet to send [06:51:47]OFD Sender: No OFD packet to send [06:51:52]OFD Sender: No OFD packet to send [06:51:57]OFD Sender: No OFD packet to send [06:52:02]OFD Sender: No OFD packet to send [06:52:07]OFD Sender: No OFD packet to send [06:52:12]OFD Sender: No OFD packet to send [06:52:17]OFD Sender: No OFD packet to send [06:52:22]OFD Sender: No OFD packet to send [06:52:27]OFD Sender: No OFD packet to send [06:52:32]OFD Sender: No OFD packet to send [06:52:37]OFD Sender: No OFD packet to send [06:52:42]OFD Sender: No OFD packet to send [06:52:47]OFD Sender: No OFD packet to send [06:52:52]OFD Sender: No OFD packet to send [06:52:57]OFD Sender: No OFD packet to send [06:53:02]OFD Sender: No OFD packet to send [06:53:07]OFD Sender: No OFD packet to send [06:53:12]OFD Sender: No OFD packet to send [06:53:17]OFD Sender: No OFD packet to send [06:53:22]OFD Sender: No OFD packet to send [06:53:27]OFD Sender: No OFD packet to send [06:53:32]OFD Sender: No OFD packet to send [06:53:37]OFD Sender: No OFD packet to send [06:53:42]OFD Sender: No OFD packet to send [06:53:47]OFD Sender: No OFD packet to send [06:53:52]OFD Sender: No OFD packet to send [06:53:57]OFD Sender: No OFD packet to send [06:54:02]OFD Sender: No OFD packet to send [06:54:07]OFD Sender: No OFD packet to send [06:54:12]OFD Sender: No OFD packet to send [06:54:17]OFD Sender: No OFD packet to send [06:54:22]OFD Sender: No OFD packet to send [06:54:27]OFD Sender: No OFD packet to send [06:54:32]OFD Sender: No OFD packet to send [06:54:37]OFD Sender: No OFD packet to send [06:54:42]OFD Sender: No OFD packet to send [06:54:47]OFD Sender: No OFD packet to send [06:54:52]OFD Sender: No OFD packet to send [06:54:57]OFD Sender: No OFD packet to send [06:55:02]OFD Sender: No OFD packet to send [06:55:07]OFD Sender: No OFD packet to send [06:55:12]OFD Sender: No OFD packet to send [06:55:17]OFD Sender: No OFD packet to send [06:55:22]OFD Sender: No OFD packet to send [06:55:27]OFD Sender: No OFD packet to send [06:55:32]OFD Sender: No OFD packet to send [06:55:37]OFD Sender: No OFD packet to send [06:55:42]OFD Sender: No OFD packet to send [06:55:47]OFD Sender: No OFD packet to send [06:55:52]OFD Sender: No OFD packet to send [06:55:57]OFD Sender: No OFD packet to send [06:56:02]OFD Sender: No OFD packet to send [06:56:07]OFD Sender: No OFD packet to send [06:56:12]OFD Sender: No OFD packet to send [06:56:17]OFD Sender: No OFD packet to send [06:56:22]OFD Sender: No OFD packet to send [06:56:27]OFD Sender: No OFD packet to send [06:56:33]OFD Sender: No OFD packet to send [06:56:38]OFD Sender: No OFD packet to send [06:56:43]OFD Sender: No OFD packet to send [06:56:48]OFD Sender: No OFD packet to send [06:56:53]OFD Sender: No OFD packet to send [06:56:58]OFD Sender: No OFD packet to send [06:57:03]OFD Sender: No OFD packet to send [06:57:08]OFD Sender: No OFD packet to send [06:57:13]OFD Sender: No OFD packet to send [06:57:18]OFD Sender: No OFD packet to send [06:57:23]OFD Sender: No OFD packet to send [06:57:28]OFD Sender: No OFD packet to send [06:57:33]OFD Sender: No OFD packet to send [06:57:38]OFD Sender: No OFD packet to send [06:57:43]OFD Sender: No OFD packet to send [06:57:48]OFD Sender: No OFD packet to send [06:57:53]OFD Sender: No OFD packet to send [06:57:58]OFD Sender: No OFD packet to send [06:58:03]OFD Sender: No OFD packet to send [06:58:08]OFD Sender: No OFD packet to send [06:58:13]OFD Sender: No OFD packet to send [06:58:18]OFD Sender: No OFD packet to send [06:58:23]OFD Sender: No OFD packet to send [06:58:28]OFD Sender: No OFD packet to send [06:58:33]OFD Sender: No OFD packet to send [06:58:38]OFD Sender: No OFD packet to send [06:58:43]OFD Sender: No OFD packet to send [06:58:48]OFD Sender: No OFD packet to send [06:58:53]OFD Sender: No OFD packet to send [06:58:58]OFD Sender: No OFD packet to send [06:59:03]OFD Sender: No OFD packet to send [06:59:08]OFD Sender: No OFD packet to send [06:59:13]OFD Sender: No OFD packet to send [06:59:18]OFD Sender: No OFD packet to send [06:59:23]OFD Sender: No OFD packet to send [06:59:28]OFD Sender: No OFD packet to send [06:59:33]OFD Sender: No OFD packet to send [06:59:38]OFD Sender: No OFD packet to send [06:59:43]OFD Sender: No OFD packet to send [06:59:48]OFD Sender: No OFD packet to send [06:59:53]OFD Sender: No OFD packet to send [06:59:58]OFD Sender: No OFD packet to send [07:00:03]OFD Sender: No OFD packet to send [07:00:08]OFD Sender: No OFD packet to send [07:00:13]OFD Sender: No OFD packet to send [07:00:18]OFD Sender: No OFD packet to send [07:00:23]OFD Sender: No OFD packet to send [07:00:28]OFD Sender: No OFD packet to send [07:00:33]OFD Sender: No OFD packet to send [07:00:38]OFD Sender: No OFD packet to send [07:00:43]OFD Sender: No OFD packet to send [07:00:48]OFD Sender: No OFD packet to send [07:00:53]OFD Sender: No OFD packet to send [07:00:58]OFD Sender: No OFD packet to send [07:01:03]OFD Sender: No OFD packet to send [07:01:08]OFD Sender: No OFD packet to send [07:01:13]OFD Sender: No OFD packet to send [07:01:18]OFD Sender: No OFD packet to send [07:01:23]OFD Sender: No OFD packet to send [07:01:28]OFD Sender: No OFD packet to send [07:01:33]OFD Sender: No OFD packet to send [07:01:38]OFD Sender: No OFD packet to send [07:01:43]OFD Sender: No OFD packet to send [07:01:48]OFD Sender: No OFD packet to send [07:01:53]OFD Sender: No OFD packet to send [07:01:58]OFD Sender: No OFD packet to send [07:02:03]OFD Sender: No OFD packet to send [07:02:08]OFD Sender: No OFD packet to send [07:02:13]OFD Sender: No OFD packet to send [07:02:15]accept exits with 9 [07:02:15]New connection [07:02:15]New thread 3067321700 created [07:02:15]Thread 3067465060 joined [07:02:15]Waiting for new connection... [07:02:15] Sock 9.Parse request [07:02:15]Sock 9.Check first char [07:02:15]Sock 9.First char is OK [07:02:15]request: POST /json_proto HTTP/1.0 [07:02:15]Method: POST [07:02:15]URL: /json_proto [07:02:15]Method is POST - this is cgi request [07:02:15]url: /json_proto [07:02:15]query_string will be loaded in cgi processing [07:02:15]execute_cgi json_proto POST (null) [07:02:15]execute_cgi path=json_proto method=POST [07:02:15]POST find Content-Length [07:02:15]Host: 172.17.59.68:8080 [07:02:15]Content-Length: 679 [07:02:15]Content-Type: application/json [07:02:15] [07:02:15]POST finish read [07:02:15]Found Content-Length = 679 [07:02:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:02:15]execute_script... [07:02: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)320156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:02:15]POST & json_proto [07:02:15]process_json_proto [07:02:15]json parsed OK: [07:02:15]protocol is kg_v1.0 [07:02:15]action value=close_receipt [07:02:15]process_action close_receipt [07:02:15]cmd_close_receipt [07:02:15]MH_GetDate [07:02:15]Write to MH i2c: F0 00 00 66 45 9A [07:02:15]Write i2c OK [07:02:15]MH_I2C_Read... [07:02:15]Read from MH i2c: F0 [07:02:15]MH_I2C_Read... [07:02:15]Read from MH i2c: F0 09 00 [07:02:15]MH_I2C_Read... [07:02:15]Read from MH i2c: F0 09 00 66 45 00 11 D4 73 66 BC EC 60 65 CE [07:02:15]GetLastDocTimeStamp 1718864003 [07:02:15]current date 1718866961 [07:02:15]FM_GetShiftState [07:02:15]SAM_PROTO_GetShiftState [07:02:15]wFMCommunicate request_size=4 [07:02:15]MH_SAM_APDU [07:02:15]CAPDU: 80 13 01 00 [07:02:15]Write to MH i2c: E2 08 00 67 45 80 13 01 00 00 00 00 00 29 [07:02:15]Write i2c OK [07:02:15]MH_I2C_Read... [07:02:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:02:15]Read from MH i2c: E2 [07:02:15]MH_I2C_Read... [07:02:15]Read from MH i2c: E2 0E 00 [07:02:15]MH_I2C_Read... [07:02:15]Read from MH i2c: E2 0E 00 67 45 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 A4 [07:02:15]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [07:02:15]wFMCommunicate OK [07:02:15]SAM_PROTO_GetShiftState done [07:02:15]FM_GetShiftState done [07:02:15]opened in 1718847247 [07:02:15]opened+sec_in_day 1718933647 [07:02:15]quantity*price = 300056 [07:02:15]sum+1 = 300057 [07:02:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 9 20.06.2024 07:02 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111559 ФПД: 198439302552836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T070241&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111559&fm=198439302552836&tin=02508201610067®Number=0000000000092771&sum=300000 [07:02:16]StoreToDocumentArchive [07:02:16]shift 389 fd 111559 [07:02:16]save to /storage/0389/doc_00111559 [07:02:16]save last doc name /storage/0389/doc_00111559 to /storage/kkm_last_doc_name [07:02:16]save OK [07:02:16]Clear old archive folders... [07:02:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:02:16]tlvbuf is B6FD2790 [07:02:16]SAM_PROTO_ClearQueue [07:02:16]wFMCommunicate request_size=4 [07:02:16]MH_SAM_APDU [07:02:16]CAPDU: 80 09 00 00 [07:02:16]Write to MH i2c: E2 08 00 74 45 80 09 00 00 00 00 00 00 2B [07:02:16]Write i2c OK [07:02:16]MH_I2C_Read... [07:02:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:02:16]Read from MH i2c: E2 [07:02:16]MH_I2C_Read... [07:02:16]Read from MH i2c: E2 03 00 [07:02:16]MH_I2C_Read... [07:02:16]Read from MH i2c: E2 03 00 74 45 00 90 00 2D [07:02:16]RAPDU: 90 00 [07:02:16]wFMCommunicate OK [07:02:16]SAM_PROTO_ClearQueue done [07:02:16]KKMCreateOFDPacket [07:02:16]OFDProtocolAddRootSTLVToBuf [07:02:16]FM_MakeSignedData [07:02:16]FM_MakeSignedData [07:02:16]SAM_PROTO_SignData [07:02:16]wFMCommunicate request_size=4 [07:02:16]MH_SAM_APDU [07:02:16]CAPDU: 80 0D 01 02 [07:02:16]Write to MH i2c: E2 08 00 75 45 80 0D 01 02 00 00 00 00 33 [07:02:16]Write i2c OK [07:02:16]MH_I2C_Read... [07:02:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:02:16]Read from MH i2c: E2 [07:02:16]MH_I2C_Read... [07:02:16]Read from MH i2c: E2 03 00 [07:02:16]MH_I2C_Read... [07:02:16]Read from MH i2c: E2 03 00 75 45 00 90 00 2E [07:02:16]RAPDU: 90 00 [07:02:16]wFMCommunicate OK [07:02:16]wFMCommunicate request_size=255 [07:02:16]MH_SAM_APDU [07:02:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 11 D4 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C7 B3 01 00 35 04 06 00 B4 7A C0 23 [07:02:16]Write to MH i2c: E2 02 01 76 45 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 11 D4 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C7 B3 01 00 35 04 06 00 B4 7A C0 23 00 00 62 [07:02:16]Write i2c OK [07:02:16]MH_I2C_Read... [07:02:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:02:16]Read from MH i2c: E2 [07:02:16]MH_I2C_Read... [07:02:16]Read from MH i2c: E2 03 00 [07:02:16]MH_I2C_Read... [07:02:16]Read from MH i2c: E2 03 00 76 45 00 90 00 2F [07:02:16]RAPDU: 90 00 [07:02:16]wFMCommunicate OK [07:02:16]wFMCommunicate request_size=7 [07:02:16]MH_SAM_APDU [07:02:16]CAPDU: 80 0D 02 02 02 5D 04 [07:02:16]Write to MH i2c: E2 0A 00 77 45 80 0D 02 02 02 00 5D 04 00 00 9B [07:02:16]Write i2c OK [07:02:16]MH_I2C_Read... [07:02:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:02:16]Read from MH i2c: E2 [07:02:16]MH_I2C_Read... [07:02:16]Read from MH i2c: E2 03 00 [07:02:16]MH_I2C_Read... [07:02:16]Read from MH i2c: E2 03 00 77 45 00 90 00 30 [07:02:16]RAPDU: 90 00 [07:02:16]wFMCommunicate OK [07:02:16]wFMCommunicate request_size=4 [07:02:16]MH_SAM_APDU [07:02:16]CAPDU: 80 0D 03 02 [07:02:16]Write to MH i2c: E2 08 00 78 45 80 0D 03 02 00 00 00 00 38 [07:02:16]Write i2c OK [07:02:16]MH_I2C_Read... [07:02:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:02:16]Read from MH i2c: E2 [07:02:16]MH_I2C_Read... [07:02:16]Read from MH i2c: E2 0B 00 [07:02:16]MH_I2C_Read... [07:02:16]Read from MH i2c: E2 0B 00 78 45 00 D9 56 CB F0 57 54 8B DA 90 00 33 [07:02:16]RAPDU: D9 56 CB F0 57 54 8B DA 90 00 [07:02:16]wFMCommunicate OK [07:02:16]SAM_PROTO_SignData done [07:02:16]FM_MakeSignedData done [07:02:16]CreateOFDProtocolMessage [07:02:16]wFMCommunicate request_size=4 [07:02:16]MH_SAM_APDU [07:02:16]CAPDU: 80 11 00 00 [07:02:16]Write to MH i2c: E2 08 00 79 45 80 11 00 00 00 00 00 00 38 [07:02:16]Write i2c OK [07:02:16]MH_I2C_Read... [07:02:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:02:16]Read from MH i2c: E2 [07:02:16]MH_I2C_Read... [07:02:16]Read from MH i2c: E2 17 00 [07:02:16]MH_I2C_Read... [07:02:16]Read from MH i2c: E2 17 00 79 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8A [07:02:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [07:02:16]wFMCommunicate OK [07:02:16]CreateOFDProtocolMessage done [07:02:16]OFDSenderStorePacket 111559 [07:02:16]StoreOFDPacket docnum=111559 [07:02:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 CC 6E 04 01 F9 8B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 11 D4 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C7 B3 01 00 35 04 06 00 B4 7A C0 23 5D 04 D9 56 CB F0 57 54 8B DA [07:02:16]CheckFolder [07:02:16]dirname=/storage/ofd_packets [07:02:16]CheckFolder done [07:02:16]ProducePacketName [07:02:16]name=ofd_packets/00111559 [07:02:16]NVStorageSaveData ofd_packets/00111559 [07:02:16]File name is /storage/ofd_packets/00111559 [07:02:16]Write 298 bytes [07:02:16]NVStorageSaveData done [07:02:16]OFDSenderStorePacket done [07:02:16]KKMCreateOFDPacket done [07:02:16]NVStorageSaveData kkm_last_timestamp [07:02:16]File name is /storage/kkm_last_timestamp [07:02:16]Write 4 bytes [07:02:16]NVStorageSaveData done [07:02:16]ExternCall_PrintAddStr [07:02:16]wPrintStart [07:02:16]Write to MH i2c: 01 00 00 7A 45 BF [07:02:16]Write i2c OK [07:02:16]MH_I2C_Read... [07:02:16]Read from MH i2c: 01 [07:02:16]MH_I2C_Read... [07:02:16]Read from MH i2c: 01 07 00 [07:02:16]MH_I2C_Read... [07:02:16]Read from MH i2c: 01 07 00 7A 45 00 00 00 00 00 FF 0F D4 [07:02:16]RasterBufferAndPrint [07:02:16]line Счет N : (1)320156 [07:02:16]line ИНН: 02508201610067 [07:02:16]line Контрольно-Кассовый Чек [07:02:16]line ПРОДАЖА [07:02:16]line ТРК (МРК, ГНК) : 22 [07:02:16]line Товар: 2710194210 [07:02:16]line ДТ-К-5 [07:02:16]line 41.160 * 72.90 [07:02:16]line = 3000.56 [07:02:16]line НДС 12% НСП 1% [07:02:16]line > о реализуемом товаре [07:02:16]line ОКРУГЛЕНИЕ: -0.56 [07:02:16]line ИТОГО: 3000.00 [07:02:16]line Внесено: 3000.00 [07:02:16]line СДАЧА: 0.00 [07:02:16]line НСП 1% : 26.55 [07:02:16]line НДС 12% : 318.64 [07:02:16]line Наличными: 3000.00 [07:02:16]line Безнал.: 0.00 [07:02:16]line Место: АЗС № 65 "Партнер Нефть" [07:02:16]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [07:02:16]line СНО: Общий режим [07:02:16]line Чек 9 20.06.2024 07:02 [07:02:16]line Смена: 389 ФФД: 1.0 [07:02:16]line ЗНМ: 0300000198 [07:02:16]line РНМ: 0000000000092771 [07:02:16]line Версия ККМ: 001 [07:02:16]line ФМ: 0000000000875083 [07:02:16]line ФД: 111559 [07:02:16]line ФПД: 198439302552836 [07:02:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T070241&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111559&fm=198439302552836&tin=02508201610067®Number=0000000000092771&sum=300000 [07:02:17]OFD Sender: Processing packet 111559 [packets to send 38, broken 37] [07:02:17]ProducePacketName [07:02:17]name=ofd_packets/00111559 [07:02:17]OFD Sender: To server: pG, [07:02:17]CommunicateWithHost lk.salyk.kg:30040 [07:02:17]ConnectInit lk.salyk.kg [07:02:17]written 0, free lines is 4095 [07:02:17]Connected sock=10 [07:02:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 CC 6E 04 01 F9 8B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 11 D4 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C7 B3 01 00 35 04 06 00 B4 7A C0 23 5D 04 D9 56 CB F0 57 54 8B DA [07:02:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D4 EC 47 00 41 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C7 B3 01 00 F4 03 04 00 63 6B 73 66 B6 04 01 00 00 CD 3F 4E 3E 85 AE 9A 6C [07:02:17]CommunicateWithHost err = 0 [07:02:17]CheckOFDResponse [07:02:17]1017 (14) - 77093643461234 [07:02:17]1041 (16) - 0000000000875083 [07:02:17]1040 (4) - 111559 [07:02:17]1012 (4) - 19.06.2024 23:36 [07:02:17]1206 (1) - 0 [07:02:17]OFD Sender: Remove packet 111559 [07:02:17]ProducePacketName [07:02:17]name=ofd_packets/00111559 [07:02:17]NVStorageDeleteData [07:02:17]Write to MH i2c: 01 00 00 A5 45 EA [07:02:17]Write i2c OK [07:02:17]MH_I2C_Read... [07:02:17]Read from MH i2c: 01 [07:02:17]MH_I2C_Read... [07:02:17]Read from MH i2c: 01 07 00 [07:02:17]MH_I2C_Read... [07:02:17]Read from MH i2c: 01 07 00 A5 45 00 00 00 00 00 D5 0C D2 [07:02:17]RasterBufferAndPrint [07:02:17]line [07:02:17]line [07:02:17]line [07:02:17]line [07:02:17]line [07:02:17]written 0, free lines is 3292 [07:02:17]MH_Cut [07:02:17]Write to MH i2c: D1 01 00 AC 45 01 C3 [07:02:17]Write i2c OK [07:02:17]MH_I2C_Read... [07:02:17]Read from MH i2c: D1 [07:02:17]MH_I2C_Read... [07:02:17]Read from MH i2c: D1 01 00 [07:02:17]MH_I2C_Read... [07:02:17]Read from MH i2c: D1 01 00 AC 45 00 C2 [07:02:17]Write to MH i2c: 01 00 00 AD 45 F2 [07:02:17]Write i2c OK [07:02:17]MH_I2C_Read... [07:02:18]OFD Sender: No OFD packet to send [07:02:18]*** Cut start [07:02:18]*** Partial cut [07:02:18]*** CUTSNS_PIN = 1 [07:02:18]*** CUTSNS_PIN = 0 [07:02:18]*** Brake cut motor [07:02:19]Read from MH i2c: 01 [07:02:19]MH_I2C_Read... [07:02:19]*** Stop cut motor [07:02:19]*** Cut end [07:02:19]Read from MH i2c: 01 07 00 [07:02:19]MH_I2C_Read... [07:02:19]Read from MH i2c: 01 07 00 AD 45 00 00 00 00 00 FF 0F 07 [07:02:19]process_action close_receipt done [07:02:19]requested_data is exist [07:02:19]produce_requested_data [07:02:19]requested_item fm.sn is exist - process it [07:02:19]wFMCommunicate request_size=4 [07:02:19]MH_SAM_APDU [07:02:19]CAPDU: 80 11 00 00 [07:02:19]Write to MH i2c: E2 08 00 AE 45 80 11 00 00 00 00 00 00 6D [07:02:19]Write i2c OK [07:02:19]MH_I2C_Read... [07:02:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:02:19]Read from MH i2c: E2 [07:02:19]MH_I2C_Read... [07:02:19]Read from MH i2c: E2 17 00 [07:02:19]MH_I2C_Read... [07:02:19]Read from MH i2c: E2 17 00 AE 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BF [07:02:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [07:02:19]wFMCommunicate OK [07:02:19]requested_item fd.num is exist - process it [07:02:19]SAM_PROTO_GetFieldsCounters [07:02:19]wFMCommunicate request_size=4 [07:02:19]MH_SAM_APDU [07:02:19]CAPDU: 80 13 00 00 [07:02:19]Write to MH i2c: E2 08 00 AF 45 80 13 00 00 00 00 00 00 70 [07:02:19]Write i2c OK [07:02:19]MH_I2C_Read... [07:02:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:02:19]Read from MH i2c: E2 [07:02:19]MH_I2C_Read... [07:02:19]Read from MH i2c: E2 62 00 [07:02:19]MH_I2C_Read... [07:02:19]Read from MH i2c: E2 62 00 AF 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C7 B3 01 00 0E 04 04 00 85 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 AD [07:02:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C7 B3 01 00 0E 04 04 00 85 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:02:19]wFMCommunicate OK [07:02:19]SAM_PROTO_GetFieldsCounters done [07:02:19]requested_item shift.num is exist - process it [07:02:19]requested_item shift.opened is exist - process it [07:02:19]req_shift_opened [07:02:19]FM_GetShiftState [07:02:19]SAM_PROTO_GetShiftState [07:02:19]wFMCommunicate request_size=4 [07:02:19]MH_SAM_APDU [07:02:19]CAPDU: 80 13 01 00 [07:02:19]Write to MH i2c: E2 08 00 B0 45 80 13 01 00 00 00 00 00 72 [07:02:19]Write i2c OK [07:02:19]MH_I2C_Read... [07:02:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:02:19]Read from MH i2c: E2 [07:02:19]MH_I2C_Read... [07:02:19]Read from MH i2c: E2 0E 00 [07:02:19]MH_I2C_Read... [07:02:19]Read from MH i2c: E2 0E 00 B0 45 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 ED [07:02:19]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [07:02:19]wFMCommunicate OK [07:02:19]SAM_PROTO_GetShiftState done [07:02:19]FM_GetShiftState done [07:02:19]req_shift_opened done [07:02:19]requested_item shift.open_date is exist - process it [07:02:19]req_shift_open_date [07:02:19]req_shift_open_date done [07:02:19]produce_requested_data done [07:02:19]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111559,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [07:02:19]process_action_free close_receipt [07:02:19]json_value_free [07:02:19]json_value_free done [07:02:19]process_json_proto returns [07:02:19]Send response to host [07:02:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111559,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [07:02:19]free response buf [07:02:19]execute_script done [07:02:19]execute_script returns [07:02:19]free content buf [07:02:19]Sock 9.Close socket [07:02:19]Sock 9.Thread stoped [07:02:23]OFD Sender: No OFD packet to send [07:02:28]OFD Sender: No OFD packet to send [07:02:33]OFD Sender: No OFD packet to send [07:02:38]OFD Sender: No OFD packet to send [07:02:43]OFD Sender: No OFD packet to send [07:02:48]OFD Sender: No OFD packet to send [07:02:53]OFD Sender: No OFD packet to send [07:02:58]OFD Sender: No OFD packet to send [07:03:03]OFD Sender: No OFD packet to send [07:03:08]OFD Sender: No OFD packet to send [07:03:13]OFD Sender: No OFD packet to send [07:03:18]OFD Sender: No OFD packet to send [07:03:23]OFD Sender: No OFD packet to send [07:03:28]OFD Sender: No OFD packet to send [07:03:33]OFD Sender: No OFD packet to send [07:03:38]OFD Sender: No OFD packet to send [07:03:43]OFD Sender: No OFD packet to send [07:03:48]OFD Sender: No OFD packet to send [07:03:53]OFD Sender: No OFD packet to send [07:03:58]OFD Sender: No OFD packet to send [07:04:03]OFD Sender: No OFD packet to send [07:04:08]OFD Sender: No OFD packet to send [07:04:13]OFD Sender: No OFD packet to send [07:04:18]OFD Sender: No OFD packet to send [07:04:23]OFD Sender: No OFD packet to send [07:04:28]OFD Sender: No OFD packet to send [07:04:33]OFD Sender: No OFD packet to send [07:04:38]OFD Sender: No OFD packet to send [07:04:43]OFD Sender: No OFD packet to send [07:04:48]OFD Sender: No OFD packet to send [07:04:53]OFD Sender: No OFD packet to send [07:04:58]OFD Sender: No OFD packet to send [07:05:03]OFD Sender: No OFD packet to send [07:05:08]OFD Sender: No OFD packet to send [07:05:13]OFD Sender: No OFD packet to send [07:05:18]OFD Sender: No OFD packet to send [07:05:23]OFD Sender: No OFD packet to send [07:05:28]OFD Sender: No OFD packet to send [07:05:33]OFD Sender: No OFD packet to send [07:05:38]OFD Sender: No OFD packet to send [07:05:43]OFD Sender: No OFD packet to send [07:05:48]OFD Sender: No OFD packet to send [07:05:53]OFD Sender: No OFD packet to send [07:05:58]OFD Sender: No OFD packet to send [07:06:03]OFD Sender: No OFD packet to send [07:06:08]OFD Sender: No OFD packet to send [07:06:13]OFD Sender: No OFD packet to send [07:06:18]OFD Sender: No OFD packet to send [07:06:23]OFD Sender: No OFD packet to send [07:06:28]OFD Sender: No OFD packet to send [07:06:33]OFD Sender: No OFD packet to send [07:06:38]OFD Sender: No OFD packet to send [07:06:43]OFD Sender: No OFD packet to send [07:06:48]OFD Sender: No OFD packet to send [07:06:53]OFD Sender: No OFD packet to send [07:06:58]OFD Sender: No OFD packet to send [07:07:03]OFD Sender: No OFD packet to send [07:07:08]OFD Sender: No OFD packet to send [07:07:13]OFD Sender: No OFD packet to send [07:07:18]OFD Sender: No OFD packet to send [07:07:23]OFD Sender: No OFD packet to send [07:07:28]OFD Sender: No OFD packet to send [07:07:33]OFD Sender: No OFD packet to send [07:07:38]OFD Sender: No OFD packet to send [07:07:43]OFD Sender: No OFD packet to send [07:07:48]OFD Sender: No OFD packet to send [07:07:53]OFD Sender: No OFD packet to send [07:07:58]OFD Sender: No OFD packet to send [07:08:03]OFD Sender: No OFD packet to send [07:08:08]OFD Sender: No OFD packet to send [07:08:13]OFD Sender: No OFD packet to send [07:08:18]OFD Sender: No OFD packet to send [07:08:23]OFD Sender: No OFD packet to send [07:08:28]OFD Sender: No OFD packet to send [07:08:33]OFD Sender: No OFD packet to send [07:08:38]OFD Sender: No OFD packet to send [07:08:43]OFD Sender: No OFD packet to send [07:08:48]OFD Sender: No OFD packet to send [07:08:53]OFD Sender: No OFD packet to send [07:08:58]OFD Sender: No OFD packet to send [07:09:03]OFD Sender: No OFD packet to send [07:09:08]OFD Sender: No OFD packet to send [07:09:13]OFD Sender: No OFD packet to send [07:09:18]OFD Sender: No OFD packet to send [07:09:23]OFD Sender: No OFD packet to send [07:09:28]OFD Sender: No OFD packet to send [07:09:33]OFD Sender: No OFD packet to send [07:09:38]OFD Sender: No OFD packet to send [07:09:43]OFD Sender: No OFD packet to send [07:09:48]OFD Sender: No OFD packet to send [07:09:53]OFD Sender: No OFD packet to send [07:09:58]OFD Sender: No OFD packet to send [07:10:03]OFD Sender: No OFD packet to send [07:10:08]OFD Sender: No OFD packet to send [07:10:13]OFD Sender: No OFD packet to send [07:10:18]OFD Sender: No OFD packet to send [07:10:23]OFD Sender: No OFD packet to send [07:10:28]OFD Sender: No OFD packet to send [07:10:33]OFD Sender: No OFD packet to send [07:10:38]OFD Sender: No OFD packet to send [07:10:43]OFD Sender: No OFD packet to send [07:10:48]OFD Sender: No OFD packet to send [07:10:53]OFD Sender: No OFD packet to send [07:10:58]OFD Sender: No OFD packet to send [07:11:03]OFD Sender: No OFD packet to send [07:11:08]OFD Sender: No OFD packet to send [07:11:13]OFD Sender: No OFD packet to send [07:11:18]OFD Sender: No OFD packet to send [07:11:23]OFD Sender: No OFD packet to send [07:11:28]OFD Sender: No OFD packet to send [07:11:33]OFD Sender: No OFD packet to send [07:11:38]OFD Sender: No OFD packet to send [07:11:43]OFD Sender: No OFD packet to send [07:11:48]OFD Sender: No OFD packet to send [07:11:53]OFD Sender: No OFD packet to send [07:11:58]OFD Sender: No OFD packet to send [07:12:03]OFD Sender: No OFD packet to send [07:12:08]OFD Sender: No OFD packet to send [07:12:13]OFD Sender: No OFD packet to send [07:12:18]OFD Sender: No OFD packet to send [07:12:23]OFD Sender: No OFD packet to send [07:12:28]OFD Sender: No OFD packet to send [07:12:33]OFD Sender: No OFD packet to send [07:12:38]OFD Sender: No OFD packet to send [07:12:43]OFD Sender: No OFD packet to send [07:12:48]OFD Sender: No OFD packet to send [07:12:53]OFD Sender: No OFD packet to send [07:12:58]OFD Sender: No OFD packet to send [07:13:03]OFD Sender: No OFD packet to send [07:13:08]OFD Sender: No OFD packet to send [07:13:13]OFD Sender: No OFD packet to send [07:13:18]OFD Sender: No OFD packet to send [07:13:23]OFD Sender: No OFD packet to send [07:13:28]OFD Sender: No OFD packet to send [07:13:33]OFD Sender: No OFD packet to send [07:13:38]OFD Sender: No OFD packet to send [07:13:43]OFD Sender: No OFD packet to send [07:13:48]OFD Sender: No OFD packet to send [07:13:53]OFD Sender: No OFD packet to send [07:13:58]OFD Sender: No OFD packet to send [07:14:03]OFD Sender: No OFD packet to send [07:14:08]OFD Sender: No OFD packet to send [07:14:13]OFD Sender: No OFD packet to send [07:14:18]OFD Sender: No OFD packet to send [07:14:23]OFD Sender: No OFD packet to send [07:14:28]OFD Sender: No OFD packet to send [07:14:33]OFD Sender: No OFD packet to send [07:14:38]OFD Sender: No OFD packet to send [07:14:43]OFD Sender: No OFD packet to send [07:14:48]OFD Sender: No OFD packet to send [07:14:53]OFD Sender: No OFD packet to send [07:14:58]OFD Sender: No OFD packet to send [07:15:03]OFD Sender: No OFD packet to send [07:15:08]OFD Sender: No OFD packet to send [07:15:13]OFD Sender: No OFD packet to send [07:15:18]OFD Sender: No OFD packet to send [07:15:23]OFD Sender: No OFD packet to send [07:15:28]OFD Sender: No OFD packet to send [07:15:33]OFD Sender: No OFD packet to send [07:15:38]OFD Sender: No OFD packet to send [07:15:43]OFD Sender: No OFD packet to send [07:15:48]OFD Sender: No OFD packet to send [07:15:53]OFD Sender: No OFD packet to send [07:15:58]OFD Sender: No OFD packet to send [07:16:03]OFD Sender: No OFD packet to send [07:16:08]OFD Sender: No OFD packet to send [07:16:13]OFD Sender: No OFD packet to send [07:16:18]OFD Sender: No OFD packet to send [07:16:23]OFD Sender: No OFD packet to send [07:16:28]OFD Sender: No OFD packet to send [07:16:33]OFD Sender: No OFD packet to send [07:16:38]OFD Sender: No OFD packet to send [07:16:43]OFD Sender: No OFD packet to send [07:16:48]OFD Sender: No OFD packet to send [07:16:53]OFD Sender: No OFD packet to send [07:16:58]OFD Sender: No OFD packet to send [07:17:03]OFD Sender: No OFD packet to send [07:17:08]OFD Sender: No OFD packet to send [07:17:13]OFD Sender: No OFD packet to send [07:17:18]OFD Sender: No OFD packet to send [07:17:23]OFD Sender: No OFD packet to send [07:17:28]OFD Sender: No OFD packet to send [07:17:33]OFD Sender: No OFD packet to send [07:17:38]OFD Sender: No OFD packet to send [07:17:43]OFD Sender: No OFD packet to send [07:17:48]OFD Sender: No OFD packet to send [07:17:53]OFD Sender: No OFD packet to send [07:17:58]OFD Sender: No OFD packet to send [07:18:03]OFD Sender: No OFD packet to send [07:18:08]OFD Sender: No OFD packet to send [07:18:13]OFD Sender: No OFD packet to send [07:18:18]OFD Sender: No OFD packet to send [07:18:23]OFD Sender: No OFD packet to send [07:18:28]OFD Sender: No OFD packet to send [07:18:33]OFD Sender: No OFD packet to send [07:18:38]OFD Sender: No OFD packet to send [07:18:43]OFD Sender: No OFD packet to send [07:18:48]OFD Sender: No OFD packet to send [07:18:53]OFD Sender: No OFD packet to send [07:18:58]OFD Sender: No OFD packet to send [07:19:03]OFD Sender: No OFD packet to send [07:19:08]OFD Sender: No OFD packet to send [07:19:13]OFD Sender: No OFD packet to send [07:19:18]OFD Sender: No OFD packet to send [07:19:23]OFD Sender: No OFD packet to send [07:19:28]OFD Sender: No OFD packet to send [07:19:33]OFD Sender: No OFD packet to send [07:19:38]OFD Sender: No OFD packet to send [07:19:43]OFD Sender: No OFD packet to send [07:19:48]OFD Sender: No OFD packet to send [07:19:53]OFD Sender: No OFD packet to send [07:19:58]OFD Sender: No OFD packet to send [07:20:04]OFD Sender: No OFD packet to send [07:20:09]OFD Sender: No OFD packet to send [07:20:14]OFD Sender: No OFD packet to send [07:20:19]OFD Sender: No OFD packet to send [07:20:24]OFD Sender: No OFD packet to send [07:20:29]OFD Sender: No OFD packet to send [07:20:34]OFD Sender: No OFD packet to send [07:20:39]OFD Sender: No OFD packet to send [07:20:44]OFD Sender: No OFD packet to send [07:20:49]OFD Sender: No OFD packet to send [07:20:54]OFD Sender: No OFD packet to send [07:20:59]OFD Sender: No OFD packet to send [07:21:04]OFD Sender: No OFD packet to send [07:21:09]OFD Sender: No OFD packet to send [07:21:14]OFD Sender: No OFD packet to send [07:21:19]OFD Sender: No OFD packet to send [07:21:24]OFD Sender: No OFD packet to send [07:21:29]OFD Sender: No OFD packet to send [07:21:34]OFD Sender: No OFD packet to send [07:21:39]OFD Sender: No OFD packet to send [07:21:44]OFD Sender: No OFD packet to send [07:21:49]OFD Sender: No OFD packet to send [07:21:54]OFD Sender: No OFD packet to send [07:21:59]OFD Sender: No OFD packet to send [07:22:04]OFD Sender: No OFD packet to send [07:22:09]OFD Sender: No OFD packet to send [07:22:14]OFD Sender: No OFD packet to send [07:22:19]OFD Sender: No OFD packet to send [07:22:24]OFD Sender: No OFD packet to send [07:22:29]OFD Sender: No OFD packet to send [07:22:34]OFD Sender: No OFD packet to send [07:22:39]OFD Sender: No OFD packet to send [07:22:44]OFD Sender: No OFD packet to send [07:22:49]OFD Sender: No OFD packet to send [07:22:54]OFD Sender: No OFD packet to send [07:22:59]OFD Sender: No OFD packet to send [07:23:04]OFD Sender: No OFD packet to send [07:23:09]OFD Sender: No OFD packet to send [07:23:14]OFD Sender: No OFD packet to send [07:23:19]OFD Sender: No OFD packet to send [07:23:24]OFD Sender: No OFD packet to send [07:23:29]OFD Sender: No OFD packet to send [07:23:34]OFD Sender: No OFD packet to send [07:23:39]OFD Sender: No OFD packet to send [07:23:44]OFD Sender: No OFD packet to send [07:23:49]OFD Sender: No OFD packet to send [07:23:54]OFD Sender: No OFD packet to send [07:23:59]OFD Sender: No OFD packet to send [07:24:04]OFD Sender: No OFD packet to send [07:24:09]OFD Sender: No OFD packet to send [07:24:14]OFD Sender: No OFD packet to send [07:24:19]OFD Sender: No OFD packet to send [07:24:24]OFD Sender: No OFD packet to send [07:24:29]OFD Sender: No OFD packet to send [07:24:34]OFD Sender: No OFD packet to send [07:24:39]OFD Sender: No OFD packet to send [07:24:44]OFD Sender: No OFD packet to send [07:24:49]OFD Sender: No OFD packet to send [07:24:54]OFD Sender: No OFD packet to send [07:24:59]OFD Sender: No OFD packet to send [07:25:04]OFD Sender: No OFD packet to send [07:25:09]OFD Sender: No OFD packet to send [07:25:14]OFD Sender: No OFD packet to send [07:25:19]OFD Sender: No OFD packet to send [07:25:24]OFD Sender: No OFD packet to send [07:25:29]OFD Sender: No OFD packet to send [07:25:34]OFD Sender: No OFD packet to send [07:25:39]OFD Sender: No OFD packet to send [07:25:44]OFD Sender: No OFD packet to send [07:25:49]OFD Sender: No OFD packet to send [07:25:54]OFD Sender: No OFD packet to send [07:25:59]OFD Sender: No OFD packet to send [07:26:04]OFD Sender: No OFD packet to send [07:26:09]OFD Sender: No OFD packet to send [07:26:14]OFD Sender: No OFD packet to send [07:26:19]OFD Sender: No OFD packet to send [07:26:24]OFD Sender: No OFD packet to send [07:26:29]OFD Sender: No OFD packet to send [07:26:34]OFD Sender: No OFD packet to send [07:26:39]OFD Sender: No OFD packet to send [07:26:44]OFD Sender: No OFD packet to send [07:26:49]OFD Sender: No OFD packet to send [07:26:54]OFD Sender: No OFD packet to send [07:26:57]accept exits with 7 [07:26:57]New connection [07:26:57]New thread 3067465060 created [07:26:57]Thread 3067321700 joined [07:26:57]Waiting for new connection... [07:26:57] Sock 7.Parse request [07:26:57]Sock 7.Check first char [07:26:57]Sock 7.First char is OK [07:26:57]request: POST /json_proto HTTP/1.0 [07:26:57]Method: POST [07:26:57]URL: /json_proto [07:26:57]Method is POST - this is cgi request [07:26:57]url: /json_proto [07:26:57]query_string will be loaded in cgi processing [07:26:57]execute_cgi json_proto POST (null) [07:26:57]execute_cgi path=json_proto method=POST [07:26:57]POST find Content-Length [07:26:57]Host: 172.17.59.68:8080 [07:26:57]Content-Length: 682 [07:26:57]Content-Type: application/json [07:26:57] [07:26:57]POST finish read [07:26:57]Found Content-Length = 682 [07:26:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 75.310, "sum" : 5000.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:26:57]execute_script... [07:26: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)320157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 75.310, "sum" : 5000.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:26:57]POST & json_proto [07:26:57]process_json_proto [07:26:57]json parsed OK: [07:26:57]protocol is kg_v1.0 [07:26:57]action value=close_receipt [07:26:57]process_action close_receipt [07:26:57]cmd_close_receipt [07:26:57]MH_GetDate [07:26:57]Write to MH i2c: F0 00 00 B1 45 E5 [07:26:57]Write i2c OK [07:26:57]MH_I2C_Read... [07:26:57]Read from MH i2c: F0 [07:26:57]MH_I2C_Read... [07:26:57]Read from MH i2c: F0 09 00 [07:26:57]MH_I2C_Read... [07:26:57]Read from MH i2c: F0 09 00 B1 45 00 DC D9 73 66 BC EC 60 65 E9 [07:26:57]GetLastDocTimeStamp 1718866961 [07:26:57]current date 1718868444 [07:26:57]FM_GetShiftState [07:26:57]SAM_PROTO_GetShiftState [07:26:57]wFMCommunicate request_size=4 [07:26:57]MH_SAM_APDU [07:26:57]CAPDU: 80 13 01 00 [07:26:57]Write to MH i2c: E2 08 00 B2 45 80 13 01 00 00 00 00 00 74 [07:26:57]Write i2c OK [07:26:57]MH_I2C_Read... [07:26:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:26:57]Read from MH i2c: E2 [07:26:57]MH_I2C_Read... [07:26:57]Read from MH i2c: E2 0E 00 [07:26:57]MH_I2C_Read... [07:26:57]Read from MH i2c: E2 0E 00 B2 45 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 EF [07:26:57]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [07:26:57]wFMCommunicate OK [07:26:57]SAM_PROTO_GetShiftState done [07:26:57]FM_GetShiftState done [07:26:57]opened in 1718847247 [07:26:57]opened+sec_in_day 1718933647 [07:26:57]quantity*price = 500058 [07:26:57]sum+1 = 500059 [07:26:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.03 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 10 20.06.2024 07:27 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111560 ФПД: 233655237736086 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T072724&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111560&fm=233655237736086&tin=02508201610067®Number=0000000000092771&sum=500000 [07:26:58]StoreToDocumentArchive [07:26:58]shift 389 fd 111560 [07:26:58]save to /storage/0389/doc_00111560 [07:26:58]save last doc name /storage/0389/doc_00111560 to /storage/kkm_last_doc_name [07:26:58]save OK [07:26:58]Clear old archive folders... [07:26:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:26:58]tlvbuf is B6F57A30 [07:26:58]SAM_PROTO_ClearQueue [07:26:58]wFMCommunicate request_size=4 [07:26:58]MH_SAM_APDU [07:26:58]CAPDU: 80 09 00 00 [07:26:58]Write to MH i2c: E2 08 00 BF 45 80 09 00 00 00 00 00 00 76 [07:26:58]Write i2c OK [07:26:58]MH_I2C_Read... [07:26:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:26:58]Read from MH i2c: E2 [07:26:58]MH_I2C_Read... [07:26:58]Read from MH i2c: E2 03 00 [07:26:58]MH_I2C_Read... [07:26:58]Read from MH i2c: E2 03 00 BF 45 00 90 00 78 [07:26:58]RAPDU: 90 00 [07:26:58]wFMCommunicate OK [07:26:58]SAM_PROTO_ClearQueue done [07:26:58]KKMCreateOFDPacket [07:26:58]OFDProtocolAddRootSTLVToBuf [07:26:58]FM_MakeSignedData [07:26:58]FM_MakeSignedData [07:26:58]SAM_PROTO_SignData [07:26:58]wFMCommunicate request_size=4 [07:26:58]MH_SAM_APDU [07:26:58]CAPDU: 80 0D 01 02 [07:26:58]Write to MH i2c: E2 08 00 C0 45 80 0D 01 02 00 00 00 00 7E [07:26:58]Write i2c OK [07:26:58]MH_I2C_Read... [07:26:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:26:58]Read from MH i2c: E2 [07:26:58]MH_I2C_Read... [07:26:58]Read from MH i2c: E2 03 00 [07:26:58]MH_I2C_Read... [07:26:58]Read from MH i2c: E2 03 00 C0 45 00 90 00 79 [07:26:58]RAPDU: 90 00 [07:26:58]wFMCommunicate OK [07:26:58]wFMCommunicate request_size=255 [07:26:58]MH_SAM_APDU [07:26:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 26 01 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 5A 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 6F CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 DC D9 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C8 B3 01 00 35 04 06 00 D4 [07:26:58]Write to MH i2c: E2 02 01 C1 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 26 01 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 5A 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 6F CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 DC D9 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C8 B3 01 00 35 04 06 00 D4 00 00 7E [07:26:58]Write i2c OK [07:26:58]MH_I2C_Read... [07:26:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:26:58]Read from MH i2c: E2 [07:26:58]MH_I2C_Read... [07:26:58]Read from MH i2c: E2 03 00 [07:26:58]MH_I2C_Read... [07:26:58]Read from MH i2c: E2 03 00 C1 45 00 90 00 7A [07:26:58]RAPDU: 90 00 [07:26:58]wFMCommunicate OK [07:26:58]wFMCommunicate request_size=10 [07:26:58]MH_SAM_APDU [07:26:58]CAPDU: 80 0D 02 02 05 82 19 71 F6 96 [07:26:58]Write to MH i2c: E2 0D 00 C2 45 80 0D 02 02 05 00 82 19 71 F6 96 00 00 23 [07:26:58]Write i2c OK [07:26:58]MH_I2C_Read... [07:26:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:26:58]Read from MH i2c: E2 [07:26:58]MH_I2C_Read... [07:26:58]Read from MH i2c: E2 03 00 [07:26:58]MH_I2C_Read... [07:26:58]Read from MH i2c: E2 03 00 C2 45 00 90 00 7B [07:26:58]RAPDU: 90 00 [07:26:58]wFMCommunicate OK [07:26:58]wFMCommunicate request_size=4 [07:26:58]MH_SAM_APDU [07:26:58]CAPDU: 80 0D 03 02 [07:26:58]Write to MH i2c: E2 08 00 C3 45 80 0D 03 02 00 00 00 00 83 [07:26:58]Write i2c OK [07:26:58]MH_I2C_Read... [07:26:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:26:58]Read from MH i2c: E2 [07:26:58]MH_I2C_Read... [07:26:58]Read from MH i2c: E2 0B 00 [07:26:58]MH_I2C_Read... [07:26:58]Read from MH i2c: E2 0B 00 C3 45 00 40 3C 71 3D 55 67 57 FE 90 00 BF [07:26:58]RAPDU: 40 3C 71 3D 55 67 57 FE 90 00 [07:26:58]wFMCommunicate OK [07:26:58]SAM_PROTO_SignData done [07:26:58]FM_MakeSignedData done [07:26:58]CreateOFDProtocolMessage [07:26:58]wFMCommunicate request_size=4 [07:26:58]MH_SAM_APDU [07:26:58]CAPDU: 80 11 00 00 [07:26:58]Write to MH i2c: E2 08 00 C4 45 80 11 00 00 00 00 00 00 83 [07:26:58]Write i2c OK [07:26:58]MH_I2C_Read... [07:26:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:26:58]Read from MH i2c: E2 [07:26:58]MH_I2C_Read... [07:26:58]Read from MH i2c: E2 17 00 [07:26:58]MH_I2C_Read... [07:26:58]Read from MH i2c: E2 17 00 C4 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D5 [07:26:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [07:26:58]wFMCommunicate OK [07:26:58]CreateOFDProtocolMessage done [07:26:58]OFDSenderStorePacket 111560 [07:26:58]StoreOFDPacket docnum=111560 [07:26:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3E 2B 07 01 29 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 2E 26 01 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 5A 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 6F CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 DC D9 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C8 B3 01 00 35 04 06 00 D4 82 19 71 F6 96 40 3C 71 3D 55 67 57 FE [07:26:58]CheckFolder [07:26:58]dirname=/storage/ofd_packets [07:26:58]CheckFolder done [07:26:58]ProducePacketName [07:26:58]name=ofd_packets/00111560 [07:26:58]NVStorageSaveData ofd_packets/00111560 [07:26:58]File name is /storage/ofd_packets/00111560 [07:26:58]Write 301 bytes [07:26:58]NVStorageSaveData done [07:26:58]OFDSenderStorePacket done [07:26:58]KKMCreateOFDPacket done [07:26:58]NVStorageSaveData kkm_last_timestamp [07:26:58]File name is /storage/kkm_last_timestamp [07:26:58]Write 4 bytes [07:26:58]NVStorageSaveData done [07:26:58]ExternCall_PrintAddStr [07:26:58]wPrintStart [07:26:58]Write to MH i2c: 01 00 00 C5 45 0A [07:26:58]Write i2c OK [07:26:58]MH_I2C_Read... [07:26:58]Read from MH i2c: 01 [07:26:58]MH_I2C_Read... [07:26:58]Read from MH i2c: 01 07 00 [07:26:58]MH_I2C_Read... [07:26:58]Read from MH i2c: 01 07 00 C5 45 00 00 00 00 00 FF 0F 1F [07:26:58]RasterBufferAndPrint [07:26:58]line Счет N : (1)320157 [07:26:58]line ИНН: 02508201610067 [07:26:58]line Контрольно-Кассовый Чек [07:26:58]line ПРОДАЖА [07:26:58]line ТРК (МРК, ГНК) : 11 [07:26:58]line Товар: 2710124130 [07:26:58]line Аи-92-К-5 [07:26:58]line 75.310 * 66.40 [07:26:58]line = 5000.58 [07:26:58]line НДС 12% НСП 1% [07:26:58]line > о реализуемом товаре [07:26:58]line ОКРУГЛЕНИЕ: -0.58 [07:26:58]line ИТОГО: 5000.00 [07:26:58]line Внесено: 5000.00 [07:26:58]line СДАЧА: 0.00 [07:26:58]line НСП 1% : 44.25 [07:26:58]line НДС 12% : 531.03 [07:26:58]line Наличными: 5000.00 [07:26:58]line Безнал.: 0.00 [07:26:58]line Место: АЗС № 65 "Партнер Нефть" [07:26:58]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [07:26:58]line СНО: Общий режим [07:26:58]line Чек 10 20.06.2024 07:27 [07:26:58]line Смена: 389 ФФД: 1.0 [07:26:58]line ЗНМ: 0300000198 [07:26:58]line РНМ: 0000000000092771 [07:26:58]line Версия ККМ: 001 [07:26:58]line ФМ: 0000000000875083 [07:26:58]line ФД: 111560 [07:26:58]line ФПД: 233655237736086 [07:26:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T072724&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111560&fm=233655237736086&tin=02508201610067®Number=0000000000092771&sum=500000 [07:26:59]OFD Sender: Processing packet 111560 [packets to send 38, broken 37] [07:26:59]ProducePacketName [07:26:59]name=ofd_packets/00111560 [07:26:59]OFD Sender: To server: pG, [07:26:59]CommunicateWithHost lk.salyk.kg:30040 [07:26:59]ConnectInit lk.salyk.kg [07:26:59]written 0, free lines is 4095 [07:26:59]Connected sock=10 [07:26:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3E 2B 07 01 29 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 2E 26 01 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 5A 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 6F CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 DC D9 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C8 B3 01 00 35 04 06 00 D4 82 19 71 F6 96 40 3C 71 3D 55 67 57 FE [07:26:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 54 3C 47 00 99 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C8 B3 01 00 F4 03 04 00 2D 71 73 66 B6 04 01 00 00 96 E2 59 EB 66 16 07 ED [07:26:59]CommunicateWithHost err = 0 [07:26:59]CheckOFDResponse [07:26:59]1017 (14) - 77093643461234 [07:26:59]1041 (16) - 0000000000875083 [07:26:59]1040 (4) - 111560 [07:26:59]1012 (4) - 20.06.2024 00:00 [07:26:59]1206 (1) - 0 [07:26:59]OFD Sender: Remove packet 111560 [07:26:59]ProducePacketName [07:26:59]name=ofd_packets/00111560 [07:26:59]NVStorageDeleteData [07:26:59]Write to MH i2c: 01 00 00 F0 45 35 [07:26:59]Write i2c OK [07:26:59]MH_I2C_Read... [07:26:59]Read from MH i2c: 01 [07:26:59]MH_I2C_Read... [07:26:59]Read from MH i2c: 01 07 00 [07:26:59]MH_I2C_Read... [07:26:59]Read from MH i2c: 01 07 00 F0 45 00 00 00 00 00 E4 0C 2C [07:26:59]RasterBufferAndPrint [07:26:59]line [07:26:59]line [07:26:59]line [07:26:59]line [07:26:59]line [07:26:59]written 0, free lines is 3309 [07:26:59]MH_Cut [07:26:59]Write to MH i2c: D1 01 00 F7 45 01 0E [07:26:59]Write i2c OK [07:26:59]MH_I2C_Read... [07:26:59]Read from MH i2c: D1 [07:26:59]MH_I2C_Read... [07:26:59]Read from MH i2c: D1 01 00 [07:26:59]MH_I2C_Read... [07:26:59]Read from MH i2c: D1 01 00 F7 45 00 0D [07:26:59]Write to MH i2c: 01 00 00 F8 45 3D [07:26:59]Write i2c OK [07:26:59]MH_I2C_Read... [07:27:00]OFD Sender: No OFD packet to send [07:27:00]*** Cut start [07:27:00]*** Partial cut [07:27:00]*** CUTSNS_PIN = 1 [07:27:00]*** CUTSNS_PIN = 0 [07:27:00]*** Brake cut motor [07:27:01]Read from MH i2c: 01 [07:27:01]MH_I2C_Read... [07:27:01]*** Stop cut motor [07:27:01]*** Cut end [07:27:01]Read from MH i2c: 01 07 00 [07:27:01]MH_I2C_Read... [07:27:01]Read from MH i2c: 01 07 00 F8 45 00 00 00 00 00 FF 0F 52 [07:27:01]process_action close_receipt done [07:27:01]requested_data is exist [07:27:01]produce_requested_data [07:27:01]requested_item fm.sn is exist - process it [07:27:01]wFMCommunicate request_size=4 [07:27:01]MH_SAM_APDU [07:27:01]CAPDU: 80 11 00 00 [07:27:01]Write to MH i2c: E2 08 00 F9 45 80 11 00 00 00 00 00 00 B8 [07:27:01]Write i2c OK [07:27:01]MH_I2C_Read... [07:27:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:27:01]Read from MH i2c: E2 [07:27:01]MH_I2C_Read... [07:27:01]Read from MH i2c: E2 17 00 [07:27:01]MH_I2C_Read... [07:27:01]Read from MH i2c: E2 17 00 F9 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0A [07:27:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [07:27:01]wFMCommunicate OK [07:27:01]requested_item fd.num is exist - process it [07:27:01]SAM_PROTO_GetFieldsCounters [07:27:01]wFMCommunicate request_size=4 [07:27:01]MH_SAM_APDU [07:27:01]CAPDU: 80 13 00 00 [07:27:01]Write to MH i2c: E2 08 00 FA 45 80 13 00 00 00 00 00 00 BB [07:27:01]Write i2c OK [07:27:01]MH_I2C_Read... [07:27:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:27:01]Read from MH i2c: E2 [07:27:01]MH_I2C_Read... [07:27:01]Read from MH i2c: E2 62 00 [07:27:01]MH_I2C_Read... [07:27:01]Read from MH i2c: E2 62 00 FA 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C8 B3 01 00 0E 04 04 00 85 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 FC [07:27:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C8 B3 01 00 0E 04 04 00 85 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:27:01]wFMCommunicate OK [07:27:01]SAM_PROTO_GetFieldsCounters done [07:27:01]requested_item shift.num is exist - process it [07:27:01]requested_item shift.opened is exist - process it [07:27:01]req_shift_opened [07:27:01]FM_GetShiftState [07:27:01]SAM_PROTO_GetShiftState [07:27:01]wFMCommunicate request_size=4 [07:27:01]MH_SAM_APDU [07:27:01]CAPDU: 80 13 01 00 [07:27:01]Write to MH i2c: E2 08 00 FB 45 80 13 01 00 00 00 00 00 BD [07:27:01]Write i2c OK [07:27:01]MH_I2C_Read... [07:27:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:27:01]Read from MH i2c: E2 [07:27:01]MH_I2C_Read... [07:27:01]Read from MH i2c: E2 0E 00 [07:27:01]MH_I2C_Read... [07:27:01]Read from MH i2c: E2 0E 00 FB 45 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 38 [07:27:01]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [07:27:01]wFMCommunicate OK [07:27:01]SAM_PROTO_GetShiftState done [07:27:01]FM_GetShiftState done [07:27:01]req_shift_opened done [07:27:01]requested_item shift.open_date is exist - process it [07:27:01]req_shift_open_date [07:27:01]req_shift_open_date done [07:27:01]produce_requested_data done [07:27:01]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111560,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [07:27:01]process_action_free close_receipt [07:27:01]json_value_free [07:27:01]json_value_free done [07:27:01]process_json_proto returns [07:27:01]Send response to host [07:27:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111560,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [07:27:01]free response buf [07:27:01]execute_script done [07:27:01]execute_script returns [07:27:01]free content buf [07:27:01]Sock 7.Close socket [07:27:01]Sock 7.Thread stoped [07:27:05]OFD Sender: No OFD packet to send [07:27:10]OFD Sender: No OFD packet to send [07:27:15]OFD Sender: No OFD packet to send [07:27:20]OFD Sender: No OFD packet to send [07:27:25]OFD Sender: No OFD packet to send [07:27:30]OFD Sender: No OFD packet to send [07:27:35]OFD Sender: No OFD packet to send [07:27:40]OFD Sender: No OFD packet to send [07:27:45]OFD Sender: No OFD packet to send [07:27:50]OFD Sender: No OFD packet to send [07:27:55]OFD Sender: No OFD packet to send [07:28:00]OFD Sender: No OFD packet to send [07:28:05]OFD Sender: No OFD packet to send [07:28:10]OFD Sender: No OFD packet to send [07:28:15]OFD Sender: No OFD packet to send [07:28:20]OFD Sender: No OFD packet to send [07:28:25]OFD Sender: No OFD packet to send [07:28:30]OFD Sender: No OFD packet to send [07:28:35]OFD Sender: No OFD packet to send [07:28:40]OFD Sender: No OFD packet to send [07:28:45]OFD Sender: No OFD packet to send [07:28:50]OFD Sender: No OFD packet to send [07:28:55]OFD Sender: No OFD packet to send [07:29:00]OFD Sender: No OFD packet to send [07:29:05]OFD Sender: No OFD packet to send [07:29:10]OFD Sender: No OFD packet to send [07:29:15]OFD Sender: No OFD packet to send [07:29:20]OFD Sender: No OFD packet to send [07:29:25]OFD Sender: No OFD packet to send [07:29:30]OFD Sender: No OFD packet to send [07:29:35]OFD Sender: No OFD packet to send [07:29:40]OFD Sender: No OFD packet to send [07:29:45]OFD Sender: No OFD packet to send [07:29:50]OFD Sender: No OFD packet to send [07:29:55]OFD Sender: No OFD packet to send [07:30:00]OFD Sender: No OFD packet to send [07:30:05]OFD Sender: No OFD packet to send [07:30:10]OFD Sender: No OFD packet to send [07:30:15]OFD Sender: No OFD packet to send [07:30:20]OFD Sender: No OFD packet to send [07:30:25]OFD Sender: No OFD packet to send [07:30:30]OFD Sender: No OFD packet to send [07:30:35]OFD Sender: No OFD packet to send [07:30:40]OFD Sender: No OFD packet to send [07:30:45]OFD Sender: No OFD packet to send [07:30:50]OFD Sender: No OFD packet to send [07:30:55]OFD Sender: No OFD packet to send [07:31:00]OFD Sender: No OFD packet to send [07:31:05]OFD Sender: No OFD packet to send [07:31:10]OFD Sender: No OFD packet to send [07:31:15]OFD Sender: No OFD packet to send [07:31:20]OFD Sender: No OFD packet to send [07:31:25]OFD Sender: No OFD packet to send [07:31:30]OFD Sender: No OFD packet to send [07:31:35]OFD Sender: No OFD packet to send [07:31:40]OFD Sender: No OFD packet to send [07:31:45]OFD Sender: No OFD packet to send [07:31:50]OFD Sender: No OFD packet to send [07:31:55]OFD Sender: No OFD packet to send [07:32:00]OFD Sender: No OFD packet to send [07:32:05]OFD Sender: No OFD packet to send [07:32:10]OFD Sender: No OFD packet to send [07:32:15]OFD Sender: No OFD packet to send [07:32:20]OFD Sender: No OFD packet to send [07:32:25]OFD Sender: No OFD packet to send [07:32:30]OFD Sender: No OFD packet to send [07:32:35]OFD Sender: No OFD packet to send [07:32:40]OFD Sender: No OFD packet to send [07:32:45]OFD Sender: No OFD packet to send [07:32:50]OFD Sender: No OFD packet to send [07:32:55]OFD Sender: No OFD packet to send [07:33:00]OFD Sender: No OFD packet to send [07:33:05]OFD Sender: No OFD packet to send [07:33:10]OFD Sender: No OFD packet to send [07:33:15]OFD Sender: No OFD packet to send [07:33:20]OFD Sender: No OFD packet to send [07:33:25]OFD Sender: No OFD packet to send [07:33:30]OFD Sender: No OFD packet to send [07:33:35]OFD Sender: No OFD packet to send [07:33:40]OFD Sender: No OFD packet to send [07:33:45]OFD Sender: No OFD packet to send [07:33:50]OFD Sender: No OFD packet to send [07:33:55]OFD Sender: No OFD packet to send [07:34:00]OFD Sender: No OFD packet to send [07:34:05]OFD Sender: No OFD packet to send [07:34:10]OFD Sender: No OFD packet to send [07:34:15]OFD Sender: No OFD packet to send [07:34:20]OFD Sender: No OFD packet to send [07:34:25]OFD Sender: No OFD packet to send [07:34:30]OFD Sender: No OFD packet to send [07:34:35]OFD Sender: No OFD packet to send [07:34:40]OFD Sender: No OFD packet to send [07:34:45]OFD Sender: No OFD packet to send [07:34:50]OFD Sender: No OFD packet to send [07:34:54]accept exits with 9 [07:34:54]New connection [07:34:54]New thread 3067321700 created [07:34:54]Thread 3067465060 joined [07:34:54]Waiting for new connection... [07:34:54] Sock 9.Parse request [07:34:54]Sock 9.Check first char [07:34:54]Sock 9.First char is OK [07:34:54]request: POST /json_proto HTTP/1.0 [07:34:54]Method: POST [07:34:54]URL: /json_proto [07:34:54]Method is POST - this is cgi request [07:34:54]url: /json_proto [07:34:54]query_string will be loaded in cgi processing [07:34:54]execute_cgi json_proto POST (null) [07:34:54]execute_cgi path=json_proto method=POST [07:34:54]POST find Content-Length [07:34:54]Host: 172.17.59.68:8080 [07:34:54]Content-Length: 679 [07:34:54]Content-Type: application/json [07:34:54] [07:34:54]POST finish read [07:34:54]Found Content-Length = 679 [07:34:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:34:54]execute_script... [07:34: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)320158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:34:54]POST & json_proto [07:34:54]process_json_proto [07:34:54]json parsed OK: [07:34:54]protocol is kg_v1.0 [07:34:54]action value=close_receipt [07:34:54]process_action close_receipt [07:34:54]cmd_close_receipt [07:34:54]MH_GetDate [07:34:54]Write to MH i2c: F0 00 00 FC 45 30 [07:34:54]Write i2c OK [07:34:54]MH_I2C_Read... [07:34:54]Read from MH i2c: F0 [07:34:54]MH_I2C_Read... [07:34:54]Read from MH i2c: F0 09 00 [07:34:54]MH_I2C_Read... [07:34:54]Read from MH i2c: F0 09 00 FC 45 00 B9 DB 73 66 BC EC 60 65 13 [07:34:54]GetLastDocTimeStamp 1718868444 [07:34:54]current date 1718868921 [07:34:54]FM_GetShiftState [07:34:54]SAM_PROTO_GetShiftState [07:34:54]wFMCommunicate request_size=4 [07:34:54]MH_SAM_APDU [07:34:54]CAPDU: 80 13 01 00 [07:34:54]Write to MH i2c: E2 08 00 FD 45 80 13 01 00 00 00 00 00 BF [07:34:54]Write i2c OK [07:34:54]MH_I2C_Read... [07:34:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:34:54]Read from MH i2c: E2 [07:34:54]MH_I2C_Read... [07:34:54]Read from MH i2c: E2 0E 00 [07:34:54]MH_I2C_Read... [07:34:54]Read from MH i2c: E2 0E 00 FD 45 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 3A [07:34:54]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [07:34:54]wFMCommunicate OK [07:34:54]SAM_PROTO_GetShiftState done [07:34:54]FM_GetShiftState done [07:34:54]opened in 1718847247 [07:34:54]opened+sec_in_day 1718933647 [07:34:54]quantity*price = 300056 [07:34:54]sum+1 = 300057 [07:34:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 11 20.06.2024 07:35 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111561 ФПД: 154355432894431 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T073521&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111561&fm=154355432894431&tin=02508201610067®Number=0000000000092771&sum=300000 [07:34:55]StoreToDocumentArchive [07:34:55]shift 389 fd 111561 [07:34:55]save to /storage/0389/doc_00111561 [07:34:55]save last doc name /storage/0389/doc_00111561 to /storage/kkm_last_doc_name [07:34:55]save OK [07:34:55]Clear old archive folders... [07:34:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:34:55]tlvbuf is 0101D320 [07:34:55]SAM_PROTO_ClearQueue [07:34:55]wFMCommunicate request_size=4 [07:34:55]MH_SAM_APDU [07:34:55]CAPDU: 80 09 00 00 [07:34:55]Write to MH i2c: E2 08 00 0A 46 80 09 00 00 00 00 00 00 C2 [07:34:55]Write i2c OK [07:34:55]MH_I2C_Read... [07:34:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:34:55]Read from MH i2c: E2 [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: E2 03 00 [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: E2 03 00 0A 46 00 90 00 C4 [07:34:55]RAPDU: 90 00 [07:34:55]wFMCommunicate OK [07:34:55]SAM_PROTO_ClearQueue done [07:34:55]KKMCreateOFDPacket [07:34:55]OFDProtocolAddRootSTLVToBuf [07:34:55]FM_MakeSignedData [07:34:55]FM_MakeSignedData [07:34:55]SAM_PROTO_SignData [07:34:55]wFMCommunicate request_size=4 [07:34:55]MH_SAM_APDU [07:34:55]CAPDU: 80 0D 01 02 [07:34:55]Write to MH i2c: E2 08 00 0B 46 80 0D 01 02 00 00 00 00 CA [07:34:55]Write i2c OK [07:34:55]MH_I2C_Read... [07:34:55]OFD Sender: No OFD packet to send [07:34:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:34:55]Read from MH i2c: E2 [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: E2 03 00 [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: E2 03 00 0B 46 00 90 00 C5 [07:34:55]RAPDU: 90 00 [07:34:55]wFMCommunicate OK [07:34:55]wFMCommunicate request_size=255 [07:34:55]MH_SAM_APDU [07:34:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 B9 DB 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C9 B3 01 00 35 04 06 00 8C 62 AC BF [07:34:55]Write to MH i2c: E2 02 01 0C 46 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 B9 DB 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C9 B3 01 00 35 04 06 00 8C 62 AC BF 00 00 F4 [07:34:55]Write i2c OK [07:34:55]MH_I2C_Read... [07:34:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:34:55]Read from MH i2c: E2 [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: E2 03 00 [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: E2 03 00 0C 46 00 90 00 C6 [07:34:55]RAPDU: 90 00 [07:34:55]wFMCommunicate OK [07:34:55]wFMCommunicate request_size=7 [07:34:55]MH_SAM_APDU [07:34:55]CAPDU: 80 0D 02 02 02 2F DF [07:34:55]Write to MH i2c: E2 0A 00 0D 46 80 0D 02 02 02 00 2F DF 00 00 DF [07:34:55]Write i2c OK [07:34:55]MH_I2C_Read... [07:34:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:34:55]Read from MH i2c: E2 [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: E2 03 00 [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: E2 03 00 0D 46 00 90 00 C7 [07:34:55]RAPDU: 90 00 [07:34:55]wFMCommunicate OK [07:34:55]wFMCommunicate request_size=4 [07:34:55]MH_SAM_APDU [07:34:55]CAPDU: 80 0D 03 02 [07:34:55]Write to MH i2c: E2 08 00 0E 46 80 0D 03 02 00 00 00 00 CF [07:34:55]Write i2c OK [07:34:55]MH_I2C_Read... [07:34:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:34:55]Read from MH i2c: E2 [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: E2 0B 00 [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: E2 0B 00 0E 46 00 77 A5 B3 DC 62 08 40 61 90 00 86 [07:34:55]RAPDU: 77 A5 B3 DC 62 08 40 61 90 00 [07:34:55]wFMCommunicate OK [07:34:55]SAM_PROTO_SignData done [07:34:55]FM_MakeSignedData done [07:34:55]CreateOFDProtocolMessage [07:34:55]wFMCommunicate request_size=4 [07:34:55]MH_SAM_APDU [07:34:55]CAPDU: 80 11 00 00 [07:34:55]Write to MH i2c: E2 08 00 0F 46 80 11 00 00 00 00 00 00 CF [07:34:55]Write i2c OK [07:34:55]MH_I2C_Read... [07:34:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:34:55]Read from MH i2c: E2 [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: E2 17 00 [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: E2 17 00 0F 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 21 [07:34:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [07:34:55]wFMCommunicate OK [07:34:55]CreateOFDProtocolMessage done [07:34:55]OFDSenderStorePacket 111561 [07:34:55]StoreOFDPacket docnum=111561 [07:34:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 DD EC 04 01 B8 3E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 B9 DB 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C9 B3 01 00 35 04 06 00 8C 62 AC BF 2F DF 77 A5 B3 DC 62 08 40 61 [07:34:55]CheckFolder [07:34:55]dirname=/storage/ofd_packets [07:34:55]CheckFolder done [07:34:55]ProducePacketName [07:34:55]name=ofd_packets/00111561 [07:34:55]NVStorageSaveData ofd_packets/00111561 [07:34:55]File name is /storage/ofd_packets/00111561 [07:34:55]Write 298 bytes [07:34:55]NVStorageSaveData done [07:34:55]OFDSenderStorePacket done [07:34:55]KKMCreateOFDPacket done [07:34:55]NVStorageSaveData kkm_last_timestamp [07:34:55]File name is /storage/kkm_last_timestamp [07:34:55]Write 4 bytes [07:34:55]NVStorageSaveData done [07:34:55]ExternCall_PrintAddStr [07:34:55]wPrintStart [07:34:55]Write to MH i2c: 01 00 00 10 46 56 [07:34:55]Write i2c OK [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: 01 [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: 01 07 00 [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: 01 07 00 10 46 00 00 00 00 00 FF 0F 6B [07:34:55]RasterBufferAndPrint [07:34:55]line Счет N : (1)320158 [07:34:55]line ИНН: 02508201610067 [07:34:55]line Контрольно-Кассовый Чек [07:34:55]line ПРОДАЖА [07:34:55]line ТРК (МРК, ГНК) : 22 [07:34:55]line Товар: 2710194210 [07:34:55]line ДТ-К-5 [07:34:55]line 41.160 * 72.90 [07:34:55]line = 3000.56 [07:34:55]line НДС 12% НСП 1% [07:34:55]line > о реализуемом товаре [07:34:55]line ОКРУГЛЕНИЕ: -0.56 [07:34:55]line ИТОГО: 3000.00 [07:34:55]line Внесено: 3000.00 [07:34:55]line СДАЧА: 0.00 [07:34:55]line НСП 1% : 26.55 [07:34:55]line НДС 12% : 318.64 [07:34:55]line Наличными: 3000.00 [07:34:55]line Безнал.: 0.00 [07:34:55]line Место: АЗС № 65 "Партнер Нефть" [07:34:55]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [07:34:55]line СНО: Общий режим [07:34:55]line Чек 11 20.06.2024 07:35 [07:34:55]line Смена: 389 ФФД: 1.0 [07:34:55]line ЗНМ: 0300000198 [07:34:55]line РНМ: 0000000000092771 [07:34:55]line Версия ККМ: 001 [07:34:55]line ФМ: 0000000000875083 [07:34:56]line ФД: 111561 [07:34:56]line ФПД: 154355432894431 [07:34:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T073521&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111561&fm=154355432894431&tin=02508201610067®Number=0000000000092771&sum=300000 [07:34:56]OFD Sender: Processing packet 111561 [packets to send 38, broken 37] [07:34:56]ProducePacketName [07:34:56]name=ofd_packets/00111561 [07:34:56]OFD Sender: To server: pG, [07:34:56]CommunicateWithHost lk.salyk.kg:30040 [07:34:56]ConnectInit lk.salyk.kg [07:34:56]written 0, free lines is 4095 [07:34:56]Connected sock=10 [07:34:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 DD EC 04 01 B8 3E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 B9 DB 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C9 B3 01 00 35 04 06 00 8C 62 AC BF 2F DF 77 A5 B3 DC 62 08 40 61 [07:34:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 80 F3 47 00 A0 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C9 B3 01 00 F4 03 04 00 0A 73 73 66 B6 04 01 00 00 DD 47 CF 78 DC 9C A7 5B [07:34:56]CommunicateWithHost err = 0 [07:34:56]CheckOFDResponse [07:34:56]1017 (14) - 77093643461234 [07:34:56]1041 (16) - 0000000000875083 [07:34:56]1040 (4) - 111561 [07:34:56]1012 (4) - 20.06.2024 00:08 [07:34:56]1206 (1) - 0 [07:34:56]OFD Sender: Remove packet 111561 [07:34:56]ProducePacketName [07:34:56]name=ofd_packets/00111561 [07:34:56]NVStorageDeleteData [07:34:56]Write to MH i2c: 01 00 00 3B 46 81 [07:34:56]Write i2c OK [07:34:56]MH_I2C_Read... [07:34:56]Read from MH i2c: 01 [07:34:56]MH_I2C_Read... [07:34:56]Read from MH i2c: 01 07 00 [07:34:56]MH_I2C_Read... [07:34:56]Read from MH i2c: 01 07 00 3B 46 00 00 00 00 00 E2 0C 76 [07:34:56]RasterBufferAndPrint [07:34:56]line [07:34:56]line [07:34:56]line [07:34:56]line [07:34:56]line [07:34:56]written 0, free lines is 3304 [07:34:56]MH_Cut [07:34:56]Write to MH i2c: D1 01 00 42 46 01 5A [07:34:56]Write i2c OK [07:34:56]MH_I2C_Read... [07:34:56]Read from MH i2c: D1 [07:34:56]MH_I2C_Read... [07:34:56]Read from MH i2c: D1 01 00 [07:34:56]MH_I2C_Read... [07:34:56]Read from MH i2c: D1 01 00 42 46 00 59 [07:34:56]Write to MH i2c: 01 00 00 43 46 89 [07:34:56]Write i2c OK [07:34:56]MH_I2C_Read... [07:34:57]OFD Sender: No OFD packet to send [07:34:57]*** Cut start [07:34:57]*** Partial cut [07:34:57]*** CUTSNS_PIN = 1 [07:34:57]*** CUTSNS_PIN = 0 [07:34:57]*** Brake cut motor [07:34:58]Read from MH i2c: 01 [07:34:58]MH_I2C_Read... [07:34:58]*** Stop cut motor [07:34:58]*** Cut end [07:34:58]Read from MH i2c: 01 07 00 [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: 01 07 00 43 46 00 00 00 00 00 FF 0F 9E [07:34:58]process_action close_receipt done [07:34:58]requested_data is exist [07:34:58]produce_requested_data [07:34:58]requested_item fm.sn is exist - process it [07:34:58]wFMCommunicate request_size=4 [07:34:58]MH_SAM_APDU [07:34:58]CAPDU: 80 11 00 00 [07:34:58]Write to MH i2c: E2 08 00 44 46 80 11 00 00 00 00 00 00 04 [07:34:58]Write i2c OK [07:34:58]MH_I2C_Read... [07:34:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:34:58]Read from MH i2c: E2 [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: E2 17 00 [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: E2 17 00 44 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 56 [07:34:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [07:34:58]wFMCommunicate OK [07:34:58]requested_item fd.num is exist - process it [07:34:58]SAM_PROTO_GetFieldsCounters [07:34:58]wFMCommunicate request_size=4 [07:34:58]MH_SAM_APDU [07:34:58]CAPDU: 80 13 00 00 [07:34:58]Write to MH i2c: E2 08 00 45 46 80 13 00 00 00 00 00 00 07 [07:34:58]Write i2c OK [07:34:58]MH_I2C_Read... [07:34:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:34:58]Read from MH i2c: E2 [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: E2 62 00 [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: E2 62 00 45 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C9 B3 01 00 0E 04 04 00 85 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 4C [07:34:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C9 B3 01 00 0E 04 04 00 85 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:34:58]wFMCommunicate OK [07:34:58]SAM_PROTO_GetFieldsCounters done [07:34:58]requested_item shift.num is exist - process it [07:34:58]requested_item shift.opened is exist - process it [07:34:58]req_shift_opened [07:34:58]FM_GetShiftState [07:34:58]SAM_PROTO_GetShiftState [07:34:58]wFMCommunicate request_size=4 [07:34:58]MH_SAM_APDU [07:34:58]CAPDU: 80 13 01 00 [07:34:58]Write to MH i2c: E2 08 00 46 46 80 13 01 00 00 00 00 00 09 [07:34:58]Write i2c OK [07:34:58]MH_I2C_Read... [07:34:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:34:58]Read from MH i2c: E2 [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: E2 0E 00 [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: E2 0E 00 46 46 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 84 [07:34:58]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [07:34:58]wFMCommunicate OK [07:34:58]SAM_PROTO_GetShiftState done [07:34:58]FM_GetShiftState done [07:34:58]req_shift_opened done [07:34:58]requested_item shift.open_date is exist - process it [07:34:58]req_shift_open_date [07:34:58]req_shift_open_date done [07:34:58]produce_requested_data done [07:34:58]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111561,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [07:34:58]process_action_free close_receipt [07:34:58]json_value_free [07:34:58]json_value_free done [07:34:58]process_json_proto returns [07:34:58]Send response to host [07:34:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111561,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [07:34:58]free response buf [07:34:58]execute_script done [07:34:58]execute_script returns [07:34:58]free content buf [07:34:58]Sock 9.Close socket [07:34:58]Sock 9.Thread stoped [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:37]OFD Sender: No OFD packet to send [07:37:42]OFD Sender: No OFD packet to send [07:37:47]OFD Sender: No OFD packet to send [07:37:52]OFD Sender: No OFD packet to send [07:37:57]OFD Sender: No OFD packet to send [07:38:02]OFD Sender: No OFD packet to send [07:38:07]OFD Sender: No OFD packet to send [07:38:12]OFD Sender: No OFD packet to send [07:38:17]OFD Sender: No OFD packet to send [07:38:22]OFD Sender: No OFD packet to send [07:38:27]OFD Sender: No OFD packet to send [07:38:32]OFD Sender: No OFD packet to send [07:38:37]OFD Sender: No OFD packet to send [07:38:42]OFD Sender: No OFD packet to send [07:38:47]OFD Sender: No OFD packet to send [07:38:52]OFD Sender: No OFD packet to send [07:38:57]OFD Sender: No OFD packet to send [07:39:02]OFD Sender: No OFD packet to send [07:39:07]OFD Sender: No OFD packet to send [07:39:12]OFD Sender: No OFD packet to send [07:39:17]OFD Sender: No OFD packet to send [07:39:22]OFD Sender: No OFD packet to send [07:39:27]OFD Sender: No OFD packet to send [07:39:32]OFD Sender: No OFD packet to send [07:39:37]OFD Sender: No OFD packet to send [07:39:42]OFD Sender: No OFD packet to send [07:39:47]OFD Sender: No OFD packet to send [07:39:52]OFD Sender: No OFD packet to send [07:39:57]OFD Sender: No OFD packet to send [07:40:02]OFD Sender: No OFD packet to send [07:40:07]OFD Sender: No OFD packet to send [07:40:12]OFD Sender: No OFD packet to send [07:40:17]OFD Sender: No OFD packet to send [07:40:22]OFD Sender: No OFD packet to send [07:40:27]OFD Sender: No OFD packet to send [07:40:32]OFD Sender: No OFD packet to send [07:40:37]OFD Sender: No OFD packet to send [07:40:42]OFD Sender: No OFD packet to send [07:40:47]OFD Sender: No OFD packet to send [07:40:52]OFD Sender: No OFD packet to send [07:40:57]OFD Sender: No OFD packet to send [07:41:02]OFD Sender: No OFD packet to send [07:41:07]OFD Sender: No OFD packet to send [07:41:12]OFD Sender: No OFD packet to send [07:41:17]OFD Sender: No OFD packet to send [07:41:22]OFD Sender: No OFD packet to send [07:41:27]OFD Sender: No OFD packet to send [07:41:32]OFD Sender: No OFD packet to send [07:41:37]OFD Sender: No OFD packet to send [07:41:42]OFD Sender: No OFD packet to send [07:41:47]OFD Sender: No OFD packet to send [07:41:52]OFD Sender: No OFD packet to send [07:41:57]OFD Sender: No OFD packet to send [07:42:02]OFD Sender: No OFD packet to send [07:42:07]OFD Sender: No OFD packet to send [07:42:12]OFD Sender: No OFD packet to send [07:42:17]OFD Sender: No OFD packet to send [07:42:22]OFD Sender: No OFD packet to send [07:42:27]OFD Sender: No OFD packet to send [07:42:32]OFD Sender: No OFD packet to send [07:42:37]OFD Sender: No OFD packet to send [07:42:42]OFD Sender: No OFD packet to send [07:42:47]OFD Sender: No OFD packet to send [07:42:52]OFD Sender: No OFD packet to send [07:42:57]OFD Sender: No OFD packet to send [07:43:02]OFD Sender: No OFD packet to send [07:43:07]OFD Sender: No OFD packet to send [07:43:12]OFD Sender: No OFD packet to send [07:43:17]OFD Sender: No OFD packet to send [07:43:22]OFD Sender: No OFD packet to send [07:43:27]OFD Sender: No OFD packet to send [07:43:32]OFD Sender: No OFD packet to send [07:43:37]OFD Sender: No OFD packet to send [07:43:42]OFD Sender: No OFD packet to send [07:43:47]OFD Sender: No OFD packet to send [07:43:52]OFD Sender: No OFD packet to send [07:43:57]OFD Sender: No OFD packet to send [07:44:02]OFD Sender: No OFD packet to send [07:44:07]OFD Sender: No OFD packet to send [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:13]OFD Sender: No OFD packet to send [07:52:18]OFD Sender: No OFD packet to send [07:52:23]OFD Sender: No OFD packet to send [07:52:28]OFD Sender: No OFD packet to send [07:52:33]OFD Sender: No OFD packet to send [07:52:38]OFD Sender: No OFD packet to send [07:52:43]OFD Sender: No OFD packet to send [07:52:48]OFD Sender: No OFD packet to send [07:52:53]OFD Sender: No OFD packet to send [07:52:58]OFD Sender: No OFD packet to send [07:53:03]OFD Sender: No OFD packet to send [07:53:08]OFD Sender: No OFD packet to send [07:53:13]OFD Sender: No OFD packet to send [07:53:18]OFD Sender: No OFD packet to send [07:53:23]OFD Sender: No OFD packet to send [07:53:28]OFD Sender: No OFD packet to send [07:53:33]OFD Sender: No OFD packet to send [07:53:38]OFD Sender: No OFD packet to send [07:53:43]OFD Sender: No OFD packet to send [07:53:48]OFD Sender: No OFD packet to send [07:53:53]OFD Sender: No OFD packet to send [07:53:58]OFD Sender: No OFD packet to send [07:54:03]OFD Sender: No OFD packet to send [07:54:08]OFD Sender: No OFD packet to send [07:54:13]OFD Sender: No OFD packet to send [07:54:18]OFD Sender: No OFD packet to send [07:54:23]OFD Sender: No OFD packet to send [07:54:28]OFD Sender: No OFD packet to send [07:54:33]OFD Sender: No OFD packet to send [07:54:38]OFD Sender: No OFD packet to send [07:54:43]OFD Sender: No OFD packet to send [07:54:48]OFD Sender: No OFD packet to send [07:54:53]OFD Sender: No OFD packet to send [07:54:58]OFD Sender: No OFD packet to send [07:55:03]OFD Sender: No OFD packet to send [07:55:08]OFD Sender: No OFD packet to send [07:55:13]OFD Sender: No OFD packet to send [07:55:18]OFD Sender: No OFD packet to send [07:55:23]OFD Sender: No OFD packet to send [07:55:28]OFD Sender: No OFD packet to send [07:55:33]OFD Sender: No OFD packet to send [07:55:38]OFD Sender: No OFD packet to send [07:55:43]OFD Sender: No OFD packet to send [07:55:48]OFD Sender: No OFD packet to send [07:55:53]OFD Sender: No OFD packet to send [07:55:58]OFD Sender: No OFD packet to send [07:56:03]OFD Sender: No OFD packet to send [07:56:08]OFD Sender: No OFD packet to send [07:56:13]OFD Sender: No OFD packet to send [07:56:18]OFD Sender: No OFD packet to send [07:56:23]OFD Sender: No OFD packet to send [07:56:28]OFD Sender: No OFD packet to send [07:56:33]OFD Sender: No OFD packet to send [07:56:38]OFD Sender: No OFD packet to send [07:56:43]OFD Sender: No OFD packet to send [07:56:48]OFD Sender: No OFD packet to send [07:56:53]OFD Sender: No OFD packet to send [07:56:58]OFD Sender: No OFD packet to send [07:57:03]OFD Sender: No OFD packet to send [07:57:08]OFD Sender: No OFD packet to send [07:57:13]OFD Sender: No OFD packet to send [07:57:18]OFD Sender: No OFD packet to send [07:57:23]OFD Sender: No OFD packet to send [07:57:28]OFD Sender: No OFD packet to send [07:57:33]OFD Sender: No OFD packet to send [07:57:38]OFD Sender: No OFD packet to send [07:57:43]OFD Sender: No OFD packet to send [07:57:48]OFD Sender: No OFD packet to send [07:57:53]OFD Sender: No OFD packet to send [07:57:58]OFD Sender: No OFD packet to send [07:58:03]OFD Sender: No OFD packet to send [07:58:08]OFD Sender: No OFD packet to send [07:58:13]OFD Sender: No OFD packet to send [07:58:18]OFD Sender: No OFD packet to send [07:58:23]OFD Sender: No OFD packet to send [07:58:28]OFD Sender: No OFD packet to send [07:58:33]OFD Sender: No OFD packet to send [07:58:38]OFD Sender: No OFD packet to send [07:58:43]OFD Sender: No OFD packet to send [07:58:48]OFD Sender: No OFD packet to send [07:58:53]OFD Sender: No OFD packet to send [07:58:58]OFD Sender: No OFD packet to send [07:59:03]OFD Sender: No OFD packet to send [07:59:08]OFD Sender: No OFD packet to send [07:59:13]OFD Sender: No OFD packet to send [07:59:18]OFD Sender: No OFD packet to send [07:59:23]OFD Sender: No OFD packet to send [07:59:28]OFD Sender: No OFD packet to send [07:59:33]OFD Sender: No OFD packet to send [07:59:38]OFD Sender: No OFD packet to send [07:59:43]OFD Sender: No OFD packet to send [07:59:48]OFD Sender: No OFD packet to send [07:59:53]OFD Sender: No OFD packet to send [07:59:58]OFD Sender: No OFD packet to send [08:00:03]OFD Sender: No OFD packet to send [08:00:08]OFD Sender: No OFD packet to send [08:00:13]OFD Sender: No OFD packet to send [08:00:18]OFD Sender: No OFD packet to send [08:00:23]OFD Sender: No OFD packet to send [08:00:28]OFD Sender: No OFD packet to send [08:00:33]OFD Sender: No OFD packet to send [08:00:38]OFD Sender: No OFD packet to send [08:00:43]OFD Sender: No OFD packet to send [08:00:48]OFD Sender: No OFD packet to send [08:00:53]OFD Sender: No OFD packet to send [08:00:58]OFD Sender: No OFD packet to send [08:01:03]OFD Sender: No OFD packet to send [08:01:08]OFD Sender: No OFD packet to send [08:01:13]OFD Sender: No OFD packet to send [08:01:18]OFD Sender: No OFD packet to send [08:01:23]OFD Sender: No OFD packet to send [08:01:28]OFD Sender: No OFD packet to send [08:01:33]OFD Sender: No OFD packet to send [08:01:38]OFD Sender: No OFD packet to send [08:01:43]OFD Sender: No OFD packet to send [08:01:48]OFD Sender: No OFD packet to send [08:01:53]OFD Sender: No OFD packet to send [08:01:58]OFD Sender: No OFD packet to send [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:43]OFD Sender: No OFD packet to send [08:02:48]OFD Sender: No OFD packet to send [08:02:53]OFD Sender: No OFD packet to send [08:02:58]OFD Sender: No OFD packet to send [08:03:03]OFD Sender: No OFD packet to send [08:03:08]OFD Sender: No OFD packet to send [08:03:13]OFD Sender: No OFD packet to send [08:03:18]OFD Sender: No OFD packet to send [08:03:23]OFD Sender: No OFD packet to send [08:03:28]OFD Sender: No OFD packet to send [08:03:33]OFD Sender: No OFD packet to send [08:03:38]OFD Sender: No OFD packet to send [08:03:43]OFD Sender: No OFD packet to send [08:03:48]OFD Sender: No OFD packet to send [08:03:53]OFD Sender: No OFD packet to send [08:03:58]OFD Sender: No OFD packet to send [08:04:03]OFD Sender: No OFD packet to send [08:04:08]OFD Sender: No OFD packet to send [08:04:13]OFD Sender: No OFD packet to send [08:04:18]OFD Sender: No OFD packet to send [08:04:23]OFD Sender: No OFD packet to send [08:04:28]OFD Sender: No OFD packet to send [08:04:33]OFD Sender: No OFD packet to send [08:04:38]OFD Sender: No OFD packet to send [08:04:43]OFD Sender: No OFD packet to send [08:04:48]OFD Sender: No OFD packet to send [08:04:53]OFD Sender: No OFD packet to send [08:04:58]OFD Sender: No OFD packet to send [08:05:03]OFD Sender: No OFD packet to send [08:05:08]OFD Sender: No OFD packet to send [08:05:13]OFD Sender: No OFD packet to send [08:05:18]OFD Sender: No OFD packet to send [08:05:23]OFD Sender: No OFD packet to send [08:05:28]OFD Sender: No OFD packet to send [08:05:33]OFD Sender: No OFD packet to send [08:05:38]OFD Sender: No OFD packet to send [08:05:43]OFD Sender: No OFD packet to send [08:05:48]OFD Sender: No OFD packet to send [08:05:53]OFD Sender: No OFD packet to send [08:05:58]OFD Sender: No OFD packet to send [08:06:03]OFD Sender: No OFD packet to send [08:06:08]OFD Sender: No OFD packet to send [08:06:13]OFD Sender: No OFD packet to send [08:06:18]OFD Sender: No OFD packet to send [08:06:23]OFD Sender: No OFD packet to send [08:06:28]OFD Sender: No OFD packet to send [08:06:33]OFD Sender: No OFD packet to send [08:06:38]OFD Sender: No OFD packet to send [08:06:43]OFD Sender: No OFD packet to send [08:06:48]OFD Sender: No OFD packet to send [08:06:53]OFD Sender: No OFD packet to send [08:06:58]OFD Sender: No OFD packet to send [08:07:03]OFD Sender: No OFD packet to send [08:07:08]OFD Sender: No OFD packet to send [08:07:13]OFD Sender: No OFD packet to send [08:07:18]OFD Sender: No OFD packet to send [08:07:23]OFD Sender: No OFD packet to send [08:07:28]OFD Sender: No OFD packet to send [08:07:33]OFD Sender: No OFD packet to send [08:07:38]OFD Sender: No OFD packet to send [08:07:43]OFD Sender: No OFD packet to send [08:07:48]OFD Sender: No OFD packet to send [08:07:53]OFD Sender: No OFD packet to send [08:07:58]OFD Sender: No OFD packet to send [08:08:03]OFD Sender: No OFD packet to send [08:08:08]OFD Sender: No OFD packet to send [08:08:13]OFD Sender: No OFD packet to send [08:08:18]OFD Sender: No OFD packet to send [08:08:23]OFD Sender: No OFD packet to send [08:08:28]OFD Sender: No OFD packet to send [08:08:33]OFD Sender: No OFD packet to send [08:08:38]OFD Sender: No OFD packet to send [08:08:43]OFD Sender: No OFD packet to send [08:08:48]OFD Sender: No OFD packet to send [08:08:53]OFD Sender: No OFD packet to send [08:08:58]OFD Sender: No OFD packet to send [08:09:03]OFD Sender: No OFD packet to send [08:09:08]OFD Sender: No OFD packet to send [08:09:13]OFD Sender: No OFD packet to send [08:09:18]OFD Sender: No OFD packet to send [08:09:23]OFD Sender: No OFD packet to send [08:09:28]OFD Sender: No OFD packet to send [08:09:33]OFD Sender: No OFD packet to send [08:09:38]OFD Sender: No OFD packet to send [08:09:43]OFD Sender: No OFD packet to send [08:09:48]OFD Sender: No OFD packet to send [08:09:53]OFD Sender: No OFD packet to send [08:09:58]OFD Sender: No OFD packet to send [08:10:03]OFD Sender: No OFD packet to send [08:10:08]OFD Sender: No OFD packet to send [08:10:13]OFD Sender: No OFD packet to send [08:10:18]OFD Sender: No OFD packet to send [08:10:23]OFD Sender: No OFD packet to send [08:10:28]OFD Sender: No OFD packet to send [08:10:33]OFD Sender: No OFD packet to send [08:10:38]OFD Sender: No OFD packet to send [08:10:43]OFD Sender: No OFD packet to send [08:10:48]OFD Sender: No OFD packet to send [08:10:53]OFD Sender: No OFD packet to send [08:10:58]OFD Sender: No OFD packet to send [08:11:03]OFD Sender: No OFD packet to send [08:11:08]OFD Sender: No OFD packet to send [08:11:13]OFD Sender: No OFD packet to send [08:11:19]OFD Sender: No OFD packet to send [08:11:24]OFD Sender: No OFD packet to send [08:11:29]OFD Sender: No OFD packet to send [08:11:34]OFD Sender: No OFD packet to send [08:11:39]OFD Sender: No OFD packet to send [08:11:44]OFD Sender: No OFD packet to send [08:11:49]OFD Sender: No OFD packet to send [08:11:54]OFD Sender: No OFD packet to send [08:11:59]OFD Sender: No OFD packet to send [08:12:04]OFD Sender: No OFD packet to send [08:12:09]OFD Sender: No OFD packet to send [08:12:14]OFD Sender: No OFD packet to send [08:12:19]OFD Sender: No OFD packet to send [08:12:24]OFD Sender: No OFD packet to send [08:12:29]OFD Sender: No OFD packet to send [08:12:34]OFD Sender: No OFD packet to send [08:12:39]OFD Sender: No OFD packet to send [08:12:44]OFD Sender: No OFD packet to send [08:12:49]OFD Sender: No OFD packet to send [08:12:54]OFD Sender: No OFD packet to send [08:12:59]OFD Sender: No OFD packet to send [08:13:04]OFD Sender: No OFD packet to send [08:13:09]OFD Sender: No OFD packet to send [08:13:14]OFD Sender: No OFD packet to send [08:13:19]OFD Sender: No OFD packet to send [08:13:24]OFD Sender: No OFD packet to send [08:13:29]OFD Sender: No OFD packet to send [08:13:34]OFD Sender: No OFD packet to send [08:13:39]OFD Sender: No OFD packet to send [08:13:44]OFD Sender: No OFD packet to send [08:13:49]OFD Sender: No OFD packet to send [08:13:54]OFD Sender: No OFD packet to send [08:13:59]OFD Sender: No OFD packet to send [08:14:04]OFD Sender: No OFD packet to send [08:14:09]OFD Sender: No OFD packet to send [08:14:14]OFD Sender: No OFD packet to send [08:14:19]OFD Sender: No OFD packet to send [08:14:24]OFD Sender: No OFD packet to send [08:14:29]OFD Sender: No OFD packet to send [08:14:34]OFD Sender: No OFD packet to send [08:14:39]OFD Sender: No OFD packet to send [08:14:44]OFD Sender: No OFD packet to send [08:14:49]OFD Sender: No OFD packet to send [08:14:54]OFD Sender: No OFD packet to send [08:14:59]OFD Sender: No OFD packet to send [08:15:04]OFD Sender: No OFD packet to send [08:15:09]OFD Sender: No OFD packet to send [08:15:14]OFD Sender: No OFD packet to send [08:15:19]OFD Sender: No OFD packet to send [08:15:24]OFD Sender: No OFD packet to send [08:15:29]OFD Sender: No OFD packet to send [08:15:34]OFD Sender: No OFD packet to send [08:15:39]OFD Sender: No OFD packet to send [08:15:44]OFD Sender: No OFD packet to send [08:15:49]OFD Sender: No OFD packet to send [08:15:54]OFD Sender: No OFD packet to send [08:15:59]OFD Sender: No OFD packet to send [08:16:04]OFD Sender: No OFD packet to send [08:16:09]OFD Sender: No OFD packet to send [08:16:14]OFD Sender: No OFD packet to send [08:16:19]OFD Sender: No OFD packet to send [08:16:24]OFD Sender: No OFD packet to send [08:16:29]OFD Sender: No OFD packet to send [08:16:34]OFD Sender: No OFD packet to send [08:16:39]OFD Sender: No OFD packet to send [08:16:44]OFD Sender: No OFD packet to send [08:16:49]OFD Sender: No OFD packet to send [08:16:54]OFD Sender: No OFD packet to send [08:16:59]OFD Sender: No OFD packet to send [08:17:04]OFD Sender: No OFD packet to send [08:17:09]OFD Sender: No OFD packet to send [08:17:14]OFD Sender: No OFD packet to send [08:17:19]OFD Sender: No OFD packet to send [08:17:24]OFD Sender: No OFD packet to send [08:17:29]OFD Sender: No OFD packet to send [08:17:34]OFD Sender: No OFD packet to send [08:17:39]OFD Sender: No OFD packet to send [08:17:44]OFD Sender: No OFD packet to send [08:17:49]OFD Sender: No OFD packet to send [08:17:54]OFD Sender: No OFD packet to send [08:17:59]OFD Sender: No OFD packet to send [08:18:04]OFD Sender: No OFD packet to send [08:18:09]OFD Sender: No OFD packet to send [08:18:14]OFD Sender: No OFD packet to send [08:18:19]OFD Sender: No OFD packet to send [08:18:24]OFD Sender: No OFD packet to send [08:18:29]OFD Sender: No OFD packet to send [08:18:34]OFD Sender: No OFD packet to send [08:18:39]OFD Sender: No OFD packet to send [08:18:44]OFD Sender: No OFD packet to send [08:18:49]OFD Sender: No OFD packet to send [08:18:54]OFD Sender: No OFD packet to send [08:18:59]OFD Sender: No OFD packet to send [08:19:04]OFD Sender: No OFD packet to send [08:19:09]OFD Sender: No OFD packet to send [08:19:14]OFD Sender: No OFD packet to send [08:19:19]OFD Sender: No OFD packet to send [08:19:24]OFD Sender: No OFD packet to send [08:19:29]OFD Sender: No OFD packet to send [08:19:34]OFD Sender: No OFD packet to send [08:19:39]OFD Sender: No OFD packet to send [08:19:44]OFD Sender: No OFD packet to send [08:19:49]OFD Sender: No OFD packet to send [08:19:54]OFD Sender: No OFD packet to send [08: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:14]OFD Sender: No OFD packet to send [08:22:19]OFD Sender: No OFD packet to send [08:22:24]OFD Sender: No OFD packet to send [08:22:29]OFD Sender: No OFD packet to send [08:22:34]OFD Sender: No OFD packet to send [08:22:39]OFD Sender: No OFD packet to send [08:22:44]OFD Sender: No OFD packet to send [08:22:49]OFD Sender: No OFD packet to send [08:22:54]OFD Sender: No OFD packet to send [08:22:59]OFD Sender: No OFD packet to send [08:23:04]OFD Sender: No OFD packet to send [08:23:09]OFD Sender: No OFD packet to send [08:23:14]OFD Sender: No OFD packet to send [08:23:19]OFD Sender: No OFD packet to send [08:23:24]OFD Sender: No OFD packet to send [08:23:29]OFD Sender: No OFD packet to send [08:23:34]OFD Sender: No OFD packet to send [08:23:39]OFD Sender: No OFD packet to send [08:23:44]OFD Sender: No OFD packet to send [08:23:49]OFD Sender: No OFD packet to send [08:23:54]OFD Sender: No OFD packet to send [08:23:59]OFD Sender: No OFD packet to send [08:24:04]OFD Sender: No OFD packet to send [08:24:09]OFD Sender: No OFD packet to send [08:24:14]OFD Sender: No OFD packet to send [08:24:19]OFD Sender: No OFD packet to send [08:24:24]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]OFD Sender: No OFD packet to send [08:28:29]OFD Sender: No OFD packet to send [08:28:34]OFD Sender: No OFD packet to send [08:28:39]OFD Sender: No OFD packet to send [08:28:44]OFD Sender: No OFD packet to send [08:28:49]OFD Sender: No OFD packet to send [08:28:54]OFD Sender: No OFD packet to send [08:28:59]OFD Sender: No OFD packet to send [08:29:04]OFD Sender: No OFD packet to send [08:29:09]OFD Sender: No OFD packet to send [08:29:14]OFD Sender: No OFD packet to send [08:29:19]OFD Sender: No OFD packet to send [08:29:24]OFD Sender: No OFD packet to send [08:29:29]OFD Sender: No OFD packet to send [08:29:34]OFD Sender: No OFD packet to send [08:29:39]OFD Sender: No OFD packet to send [08:29:44]OFD Sender: No OFD packet to send [08:29:49]OFD Sender: No OFD packet to send [08:29:54]OFD Sender: No OFD packet to send [08:29:59]OFD Sender: No OFD packet to send [08:30:04]OFD Sender: No OFD packet to send [08:30:09]OFD Sender: No OFD packet to send [08:30:14]OFD Sender: No OFD packet to send [08:30: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:44]accept exits with 7 [08:31:44]New connection [08:31:44]New thread 3067465060 created [08:31:44]Thread 3067321700 joined [08:31:44]Waiting for new connection... [08:31:44] Sock 7.Parse request [08:31:44]Sock 7.Check first char [08:31:44]Sock 7.First char is OK [08:31:44]request: POST /json_proto HTTP/1.0 [08:31:44]Method: POST [08:31:44]URL: /json_proto [08:31:44]Method is POST - this is cgi request [08:31:44]url: /json_proto [08:31:44]query_string will be loaded in cgi processing [08:31:44]execute_cgi json_proto POST (null) [08:31:44]execute_cgi path=json_proto method=POST [08:31:44]POST find Content-Length [08:31:44]Host: 172.17.59.68:8080 [08:31:44]Content-Length: 677 [08:31:44]Content-Type: application/json [08:31:44] [08:31:44]POST finish read [08:31:44]Found Content-Length = 677 [08:31:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:44]execute_script... [08:31: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)320160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:44]POST & json_proto [08:31:44]process_json_proto [08:31:44]json parsed OK: [08:31:44]protocol is kg_v1.0 [08:31:44]action value=close_receipt [08:31:44]process_action close_receipt [08:31:44]cmd_close_receipt [08:31:44]MH_GetDate [08:31:44]Write to MH i2c: F0 00 00 47 46 7C [08:31:44]Write i2c OK [08:31:44]MH_I2C_Read... [08:31:44]Read from MH i2c: F0 [08:31:44]MH_I2C_Read... [08:31:44]Read from MH i2c: F0 09 00 [08:31:44]MH_I2C_Read... [08:31:44]Read from MH i2c: F0 09 00 47 46 00 0D E9 73 66 BC EC 60 65 C1 [08:31:44]GetLastDocTimeStamp 1718868921 [08:31:44]current date 1718872333 [08:31:44]FM_GetShiftState [08:31:44]SAM_PROTO_GetShiftState [08:31:44]wFMCommunicate request_size=4 [08:31:44]MH_SAM_APDU [08:31:44]CAPDU: 80 13 01 00 [08:31:44]Write to MH i2c: E2 08 00 48 46 80 13 01 00 00 00 00 00 0B [08:31:44]Write i2c OK [08:31:44]MH_I2C_Read... [08:31:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:44]Read from MH i2c: E2 [08:31:44]MH_I2C_Read... [08:31:44]Read from MH i2c: E2 0E 00 [08:31:44]MH_I2C_Read... [08:31:44]Read from MH i2c: E2 0E 00 48 46 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 86 [08:31:44]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [08:31:44]wFMCommunicate OK [08:31:44]SAM_PROTO_GetShiftState done [08:31:44]FM_GetShiftState done [08:31:44]opened in 1718847247 [08:31:44]opened+sec_in_day 1718933647 [08:31:44]quantity*price = 30012 [08:31:44]sum+1 = 30014 [08:31:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 12 20.06.2024 08:32 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111562 ФПД: 24890815014345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T083213&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111562&fm=24890815014345&tin=02508201610067®Number=0000000000092771&sum=30000 [08:31:46]StoreToDocumentArchive [08:31:46]shift 389 fd 111562 [08:31:46]save to /storage/0389/doc_00111562 [08:31:46]save last doc name /storage/0389/doc_00111562 to /storage/kkm_last_doc_name [08:31:46]save OK [08:31:46]Clear old archive folders... [08:31:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:31:46]tlvbuf is 00ED7090 [08:31:46]SAM_PROTO_ClearQueue [08:31:46]wFMCommunicate request_size=4 [08:31:46]MH_SAM_APDU [08:31:46]CAPDU: 80 09 00 00 [08:31:46]Write to MH i2c: E2 08 00 55 46 80 09 00 00 00 00 00 00 0D [08:31:46]Write i2c OK [08:31:46]MH_I2C_Read... [08:31:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:46]Read from MH i2c: E2 [08:31:46]MH_I2C_Read... [08:31:46]Read from MH i2c: E2 03 00 [08:31:46]MH_I2C_Read... [08:31:46]Read from MH i2c: E2 03 00 55 46 00 90 00 0F [08:31:46]RAPDU: 90 00 [08:31:46]wFMCommunicate OK [08:31:46]SAM_PROTO_ClearQueue done [08:31:46]KKMCreateOFDPacket [08:31:46]OFDProtocolAddRootSTLVToBuf [08:31:46]FM_MakeSignedData [08:31:46]FM_MakeSignedData [08:31:46]SAM_PROTO_SignData [08:31:46]wFMCommunicate request_size=4 [08:31:46]MH_SAM_APDU [08:31:46]CAPDU: 80 0D 01 02 [08:31:46]Write to MH i2c: E2 08 00 56 46 80 0D 01 02 00 00 00 00 15 [08:31:46]Write i2c OK [08:31:46]MH_I2C_Read... [08:31:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:46]Read from MH i2c: E2 [08:31:46]MH_I2C_Read... [08:31:46]Read from MH i2c: E2 03 00 [08:31:46]MH_I2C_Read... [08:31:46]Read from MH i2c: E2 03 00 56 46 00 90 00 10 [08:31:46]RAPDU: 90 00 [08:31:46]wFMCommunicate OK [08:31:46]wFMCommunicate request_size=255 [08:31:46]MH_SAM_APDU [08:31: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 0D E9 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CA B3 01 00 35 04 06 00 16 [08:31:46]Write to MH i2c: E2 02 01 57 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 0D E9 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CA B3 01 00 35 04 06 00 16 00 00 5C [08:31:46]Write i2c OK [08:31:46]MH_I2C_Read... [08:31:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:46]Read from MH i2c: E2 [08:31:46]MH_I2C_Read... [08:31:46]Read from MH i2c: E2 03 00 [08:31:46]MH_I2C_Read... [08:31:46]Read from MH i2c: E2 03 00 57 46 00 90 00 11 [08:31:46]RAPDU: 90 00 [08:31:46]wFMCommunicate OK [08:31:46]wFMCommunicate request_size=10 [08:31:46]MH_SAM_APDU [08:31:46]CAPDU: 80 0D 02 02 05 A3 58 2F E5 C9 [08:31:46]Write to MH i2c: E2 0D 00 58 46 80 0D 02 02 05 00 A3 58 2F E5 C9 00 00 FA [08:31:46]Write i2c OK [08:31:46]MH_I2C_Read... [08:31:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:46]Read from MH i2c: E2 [08:31:46]MH_I2C_Read... [08:31:46]Read from MH i2c: E2 03 00 [08:31:46]MH_I2C_Read... [08:31:46]Read from MH i2c: E2 03 00 58 46 00 90 00 12 [08:31:46]RAPDU: 90 00 [08:31:46]wFMCommunicate OK [08:31:46]wFMCommunicate request_size=4 [08:31:46]MH_SAM_APDU [08:31:46]CAPDU: 80 0D 03 02 [08:31:46]Write to MH i2c: E2 08 00 59 46 80 0D 03 02 00 00 00 00 1A [08:31:46]Write i2c OK [08:31:46]MH_I2C_Read... [08:31:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:46]Read from MH i2c: E2 [08:31:46]MH_I2C_Read... [08:31:46]Read from MH i2c: E2 0B 00 [08:31:46]MH_I2C_Read... [08:31:46]Read from MH i2c: E2 0B 00 59 46 00 5B 3D 4F AA 04 1F B2 4F 90 00 D0 [08:31:46]RAPDU: 5B 3D 4F AA 04 1F B2 4F 90 00 [08:31:46]wFMCommunicate OK [08:31:46]SAM_PROTO_SignData done [08:31:46]FM_MakeSignedData done [08:31:46]CreateOFDProtocolMessage [08:31:46]wFMCommunicate request_size=4 [08:31:46]MH_SAM_APDU [08:31:46]CAPDU: 80 11 00 00 [08:31:46]Write to MH i2c: E2 08 00 5A 46 80 11 00 00 00 00 00 00 1A [08:31:46]Write i2c OK [08:31:46]MH_I2C_Read... [08:31:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:46]Read from MH i2c: E2 [08:31:46]MH_I2C_Read... [08:31:46]Read from MH i2c: E2 17 00 [08:31:46]MH_I2C_Read... [08:31:46]Read from MH i2c: E2 17 00 5A 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6C [08:31:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:31:46]wFMCommunicate OK [08:31:46]CreateOFDProtocolMessage done [08:31:46]OFDSenderStorePacket 111562 [08:31:46]StoreOFDPacket docnum=111562 [08:31:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7F 95 07 01 27 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 0D E9 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CA B3 01 00 35 04 06 00 16 A3 58 2F E5 C9 5B 3D 4F AA 04 1F B2 4F [08:31:46]CheckFolder [08:31:46]dirname=/storage/ofd_packets [08:31:46]CheckFolder done [08:31:46]ProducePacketName [08:31:46]name=ofd_packets/00111562 [08:31:46]NVStorageSaveData ofd_packets/00111562 [08:31:46]File name is /storage/ofd_packets/00111562 [08:31:46]Write 301 bytes [08:31:46]NVStorageSaveData done [08:31:46]OFDSenderStorePacket done [08:31:46]KKMCreateOFDPacket done [08:31:46]NVStorageSaveData kkm_last_timestamp [08:31:46]File name is /storage/kkm_last_timestamp [08:31:46]Write 4 bytes [08:31:46]NVStorageSaveData done [08:31:46]ExternCall_PrintAddStr [08:31:46]wPrintStart [08:31:46]Write to MH i2c: 01 00 00 5B 46 A1 [08:31:46]Write i2c OK [08:31:46]MH_I2C_Read... [08:31:46]Read from MH i2c: 01 [08:31:46]MH_I2C_Read... [08:31:46]Read from MH i2c: 01 07 00 [08:31:46]MH_I2C_Read... [08:31:46]Read from MH i2c: 01 07 00 5B 46 00 00 00 00 00 FF 0F B6 [08:31:46]RasterBufferAndPrint [08:31:46]line Счет N : (1)320160 [08:31:46]line ИНН: 02508201610067 [08:31:46]line Контрольно-Кассовый Чек [08:31:46]line ПРОДАЖА [08:31:46]line ТРК (МРК, ГНК) : 11 [08:31:46]line Товар: 2710124130 [08:31:46]line Аи-92-К-5 [08:31:46]line 4.520 * 66.40 [08:31:46]line = 300.13 [08:31:46]line НДС 12% НСП 1% [08:31:46]line > о реализуемом товаре [08:31:46]line ОКРУГЛЕНИЕ: -0.13 [08:31:46]line ИТОГО: 300.00 [08:31:46]line Внесено: 300.00 [08:31:46]line СДАЧА: 0.00 [08:31:46]line НСП 1% : 2.66 [08:31:46]line НДС 12% : 31.87 [08:31:46]line Наличными: 300.00 [08:31:46]line Безнал.: 0.00 [08:31:46]line Место: АЗС № 65 "Партнер Нефть" [08:31:46]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [08:31:46]line СНО: Общий режим [08:31:46]line Чек 12 20.06.2024 08:32 [08:31:46]line Смена: 389 ФФД: 1.0 [08:31:46]line ЗНМ: 0300000198 [08:31:46]line РНМ: 0000000000092771 [08:31:46]line Версия ККМ: 001 [08:31:46]line ФМ: 0000000000875083 [08:31:46]line ФД: 111562 [08:31:46]line ФПД: 24890815014345 [08:31:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T083213&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111562&fm=24890815014345&tin=02508201610067®Number=0000000000092771&sum=30000 [08:31:46]OFD Sender: Processing packet 111562 [packets to send 38, broken 37] [08:31:46]ProducePacketName [08:31:46]name=ofd_packets/00111562 [08:31:46]OFD Sender: To server: pG, [08:31:46]CommunicateWithHost lk.salyk.kg:30040 [08:31:46]ConnectInit lk.salyk.kg [08:31:46]written 0, free lines is 4095 [08:31:46]Connected sock=10 [08:31:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7F 95 07 01 27 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 0D E9 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CA B3 01 00 35 04 06 00 16 A3 58 2F E5 C9 5B 3D 4F AA 04 1F B2 4F [08:31:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 8D 62 47 00 26 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CA B3 01 00 F4 03 04 00 5D 80 73 66 B6 04 01 00 00 1F 3D 3F 8B 64 C1 81 4C [08:31:47]CommunicateWithHost err = 0 [08:31:47]CheckOFDResponse [08:31:47]1017 (14) - 77093643461234 [08:31:47]1041 (16) - 0000000000875083 [08:31:47]1040 (4) - 111562 [08:31:47]1012 (4) - 20.06.2024 01:05 [08:31:47]1206 (1) - 0 [08:31:47]OFD Sender: Remove packet 111562 [08:31:47]ProducePacketName [08:31:47]name=ofd_packets/00111562 [08:31:47]NVStorageDeleteData [08:31:47]Write to MH i2c: 01 00 00 86 46 CC [08:31:47]Write i2c OK [08:31:47]MH_I2C_Read... [08:31:47]Read from MH i2c: 01 [08:31:47]MH_I2C_Read... [08:31:47]Read from MH i2c: 01 07 00 [08:31:47]MH_I2C_Read... [08:31:47]Read from MH i2c: 01 07 00 86 46 00 00 00 00 00 E7 0C C6 [08:31:47]RasterBufferAndPrint [08:31:47]line [08:31:47]line [08:31:47]line [08:31:47]line [08:31:47]line [08:31:47]written 0, free lines is 3313 [08:31:47]MH_Cut [08:31:47]Write to MH i2c: D1 01 00 8D 46 01 A5 [08:31:47]Write i2c OK [08:31:47]MH_I2C_Read... [08:31:47]Read from MH i2c: D1 [08:31:47]MH_I2C_Read... [08:31:47]Read from MH i2c: D1 01 00 [08:31:47]MH_I2C_Read... [08:31:47]Read from MH i2c: D1 01 00 8D 46 00 A4 [08:31:47]Write to MH i2c: 01 00 00 8E 46 D4 [08:31:47]Write i2c OK [08:31:47]MH_I2C_Read... [08:31:47]OFD Sender: No OFD packet to send [08:31:48]*** Cut start [08:31:48]*** Partial cut [08:31:48]*** CUTSNS_PIN = 1 [08:31:48]*** CUTSNS_PIN = 0 [08:31:48]*** Brake cut motor [08:31:48]Read from MH i2c: 01 [08:31:48]MH_I2C_Read... [08:31:48]*** Stop cut motor [08:31:48]*** Cut end [08:31:48]Read from MH i2c: 01 07 00 [08:31:48]MH_I2C_Read... [08:31:48]Read from MH i2c: 01 07 00 8E 46 00 00 00 00 00 FF 0F E9 [08:31:48]process_action close_receipt done [08:31:48]requested_data is exist [08:31:48]produce_requested_data [08:31:48]requested_item fm.sn is exist - process it [08:31:48]wFMCommunicate request_size=4 [08:31:48]MH_SAM_APDU [08:31:48]CAPDU: 80 11 00 00 [08:31:48]Write to MH i2c: E2 08 00 8F 46 80 11 00 00 00 00 00 00 4F [08:31:48]Write i2c OK [08:31:48]MH_I2C_Read... [08:31:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:48]Read from MH i2c: E2 [08:31:48]MH_I2C_Read... [08:31:48]Read from MH i2c: E2 17 00 [08:31:48]MH_I2C_Read... [08:31:48]Read from MH i2c: E2 17 00 8F 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A1 [08:31:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:31:48]wFMCommunicate OK [08:31:48]requested_item fd.num is exist - process it [08:31:48]SAM_PROTO_GetFieldsCounters [08:31:48]wFMCommunicate request_size=4 [08:31:48]MH_SAM_APDU [08:31:48]CAPDU: 80 13 00 00 [08:31:48]Write to MH i2c: E2 08 00 90 46 80 13 00 00 00 00 00 00 52 [08:31:48]Write i2c OK [08:31:48]MH_I2C_Read... [08:31:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:48]Read from MH i2c: E2 [08:31:48]MH_I2C_Read... [08:31:48]Read from MH i2c: E2 62 00 [08:31:48]MH_I2C_Read... [08:31:48]Read from MH i2c: E2 62 00 90 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CA B3 01 00 0E 04 04 00 85 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 9B [08:31:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CA B3 01 00 0E 04 04 00 85 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 [08:31:48]wFMCommunicate OK [08:31:48]SAM_PROTO_GetFieldsCounters done [08:31:48]requested_item shift.num is exist - process it [08:31:48]requested_item shift.opened is exist - process it [08:31:48]req_shift_opened [08:31:48]FM_GetShiftState [08:31:48]SAM_PROTO_GetShiftState [08:31:48]wFMCommunicate request_size=4 [08:31:48]MH_SAM_APDU [08:31:48]CAPDU: 80 13 01 00 [08:31:48]Write to MH i2c: E2 08 00 91 46 80 13 01 00 00 00 00 00 54 [08:31:48]Write i2c OK [08:31:48]MH_I2C_Read... [08:31:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:48]Read from MH i2c: E2 [08:31:48]MH_I2C_Read... [08:31:48]Read from MH i2c: E2 0E 00 [08:31:48]MH_I2C_Read... [08:31:48]Read from MH i2c: E2 0E 00 91 46 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 CF [08:31:48]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [08:31:48]wFMCommunicate OK [08:31:48]SAM_PROTO_GetShiftState done [08:31:48]FM_GetShiftState done [08:31:48]req_shift_opened done [08:31:48]requested_item shift.open_date is exist - process it [08:31:48]req_shift_open_date [08:31:48]req_shift_open_date done [08:31:48]produce_requested_data done [08:31:48]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111562,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [08:31:48]process_action_free close_receipt [08:31:48]json_value_free [08:31:48]json_value_free done [08:31:48]process_json_proto returns [08:31:48]Send response to host [08:31:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111562,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [08:31:48]free response buf [08:31:48]execute_script done [08:31:48]execute_script returns [08:31:48]free content buf [08:31:48]Sock 7.Close socket [08:31:48]Sock 7.Thread stoped [08:31:52]OFD Sender: No OFD packet to send [08:31:57]OFD Sender: No OFD packet to send [08:32:02]OFD Sender: No OFD packet to send [08:32:07]OFD Sender: No OFD packet to send [08:32:12]OFD Sender: No OFD packet to send [08:32:17]OFD Sender: No OFD packet to send [08:32:22]OFD Sender: No OFD packet to send [08:32:27]OFD Sender: No OFD packet to send [08:32:32]OFD Sender: No OFD packet to send [08:32:37]OFD Sender: No OFD packet to send [08:32:42]OFD Sender: No OFD packet to send [08:32:47]OFD Sender: No OFD packet to send [08:32:52]OFD Sender: No OFD packet to send [08:32:57]OFD Sender: No OFD packet to send [08:33:02]OFD Sender: No OFD packet to send [08:33:07]accept exits with 9 [08:33:07]New connection [08:33:07]New thread 3067321700 created [08:33:07]Thread 3067465060 joined [08:33:07]Waiting for new connection... [08:33:07] Sock 9.Parse request [08:33:07]Sock 9.Check first char [08:33:07]Sock 9.First char is OK [08:33:07]request: POST /json_proto HTTP/1.0 [08:33:07]Method: POST [08:33:07]URL: /json_proto [08:33:07]Method is POST - this is cgi request [08:33:07]url: /json_proto [08:33:07]query_string will be loaded in cgi processing [08:33:07]execute_cgi json_proto POST (null) [08:33:07]execute_cgi path=json_proto method=POST [08:33:07]POST find Content-Length [08:33:07]Host: 172.17.59.68:8080 [08:33:07]Content-Length: 679 [08:33:07]Content-Type: application/json [08:33:07] [08:33:07]POST finish read [08:33:07]Found Content-Length = 679 [08:33:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 89.170, "sum" : 6500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6500.00, "total" : 6500.00, "payments": [ { "type": 0, "sum" : 6500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:07]execute_script... [08:33: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)320159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 89.170, "sum" : 6500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6500.00, "total" : 6500.00, "payments": [ { "type": 0, "sum" : 6500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:07]POST & json_proto [08:33:07]process_json_proto [08:33:07]json parsed OK: [08:33:07]protocol is kg_v1.0 [08:33:07]action value=close_receipt [08:33:07]process_action close_receipt [08:33:07]cmd_close_receipt [08:33:07]MH_GetDate [08:33:07]Write to MH i2c: F0 00 00 92 46 C7 [08:33:07]Write i2c OK [08:33:07]MH_I2C_Read... [08:33:07]Read from MH i2c: F0 [08:33:07]MH_I2C_Read... [08:33:07]Read from MH i2c: F0 09 00 [08:33:07]MH_I2C_Read... [08:33:07]Read from MH i2c: F0 09 00 92 46 00 5F E9 73 66 BC EC 60 65 5E [08:33:07]GetLastDocTimeStamp 1718872333 [08:33:07]current date 1718872415 [08:33:07]FM_GetShiftState [08:33:07]SAM_PROTO_GetShiftState [08:33:07]wFMCommunicate request_size=4 [08:33:07]MH_SAM_APDU [08:33:07]CAPDU: 80 13 01 00 [08:33:07]Write to MH i2c: E2 08 00 93 46 80 13 01 00 00 00 00 00 56 [08:33:07]Write i2c OK [08:33:07]MH_I2C_Read... [08:33:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:07]Read from MH i2c: E2 [08:33:07]MH_I2C_Read... [08:33:07]Read from MH i2c: E2 0E 00 [08:33:07]MH_I2C_Read... [08:33:07]Read from MH i2c: E2 0E 00 93 46 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 D1 [08:33:07]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [08:33:07]wFMCommunicate OK [08:33:07]SAM_PROTO_GetShiftState done [08:33:07]FM_GetShiftState done [08:33:07]opened in 1718847247 [08:33:07]opened+sec_in_day 1718933647 [08:33:07]quantity*price = 650049 [08:33:07]sum+1 = 650050 [08:33:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 6500.00 Внесено: 6500.00 СДАЧА: 0.00 НСП 1% : 57.53 НДС 12% : 690.32 Наличными: 6500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 13 20.06.2024 08:33 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111563 ФПД: 82568355046715 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T083335&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111563&fm=82568355046715&tin=02508201610067®Number=0000000000092771&sum=650000 [08:33:08]StoreToDocumentArchive [08:33:08]shift 389 fd 111563 [08:33:08]save to /storage/0389/doc_00111563 [08:33:08]save last doc name /storage/0389/doc_00111563 to /storage/kkm_last_doc_name [08:33:08]save OK [08:33:08]Clear old archive folders... [08:33:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:33:08]tlvbuf is 00F1EAD0 [08:33:08]SAM_PROTO_ClearQueue [08:33:08]wFMCommunicate request_size=4 [08:33:08]MH_SAM_APDU [08:33:08]CAPDU: 80 09 00 00 [08:33:08]Write to MH i2c: E2 08 00 A0 46 80 09 00 00 00 00 00 00 58 [08:33:08]Write i2c OK [08:33:08]MH_I2C_Read... [08:33:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:33:08]Read from MH i2c: E2 [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: E2 03 00 [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: E2 03 00 A0 46 00 90 00 5A [08:33:08]RAPDU: 90 00 [08:33:08]wFMCommunicate OK [08:33:08]SAM_PROTO_ClearQueue done [08:33:08]KKMCreateOFDPacket [08:33:08]OFDProtocolAddRootSTLVToBuf [08:33:08]FM_MakeSignedData [08:33:08]FM_MakeSignedData [08:33:08]SAM_PROTO_SignData [08:33:08]wFMCommunicate request_size=4 [08:33:08]MH_SAM_APDU [08:33:08]CAPDU: 80 0D 01 02 [08:33:08]Write to MH i2c: E2 08 00 A1 46 80 0D 01 02 00 00 00 00 60 [08:33:08]Write i2c OK [08:33:08]MH_I2C_Read... [08:33:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:33:08]Read from MH i2c: E2 [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: E2 03 00 [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: E2 03 00 A1 46 00 90 00 5B [08:33:08]RAPDU: 90 00 [08:33:08]wFMCommunicate OK [08:33:08]wFMCommunicate request_size=255 [08:33:08]MH_SAM_APDU [08:33:08]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 52 5C 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 41 EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 0D 01 00 00 00 07 04 06 00 10 EB 09 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 5F E9 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CB B3 01 00 35 04 06 00 4B 18 71 78 [08:33:08]Write to MH i2c: E2 02 01 A2 46 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 52 5C 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 41 EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 0D 01 00 00 00 07 04 06 00 10 EB 09 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 5F E9 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CB B3 01 00 35 04 06 00 4B 18 71 78 00 00 03 [08:33:08]Write i2c OK [08:33:08]MH_I2C_Read... [08:33:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:08]Read from MH i2c: E2 [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: E2 03 00 [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: E2 03 00 A2 46 00 90 00 5C [08:33:08]RAPDU: 90 00 [08:33:08]wFMCommunicate OK [08:33:08]wFMCommunicate request_size=7 [08:33:08]MH_SAM_APDU [08:33:08]CAPDU: 80 0D 02 02 02 E5 3B [08:33:08]Write to MH i2c: E2 0A 00 A3 46 80 0D 02 02 02 00 E5 3B 00 00 87 [08:33:08]Write i2c OK [08:33:08]MH_I2C_Read... [08:33:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:08]Read from MH i2c: E2 [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: E2 03 00 [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: E2 03 00 A3 46 00 90 00 5D [08:33:08]RAPDU: 90 00 [08:33:08]wFMCommunicate OK [08:33:08]wFMCommunicate request_size=4 [08:33:08]MH_SAM_APDU [08:33:08]CAPDU: 80 0D 03 02 [08:33:08]Write to MH i2c: E2 08 00 A4 46 80 0D 03 02 00 00 00 00 65 [08:33:08]Write i2c OK [08:33:08]MH_I2C_Read... [08:33:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:33:08]Read from MH i2c: E2 [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: E2 0B 00 [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: E2 0B 00 A4 46 00 7B EF 83 35 14 10 F8 C9 90 00 6D [08:33:08]RAPDU: 7B EF 83 35 14 10 F8 C9 90 00 [08:33:08]wFMCommunicate OK [08:33:08]SAM_PROTO_SignData done [08:33:08]FM_MakeSignedData done [08:33:08]CreateOFDProtocolMessage [08:33:08]wFMCommunicate request_size=4 [08:33:08]MH_SAM_APDU [08:33:08]CAPDU: 80 11 00 00 [08:33:08]Write to MH i2c: E2 08 00 A5 46 80 11 00 00 00 00 00 00 65 [08:33:08]Write i2c OK [08:33:08]MH_I2C_Read... [08:33:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:08]Read from MH i2c: E2 [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: E2 17 00 [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: E2 17 00 A5 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B7 [08:33:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:33:08]wFMCommunicate OK [08:33:08]CreateOFDProtocolMessage done [08:33:08]OFDSenderStorePacket 111563 [08:33:08]StoreOFDPacket docnum=111563 [08:33:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 74 10 04 01 2E AC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 52 5C 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 41 EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 0D 01 00 00 00 07 04 06 00 10 EB 09 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 5F E9 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CB B3 01 00 35 04 06 00 4B 18 71 78 E5 3B 7B EF 83 35 14 10 F8 C9 [08:33:08]CheckFolder [08:33:08]dirname=/storage/ofd_packets [08:33:08]CheckFolder done [08:33:08]ProducePacketName [08:33:08]name=ofd_packets/00111563 [08:33:08]NVStorageSaveData ofd_packets/00111563 [08:33:08]File name is /storage/ofd_packets/00111563 [08:33:08]Write 298 bytes [08:33:08]NVStorageSaveData done [08:33:08]OFDSenderStorePacket done [08:33:08]KKMCreateOFDPacket done [08:33:08]NVStorageSaveData kkm_last_timestamp [08:33:08]File name is /storage/kkm_last_timestamp [08:33:08]Write 4 bytes [08:33:08]NVStorageSaveData done [08:33:08]ExternCall_PrintAddStr [08:33:08]wPrintStart [08:33:08]Write to MH i2c: 01 00 00 A6 46 EC [08:33:08]Write i2c OK [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: 01 [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: 01 07 00 [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: 01 07 00 A6 46 00 00 00 00 00 FF 0F 01 [08:33:08]RasterBufferAndPrint [08:33:08]line Счет N : (1)320159 [08:33:08]line ИНН: 02508201610067 [08:33:08]line Контрольно-Кассовый Чек [08:33:08]line ПРОДАЖА [08:33:08]line ТРК (МРК, ГНК) : 22 [08:33:08]line Товар: 2710194210 [08:33:08]line ДТ-К-5 [08:33:08]line 89.170 * 72.90 [08:33:08]line = 6500.49 [08:33:08]line НДС 12% НСП 1% [08:33:08]line > о реализуемом товаре [08:33:08]line ОКРУГЛЕНИЕ: -0.49 [08:33:08]line ИТОГО: 6500.00 [08:33:08]line Внесено: 6500.00 [08:33:08]line СДАЧА: 0.00 [08:33:08]line НСП 1% : 57.53 [08:33:08]line НДС 12% : 690.32 [08:33:08]line Наличными: 6500.00 [08:33:08]line Безнал.: 0.00 [08:33:08]line Место: АЗС № 65 "Партнер Нефть" [08:33:08]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [08:33:08]line СНО: Общий режим [08:33:08]line Чек 13 20.06.2024 08:33 [08:33:08]line Смена: 389 ФФД: 1.0 [08:33:08]line ЗНМ: 0300000198 [08:33:08]line РНМ: 0000000000092771 [08:33:08]line Версия ККМ: 001 [08:33:08]line ФМ: 0000000000875083 [08:33:08]line ФД: 111563 [08:33:08]line ФПД: 82568355046715 [08:33:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T083335&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111563&fm=82568355046715&tin=02508201610067®Number=0000000000092771&sum=650000 [08:33:09]OFD Sender: Processing packet 111563 [packets to send 38, broken 37] [08:33:09]ProducePacketName [08:33:09]name=ofd_packets/00111563 [08:33:09]OFD Sender: To server: pG, [08:33:09]CommunicateWithHost lk.salyk.kg:30040 [08:33:09]ConnectInit lk.salyk.kg [08:33:09]written 0, free lines is 4095 [08:33:09]Connected sock=10 [08:33:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 74 10 04 01 2E AC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 52 5C 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 41 EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 0D 01 00 00 00 07 04 06 00 10 EB 09 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 5F E9 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CB B3 01 00 35 04 06 00 4B 18 71 78 E5 3B 7B EF 83 35 14 10 F8 C9 [08:33:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 5D 14 47 00 F8 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CB B3 01 00 F4 03 04 00 AF 80 73 66 B6 04 01 00 00 92 C3 7F 0E 17 AF 8B ED [08:33:09]CommunicateWithHost err = 0 [08:33:09]CheckOFDResponse [08:33:09]1017 (14) - 77093643461234 [08:33:09]1041 (16) - 0000000000875083 [08:33:09]1040 (4) - 111563 [08:33:09]1012 (4) - 20.06.2024 01:06 [08:33:09]1206 (1) - 0 [08:33:09]OFD Sender: Remove packet 111563 [08:33:09]ProducePacketName [08:33:09]name=ofd_packets/00111563 [08:33:09]NVStorageDeleteData [08:33:09]Write to MH i2c: 01 00 00 D1 46 17 [08:33:09]Write i2c OK [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: 01 [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: 01 07 00 [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: 01 07 00 D1 46 00 00 00 00 00 E2 0C 0C [08:33:09]RasterBufferAndPrint [08:33:09]line [08:33:09]line [08:33:09]line [08:33:09]line [08:33:09]line [08:33:09]written 0, free lines is 3307 [08:33:09]MH_Cut [08:33:09]Write to MH i2c: D1 01 00 D8 46 01 F0 [08:33:09]Write i2c OK [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: D1 [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: D1 01 00 [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: D1 01 00 D8 46 00 EF [08:33:09]Write to MH i2c: 01 00 00 D9 46 1F [08:33:09]Write i2c OK [08:33:09]MH_I2C_Read... [08:33:09]OFD Sender: No OFD packet to send [08:33:10]*** Cut start [08:33:10]*** Partial cut [08:33:10]*** CUTSNS_PIN = 1 [08:33:10]*** CUTSNS_PIN = 0 [08:33:10]*** Brake cut motor [08:33:10]Read from MH i2c: 01 [08:33:10]MH_I2C_Read... [08:33:10]*** Stop cut motor [08:33:10]*** Cut end [08:33:10]Read from MH i2c: 01 07 00 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: 01 07 00 D9 46 00 00 00 00 00 FF 0F 34 [08:33:10]process_action close_receipt done [08:33:10]requested_data is exist [08:33:10]produce_requested_data [08:33:10]requested_item fm.sn is exist - process it [08:33:10]wFMCommunicate request_size=4 [08:33:10]MH_SAM_APDU [08:33:10]CAPDU: 80 11 00 00 [08:33:10]Write to MH i2c: E2 08 00 DA 46 80 11 00 00 00 00 00 00 9A [08:33:10]Write i2c OK [08:33:10]MH_I2C_Read... [08:33:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:11]Read from MH i2c: E2 [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: E2 17 00 [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: E2 17 00 DA 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EC [08:33:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:33:11]wFMCommunicate OK [08:33:11]requested_item fd.num is exist - process it [08:33:11]SAM_PROTO_GetFieldsCounters [08:33:11]wFMCommunicate request_size=4 [08:33:11]MH_SAM_APDU [08:33:11]CAPDU: 80 13 00 00 [08:33:11]Write to MH i2c: E2 08 00 DB 46 80 13 00 00 00 00 00 00 9D [08:33:11]Write i2c OK [08:33:11]MH_I2C_Read... [08:33:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:33:11]Read from MH i2c: E2 [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: E2 62 00 [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: E2 62 00 DB 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CB B3 01 00 0E 04 04 00 85 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 EA [08:33:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CB B3 01 00 0E 04 04 00 85 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 [08:33:11]wFMCommunicate OK [08:33:11]SAM_PROTO_GetFieldsCounters done [08:33:11]requested_item shift.num is exist - process it [08:33:11]requested_item shift.opened is exist - process it [08:33:11]req_shift_opened [08:33:11]FM_GetShiftState [08:33:11]SAM_PROTO_GetShiftState [08:33:11]wFMCommunicate request_size=4 [08:33:11]MH_SAM_APDU [08:33:11]CAPDU: 80 13 01 00 [08:33:11]Write to MH i2c: E2 08 00 DC 46 80 13 01 00 00 00 00 00 9F [08:33:11]Write i2c OK [08:33:11]MH_I2C_Read... [08:33:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:11]Read from MH i2c: E2 [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: E2 0E 00 [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: E2 0E 00 DC 46 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 1A [08:33:11]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [08:33:11]wFMCommunicate OK [08:33:11]SAM_PROTO_GetShiftState done [08:33:11]FM_GetShiftState done [08:33:11]req_shift_opened done [08:33:11]requested_item shift.open_date is exist - process it [08:33:11]req_shift_open_date [08:33:11]req_shift_open_date done [08:33:11]produce_requested_data done [08:33:11]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111563,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [08:33:11]process_action_free close_receipt [08:33:11]json_value_free [08:33:11]json_value_free done [08:33:11]process_json_proto returns [08:33:11]Send response to host [08:33:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111563,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [08:33:11]free response buf [08:33:11]execute_script done [08:33:11]execute_script returns [08:33:11]free content buf [08:33:11]Sock 9.Close socket [08:33:11]Sock 9.Thread stoped [08:33:14]OFD Sender: No OFD packet to send [08:33:19]OFD Sender: No OFD packet to send [08:33:24]OFD Sender: No OFD packet to send [08:33:29]OFD Sender: No OFD packet to send [08:33:35]OFD Sender: No OFD packet to send [08:33:40]OFD Sender: No OFD packet to send [08:33:45]OFD Sender: No OFD packet to send [08:33:50]OFD Sender: No OFD packet to send [08:33:55]OFD Sender: No OFD packet to send [08:34:00]OFD Sender: No OFD packet to send [08:34:05]OFD Sender: No OFD packet to send [08:34:10]OFD Sender: No OFD packet to send [08:34:15]OFD Sender: No OFD packet to send [08:34:20]OFD Sender: No OFD packet to send [08:34:25]OFD Sender: No OFD packet to send [08:34:30]OFD Sender: No OFD packet to send [08:34:35]OFD Sender: No OFD packet to send [08:34:40]OFD Sender: No OFD packet to send [08:34:45]OFD Sender: No OFD packet to send [08:34:50]OFD Sender: No OFD packet to send [08:34:55]OFD Sender: No OFD packet to send [08:35:00]OFD Sender: No OFD packet to send [08:35:05]OFD Sender: No OFD packet to send [08:35:10]OFD Sender: No OFD packet to send [08:35:15]OFD Sender: No OFD packet to send [08:35:20]OFD Sender: No OFD packet to send [08:35:25]OFD Sender: No OFD packet to send [08:35:30]OFD Sender: No OFD packet to send [08:35:35]OFD Sender: No OFD packet to send [08:35:40]OFD Sender: No OFD packet to send [08:35:45]OFD Sender: No OFD packet to send [08:35:50]OFD Sender: No OFD packet to send [08:35:55]OFD Sender: No OFD packet to send [08:36:00]OFD Sender: No OFD packet to send [08:36:05]OFD Sender: No OFD packet to send [08:36:10]OFD Sender: No OFD packet to send [08:36:15]OFD Sender: No OFD packet to send [08:36:16]accept exits with 7 [08:36:16]New connection [08:36:16]New thread 3067465060 created [08:36:16]Thread 3067321700 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.59.68:8080 [08:36:16]Content-Length: 678 [08:36:16]Content-Type: application/json [08:36:16] [08:36:16]POST finish read [08:36:16]Found Content-Length = 678 [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)320161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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)320161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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 DD 46 12 [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 DD 46 00 1D EA 73 66 BC EC 60 65 68 [08:36:16]GetLastDocTimeStamp 1718872415 [08:36:16]current date 1718872605 [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 DE 46 80 13 01 00 00 00 00 00 A1 [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 DE 46 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 1C [08:36:16]RAPDU: 09 00 01 0F 87 73 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 1718847247 [08:36:16]opened+sec_in_day 1718933647 [08:36:16]quantity*price = 70052 [08:36:16]sum+1 = 70053 [08:36:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 14 20.06.2024 08:36 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111564 ФПД: 12221200998184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T083645&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111564&fm=12221200998184&tin=02508201610067®Number=0000000000092771&sum=70000 [08:36:17]StoreToDocumentArchive [08:36:17]shift 389 fd 111564 [08:36:17]save to /storage/0389/doc_00111564 [08:36:17]save last doc name /storage/0389/doc_00111564 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 B6E257D0 [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 EB 46 80 09 00 00 00 00 00 00 A3 [08:36:17]Write i2c OK [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: E2 [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 03 00 [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: E2 03 00 EB 46 00 90 00 A5 [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 EC 46 80 0D 01 02 00 00 00 00 AB [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 EC 46 00 90 00 A6 [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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 1D EA 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CC B3 01 00 35 04 06 00 0B [08:36:17]Write to MH i2c: E2 02 01 ED 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 1D EA 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CC B3 01 00 35 04 06 00 0B 00 00 70 [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 ED 46 00 90 00 A7 [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 1D 78 58 1F 28 [08:36:18]Write to MH i2c: E2 0D 00 EE 46 80 0D 02 02 05 00 1D 78 58 1F 28 00 00 EC [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 EE 46 00 90 00 A8 [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 EF 46 80 0D 03 02 00 00 00 00 B0 [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 EF 46 00 84 A8 2B 53 65 DB E6 A2 90 00 23 [08:36:18]RAPDU: 84 A8 2B 53 65 DB E6 A2 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 F0 46 80 11 00 00 00 00 00 00 B0 [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 F0 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 02 [08:36:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:36:18]wFMCommunicate OK [08:36:18]CreateOFDProtocolMessage done [08:36:18]OFDSenderStorePacket 111564 [08:36:18]StoreOFDPacket docnum=111564 [08:36:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 44 E0 07 01 E9 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 1D EA 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CC B3 01 00 35 04 06 00 0B 1D 78 58 1F 28 84 A8 2B 53 65 DB E6 A2 [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/00111564 [08:36:18]NVStorageSaveData ofd_packets/00111564 [08:36:18]File name is /storage/ofd_packets/00111564 [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 F1 46 37 [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 F1 46 00 00 00 00 00 FF 0F 4C [08:36:18]RasterBufferAndPrint [08:36:18]line Счет N : (1)320161 [08:36:18]line ИНН: 02508201610067 [08:36:18]line Контрольно-Кассовый Чек [08:36:18]line ПРОДАЖА [08:36:18]line ТРК (МРК, ГНК) : 11 [08:36:18]line Товар: 2710124130 [08:36:18]line Аи-92-К-5 [08:36:18]line 10.550 * 66.40 [08:36:18]line = 700.52 [08:36:18]line НДС 12% НСП 1% [08:36:18]line > о реализуемом товаре [08:36:18]line ОКРУГЛЕНИЕ: -0.52 [08:36:18]line ИТОГО: 700.00 [08:36:18]line Внесено: 700.00 [08:36:18]line СДАЧА: 0.00 [08:36:18]line НСП 1% : 6.20 [08:36:18]line НДС 12% : 74.39 [08:36:18]line Наличными: 700.00 [08:36:18]line Безнал.: 0.00 [08:36:18]line Место: АЗС № 65 "Партнер Нефть" [08:36:18]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [08:36:18]line СНО: Общий режим [08:36:18]line Чек 14 20.06.2024 08:36 [08:36:18]line Смена: 389 ФФД: 1.0 [08:36:18]line ЗНМ: 0300000198 [08:36:18]line РНМ: 0000000000092771 [08:36:18]line Версия ККМ: 001 [08:36:18]line ФМ: 0000000000875083 [08:36:18]line ФД: 111564 [08:36:18]line ФПД: 12221200998184 [08:36:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T083645&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111564&fm=12221200998184&tin=02508201610067®Number=0000000000092771&sum=70000 [08:36:18]OFD Sender: Processing packet 111564 [packets to send 38, broken 37] [08:36:18]ProducePacketName [08:36:18]name=ofd_packets/00111564 [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]written 0, free lines is 4095 [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 35 30 38 33 0F 01 00 00 44 E0 07 01 E9 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 1D EA 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CC B3 01 00 35 04 06 00 0B 1D 78 58 1F 28 84 A8 2B 53 65 DB E6 A2 [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 35 30 38 33 4F 00 00 00 51 7D 47 00 D3 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CC B3 01 00 F4 03 04 00 6C 81 73 66 B6 04 01 00 00 CC 05 F8 95 3E F9 7D A0 [08:36:18]CommunicateWithHost err = 0 [08:36:18]CheckOFDResponse [08:36:18]1017 (14) - 77093643461234 [08:36:18]1041 (16) - 0000000000875083 [08:36:18]1040 (4) - 111564 [08:36:18]1012 (4) - 20.06.2024 01:10 [08:36:18]1206 (1) - 0 [08:36:18]OFD Sender: Remove packet 111564 [08:36:18]ProducePacketName [08:36:18]name=ofd_packets/00111564 [08:36:18]NVStorageDeleteData [08:36:19]Write to MH i2c: 01 00 00 1C 47 63 [08:36:19]Write i2c OK [08:36:19]MH_I2C_Read... [08:36:19]Read from MH i2c: 01 [08:36:19]MH_I2C_Read... [08:36:19]Read from MH i2c: 01 07 00 [08:36:19]MH_I2C_Read... [08:36:19]Read from MH i2c: 01 07 00 1C 47 00 00 00 00 00 E8 0C 5E [08:36:19]RasterBufferAndPrint [08:36:19]line [08:36:19]line [08:36:19]line [08:36:19]line [08:36:19]line [08:36:19]written 0, free lines is 3313 [08:36:19]MH_Cut [08:36:19]Write to MH i2c: D1 01 00 23 47 01 3C [08:36:19]Write i2c OK [08:36:19]MH_I2C_Read... [08:36:19]Read from MH i2c: D1 [08:36:19]MH_I2C_Read... [08:36:19]Read from MH i2c: D1 01 00 [08:36:19]MH_I2C_Read... [08:36:19]Read from MH i2c: D1 01 00 23 47 00 3B [08:36:19]Write to MH i2c: 01 00 00 24 47 6B [08:36:19]Write i2c OK [08:36:19]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:20]*** 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 24 47 00 00 00 00 00 FF 0F 80 [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 25 47 80 11 00 00 00 00 00 00 E6 [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 25 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 38 [08:36:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 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 26 47 80 13 00 00 00 00 00 00 E9 [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 26 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CC B3 01 00 0E 04 04 00 85 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 3A [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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CC B3 01 00 0E 04 04 00 85 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 [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 27 47 80 13 01 00 00 00 00 00 EB [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 27 47 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 66 [08:36:20]RAPDU: 09 00 01 0F 87 73 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":"0000000000875083","fd.num":111564,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [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":"0000000000875083","fd.num":111564,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [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:59]OFD Sender: No OFD packet to send [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:38]accept exits with 9 [08:42:38]New connection [08:42:38]New thread 3067321700 created [08:42:38]Thread 3067465060 joined [08:42:38]Waiting for new connection... [08:42:38] Sock 9.Parse request [08:42:38]Sock 9.Check first char [08:42:38]Sock 9.First char is OK [08:42:38]request: POST /json_proto HTTP/1.0 [08:42:38]Method: POST [08:42:38]URL: /json_proto [08:42:38]Method is POST - this is cgi request [08:42:38]url: /json_proto [08:42:38]query_string will be loaded in cgi processing [08:42:38]execute_cgi json_proto POST (null) [08:42:38]execute_cgi path=json_proto method=POST [08:42:38]POST find Content-Length [08:42:38]Host: 172.17.59.68:8080 [08:42:38]Content-Length: 679 [08:42:38]Content-Type: application/json [08:42:38] [08:42:38]POST finish read [08:42:38]Found Content-Length = 679 [08:42:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 20.580, "sum" : 1500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:38]execute_script... [08:42:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 20.580, "sum" : 1500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:38]POST & json_proto [08:42:38]process_json_proto [08:42:38]json parsed OK: [08:42:38]protocol is kg_v1.0 [08:42:38]action value=close_receipt [08:42:38]process_action close_receipt [08:42:38]cmd_close_receipt [08:42:38]MH_GetDate [08:42:38]Write to MH i2c: F0 00 00 28 47 5E [08:42:38]Write i2c OK [08:42:38]MH_I2C_Read... [08:42:38]Read from MH i2c: F0 [08:42:38]MH_I2C_Read... [08:42:38]Read from MH i2c: F0 09 00 [08:42:38]MH_I2C_Read... [08:42:38]Read from MH i2c: F0 09 00 28 47 00 9B EB 73 66 BC EC 60 65 33 [08:42:38]GetLastDocTimeStamp 1718872605 [08:42:38]current date 1718872987 [08:42:38]FM_GetShiftState [08:42:38]SAM_PROTO_GetShiftState [08:42:38]wFMCommunicate request_size=4 [08:42:38]MH_SAM_APDU [08:42:38]CAPDU: 80 13 01 00 [08:42:38]Write to MH i2c: E2 08 00 29 47 80 13 01 00 00 00 00 00 ED [08:42:38]Write i2c OK [08:42:38]MH_I2C_Read... [08:42:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:38]Read from MH i2c: E2 [08:42:38]MH_I2C_Read... [08:42:38]Read from MH i2c: E2 0E 00 [08:42:38]MH_I2C_Read... [08:42:38]Read from MH i2c: E2 0E 00 29 47 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 68 [08:42:38]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [08:42:38]wFMCommunicate OK [08:42:38]SAM_PROTO_GetShiftState done [08:42:38]FM_GetShiftState done [08:42:38]opened in 1718847247 [08:42:38]opened+sec_in_day 1718933647 [08:42:38]quantity*price = 150028 [08:42:38]sum+1 = 150029 [08:42:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 15 20.06.2024 08:43 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111565 ФПД: 205317103227738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T084307&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111565&fm=205317103227738&tin=02508201610067®Number=0000000000092771&sum=150000 [08:42:39]StoreToDocumentArchive [08:42:39]shift 389 fd 111565 [08:42:39]save to /storage/0389/doc_00111565 [08:42:39]save last doc name /storage/0389/doc_00111565 to /storage/kkm_last_doc_name [08:42:39]save OK [08:42:39]Clear old archive folders... [08:42:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:42:39]tlvbuf is B6F57CB0 [08:42:39]SAM_PROTO_ClearQueue [08:42:39]wFMCommunicate request_size=4 [08:42:39]MH_SAM_APDU [08:42:39]CAPDU: 80 09 00 00 [08:42:39]Write to MH i2c: E2 08 00 36 47 80 09 00 00 00 00 00 00 EF [08:42:39]Write i2c OK [08:42:39]MH_I2C_Read... [08:42:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:42:39]Read from MH i2c: E2 [08:42:39]MH_I2C_Read... [08:42:39]Read from MH i2c: E2 03 00 [08:42:39]MH_I2C_Read... [08:42:39]Read from MH i2c: E2 03 00 36 47 00 90 00 F1 [08:42:39]RAPDU: 90 00 [08:42:39]wFMCommunicate OK [08:42:39]SAM_PROTO_ClearQueue done [08:42:39]KKMCreateOFDPacket [08:42:39]OFDProtocolAddRootSTLVToBuf [08:42:39]FM_MakeSignedData [08:42:39]FM_MakeSignedData [08:42:39]SAM_PROTO_SignData [08:42:39]wFMCommunicate request_size=4 [08:42:39]MH_SAM_APDU [08:42:39]CAPDU: 80 0D 01 02 [08:42:39]Write to MH i2c: E2 08 00 37 47 80 0D 01 02 00 00 00 00 F7 [08:42:39]Write i2c OK [08:42:39]MH_I2C_Read... [08:42:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:42:39]Read from MH i2c: E2 [08:42:39]MH_I2C_Read... [08:42:39]Read from MH i2c: E2 03 00 [08:42:39]MH_I2C_Read... [08:42:39]Read from MH i2c: E2 03 00 37 47 00 90 00 F2 [08:42:39]RAPDU: 90 00 [08:42:39]wFMCommunicate OK [08:42:39]wFMCommunicate request_size=255 [08:42:39]MH_SAM_APDU [08:42:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 9B EB 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CD B3 01 00 35 04 06 00 BA BC 1D 01 [08:42:39]Write to MH i2c: E2 02 01 38 47 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 9B EB 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CD B3 01 00 35 04 06 00 BA BC 1D 01 00 00 24 [08:42:39]Write i2c OK [08:42:39]MH_I2C_Read... [08:42:39]OFD Sender: No OFD packet to send [08:42:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:40]Read from MH i2c: E2 [08:42:40]MH_I2C_Read... [08:42:40]Read from MH i2c: E2 03 00 [08:42:40]MH_I2C_Read... [08:42:40]Read from MH i2c: E2 03 00 38 47 00 90 00 F3 [08:42:40]RAPDU: 90 00 [08:42:40]wFMCommunicate OK [08:42:40]wFMCommunicate request_size=7 [08:42:40]MH_SAM_APDU [08:42:40]CAPDU: 80 0D 02 02 02 13 5A [08:42:40]Write to MH i2c: E2 0A 00 39 47 80 0D 02 02 02 00 13 5A 00 00 6B [08:42:40]Write i2c OK [08:42:40]MH_I2C_Read... [08:42:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:40]Read from MH i2c: E2 [08:42:40]MH_I2C_Read... [08:42:40]Read from MH i2c: E2 03 00 [08:42:40]MH_I2C_Read... [08:42:40]Read from MH i2c: E2 03 00 39 47 00 90 00 F4 [08:42:40]RAPDU: 90 00 [08:42:40]wFMCommunicate OK [08:42:40]wFMCommunicate request_size=4 [08:42:40]MH_SAM_APDU [08:42:40]CAPDU: 80 0D 03 02 [08:42:40]Write to MH i2c: E2 08 00 3A 47 80 0D 03 02 00 00 00 00 FC [08:42:40]Write i2c OK [08:42:40]MH_I2C_Read... [08:42:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:42:40]Read from MH i2c: E2 [08:42:40]MH_I2C_Read... [08:42:40]Read from MH i2c: E2 0B 00 [08:42:40]MH_I2C_Read... [08:42:40]Read from MH i2c: E2 0B 00 3A 47 00 C0 5B FF E4 32 16 8F 7A 90 00 4C [08:42:40]RAPDU: C0 5B FF E4 32 16 8F 7A 90 00 [08:42:40]wFMCommunicate OK [08:42:40]SAM_PROTO_SignData done [08:42:40]FM_MakeSignedData done [08:42:40]CreateOFDProtocolMessage [08:42:40]wFMCommunicate request_size=4 [08:42:40]MH_SAM_APDU [08:42:40]CAPDU: 80 11 00 00 [08:42:40]Write to MH i2c: E2 08 00 3B 47 80 11 00 00 00 00 00 00 FC [08:42:40]Write i2c OK [08:42:40]MH_I2C_Read... [08:42:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:40]Read from MH i2c: E2 [08:42:40]MH_I2C_Read... [08:42:40]Read from MH i2c: E2 17 00 [08:42:40]MH_I2C_Read... [08:42:40]Read from MH i2c: E2 17 00 3B 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4E [08:42:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:42:40]wFMCommunicate OK [08:42:40]CreateOFDProtocolMessage done [08:42:40]OFDSenderStorePacket 111565 [08:42:40]StoreOFDPacket docnum=111565 [08:42:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 D5 18 04 01 35 62 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 9B EB 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CD B3 01 00 35 04 06 00 BA BC 1D 01 13 5A C0 5B FF E4 32 16 8F 7A [08:42:40]CheckFolder [08:42:40]dirname=/storage/ofd_packets [08:42:40]CheckFolder done [08:42:40]ProducePacketName [08:42:40]name=ofd_packets/00111565 [08:42:40]NVStorageSaveData ofd_packets/00111565 [08:42:40]File name is /storage/ofd_packets/00111565 [08:42:40]Write 298 bytes [08:42:40]NVStorageSaveData done [08:42:40]OFDSenderStorePacket done [08:42:40]KKMCreateOFDPacket done [08:42:40]NVStorageSaveData kkm_last_timestamp [08:42:40]File name is /storage/kkm_last_timestamp [08:42:40]Write 4 bytes [08:42:40]NVStorageSaveData done [08:42:40]ExternCall_PrintAddStr [08:42:40]wPrintStart [08:42:40]Write to MH i2c: 01 00 00 3C 47 83 [08:42:40]Write i2c OK [08:42:40]MH_I2C_Read... [08:42:40]Read from MH i2c: 01 [08:42:40]MH_I2C_Read... [08:42:40]Read from MH i2c: 01 07 00 [08:42:40]MH_I2C_Read... [08:42:40]Read from MH i2c: 01 07 00 3C 47 00 00 00 00 00 FF 0F 98 [08:42:40]RasterBufferAndPrint [08:42:40]line Счет N : (1)320162 [08:42:40]line ИНН: 02508201610067 [08:42:40]line Контрольно-Кассовый Чек [08:42:40]line ПРОДАЖА [08:42:40]line ТРК (МРК, ГНК) : 22 [08:42:40]line Товар: 2710194210 [08:42:40]line ДТ-К-5 [08:42:40]line 20.580 * 72.90 [08:42:40]line = 1500.28 [08:42:40]line НДС 12% НСП 1% [08:42:40]line > о реализуемом товаре [08:42:40]line ОКРУГЛЕНИЕ: -0.28 [08:42:40]line ИТОГО: 1500.00 [08:42:40]line Внесено: 1500.00 [08:42:40]line СДАЧА: 0.00 [08:42:40]line НСП 1% : 13.28 [08:42:40]line НДС 12% : 159.32 [08:42:40]line Наличными: 1500.00 [08:42:40]line Безнал.: 0.00 [08:42:40]line Место: АЗС № 65 "Партнер Нефть" [08:42:40]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [08:42:40]line СНО: Общий режим [08:42:40]line Чек 15 20.06.2024 08:43 [08:42:40]line Смена: 389 ФФД: 1.0 [08:42:40]line ЗНМ: 0300000198 [08:42:40]line РНМ: 0000000000092771 [08:42:40]line Версия ККМ: 001 [08:42:40]line ФМ: 0000000000875083 [08:42:40]line ФД: 111565 [08:42:40]line ФПД: 205317103227738 [08:42:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T084307&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111565&fm=205317103227738&tin=02508201610067®Number=0000000000092771&sum=150000 [08:42:40]OFD Sender: Processing packet 111565 [packets to send 38, broken 37] [08:42:40]ProducePacketName [08:42:40]name=ofd_packets/00111565 [08:42:40]OFD Sender: To server: pG, [08:42:40]CommunicateWithHost lk.salyk.kg:30040 [08:42:40]ConnectInit lk.salyk.kg [08:42:40]written 0, free lines is 4095 [08:42:40]Connected sock=10 [08:42:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 D5 18 04 01 35 62 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 9B EB 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CD B3 01 00 35 04 06 00 BA BC 1D 01 13 5A C0 5B FF E4 32 16 8F 7A [08:42:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 5E DE 47 00 59 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CD B3 01 00 F4 03 04 00 EA 82 73 66 B6 04 01 00 00 FD E2 CA 34 54 41 2D 9D [08:42:40]CommunicateWithHost err = 0 [08:42:40]CheckOFDResponse [08:42:40]1017 (14) - 77093643461234 [08:42:40]1041 (16) - 0000000000875083 [08:42:40]1040 (4) - 111565 [08:42:40]1012 (4) - 20.06.2024 01:16 [08:42:40]1206 (1) - 0 [08:42:40]OFD Sender: Remove packet 111565 [08:42:40]ProducePacketName [08:42:40]name=ofd_packets/00111565 [08:42:40]NVStorageDeleteData [08:42:40]Write to MH i2c: 01 00 00 67 47 AE [08:42:40]Write i2c OK [08:42:40]MH_I2C_Read... [08:42:40]Read from MH i2c: 01 [08:42:40]MH_I2C_Read... [08:42:40]Read from MH i2c: 01 07 00 [08:42:40]MH_I2C_Read... [08:42:40]Read from MH i2c: 01 07 00 67 47 00 00 00 00 00 CD 0C 8E [08:42:40]RasterBufferAndPrint [08:42:40]line [08:42:40]line [08:42:40]line [08:42:40]line [08:42:40]line [08:42:40]written 0, free lines is 3283 [08:42:40]MH_Cut [08:42:40]Write to MH i2c: D1 01 00 6E 47 01 87 [08:42:40]Write i2c OK [08:42:40]MH_I2C_Read... [08:42:40]Read from MH i2c: D1 [08:42:40]MH_I2C_Read... [08:42:40]Read from MH i2c: D1 01 00 [08:42:40]MH_I2C_Read... [08:42:40]Read from MH i2c: D1 01 00 6E 47 00 86 [08:42:40]Write to MH i2c: 01 00 00 6F 47 B6 [08:42:40]Write i2c OK [08:42:40]MH_I2C_Read... [08:42:41]OFD Sender: No OFD packet to send [08:42:41]*** Cut start [08:42:41]*** Partial cut [08:42:41]*** CUTSNS_PIN = 1 [08:42:41]*** CUTSNS_PIN = 0 [08:42:41]*** Brake cut motor [08:42:42]Read from MH i2c: 01 [08:42:42]MH_I2C_Read... [08:42:42]*** Stop cut motor [08:42:42]*** Cut end [08:42:42]Read from MH i2c: 01 07 00 [08:42:42]MH_I2C_Read... [08:42:42]Read from MH i2c: 01 07 00 6F 47 00 00 00 00 00 FF 0F CB [08:42:42]process_action close_receipt done [08:42:42]requested_data is exist [08:42:42]produce_requested_data [08:42:42]requested_item fm.sn is exist - process it [08:42:42]wFMCommunicate request_size=4 [08:42:42]MH_SAM_APDU [08:42:42]CAPDU: 80 11 00 00 [08:42:42]Write to MH i2c: E2 08 00 70 47 80 11 00 00 00 00 00 00 31 [08:42:42]Write i2c OK [08:42:42]MH_I2C_Read... [08:42:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:42]Read from MH i2c: E2 [08:42:42]MH_I2C_Read... [08:42:42]Read from MH i2c: E2 17 00 [08:42:42]MH_I2C_Read... [08:42:42]Read from MH i2c: E2 17 00 70 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 83 [08:42:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:42:42]wFMCommunicate OK [08:42:42]requested_item fd.num is exist - process it [08:42:42]SAM_PROTO_GetFieldsCounters [08:42:42]wFMCommunicate request_size=4 [08:42:42]MH_SAM_APDU [08:42:42]CAPDU: 80 13 00 00 [08:42:42]Write to MH i2c: E2 08 00 71 47 80 13 00 00 00 00 00 00 34 [08:42:42]Write i2c OK [08:42:42]MH_I2C_Read... [08:42:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:42:42]Read from MH i2c: E2 [08:42:42]MH_I2C_Read... [08:42:42]Read from MH i2c: E2 62 00 [08:42:42]MH_I2C_Read... [08:42:42]Read from MH i2c: E2 62 00 71 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CD B3 01 00 0E 04 04 00 85 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 89 [08:42:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CD B3 01 00 0E 04 04 00 85 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 [08:42:42]wFMCommunicate OK [08:42:42]SAM_PROTO_GetFieldsCounters done [08:42:42]requested_item shift.num is exist - process it [08:42:42]requested_item shift.opened is exist - process it [08:42:42]req_shift_opened [08:42:42]FM_GetShiftState [08:42:42]SAM_PROTO_GetShiftState [08:42:42]wFMCommunicate request_size=4 [08:42:42]MH_SAM_APDU [08:42:42]CAPDU: 80 13 01 00 [08:42:42]Write to MH i2c: E2 08 00 72 47 80 13 01 00 00 00 00 00 36 [08:42:42]Write i2c OK [08:42:42]MH_I2C_Read... [08:42:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:42]Read from MH i2c: E2 [08:42:42]MH_I2C_Read... [08:42:42]Read from MH i2c: E2 0E 00 [08:42:42]MH_I2C_Read... [08:42:42]Read from MH i2c: E2 0E 00 72 47 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 B1 [08:42:42]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [08:42:42]wFMCommunicate OK [08:42:42]SAM_PROTO_GetShiftState done [08:42:42]FM_GetShiftState done [08:42:42]req_shift_opened done [08:42:42]requested_item shift.open_date is exist - process it [08:42:42]req_shift_open_date [08:42:42]req_shift_open_date done [08:42:42]produce_requested_data done [08:42:42]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111565,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [08:42:42]process_action_free close_receipt [08:42:42]json_value_free [08:42:42]json_value_free done [08:42:42]process_json_proto returns [08:42:42]Send response to host [08:42:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111565,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [08:42:42]free response buf [08:42:42]execute_script done [08:42:42]execute_script returns [08:42:42]free content buf [08:42:42]Sock 9.Close socket [08:42:42]Sock 9.Thread stoped [08:42:46]OFD Sender: No OFD packet to send [08:42:51]OFD Sender: No OFD packet to send [08:42:56]OFD Sender: No OFD packet to send [08:43:01]OFD Sender: No OFD packet to send [08:43:06]OFD Sender: No OFD packet to send [08:43:11]OFD Sender: No OFD packet to send [08:43:16]OFD Sender: No OFD packet to send [08:43:21]OFD Sender: No OFD packet to send [08:43:26]OFD Sender: No OFD packet to send [08:43:31]OFD Sender: No OFD packet to send [08:43:36]OFD Sender: No OFD packet to send [08:43:41]OFD Sender: No OFD packet to send [08:43:46]OFD Sender: No OFD packet to send [08:43:51]OFD Sender: No OFD packet to send [08:43:56]OFD Sender: No OFD packet to send [08:44:01]OFD Sender: No OFD packet to send [08:44:06]OFD Sender: No OFD packet to send [08:44:11]OFD Sender: No OFD packet to send [08:44:16]OFD Sender: No OFD packet to send [08:44:21]OFD Sender: No OFD packet to send [08:44:26]OFD Sender: No OFD packet to send [08:44:31]OFD Sender: No OFD packet to send [08:44:36]OFD Sender: No OFD packet to send [08:44:41]OFD Sender: No OFD packet to send [08:44:46]OFD Sender: No OFD packet to send [08:44:51]OFD Sender: No OFD packet to send [08:44:56]OFD Sender: No OFD packet to send [08:45:01]OFD Sender: No OFD packet to send [08:45:06]OFD Sender: No OFD packet to send [08:45:11]OFD Sender: No OFD packet to send [08:45:16]OFD Sender: No OFD packet to send [08:45:21]OFD Sender: No OFD packet to send [08:45:26]OFD Sender: No OFD packet to send [08:45:31]OFD Sender: No OFD packet to send [08:45:36]OFD Sender: No OFD packet to send [08:45:41]OFD Sender: No OFD packet to send [08:45:46]OFD Sender: No OFD packet to send [08:45:51]OFD Sender: No OFD packet to send [08:45:56]OFD Sender: No OFD packet to send [08:46:01]OFD Sender: No OFD packet to send [08:46:06]OFD Sender: No OFD packet to send [08:46:11]OFD Sender: No OFD packet to send [08:46:16]OFD Sender: No OFD packet to send [08:46:21]OFD Sender: No OFD packet to send [08:46:26]OFD Sender: No OFD packet to send [08:46:31]OFD Sender: No OFD packet to send [08:46:36]OFD Sender: No OFD packet to send [08:46:41]OFD Sender: No OFD packet to send [08:46:46]OFD Sender: No OFD packet to send [08:46:51]OFD Sender: No OFD packet to send [08:46:56]OFD Sender: No OFD packet to send [08:47:01]OFD Sender: No OFD packet to send [08:47:06]OFD Sender: No OFD packet to send [08:47:11]OFD Sender: No OFD packet to send [08:47:16]OFD Sender: No OFD packet to send [08:47:21]OFD Sender: No OFD packet to send [08:47:26]OFD Sender: No OFD packet to send [08:47:31]OFD Sender: No OFD packet to send [08:47:36]OFD Sender: No OFD packet to send [08:47:41]OFD Sender: No OFD packet to send [08:47:46]OFD Sender: No OFD packet to send [08:47:51]OFD Sender: No OFD packet to send [08:47:56]OFD Sender: No OFD packet to send [08:48:01]OFD Sender: No OFD packet to send [08:48:06]OFD Sender: No OFD packet to send [08:48:11]OFD Sender: No OFD packet to send [08:48:16]OFD Sender: No OFD packet to send [08:48:21]OFD Sender: No OFD packet to send [08:48:26]OFD Sender: No OFD packet to send [08:48:31]OFD Sender: No OFD packet to send [08:48:36]OFD Sender: No OFD packet to send [08:48:41]OFD Sender: No OFD packet to send [08:48:46]OFD Sender: No OFD packet to send [08:48:51]OFD Sender: No OFD packet to send [08:48:56]OFD Sender: No OFD packet to send [08:49:01]OFD Sender: No OFD packet to send [08:49:06]OFD Sender: No OFD packet to send [08:49:11]OFD Sender: No OFD packet to send [08:49:16]OFD Sender: No OFD packet to send [08:49:21]OFD Sender: No OFD packet to send [08:49:26]OFD Sender: No OFD packet to send [08:49:31]OFD Sender: No OFD packet to send [08:49:36]OFD Sender: No OFD packet to send [08:49:41]OFD Sender: No OFD packet to send [08:49:46]OFD Sender: No OFD packet to send [08:49:51]OFD Sender: No OFD packet to send [08:49:56]OFD Sender: No OFD packet to send [08:50:01]OFD Sender: No OFD packet to send [08:50:06]OFD Sender: No OFD packet to send [08:50:11]OFD Sender: No OFD packet to send [08:50:16]OFD Sender: No OFD packet to send [08:50:21]OFD Sender: No OFD packet to send [08:50:26]OFD Sender: No OFD packet to send [08:50:31]OFD Sender: No OFD packet to send [08:50:36]OFD Sender: No OFD packet to send [08:50:41]OFD Sender: No OFD packet to send [08:50:46]OFD Sender: No OFD packet to send [08:50:51]OFD Sender: No OFD packet to send [08:50:56]OFD Sender: No OFD packet to send [08:51:01]OFD Sender: No OFD packet to send [08:51:06]OFD Sender: No OFD packet to send [08:51:11]OFD Sender: No OFD packet to send [08:51:16]OFD Sender: No OFD packet to send [08:51:21]OFD Sender: No OFD packet to send [08:51:26]OFD Sender: No OFD packet to send [08:51:31]OFD Sender: No OFD packet to send [08:51:36]OFD Sender: No OFD packet to send [08:51:41]OFD Sender: No OFD packet to send [08:51:46]OFD Sender: No OFD packet to send [08:51:51]OFD Sender: No OFD packet to send [08:51:56]OFD Sender: No OFD packet to send [08:52:01]OFD Sender: No OFD packet to send [08:52:06]OFD Sender: No OFD packet to send [08:52:11]OFD Sender: No OFD packet to send [08:52:16]OFD Sender: No OFD packet to send [08:52:21]OFD Sender: No OFD packet to send [08:52:26]OFD Sender: No OFD packet to send [08:52:31]OFD Sender: No OFD packet to send [08:52:36]OFD Sender: No OFD packet to send [08:52:41]OFD Sender: No OFD packet to send [08:52:46]OFD Sender: No OFD packet to send [08:52:50]accept exits with 7 [08:52:50]New connection [08:52:50]New thread 3067465060 created [08:52:50]Thread 3067321700 joined [08:52:50]Waiting for new connection... [08:52:50] Sock 7.Parse request [08:52:50]Sock 7.Check first char [08:52:50]Sock 7.First char is OK [08:52:50]request: POST /json_proto HTTP/1.0 [08:52:50]Method: POST [08:52:50]URL: /json_proto [08:52:50]Method is POST - this is cgi request [08:52:50]url: /json_proto [08:52:50]query_string will be loaded in cgi processing [08:52:50]execute_cgi json_proto POST (null) [08:52:50]execute_cgi path=json_proto method=POST [08:52:50]POST find Content-Length [08:52:50]Host: 172.17.59.68:8080 [08:52:50]Content-Length: 679 [08:52:50]Content-Type: application/json [08:52:50] [08:52:50]POST finish read [08:52:50]Found Content-Length = 679 [08:52:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 50.070, "sum" : 3650.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3650.00, "total" : 3650.00, "payments": [ { "type": 0, "sum" : 3650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:50]execute_script... [08:52: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)320163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 50.070, "sum" : 3650.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3650.00, "total" : 3650.00, "payments": [ { "type": 0, "sum" : 3650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:50]POST & json_proto [08:52:50]process_json_proto [08:52:50]json parsed OK: [08:52:50]protocol is kg_v1.0 [08:52:50]action value=close_receipt [08:52:50]process_action close_receipt [08:52:50]cmd_close_receipt [08:52:50]MH_GetDate [08:52:50]Write to MH i2c: F0 00 00 73 47 A9 [08:52:50]Write i2c OK [08:52:50]MH_I2C_Read... [08:52:50]Read from MH i2c: F0 [08:52:50]MH_I2C_Read... [08:52:50]Read from MH i2c: F0 09 00 [08:52:50]MH_I2C_Read... [08:52:50]Read from MH i2c: F0 09 00 73 47 00 FF ED 73 66 BC EC 60 65 E4 [08:52:50]GetLastDocTimeStamp 1718872987 [08:52:50]current date 1718873599 [08:52:50]FM_GetShiftState [08:52:50]SAM_PROTO_GetShiftState [08:52:50]wFMCommunicate request_size=4 [08:52:50]MH_SAM_APDU [08:52:50]CAPDU: 80 13 01 00 [08:52:50]Write to MH i2c: E2 08 00 74 47 80 13 01 00 00 00 00 00 38 [08:52:50]Write i2c OK [08:52:50]MH_I2C_Read... [08:52:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:51]Read from MH i2c: E2 [08:52:51]MH_I2C_Read... [08:52:51]Read from MH i2c: E2 0E 00 [08:52:51]MH_I2C_Read... [08:52:51]Read from MH i2c: E2 0E 00 74 47 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 B3 [08:52:51]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [08:52:51]wFMCommunicate OK [08:52:51]SAM_PROTO_GetShiftState done [08:52:51]FM_GetShiftState done [08:52:51]opened in 1718847247 [08:52:51]opened+sec_in_day 1718933647 [08:52:51]quantity*price = 365010 [08:52:51]sum+1 = 365011 [08:52:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 3650.00 Внесено: 3650.00 СДАЧА: 0.00 НСП 1% : 32.30 НДС 12% : 387.62 Наличными: 3650.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 16 20.06.2024 08:53 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111566 ФПД: 19856064406020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T085319&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111566&fm=19856064406020&tin=02508201610067®Number=0000000000092771&sum=365000 [08:52:52]StoreToDocumentArchive [08:52:52]shift 389 fd 111566 [08:52:52]save to /storage/0389/doc_00111566 [08:52:52]save last doc name /storage/0389/doc_00111566 to /storage/kkm_last_doc_name [08:52:52]save OK [08:52:52]Clear old archive folders... [08:52:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:52:52]tlvbuf is 00FF1690 [08:52:52]SAM_PROTO_ClearQueue [08:52:52]wFMCommunicate request_size=4 [08:52:52]MH_SAM_APDU [08:52:52]CAPDU: 80 09 00 00 [08:52:52]Write to MH i2c: E2 08 00 81 47 80 09 00 00 00 00 00 00 3A [08:52:52]Write i2c OK [08:52:52]MH_I2C_Read... [08:52:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:52:52]Read from MH i2c: E2 [08:52:52]MH_I2C_Read... [08:52:52]Read from MH i2c: E2 03 00 [08:52:52]MH_I2C_Read... [08:52:52]Read from MH i2c: E2 03 00 81 47 00 90 00 3C [08:52:52]RAPDU: 90 00 [08:52:52]wFMCommunicate OK [08:52:52]SAM_PROTO_ClearQueue done [08:52:52]KKMCreateOFDPacket [08:52:52]OFDProtocolAddRootSTLVToBuf [08:52:52]FM_MakeSignedData [08:52:52]FM_MakeSignedData [08:52:52]SAM_PROTO_SignData [08:52:52]wFMCommunicate request_size=4 [08:52:52]MH_SAM_APDU [08:52:52]CAPDU: 80 0D 01 02 [08:52:52]Write to MH i2c: E2 08 00 82 47 80 0D 01 02 00 00 00 00 42 [08:52:52]Write i2c OK [08:52:52]MH_I2C_Read... [08:52:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:52:52]Read from MH i2c: E2 [08:52:52]MH_I2C_Read... [08:52:52]Read from MH i2c: E2 03 00 [08:52:52]MH_I2C_Read... [08:52:52]Read from MH i2c: E2 03 00 82 47 00 90 00 3D [08:52:52]RAPDU: 90 00 [08:52:52]wFMCommunicate OK [08:52:52]wFMCommunicate request_size=255 [08:52:52]MH_SAM_APDU [08:52:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 C3 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 D2 91 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 91 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 97 00 00 00 00 07 04 06 00 C8 91 05 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 FF ED 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CE B3 01 00 35 04 06 00 12 0F 19 AA [08:52:52]Write to MH i2c: E2 02 01 83 47 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 C3 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 D2 91 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 91 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 97 00 00 00 00 07 04 06 00 C8 91 05 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 FF ED 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CE B3 01 00 35 04 06 00 12 0F 19 AA 00 00 1E [08:52:52]Write i2c OK [08:52:52]MH_I2C_Read... [08:52:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:52]Read from MH i2c: E2 [08:52:52]MH_I2C_Read... [08:52:52]Read from MH i2c: E2 03 00 [08:52:52]MH_I2C_Read... [08:52:52]Read from MH i2c: E2 03 00 83 47 00 90 00 3E [08:52:52]RAPDU: 90 00 [08:52:52]wFMCommunicate OK [08:52:52]wFMCommunicate request_size=7 [08:52:52]MH_SAM_APDU [08:52:52]CAPDU: 80 0D 02 02 02 62 04 [08:52:52]Write to MH i2c: E2 0A 00 84 47 80 0D 02 02 02 00 62 04 00 00 AF [08:52:52]Write i2c OK [08:52:52]MH_I2C_Read... [08:52:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:52]Read from MH i2c: E2 [08:52:52]MH_I2C_Read... [08:52:52]Read from MH i2c: E2 03 00 [08:52:52]MH_I2C_Read... [08:52:52]Read from MH i2c: E2 03 00 84 47 00 90 00 3F [08:52:52]RAPDU: 90 00 [08:52:52]wFMCommunicate OK [08:52:52]wFMCommunicate request_size=4 [08:52:52]MH_SAM_APDU [08:52:52]CAPDU: 80 0D 03 02 [08:52:52]Write to MH i2c: E2 08 00 85 47 80 0D 03 02 00 00 00 00 47 [08:52:52]Write i2c OK [08:52:52]MH_I2C_Read... [08:52:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:52:52]Read from MH i2c: E2 [08:52:52]MH_I2C_Read... [08:52:52]Read from MH i2c: E2 0B 00 [08:52:52]MH_I2C_Read... [08:52:52]Read from MH i2c: E2 0B 00 85 47 00 55 02 F0 B4 E4 26 50 47 90 00 E4 [08:52:52]RAPDU: 55 02 F0 B4 E4 26 50 47 90 00 [08:52:52]wFMCommunicate OK [08:52:52]SAM_PROTO_SignData done [08:52:52]FM_MakeSignedData done [08:52:52]CreateOFDProtocolMessage [08:52:52]wFMCommunicate request_size=4 [08:52:52]MH_SAM_APDU [08:52:52]CAPDU: 80 11 00 00 [08:52:52]Write to MH i2c: E2 08 00 86 47 80 11 00 00 00 00 00 00 47 [08:52:52]Write i2c OK [08:52:52]MH_I2C_Read... [08:52:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:52]Read from MH i2c: E2 [08:52:52]MH_I2C_Read... [08:52:52]Read from MH i2c: E2 17 00 [08:52:52]MH_I2C_Read... [08:52:52]Read from MH i2c: E2 17 00 86 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 99 [08:52:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:52:52]wFMCommunicate OK [08:52:52]CreateOFDProtocolMessage done [08:52:52]OFDSenderStorePacket 111566 [08:52:52]StoreOFDPacket docnum=111566 [08:52:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 20 27 04 01 C6 3C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 C3 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 D2 91 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 91 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 97 00 00 00 00 07 04 06 00 C8 91 05 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 FF ED 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CE B3 01 00 35 04 06 00 12 0F 19 AA 62 04 55 02 F0 B4 E4 26 50 47 [08:52:52]CheckFolder [08:52:52]dirname=/storage/ofd_packets [08:52:52]CheckFolder done [08:52:52]ProducePacketName [08:52:52]name=ofd_packets/00111566 [08:52:52]NVStorageSaveData ofd_packets/00111566 [08:52:52]File name is /storage/ofd_packets/00111566 [08:52:52]Write 298 bytes [08:52:52]NVStorageSaveData done [08:52:52]OFDSenderStorePacket done [08:52:52]KKMCreateOFDPacket done [08:52:52]NVStorageSaveData kkm_last_timestamp [08:52:52]File name is /storage/kkm_last_timestamp [08:52:52]Write 4 bytes [08:52:52]NVStorageSaveData done [08:52:52]ExternCall_PrintAddStr [08:52:52]wPrintStart [08:52:52]Write to MH i2c: 01 00 00 87 47 CE [08:52:52]Write i2c OK [08:52:52]MH_I2C_Read... [08:52:52]Read from MH i2c: 01 [08:52:52]MH_I2C_Read... [08:52:52]Read from MH i2c: 01 07 00 [08:52:52]MH_I2C_Read... [08:52:52]Read from MH i2c: 01 07 00 87 47 00 00 00 00 00 FF 0F E3 [08:52:52]RasterBufferAndPrint [08:52:52]line Счет N : (1)320163 [08:52:52]line ИНН: 02508201610067 [08:52:52]line Контрольно-Кассовый Чек [08:52:52]line ПРОДАЖА [08:52:52]line ТРК (МРК, ГНК) : 22 [08:52:52]line Товар: 2710194210 [08:52:52]line ДТ-К-5 [08:52:52]line 50.070 * 72.90 [08:52:52]line = 3650.10 [08:52:52]line НДС 12% НСП 1% [08:52:52]line > о реализуемом товаре [08:52:52]line ОКРУГЛЕНИЕ: -0.10 [08:52:52]line ИТОГО: 3650.00 [08:52:52]line Внесено: 3650.00 [08:52:52]line СДАЧА: 0.00 [08:52:52]line НСП 1% : 32.30 [08:52:52]line НДС 12% : 387.62 [08:52:52]line Наличными: 3650.00 [08:52:52]line Безнал.: 0.00 [08:52:52]line Место: АЗС № 65 "Партнер Нефть" [08:52:52]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [08:52:52]line СНО: Общий режим [08:52:52]line Чек 16 20.06.2024 08:53 [08:52:52]line Смена: 389 ФФД: 1.0 [08:52:52]line ЗНМ: 0300000198 [08:52:52]line РНМ: 0000000000092771 [08:52:52]line Версия ККМ: 001 [08:52:52]line ФМ: 0000000000875083 [08:52:52]line ФД: 111566 [08:52:52]line ФПД: 19856064406020 [08:52:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T085319&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111566&fm=19856064406020&tin=02508201610067®Number=0000000000092771&sum=365000 [08:52:52]OFD Sender: Processing packet 111566 [packets to send 38, broken 37] [08:52:52]ProducePacketName [08:52:52]name=ofd_packets/00111566 [08:52:52]OFD Sender: To server: pG, [08:52:52]CommunicateWithHost lk.salyk.kg:30040 [08:52:52]ConnectInit lk.salyk.kg [08:52:52]written 0, free lines is 4095 [08:52:53]Connected sock=10 [08:52:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 20 27 04 01 C6 3C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 C3 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 D2 91 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 91 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 97 00 00 00 00 07 04 06 00 C8 91 05 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 FF ED 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CE B3 01 00 35 04 06 00 12 0F 19 AA 62 04 55 02 F0 B4 E4 26 50 47 [08:52:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 9F 98 47 00 7F 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CE B3 01 00 F4 03 04 00 4F 85 73 66 B6 04 01 00 00 9D 6B 6A 22 07 F3 0A 20 [08:52:53]CommunicateWithHost err = 0 [08:52:53]CheckOFDResponse [08:52:53]1017 (14) - 77093643461234 [08:52:53]1041 (16) - 0000000000875083 [08:52:53]1040 (4) - 111566 [08:52:53]1012 (4) - 20.06.2024 01:26 [08:52:53]1206 (1) - 0 [08:52:53]OFD Sender: Remove packet 111566 [08:52:53]ProducePacketName [08:52:53]name=ofd_packets/00111566 [08:52:53]NVStorageDeleteData [08:52:53]Write to MH i2c: 01 00 00 B2 47 F9 [08:52:53]Write i2c OK [08:52:53]MH_I2C_Read... [08:52:53]Read from MH i2c: 01 [08:52:53]MH_I2C_Read... [08:52:53]Read from MH i2c: 01 07 00 [08:52:53]MH_I2C_Read... [08:52:53]Read from MH i2c: 01 07 00 B2 47 00 00 00 00 00 D4 0C E0 [08:52:53]RasterBufferAndPrint [08:52:53]line [08:52:53]line [08:52:53]line [08:52:53]line [08:52:53]line [08:52:53]written 0, free lines is 3292 [08:52:53]MH_Cut [08:52:53]Write to MH i2c: D1 01 00 B9 47 01 D2 [08:52:53]Write i2c OK [08:52:53]MH_I2C_Read... [08:52:53]Read from MH i2c: D1 [08:52:53]MH_I2C_Read... [08:52:53]Read from MH i2c: D1 01 00 [08:52:53]MH_I2C_Read... [08:52:53]Read from MH i2c: D1 01 00 B9 47 00 D1 [08:52:53]Write to MH i2c: 01 00 00 BA 47 01 [08:52:53]Write i2c OK [08:52:53]MH_I2C_Read... [08:52:53]OFD Sender: No OFD packet to send [08:52:54]*** Cut start [08:52:54]*** Partial cut [08:52:54]*** CUTSNS_PIN = 1 [08:52:54]*** CUTSNS_PIN = 0 [08:52:54]*** Brake cut motor [08:52:54]Read from MH i2c: 01 [08:52:54]MH_I2C_Read... [08:52:54]*** Stop cut motor [08:52:54]*** Cut end [08:52:54]Read from MH i2c: 01 07 00 [08:52:54]MH_I2C_Read... [08:52:54]Read from MH i2c: 01 07 00 BA 47 00 00 00 00 00 FF 0F 16 [08:52:54]process_action close_receipt done [08:52:54]requested_data is exist [08:52:54]produce_requested_data [08:52:54]requested_item fm.sn is exist - process it [08:52:54]wFMCommunicate request_size=4 [08:52:54]MH_SAM_APDU [08:52:54]CAPDU: 80 11 00 00 [08:52:54]Write to MH i2c: E2 08 00 BB 47 80 11 00 00 00 00 00 00 7C [08:52:54]Write i2c OK [08:52:54]MH_I2C_Read... [08:52:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:54]Read from MH i2c: E2 [08:52:54]MH_I2C_Read... [08:52:54]Read from MH i2c: E2 17 00 [08:52:54]MH_I2C_Read... [08:52:54]Read from MH i2c: E2 17 00 BB 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CE [08:52:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:52:54]wFMCommunicate OK [08:52:54]requested_item fd.num is exist - process it [08:52:54]SAM_PROTO_GetFieldsCounters [08:52:54]wFMCommunicate request_size=4 [08:52:54]MH_SAM_APDU [08:52:54]CAPDU: 80 13 00 00 [08:52:54]Write to MH i2c: E2 08 00 BC 47 80 13 00 00 00 00 00 00 7F [08:52:54]Write i2c OK [08:52:54]MH_I2C_Read... [08:52:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:54]Read from MH i2c: E2 [08:52:54]MH_I2C_Read... [08:52:54]Read from MH i2c: E2 62 00 [08:52:54]MH_I2C_Read... [08:52:54]Read from MH i2c: E2 62 00 BC 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CE B3 01 00 0E 04 04 00 85 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 D8 [08:52:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CE B3 01 00 0E 04 04 00 85 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:52:54]wFMCommunicate OK [08:52:54]SAM_PROTO_GetFieldsCounters done [08:52:54]requested_item shift.num is exist - process it [08:52:54]requested_item shift.opened is exist - process it [08:52:54]req_shift_opened [08:52:54]FM_GetShiftState [08:52:54]SAM_PROTO_GetShiftState [08:52:54]wFMCommunicate request_size=4 [08:52:54]MH_SAM_APDU [08:52:54]CAPDU: 80 13 01 00 [08:52:54]Write to MH i2c: E2 08 00 BD 47 80 13 01 00 00 00 00 00 81 [08:52:54]Write i2c OK [08:52:54]MH_I2C_Read... [08:52:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:55]Read from MH i2c: E2 [08:52:55]MH_I2C_Read... [08:52:55]Read from MH i2c: E2 0E 00 [08:52:55]MH_I2C_Read... [08:52:55]Read from MH i2c: E2 0E 00 BD 47 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 FC [08:52:55]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [08:52:55]wFMCommunicate OK [08:52:55]SAM_PROTO_GetShiftState done [08:52:55]FM_GetShiftState done [08:52:55]req_shift_opened done [08:52:55]requested_item shift.open_date is exist - process it [08:52:55]req_shift_open_date [08:52:55]req_shift_open_date done [08:52:55]produce_requested_data done [08:52:55]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111566,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [08:52:55]process_action_free close_receipt [08:52:55]json_value_free [08:52:55]json_value_free done [08:52:55]process_json_proto returns [08:52:55]Send response to host [08:52:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111566,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [08:52:55]free response buf [08:52:55]execute_script done [08:52:55]execute_script returns [08:52:55]free content buf [08:52:55]Sock 7.Close socket [08:52:55]Sock 7.Thread stoped [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:13]OFD Sender: No OFD packet to send [08:54:18]OFD Sender: No OFD packet to send [08:54:23]OFD Sender: No OFD packet to send [08:54:28]OFD Sender: No OFD packet to send [08:54:33]OFD Sender: No OFD packet to send [08:54:38]OFD Sender: No OFD packet to send [08:54:43]OFD Sender: No OFD packet to send [08:54:48]OFD Sender: No OFD packet to send [08:54:53]OFD Sender: No OFD packet to send [08:54:58]OFD Sender: No OFD packet to send [08:55:03]OFD Sender: No OFD packet to send [08:55:08]OFD Sender: No OFD packet to send [08:55:13]OFD Sender: No OFD packet to send [08:55:18]OFD Sender: No OFD packet to send [08:55:23]OFD Sender: No OFD packet to send [08:55:28]OFD Sender: No OFD packet to send [08:55:33]OFD Sender: No OFD packet to send [08:55:38]OFD Sender: No OFD packet to send [08:55:43]OFD Sender: No OFD packet to send [08:55:49]OFD Sender: No OFD packet to send [08:55:54]OFD Sender: No OFD packet to send [08:55:59]OFD Sender: No OFD packet to send [08:56:04]OFD Sender: No OFD packet to send [08:56:09]OFD Sender: No OFD packet to send [08:56:14]OFD Sender: No OFD packet to send [08:56:19]OFD Sender: No OFD packet to send [08:56:24]OFD Sender: No OFD packet to send [08:56:29]OFD Sender: No OFD packet to send [08:56:34]OFD Sender: No OFD packet to send [08:56:39]OFD Sender: No OFD packet to send [08:56:44]OFD Sender: No OFD packet to send [08:56:49]OFD Sender: No OFD packet to send [08:56:54]OFD Sender: No OFD packet to send [08:56:59]OFD Sender: No OFD packet to send [08:57:04]OFD Sender: No OFD packet to send [08:57:09]OFD Sender: No OFD packet to send [08:57:14]OFD Sender: No OFD packet to send [08:57:19]OFD Sender: No OFD packet to send [08:57:24]OFD Sender: No OFD packet to send [08:57:29]OFD Sender: No OFD packet to send [08:57:34]OFD Sender: No OFD packet to send [08:57:39]OFD Sender: No OFD packet to send [08:57:44]OFD Sender: No OFD packet to send [08:57:46]accept exits with 9 [08:57:46]New connection [08:57:46]New thread 3067321700 created [08:57:46]Thread 3067465060 joined [08:57:46]Waiting for new connection... [08:57:46] Sock 9.Parse request [08:57:46]Sock 9.Check first char [08:57:46]Sock 9.First char is OK [08:57:46]request: POST /json_proto HTTP/1.0 [08:57:46]Method: POST [08:57:46]URL: /json_proto [08:57:46]Method is POST - this is cgi request [08:57:46]url: /json_proto [08:57:46]query_string will be loaded in cgi processing [08:57:46]execute_cgi json_proto POST (null) [08:57:46]execute_cgi path=json_proto method=POST [08:57:46]POST find Content-Length [08:57:46]Host: 172.17.59.68:8080 [08:57:46]Content-Length: 674 [08:57:46]Content-Type: application/json [08:57:46] [08:57:46]POST finish read [08:57:46]Found Content-Length = 674 [08:57:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 2.750, "sum" : 200.48, "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:57:46]execute_script... [08: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)320165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 2.750, "sum" : 200.48, "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:57:46]POST & json_proto [08:57:46]process_json_proto [08:57:46]json parsed OK: [08:57:46]protocol is kg_v1.0 [08:57:46]action value=close_receipt [08:57:46]process_action close_receipt [08:57:46]cmd_close_receipt [08:57:46]MH_GetDate [08:57:46]Write to MH i2c: F0 00 00 BE 47 F4 [08:57:46]Write i2c OK [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: F0 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: F0 09 00 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: F0 09 00 BE 47 00 27 EF 73 66 BC EC 60 65 59 [08:57:46]GetLastDocTimeStamp 1718873599 [08:57:46]current date 1718873895 [08:57:46]FM_GetShiftState [08:57:46]SAM_PROTO_GetShiftState [08:57:46]wFMCommunicate request_size=4 [08:57:46]MH_SAM_APDU [08:57:46]CAPDU: 80 13 01 00 [08:57:46]Write to MH i2c: E2 08 00 BF 47 80 13 01 00 00 00 00 00 83 [08:57:46]Write i2c OK [08:57:46]MH_I2C_Read... [08:57:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:46]Read from MH i2c: E2 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: E2 0E 00 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: E2 0E 00 BF 47 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 FE [08:57:46]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [08:57:46]wFMCommunicate OK [08:57:46]SAM_PROTO_GetShiftState done [08:57:46]FM_GetShiftState done [08:57:46]opened in 1718847247 [08:57:46]opened+sec_in_day 1718933647 [08:57:46]quantity*price = 20047 [08:57:46]sum+1 = 20049 [08:57:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 17 20.06.2024 08:58 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111567 ФПД: 205607207210163 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T085815&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111567&fm=205607207210163&tin=02508201610067®Number=0000000000092771&sum=20000 [08:57:47]StoreToDocumentArchive [08:57:47]shift 389 fd 111567 [08:57:47]save to /storage/0389/doc_00111567 [08:57:47]save last doc name /storage/0389/doc_00111567 to /storage/kkm_last_doc_name [08:57:47]save OK [08:57:47]Clear old archive folders... [08:57:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:57:47]tlvbuf is 00F3C220 [08:57:47]SAM_PROTO_ClearQueue [08:57:47]wFMCommunicate request_size=4 [08:57:47]MH_SAM_APDU [08:57:47]CAPDU: 80 09 00 00 [08:57:47]Write to MH i2c: E2 08 00 CC 47 80 09 00 00 00 00 00 00 85 [08:57:47]Write i2c OK [08:57:47]MH_I2C_Read... [08:57:48]Read from MH i2c: E2 [08:57:48]MH_I2C_Read... [08:57:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:57:48]Read from MH i2c: E2 03 00 [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: E2 03 00 CC 47 00 90 00 87 [08:57:48]RAPDU: 90 00 [08:57:48]wFMCommunicate OK [08:57:48]SAM_PROTO_ClearQueue done [08:57:48]KKMCreateOFDPacket [08:57:48]OFDProtocolAddRootSTLVToBuf [08:57:48]FM_MakeSignedData [08:57:48]FM_MakeSignedData [08:57:48]SAM_PROTO_SignData [08:57:48]wFMCommunicate request_size=4 [08:57:48]MH_SAM_APDU [08:57:48]CAPDU: 80 0D 01 02 [08:57:48]Write to MH i2c: E2 08 00 CD 47 80 0D 01 02 00 00 00 00 8D [08:57:48]Write i2c OK [08:57:48]MH_I2C_Read... [08:57:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:57:48]Read from MH i2c: E2 [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: E2 03 00 [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: E2 03 00 CD 47 00 90 00 88 [08:57:48]RAPDU: 90 00 [08:57:48]wFMCommunicate OK [08:57:48]wFMCommunicate request_size=255 [08:57:48]MH_SAM_APDU [08:57:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 27 EF 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CF B3 01 00 35 04 06 00 BA FF A8 8C [08:57:48]Write to MH i2c: E2 02 01 CE 47 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 27 EF 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CF B3 01 00 35 04 06 00 BA FF A8 8C 00 00 C2 [08:57:48]Write i2c OK [08:57:48]MH_I2C_Read... [08:57:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:48]Read from MH i2c: E2 [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: E2 03 00 [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: E2 03 00 CE 47 00 90 00 89 [08:57:48]RAPDU: 90 00 [08:57:48]wFMCommunicate OK [08:57:48]wFMCommunicate request_size=7 [08:57:48]MH_SAM_APDU [08:57:48]CAPDU: 80 0D 02 02 02 8C B3 [08:57:48]Write to MH i2c: E2 0A 00 CF 47 80 0D 02 02 02 00 8C B3 00 00 D3 [08:57:48]Write i2c OK [08:57:48]MH_I2C_Read... [08:57:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:48]Read from MH i2c: E2 [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: E2 03 00 [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: E2 03 00 CF 47 00 90 00 8A [08:57:48]RAPDU: 90 00 [08:57:48]wFMCommunicate OK [08:57:48]wFMCommunicate request_size=4 [08:57:48]MH_SAM_APDU [08:57:48]CAPDU: 80 0D 03 02 [08:57:48]Write to MH i2c: E2 08 00 D0 47 80 0D 03 02 00 00 00 00 92 [08:57:48]Write i2c OK [08:57:48]MH_I2C_Read... [08:57:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:57:48]Read from MH i2c: E2 [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: E2 0B 00 [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: E2 0B 00 D0 47 00 BE 63 5F 8A A5 16 3E DE 90 00 74 [08:57:48]RAPDU: BE 63 5F 8A A5 16 3E DE 90 00 [08:57:48]wFMCommunicate OK [08:57:48]SAM_PROTO_SignData done [08:57:48]FM_MakeSignedData done [08:57:48]CreateOFDProtocolMessage [08:57:48]wFMCommunicate request_size=4 [08:57:48]MH_SAM_APDU [08:57:48]CAPDU: 80 11 00 00 [08:57:48]Write to MH i2c: E2 08 00 D1 47 80 11 00 00 00 00 00 00 92 [08:57:48]Write i2c OK [08:57:48]MH_I2C_Read... [08:57:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:48]Read from MH i2c: E2 [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: E2 17 00 [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: E2 17 00 D1 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E4 [08:57:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:57:48]wFMCommunicate OK [08:57:48]CreateOFDProtocolMessage done [08:57:48]OFDSenderStorePacket 111567 [08:57:48]StoreOFDPacket docnum=111567 [08:57:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 47 B9 04 01 E7 1F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 27 EF 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CF B3 01 00 35 04 06 00 BA FF A8 8C 8C B3 BE 63 5F 8A A5 16 3E DE [08:57:48]CheckFolder [08:57:48]dirname=/storage/ofd_packets [08:57:48]CheckFolder done [08:57:48]ProducePacketName [08:57:48]name=ofd_packets/00111567 [08:57:48]NVStorageSaveData ofd_packets/00111567 [08:57:48]File name is /storage/ofd_packets/00111567 [08:57:48]Write 298 bytes [08:57:48]NVStorageSaveData done [08:57:48]OFDSenderStorePacket done [08:57:48]KKMCreateOFDPacket done [08:57:48]NVStorageSaveData kkm_last_timestamp [08:57:48]File name is /storage/kkm_last_timestamp [08:57:48]Write 4 bytes [08:57:48]NVStorageSaveData done [08:57:48]ExternCall_PrintAddStr [08:57:48]wPrintStart [08:57:48]Write to MH i2c: 01 00 00 D2 47 19 [08:57:48]Write i2c OK [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: 01 [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: 01 07 00 [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: 01 07 00 D2 47 00 00 00 00 00 FF 0F 2E [08:57:48]RasterBufferAndPrint [08:57:48]line Счет N : (1)320165 [08:57:48]line ИНН: 02508201610067 [08:57:48]line Контрольно-Кассовый Чек [08:57:48]line ПРОДАЖА [08:57:48]line ТРК (МРК, ГНК) : 22 [08:57:48]line Товар: 2710194210 [08:57:48]line ДТ-К-5 [08:57:48]line 2.750 * 72.90 [08:57:48]line = 200.48 [08:57:48]line НДС 12% НСП 1% [08:57:48]line > о реализуемом товаре [08:57:48]line ОКРУГЛЕНИЕ: -0.48 [08:57:48]line ИТОГО: 200.00 [08:57:48]line Внесено: 200.00 [08:57:48]line СДАЧА: 0.00 [08:57:48]line НСП 1% : 1.77 [08:57:48]line НДС 12% : 21.29 [08:57:48]line Наличными: 200.00 [08:57:48]line Безнал.: 0.00 [08:57:48]line Место: АЗС № 65 "Партнер Нефть" [08:57:48]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [08:57:48]line СНО: Общий режим [08:57:48]line Чек 17 20.06.2024 08:58 [08:57:48]line Смена: 389 ФФД: 1.0 [08:57:48]line ЗНМ: 0300000198 [08:57:48]line РНМ: 0000000000092771 [08:57:48]line Версия ККМ: 001 [08:57:48]line ФМ: 0000000000875083 [08:57:48]line ФД: 111567 [08:57:48]line ФПД: 205607207210163 [08:57:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T085815&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111567&fm=205607207210163&tin=02508201610067®Number=0000000000092771&sum=20000 [08:57:48]OFD Sender: Processing packet 111567 [packets to send 38, broken 37] [08:57:48]ProducePacketName [08:57:48]name=ofd_packets/00111567 [08:57:48]OFD Sender: To server: pG, [08:57:48]CommunicateWithHost lk.salyk.kg:30040 [08:57:48]ConnectInit lk.salyk.kg [08:57:48]written 0, free lines is 4095 [08:57:48]Connected sock=10 [08: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 35 30 38 33 0C 01 00 00 47 B9 04 01 E7 1F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 27 EF 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CF B3 01 00 35 04 06 00 BA FF A8 8C 8C B3 BE 63 5F 8A A5 16 3E DE [08:57:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 9A 7C 47 00 24 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 35 30 38 33 10 04 04 00 CF B3 01 00 F4 03 04 00 77 86 73 66 B6 04 01 00 00 B8 13 A9 2F E9 17 64 E9 [08:57:49]CommunicateWithHost err = 0 [08:57:49]CheckOFDResponse [08:57:49]1017 (14) - 77093643461234 [08:57:49]1041 (16) - 0000000000875083 [08:57:49]1040 (4) - 111567 [08:57:49]1012 (4) - 20.06.2024 01:31 [08:57:49]1206 (1) - 0 [08:57:49]OFD Sender: Remove packet 111567 [08:57:49]ProducePacketName [08:57:49]name=ofd_packets/00111567 [08:57:49]NVStorageDeleteData [08:57:49]Write to MH i2c: 01 00 00 FD 47 44 [08:57:49]Write i2c OK [08:57:49]MH_I2C_Read... [08:57:49]Read from MH i2c: 01 [08:57:49]MH_I2C_Read... [08:57:49]Read from MH i2c: 01 07 00 [08:57:49]MH_I2C_Read... [08:57:49]Read from MH i2c: 01 07 00 FD 47 00 00 00 00 00 DC 0C 33 [08:57:49]RasterBufferAndPrint [08:57:49]line [08:57:49]line [08:57:49]line [08:57:49]line [08:57:49]line [08:57:49]written 0, free lines is 3302 [08:57:49]MH_Cut [08:57:49]Write to MH i2c: D1 01 00 04 48 01 1E [08:57:49]Write i2c OK [08:57:49]MH_I2C_Read... [08:57:49]Read from MH i2c: D1 [08:57:49]MH_I2C_Read... [08:57:49]Read from MH i2c: D1 01 00 [08:57:49]MH_I2C_Read... [08:57:49]Read from MH i2c: D1 01 00 04 48 00 1D [08:57:49]Write to MH i2c: 01 00 00 05 48 4D [08:57:49]Write i2c OK [08:57:49]MH_I2C_Read... [08:57:49]OFD Sender: No OFD packet to send [08:57:50]*** Cut start [08:57:50]*** Partial cut [08:57:50]*** CUTSNS_PIN = 1 [08:57:50]*** CUTSNS_PIN = 0 [08:57:50]*** Brake cut motor [08:57:50]Read from MH i2c: 01 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: 01 07 00 [08:57:50]MH_I2C_Read... [08:57:50]*** Stop cut motor [08:57:50]*** Cut end [08:57:50]Read from MH i2c: 01 07 00 05 48 00 00 00 00 00 FF 0F 62 [08:57:50]process_action close_receipt done [08:57:50]requested_data is exist [08:57:50]produce_requested_data [08:57:50]requested_item fm.sn is exist - process it [08:57:50]wFMCommunicate request_size=4 [08:57:50]MH_SAM_APDU [08:57:50]CAPDU: 80 11 00 00 [08:57:50]Write to MH i2c: E2 08 00 06 48 80 11 00 00 00 00 00 00 C8 [08:57:50]Write i2c OK [08:57:50]MH_I2C_Read... [08:57:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:50]Read from MH i2c: E2 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: E2 17 00 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: E2 17 00 06 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1A [08:57:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:57:50]wFMCommunicate OK [08:57:50]requested_item fd.num is exist - process it [08:57:50]SAM_PROTO_GetFieldsCounters [08:57:50]wFMCommunicate request_size=4 [08:57:50]MH_SAM_APDU [08:57:50]CAPDU: 80 13 00 00 [08:57:50]Write to MH i2c: E2 08 00 07 48 80 13 00 00 00 00 00 00 CB [08:57:50]Write i2c OK [08:57:50]MH_I2C_Read... [08:57:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:50]Read from MH i2c: E2 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: E2 62 00 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: E2 62 00 07 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CF B3 01 00 0E 04 04 00 85 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 28 [08: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CF B3 01 00 0E 04 04 00 85 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:57:50]wFMCommunicate OK [08:57:50]SAM_PROTO_GetFieldsCounters done [08:57:50]requested_item shift.num is exist - process it [08:57:50]requested_item shift.opened is exist - process it [08:57:50]req_shift_opened [08:57:50]FM_GetShiftState [08:57:50]SAM_PROTO_GetShiftState [08:57:50]wFMCommunicate request_size=4 [08:57:50]MH_SAM_APDU [08:57:50]CAPDU: 80 13 01 00 [08:57:50]Write to MH i2c: E2 08 00 08 48 80 13 01 00 00 00 00 00 CD [08:57:50]Write i2c OK [08:57:50]MH_I2C_Read... [08:57:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:50]Read from MH i2c: E2 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: E2 0E 00 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: E2 0E 00 08 48 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 48 [08:57:50]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [08:57:50]wFMCommunicate OK [08:57:50]SAM_PROTO_GetShiftState done [08:57:50]FM_GetShiftState done [08:57:50]req_shift_opened done [08:57:50]requested_item shift.open_date is exist - process it [08:57:50]req_shift_open_date [08:57:50]req_shift_open_date done [08:57:50]produce_requested_data done [08:57:50]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111567,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [08:57:50]process_action_free close_receipt [08:57:50]json_value_free [08:57:50]json_value_free done [08:57:50]process_json_proto returns [08:57:50]Send response to host [08:57:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111567,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [08:57:50]free response buf [08:57:50]execute_script done [08:57:50]execute_script returns [08:57:50]free content buf [08:57:50]Sock 9.Close socket [08:57:50]Sock 9.Thread stoped [08:57:54]OFD Sender: No OFD packet to send [08:57:56]accept exits with 7 [08:57:56]New connection [08:57:56]New thread 3067465060 created [08:57:56]Thread 3067321700 joined [08:57:56]Waiting for new connection... [08:57:56] Sock 7.Parse request [08:57:56]Sock 7.Check first char [08:57:56]Sock 7.First char is OK [08:57:56]request: POST /json_proto HTTP/1.0 [08:57:56]Method: POST [08:57:56]URL: /json_proto [08:57:56]Method is POST - this is cgi request [08:57:56]url: /json_proto [08:57:56]query_string will be loaded in cgi processing [08:57:56]execute_cgi json_proto POST (null) [08:57:56]execute_cgi path=json_proto method=POST [08:57:56]POST find Content-Length [08:57:56]Host: 172.17.59.68:8080 [08:57:56]Content-Length: 682 [08:57:56]Content-Type: application/json [08:57:56] [08:57:56]POST finish read [08:57:56]Found Content-Length = 682 [08:57:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:56]execute_script... [08:57: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)320164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:56]POST & json_proto [08:57:56]process_json_proto [08:57:56]json parsed OK: [08:57:56]protocol is kg_v1.0 [08:57:56]action value=close_receipt [08:57:56]process_action close_receipt [08:57:56]cmd_close_receipt [08:57:56]MH_GetDate [08:57:56]Write to MH i2c: F0 00 00 09 48 40 [08:57:56]Write i2c OK [08:57:56]MH_I2C_Read... [08:57:56]Read from MH i2c: F0 [08:57:56]MH_I2C_Read... [08:57:56]Read from MH i2c: F0 09 00 [08:57:56]MH_I2C_Read... [08:57:56]Read from MH i2c: F0 09 00 09 48 00 31 EF 73 66 BC EC 60 65 AF [08:57:56]GetLastDocTimeStamp 1718873895 [08:57:56]current date 1718873905 [08:57:56]FM_GetShiftState [08:57:56]SAM_PROTO_GetShiftState [08:57:56]wFMCommunicate request_size=4 [08:57:56]MH_SAM_APDU [08:57:56]CAPDU: 80 13 01 00 [08:57:56]Write to MH i2c: E2 08 00 0A 48 80 13 01 00 00 00 00 00 CF [08:57:56]Write i2c OK [08:57:56]MH_I2C_Read... [08:57:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:56]Read from MH i2c: E2 [08:57:56]MH_I2C_Read... [08:57:56]Read from MH i2c: E2 0E 00 [08:57:56]MH_I2C_Read... [08:57:56]Read from MH i2c: E2 0E 00 0A 48 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 4A [08:57:56]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [08:57:56]wFMCommunicate OK [08:57:56]SAM_PROTO_GetShiftState done [08:57:56]FM_GetShiftState done [08:57:56]opened in 1718847247 [08:57:56]opened+sec_in_day 1718933647 [08:57:56]quantity*price = 150064 [08:57:56]sum+1 = 150065 [08:57:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 18 20.06.2024 08:58 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111568 ФПД: 98453448409240 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T085825&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111568&fm=98453448409240&tin=02508201610067®Number=0000000000092771&sum=150000 [08:57:57]StoreToDocumentArchive [08:57:57]shift 389 fd 111568 [08:57:57]save to /storage/0389/doc_00111568 [08:57:57]save last doc name /storage/0389/doc_00111568 to /storage/kkm_last_doc_name [08:57:57]save OK [08:57:57]Clear old archive folders... [08:57:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:57:57]tlvbuf is 00F48A30 [08:57:57]SAM_PROTO_ClearQueue [08:57:57]wFMCommunicate request_size=4 [08:57:57]MH_SAM_APDU [08:57:57]CAPDU: 80 09 00 00 [08:57:57]Write to MH i2c: E2 08 00 17 48 80 09 00 00 00 00 00 00 D1 [08:57:57]Write i2c OK [08:57:57]MH_I2C_Read... [08:57:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:57:57]Read from MH i2c: E2 [08:57:57]MH_I2C_Read... [08:57:57]Read from MH i2c: E2 03 00 [08:57:57]MH_I2C_Read... [08:57:57]Read from MH i2c: E2 03 00 17 48 00 90 00 D3 [08:57:57]RAPDU: 90 00 [08:57:57]wFMCommunicate OK [08:57:57]SAM_PROTO_ClearQueue done [08:57:57]KKMCreateOFDPacket [08:57:57]OFDProtocolAddRootSTLVToBuf [08:57:57]FM_MakeSignedData [08:57:57]FM_MakeSignedData [08:57:57]SAM_PROTO_SignData [08:57:57]wFMCommunicate request_size=4 [08:57:57]MH_SAM_APDU [08:57:57]CAPDU: 80 0D 01 02 [08:57:57]Write to MH i2c: E2 08 00 18 48 80 0D 01 02 00 00 00 00 D9 [08:57:57]Write i2c OK [08:57:57]MH_I2C_Read... [08:57:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:57:57]Read from MH i2c: E2 [08:57:57]MH_I2C_Read... [08:57:57]Read from MH i2c: E2 03 00 [08:57:57]MH_I2C_Read... [08:57:57]Read from MH i2c: E2 03 00 18 48 00 90 00 D4 [08:57:57]RAPDU: 90 00 [08:57:57]wFMCommunicate OK [08:57:57]wFMCommunicate request_size=255 [08:57:57]MH_SAM_APDU [08:57: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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 31 EF 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D0 B3 01 00 35 04 06 00 59 [08:57:57]Write to MH i2c: E2 02 01 19 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 31 EF 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D0 B3 01 00 35 04 06 00 59 00 00 9F [08:57:57]Write i2c OK [08:57:57]MH_I2C_Read... [08:57:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:57]Read from MH i2c: E2 [08:57:57]MH_I2C_Read... [08:57:57]Read from MH i2c: E2 03 00 [08:57:57]MH_I2C_Read... [08:57:57]Read from MH i2c: E2 03 00 19 48 00 90 00 D5 [08:57:57]RAPDU: 90 00 [08:57:57]wFMCommunicate OK [08:57:57]wFMCommunicate request_size=10 [08:57:57]MH_SAM_APDU [08:57:57]CAPDU: 80 0D 02 02 05 8A FA D1 C0 98 [08:57:57]Write to MH i2c: E2 0D 00 1A 48 80 0D 02 02 05 00 8A FA D1 C0 98 00 00 93 [08:57:57]Write i2c OK [08:57:57]MH_I2C_Read... [08:57:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:57]Read from MH i2c: E2 [08:57:57]MH_I2C_Read... [08:57:57]Read from MH i2c: E2 03 00 [08:57:57]MH_I2C_Read... [08:57:57]Read from MH i2c: E2 03 00 1A 48 00 90 00 D6 [08:57:57]RAPDU: 90 00 [08:57:57]wFMCommunicate OK [08:57:57]wFMCommunicate request_size=4 [08:57:57]MH_SAM_APDU [08:57:57]CAPDU: 80 0D 03 02 [08:57:57]Write to MH i2c: E2 08 00 1B 48 80 0D 03 02 00 00 00 00 DE [08:57:57]Write i2c OK [08:57:57]MH_I2C_Read... [08:57:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:57:57]Read from MH i2c: E2 [08:57:57]MH_I2C_Read... [08:57:57]Read from MH i2c: E2 0B 00 [08:57:57]MH_I2C_Read... [08:57:57]Read from MH i2c: E2 0B 00 1B 48 00 70 EF D8 4F 9C 00 C1 9C 90 00 5E [08:57:57]RAPDU: 70 EF D8 4F 9C 00 C1 9C 90 00 [08:57:57]wFMCommunicate OK [08:57:57]SAM_PROTO_SignData done [08:57:57]FM_MakeSignedData done [08:57:57]CreateOFDProtocolMessage [08:57:57]wFMCommunicate request_size=4 [08:57:57]MH_SAM_APDU [08:57:57]CAPDU: 80 11 00 00 [08:57:57]Write to MH i2c: E2 08 00 1C 48 80 11 00 00 00 00 00 00 DE [08:57:57]Write i2c OK [08:57:57]MH_I2C_Read... [08:57:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:57]Read from MH i2c: E2 [08:57:57]MH_I2C_Read... [08:57:57]Read from MH i2c: E2 17 00 [08:57:57]MH_I2C_Read... [08:57:57]Read from MH i2c: E2 17 00 1C 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 30 [08:57:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:57:57]wFMCommunicate OK [08:57:57]CreateOFDProtocolMessage done [08:57:57]OFDSenderStorePacket 111568 [08:57:57]StoreOFDPacket docnum=111568 [08:57:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 83 BE 07 01 0E B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 31 EF 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D0 B3 01 00 35 04 06 00 59 8A FA D1 C0 98 70 EF D8 4F 9C 00 C1 9C [08:57:57]CheckFolder [08:57:57]dirname=/storage/ofd_packets [08:57:57]CheckFolder done [08:57:57]ProducePacketName [08:57:57]name=ofd_packets/00111568 [08:57:57]NVStorageSaveData ofd_packets/00111568 [08:57:57]File name is /storage/ofd_packets/00111568 [08:57:57]Write 301 bytes [08:57:57]NVStorageSaveData done [08:57:57]OFDSenderStorePacket done [08:57:57]KKMCreateOFDPacket done [08:57:57]NVStorageSaveData kkm_last_timestamp [08:57:57]File name is /storage/kkm_last_timestamp [08:57:57]Write 4 bytes [08:57:57]NVStorageSaveData done [08:57:57]ExternCall_PrintAddStr [08:57:57]wPrintStart [08:57:57]Write to MH i2c: 01 00 00 1D 48 65 [08:57:57]Write i2c OK [08:57:57]MH_I2C_Read... [08:57:57]Read from MH i2c: 01 [08:57:57]MH_I2C_Read... [08:57:57]Read from MH i2c: 01 07 00 [08:57:57]MH_I2C_Read... [08:57:57]Read from MH i2c: 01 07 00 1D 48 00 00 00 00 00 FF 0F 7A [08:57:57]RasterBufferAndPrint [08:57:57]line Счет N : (1)320164 [08:57:57]line ИНН: 02508201610067 [08:57:57]line Контрольно-Кассовый Чек [08:57:57]line ПРОДАЖА [08:57:57]line ТРК (МРК, ГНК) : 11 [08:57:57]line Товар: 2710124130 [08:57:57]line Аи-92-К-5 [08:57:57]line 22.600 * 66.40 [08:57:57]line = 1500.64 [08:57:57]line НДС 12% НСП 1% [08:57:57]line > о реализуемом товаре [08:57:57]line ОКРУГЛЕНИЕ: -0.64 [08:57:57]line ИТОГО: 1500.00 [08:57:57]line Внесено: 1500.00 [08:57:57]line СДАЧА: 0.00 [08:57:57]line НСП 1% : 13.28 [08:57:57]line НДС 12% : 159.36 [08:57:57]line Наличными: 1500.00 [08:57:57]line Безнал.: 0.00 [08:57:57]line Место: АЗС № 65 "Партнер Нефть" [08:57:57]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [08:57:57]line СНО: Общий режим [08:57:57]line Чек 18 20.06.2024 08:58 [08:57:57]line Смена: 389 ФФД: 1.0 [08:57:57]line ЗНМ: 0300000198 [08:57:57]line РНМ: 0000000000092771 [08:57:57]line Версия ККМ: 001 [08:57:57]line ФМ: 0000000000875083 [08:57:57]line ФД: 111568 [08:57:57]line ФПД: 98453448409240 [08:57:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T085825&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111568&fm=98453448409240&tin=02508201610067®Number=0000000000092771&sum=150000 [08:57:57]written 0, free lines is 4095 [08:57:58]OFD Sender: Processing packet 111568 [packets to send 38, broken 37] [08:57:58]ProducePacketName [08:57:58]name=ofd_packets/00111568 [08:57:58]OFD Sender: To server: pG, [08:57:58]CommunicateWithHost lk.salyk.kg:30040 [08:57:58]ConnectInit lk.salyk.kg [08:57:58]Connected sock=10 [08:57:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 83 BE 07 01 0E B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 31 EF 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D0 B3 01 00 35 04 06 00 59 8A FA D1 C0 98 70 EF D8 4F 9C 00 C1 9C [08:57:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 1B 6B 47 00 F1 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D0 B3 01 00 F4 03 04 00 80 86 73 66 B6 04 01 00 00 1B 6C 87 F8 43 3F 06 65 [08:57:58]CommunicateWithHost err = 0 [08:57:58]CheckOFDResponse [08:57:58]1017 (14) - 77093643461234 [08:57:58]1041 (16) - 0000000000875083 [08:57:58]1040 (4) - 111568 [08:57:58]1012 (4) - 20.06.2024 01:31 [08:57:58]1206 (1) - 0 [08:57:58]OFD Sender: Remove packet 111568 [08:57:58]ProducePacketName [08:57:58]name=ofd_packets/00111568 [08:57:58]NVStorageDeleteData [08:57:58]Write to MH i2c: 01 00 00 48 48 90 [08:57:58]Write i2c OK [08:57:58]MH_I2C_Read... [08:57:58]Read from MH i2c: 01 [08:57:58]MH_I2C_Read... [08:57:58]Read from MH i2c: 01 07 00 [08:57:58]MH_I2C_Read... [08:57:58]Read from MH i2c: 01 07 00 48 48 00 00 00 00 00 EF 0C 92 [08:57:58]RasterBufferAndPrint [08:57:58]line [08:57:58]line [08:57:58]line [08:57:58]line [08:57:58]line [08:57:58]written 0, free lines is 3323 [08:57:58]MH_Cut [08:57:58]Write to MH i2c: D1 01 00 4F 48 01 69 [08:57:58]Write i2c OK [08:57:58]MH_I2C_Read... [08:57:58]Read from MH i2c: D1 [08:57:58]MH_I2C_Read... [08:57:58]Read from MH i2c: D1 01 00 [08:57:58]MH_I2C_Read... [08:57:58]Read from MH i2c: D1 01 00 4F 48 00 68 [08:57:58]Write to MH i2c: 01 00 00 50 48 98 [08:57:58]Write i2c OK [08:57:58]MH_I2C_Read... [08:57:58]OFD Sender: No OFD packet to send [08:57:59]*** Cut start [08:57:59]*** Partial cut [08:57:59]*** CUTSNS_PIN = 1 [08:57:59]*** CUTSNS_PIN = 0 [08:57:59]*** Brake cut motor [08:57:59]Read from MH i2c: 01 [08:57:59]MH_I2C_Read... [08:57:59]*** Stop cut motor [08:57:59]*** Cut end [08:57:59]Read from MH i2c: 01 07 00 [08:57:59]MH_I2C_Read... [08:57:59]Read from MH i2c: 01 07 00 50 48 00 00 00 00 00 FF 0F AD [08:57:59]process_action close_receipt done [08:57:59]requested_data is exist [08:57:59]produce_requested_data [08:57:59]requested_item fm.sn is exist - process it [08:57:59]wFMCommunicate request_size=4 [08:57:59]MH_SAM_APDU [08:57:59]CAPDU: 80 11 00 00 [08:57:59]Write to MH i2c: E2 08 00 51 48 80 11 00 00 00 00 00 00 13 [08:57:59]Write i2c OK [08:57:59]MH_I2C_Read... [08:57:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:59]Read from MH i2c: E2 [08:57:59]MH_I2C_Read... [08:57:59]Read from MH i2c: E2 17 00 [08:57:59]MH_I2C_Read... [08:57:59]Read from MH i2c: E2 17 00 51 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 65 [08:57:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:57:59]wFMCommunicate OK [08:57:59]requested_item fd.num is exist - process it [08:57:59]SAM_PROTO_GetFieldsCounters [08:57:59]wFMCommunicate request_size=4 [08:57:59]MH_SAM_APDU [08:57:59]CAPDU: 80 13 00 00 [08:57:59]Write to MH i2c: E2 08 00 52 48 80 13 00 00 00 00 00 00 16 [08:57:59]Write i2c OK [08:57:59]MH_I2C_Read... [08:57:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:58:00]Read from MH i2c: E2 [08:58:00]MH_I2C_Read... [08:58:00]Read from MH i2c: E2 62 00 [08:58:00]MH_I2C_Read... [08:58:00]Read from MH i2c: E2 62 00 52 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D0 B3 01 00 0E 04 04 00 85 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 77 [08:58:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D0 B3 01 00 0E 04 04 00 85 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:58:00]wFMCommunicate OK [08:58:00]SAM_PROTO_GetFieldsCounters done [08:58:00]requested_item shift.num is exist - process it [08:58:00]requested_item shift.opened is exist - process it [08:58:00]req_shift_opened [08:58:00]FM_GetShiftState [08:58:00]SAM_PROTO_GetShiftState [08:58:00]wFMCommunicate request_size=4 [08:58:00]MH_SAM_APDU [08:58:00]CAPDU: 80 13 01 00 [08:58:00]Write to MH i2c: E2 08 00 53 48 80 13 01 00 00 00 00 00 18 [08:58:00]Write i2c OK [08:58:00]MH_I2C_Read... [08:58:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:00]Read from MH i2c: E2 [08:58:00]MH_I2C_Read... [08:58:00]Read from MH i2c: E2 0E 00 [08:58:00]MH_I2C_Read... [08:58:00]Read from MH i2c: E2 0E 00 53 48 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 93 [08:58:00]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [08:58:00]wFMCommunicate OK [08:58:00]SAM_PROTO_GetShiftState done [08:58:00]FM_GetShiftState done [08:58:00]req_shift_opened done [08:58:00]requested_item shift.open_date is exist - process it [08:58:00]req_shift_open_date [08:58:00]req_shift_open_date done [08:58:00]produce_requested_data done [08:58:00]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111568,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [08:58:00]process_action_free close_receipt [08:58:00]json_value_free [08:58:00]json_value_free done [08:58:00]process_json_proto returns [08:58:00]Send response to host [08:58:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111568,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [08:58:00]free response buf [08:58:00]execute_script done [08:58:00]execute_script returns [08:58:00]free content buf [08:58:00]Sock 7.Close socket [08:58:00]Sock 7.Thread stoped [08:58:03]OFD Sender: No OFD packet to send [08:58:08]OFD Sender: No OFD packet to send [08:58:13]OFD Sender: No OFD packet to send [08:58:18]OFD Sender: No OFD packet to send [08:58:23]OFD Sender: No OFD packet to send [08:58:28]OFD Sender: No OFD packet to send [08:58:33]OFD Sender: No OFD packet to send [08:58:38]OFD Sender: No OFD packet to send [08:58:43]OFD Sender: No OFD packet to send [08:58:48]OFD Sender: No OFD packet to send [08:58:53]OFD Sender: No OFD packet to send [08:58:58]OFD Sender: No OFD packet to send [08:59:03]OFD Sender: No OFD packet to send [08:59:08]OFD Sender: No OFD packet to send [08:59:13]OFD Sender: No OFD packet to send [08:59:18]OFD Sender: No OFD packet to send [08:59:23]OFD Sender: No OFD packet to send [08:59:28]OFD Sender: No OFD packet to send [08:59:33]OFD Sender: No OFD packet to send [08:59:38]OFD Sender: No OFD packet to send [08:59:43]OFD Sender: No OFD packet to send [08:59:48]OFD Sender: No OFD packet to send [08:59:50]accept exits with 9 [08:59:50]New connection [08:59:50]New thread 3067321700 created [08:59:50]Thread 3067465060 joined [08:59:50]Waiting for new connection... [08:59:50] Sock 9.Parse request [08:59:50]Sock 9.Check first char [08:59:50]Sock 9.First char is OK [08:59:50]request: POST /json_proto HTTP/1.0 [08:59:50]Method: POST [08:59:50]URL: /json_proto [08:59:50]Method is POST - this is cgi request [08:59:50]url: /json_proto [08:59:50]query_string will be loaded in cgi processing [08:59:50]execute_cgi json_proto POST (null) [08:59:50]execute_cgi path=json_proto method=POST [08:59:50]POST find Content-Length [08:59:50]Host: 172.17.59.68:8080 [08:59:50]Content-Length: 677 [08:59:50]Content-Type: application/json [08:59:50] [08:59:50]POST finish read [08:59:50]Found Content-Length = 677 [08:59:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:50]execute_script... [08: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)320166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:50]POST & json_proto [08:59:50]process_json_proto [08:59:50]json parsed OK: [08:59:50]protocol is kg_v1.0 [08:59:50]action value=close_receipt [08:59:50]process_action close_receipt [08:59:50]cmd_close_receipt [08:59:50]MH_GetDate [08:59:50]Write to MH i2c: F0 00 00 54 48 8B [08:59:50]Write i2c OK [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: F0 [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: F0 09 00 [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: F0 09 00 54 48 00 A3 EF 73 66 BC EC 60 65 6C [08:59:50]GetLastDocTimeStamp 1718873905 [08:59:50]current date 1718874019 [08:59:50]FM_GetShiftState [08:59:50]SAM_PROTO_GetShiftState [08:59:50]wFMCommunicate request_size=4 [08:59:50]MH_SAM_APDU [08:59:50]CAPDU: 80 13 01 00 [08:59:50]Write to MH i2c: E2 08 00 55 48 80 13 01 00 00 00 00 00 1A [08:59:50]Write i2c OK [08:59:50]MH_I2C_Read... [08:59:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:50]Read from MH i2c: E2 [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: E2 0E 00 [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: E2 0E 00 55 48 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 95 [08:59:50]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [08:59:50]wFMCommunicate OK [08:59:50]SAM_PROTO_GetShiftState done [08:59:50]FM_GetShiftState done [08:59:50]opened in 1718847247 [08:59:50]opened+sec_in_day 1718933647 [08:59:50]quantity*price = 20052 [08:59:50]sum+1 = 20054 [08:59:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 19 20.06.2024 09:00 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111569 ФПД: 220774566724850 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T090019&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111569&fm=220774566724850&tin=02508201610067®Number=0000000000092771&sum=20000 [08:59:51]StoreToDocumentArchive [08:59:51]shift 389 fd 111569 [08:59:51]save to /storage/0389/doc_00111569 [08:59:51]save last doc name /storage/0389/doc_00111569 to /storage/kkm_last_doc_name [08:59:51]save OK [08:59:51]Clear old archive folders... [08:59:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:59:51]tlvbuf is B6F57B60 [08:59:51]SAM_PROTO_ClearQueue [08:59:51]wFMCommunicate request_size=4 [08:59:51]MH_SAM_APDU [08:59:51]CAPDU: 80 09 00 00 [08:59:51]Write to MH i2c: E2 08 00 62 48 80 09 00 00 00 00 00 00 1C [08:59:51]Write i2c OK [08:59:51]MH_I2C_Read... [08:59:51]Read from MH i2c: E2 [08:59:51]MH_I2C_Read... [08:59:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:51]Read from MH i2c: E2 03 00 [08:59:51]MH_I2C_Read... [08:59:51]Read from MH i2c: E2 03 00 62 48 00 90 00 1E [08:59:51]RAPDU: 90 00 [08:59:51]wFMCommunicate OK [08:59:51]SAM_PROTO_ClearQueue done [08:59:51]KKMCreateOFDPacket [08:59:51]OFDProtocolAddRootSTLVToBuf [08:59:51]FM_MakeSignedData [08:59:51]FM_MakeSignedData [08:59:51]SAM_PROTO_SignData [08:59:51]wFMCommunicate request_size=4 [08:59:51]MH_SAM_APDU [08:59:51]CAPDU: 80 0D 01 02 [08:59:51]Write to MH i2c: E2 08 00 63 48 80 0D 01 02 00 00 00 00 24 [08:59:51]Write i2c OK [08:59:51]MH_I2C_Read... [08:59:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:51]Read from MH i2c: E2 [08:59:51]MH_I2C_Read... [08:59:51]Read from MH i2c: E2 03 00 [08:59:51]MH_I2C_Read... [08:59:51]Read from MH i2c: E2 03 00 63 48 00 90 00 1F [08:59:51]RAPDU: 90 00 [08:59:51]wFMCommunicate OK [08:59:51]wFMCommunicate request_size=255 [08:59:51]MH_SAM_APDU [08: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 A3 EF 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D1 B3 01 00 35 04 06 00 C8 [08:59:51]Write to MH i2c: E2 02 01 64 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 A3 EF 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D1 B3 01 00 35 04 06 00 C8 00 00 E8 [08:59:51]Write i2c OK [08:59:51]MH_I2C_Read... [08:59:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:52]Read from MH i2c: E2 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 03 00 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 03 00 64 48 00 90 00 20 [08:59:52]RAPDU: 90 00 [08:59:52]wFMCommunicate OK [08:59:52]wFMCommunicate request_size=10 [08:59:52]MH_SAM_APDU [08:59:52]CAPDU: 80 0D 02 02 05 CB 15 A0 04 F2 [08:59:52]Write to MH i2c: E2 0D 00 65 48 80 0D 02 02 05 00 CB 15 A0 04 F2 00 00 A7 [08:59:52]Write i2c OK [08:59:52]MH_I2C_Read... [08:59:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:52]Read from MH i2c: E2 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 03 00 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 03 00 65 48 00 90 00 21 [08:59:52]RAPDU: 90 00 [08:59:52]wFMCommunicate OK [08:59:52]wFMCommunicate request_size=4 [08:59:52]MH_SAM_APDU [08:59:52]CAPDU: 80 0D 03 02 [08:59:52]Write to MH i2c: E2 08 00 66 48 80 0D 03 02 00 00 00 00 29 [08:59:52]Write i2c OK [08:59:52]MH_I2C_Read... [08:59:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:52]Read from MH i2c: E2 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 0B 00 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 0B 00 66 48 00 BF B5 01 16 DF 5C 47 11 90 00 48 [08:59:52]RAPDU: BF B5 01 16 DF 5C 47 11 90 00 [08:59:52]wFMCommunicate OK [08:59:52]SAM_PROTO_SignData done [08:59:52]FM_MakeSignedData done [08:59:52]CreateOFDProtocolMessage [08:59:52]wFMCommunicate request_size=4 [08:59:52]MH_SAM_APDU [08:59:52]CAPDU: 80 11 00 00 [08:59:52]Write to MH i2c: E2 08 00 67 48 80 11 00 00 00 00 00 00 29 [08:59:52]Write i2c OK [08:59:52]MH_I2C_Read... [08:59:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:52]Read from MH i2c: E2 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 17 00 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 17 00 67 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7B [08:59:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:59:52]wFMCommunicate OK [08:59:52]CreateOFDProtocolMessage done [08:59:52]OFDSenderStorePacket 111569 [08:59:52]StoreOFDPacket docnum=111569 [08:59:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7D 62 07 01 1A E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 A3 EF 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D1 B3 01 00 35 04 06 00 C8 CB 15 A0 04 F2 BF B5 01 16 DF 5C 47 11 [08:59:52]CheckFolder [08:59:52]dirname=/storage/ofd_packets [08:59:52]CheckFolder done [08:59:52]ProducePacketName [08:59:52]name=ofd_packets/00111569 [08:59:52]NVStorageSaveData ofd_packets/00111569 [08:59:52]File name is /storage/ofd_packets/00111569 [08:59:52]Write 301 bytes [08:59:52]NVStorageSaveData done [08:59:52]OFDSenderStorePacket done [08:59:52]KKMCreateOFDPacket done [08:59:52]NVStorageSaveData kkm_last_timestamp [08:59:52]File name is /storage/kkm_last_timestamp [08:59:52]Write 4 bytes [08:59:52]NVStorageSaveData done [08:59:52]OFD Sender: Processing packet 111569 [packets to send 38, broken 37] [08:59:52]ProducePacketName [08:59:52]name=ofd_packets/00111569 [08:59:52]OFD Sender: To server: pG, [08:59:52]CommunicateWithHost lk.salyk.kg:30040 [08:59:52]ConnectInit lk.salyk.kg [08:59:52]ExternCall_PrintAddStr [08:59:52]wPrintStart [08:59:52]Write to MH i2c: 01 00 00 68 48 B0 [08:59:52]Write i2c OK [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: 01 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: 01 07 00 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: 01 07 00 68 48 00 00 00 00 00 FF 0F C5 [08:59:52]RasterBufferAndPrint [08:59:52]line Счет N : (1)320166 [08:59:52]line ИНН: 02508201610067 [08:59:52]line Контрольно-Кассовый Чек [08:59:52]line ПРОДАЖА [08:59:52]line ТРК (МРК, ГНК) : 11 [08:59:52]line Товар: 2710124130 [08:59:52]line Аи-92-К-5 [08:59:52]line 3.020 * 66.40 [08:59:52]line = 200.53 [08:59:52]line НДС 12% НСП 1% [08:59:52]line > о реализуемом товаре [08:59:52]line ОКРУГЛЕНИЕ: -0.53 [08:59:52]line ИТОГО: 200.00 [08:59:52]line Внесено: 200.00 [08:59:52]line СДАЧА: 0.00 [08:59:52]line НСП 1% : 1.77 [08:59:52]line НДС 12% : 21.29 [08:59:52]line Наличными: 200.00 [08:59:52]line Безнал.: 0.00 [08:59:52]line Место: АЗС № 65 "Партнер Нефть" [08:59:52]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [08:59:52]line СНО: Общий режим [08:59:52]line Чек 19 20.06.2024 09:00 [08:59:52]line Смена: 389 ФФД: 1.0 [08:59:52]line ЗНМ: 0300000198 [08:59:52]line РНМ: 0000000000092771 [08:59:52]line Версия ККМ: 001 [08:59:52]line ФМ: 0000000000875083 [08:59:52]line ФД: 111569 [08:59:52]line ФПД: 220774566724850 [08:59:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T090019&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111569&fm=220774566724850&tin=02508201610067®Number=0000000000092771&sum=20000 [08:59:52]Connected sock=11 [08:59:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7D 62 07 01 1A E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 A3 EF 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D1 B3 01 00 35 04 06 00 C8 CB 15 A0 04 F2 BF B5 01 16 DF 5C 47 11 [08:59:52]written 0, free lines is 4095 [08:59:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 68 99 47 00 22 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D1 B3 01 00 F4 03 04 00 F2 86 73 66 B6 04 01 00 00 42 F4 5B 79 51 9F 7B C9 [08:59:52]CommunicateWithHost err = 0 [08:59:52]CheckOFDResponse [08:59:52]1017 (14) - 77093643461234 [08:59:52]1041 (16) - 0000000000875083 [08:59:52]1040 (4) - 111569 [08:59:52]1012 (4) - 20.06.2024 01:33 [08:59:52]1206 (1) - 0 [08:59:52]OFD Sender: Remove packet 111569 [08:59:52]ProducePacketName [08:59:52]name=ofd_packets/00111569 [08:59:52]NVStorageDeleteData [08:59:53]Write to MH i2c: 01 00 00 93 48 DB [08:59:53]Write i2c OK [08:59:53]MH_I2C_Read... [08:59:53]Read from MH i2c: 01 [08:59:53]MH_I2C_Read... [08:59:53]Read from MH i2c: 01 07 00 [08:59:53]MH_I2C_Read... [08:59:53]Read from MH i2c: 01 07 00 93 48 00 00 00 00 00 DA 0C C8 [08:59:53]RasterBufferAndPrint [08:59:53]line [08:59:53]line [08:59:53]line [08:59:53]line [08:59:53]line [08:59:53]written 0, free lines is 3300 [08:59:53]MH_Cut [08:59:53]Write to MH i2c: D1 01 00 9A 48 01 B4 [08:59:53]Write i2c OK [08:59:53]MH_I2C_Read... [08:59:53]Read from MH i2c: D1 [08:59:53]MH_I2C_Read... [08:59:53]Read from MH i2c: D1 01 00 [08:59:53]MH_I2C_Read... [08:59:53]Read from MH i2c: D1 01 00 9A 48 00 B3 [08:59:53]Write to MH i2c: 01 00 00 9B 48 E3 [08:59:53]Write i2c OK [08:59:53]MH_I2C_Read... [08:59:53]OFD Sender: No OFD packet to send [08:59:53]*** Cut start [08:59:53]*** Partial cut [08:59:53]*** CUTSNS_PIN = 1 [08:59:54]*** CUTSNS_PIN = 0 [08:59:54]*** Brake cut motor [08:59:54]Read from MH i2c: 01 [08:59:54]MH_I2C_Read... [08:59:54]*** Stop cut motor [08:59:54]*** Cut end [08:59:54]Read from MH i2c: 01 07 00 [08:59:54]MH_I2C_Read... [08:59:54]Read from MH i2c: 01 07 00 9B 48 00 00 00 00 00 FF 0F F8 [08:59:54]process_action close_receipt done [08:59:54]requested_data is exist [08:59:54]produce_requested_data [08:59:54]requested_item fm.sn is exist - process it [08:59:54]wFMCommunicate request_size=4 [08:59:54]MH_SAM_APDU [08:59:54]CAPDU: 80 11 00 00 [08:59:54]Write to MH i2c: E2 08 00 9C 48 80 11 00 00 00 00 00 00 5E [08:59:54]Write i2c OK [08:59:54]MH_I2C_Read... [08:59:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:54]Read from MH i2c: E2 [08:59:54]MH_I2C_Read... [08:59:54]Read from MH i2c: E2 17 00 [08:59:54]MH_I2C_Read... [08:59:54]Read from MH i2c: E2 17 00 9C 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B0 [08:59:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:59:54]wFMCommunicate OK [08:59:54]requested_item fd.num is exist - process it [08:59:54]SAM_PROTO_GetFieldsCounters [08:59:54]wFMCommunicate request_size=4 [08:59:54]MH_SAM_APDU [08:59:54]CAPDU: 80 13 00 00 [08:59:54]Write to MH i2c: E2 08 00 9D 48 80 13 00 00 00 00 00 00 61 [08:59:54]Write i2c OK [08:59:54]MH_I2C_Read... [08:59:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:54]Read from MH i2c: E2 [08:59:54]MH_I2C_Read... [08:59:54]Read from MH i2c: E2 62 00 [08:59:54]MH_I2C_Read... [08:59:54]Read from MH i2c: E2 62 00 9D 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D1 B3 01 00 0E 04 04 00 85 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 C6 [08:59:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D1 B3 01 00 0E 04 04 00 85 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:59:54]wFMCommunicate OK [08:59:54]SAM_PROTO_GetFieldsCounters done [08:59:54]requested_item shift.num is exist - process it [08:59:54]requested_item shift.opened is exist - process it [08:59:54]req_shift_opened [08:59:54]FM_GetShiftState [08:59:54]SAM_PROTO_GetShiftState [08:59:54]wFMCommunicate request_size=4 [08:59:54]MH_SAM_APDU [08:59:54]CAPDU: 80 13 01 00 [08:59:54]Write to MH i2c: E2 08 00 9E 48 80 13 01 00 00 00 00 00 63 [08:59:54]Write i2c OK [08:59:54]MH_I2C_Read... [08:59:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:54]Read from MH i2c: E2 [08:59:54]MH_I2C_Read... [08:59:54]Read from MH i2c: E2 0E 00 [08:59:54]MH_I2C_Read... [08:59:54]Read from MH i2c: E2 0E 00 9E 48 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 DE [08:59:54]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [08:59:54]wFMCommunicate OK [08:59:54]SAM_PROTO_GetShiftState done [08:59:54]FM_GetShiftState done [08:59:54]req_shift_opened done [08:59:54]requested_item shift.open_date is exist - process it [08:59:54]req_shift_open_date [08:59:54]req_shift_open_date done [08:59:54]produce_requested_data done [08:59:54]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111569,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [08:59:54]process_action_free close_receipt [08:59:54]json_value_free [08:59:54]json_value_free done [08:59:54]process_json_proto returns [08:59:54]Send response to host [08:59:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111569,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [08:59:54]free response buf [08:59:54]execute_script done [08:59:54]execute_script returns [08:59:54]free content buf [08:59:54]Sock 9.Close socket [08:59:54]Sock 9.Thread stoped [08:59:58]OFD Sender: No OFD packet to send [09:00:03]OFD Sender: No OFD packet to send [09:00:08]OFD Sender: No OFD packet to send [09:00:13]OFD Sender: No OFD packet to send [09:00:18]OFD Sender: No OFD packet to send [09:00:23]OFD Sender: No OFD packet to send [09:00:28]OFD Sender: No OFD packet to send [09:00:33]OFD Sender: No OFD packet to send [09:00:38]OFD Sender: No OFD packet to send [09:00:43]OFD Sender: No OFD packet to send [09:00:48]OFD Sender: No OFD packet to send [09:00:53]OFD Sender: No OFD packet to send [09:00:58]OFD Sender: No OFD packet to send [09:01:03]OFD Sender: No OFD packet to send [09:01:08]OFD Sender: No OFD packet to send [09:01:13]OFD Sender: No OFD packet to send [09:01:18]OFD Sender: No OFD packet to send [09:01:23]OFD Sender: No OFD packet to send [09:01:28]OFD Sender: No OFD packet to send [09:01:33]OFD Sender: No OFD packet to send [09:01:38]OFD Sender: No OFD packet to send [09:01:43]OFD Sender: No OFD packet to send [09:01:48]OFD Sender: No OFD packet to send [09:01:53]OFD Sender: No OFD packet to send [09:01:58]OFD Sender: No OFD packet to send [09:02:03]OFD Sender: No OFD packet to send [09:02:08]OFD Sender: No OFD packet to send [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]accept exits with 7 [09:03:08]New connection [09:03:08]New thread 3067465060 created [09:03:08]Thread 3067321700 joined [09:03:08]Waiting for new connection... [09:03:08] Sock 7.Parse request [09:03:08]Sock 7.Check first char [09:03:08]Sock 7.First char is OK [09:03:08]request: POST /json_proto HTTP/1.0 [09:03:08]Method: POST [09:03:08]URL: /json_proto [09:03:08]Method is POST - this is cgi request [09:03:08]url: /json_proto [09:03:08]query_string will be loaded in cgi processing [09:03:08]execute_cgi json_proto POST (null) [09:03:08]execute_cgi path=json_proto method=POST [09:03:08]POST find Content-Length [09:03:08]Host: 172.17.59.68:8080 [09:03:08]Content-Length: 675 [09:03:08]Content-Type: application/json [09:03:08] [09:03:08]POST finish read [09:03:08]Found Content-Length = 675 [09:03:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.020, "sum" : 730.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 730.00, "total" : 730.00, "payments": [ { "type": 0, "sum" : 730.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:08]execute_script... [09:03: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)320167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.020, "sum" : 730.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 730.00, "total" : 730.00, "payments": [ { "type": 0, "sum" : 730.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:08]POST & json_proto [09:03:08]process_json_proto [09:03:08]json parsed OK: [09:03:08]protocol is kg_v1.0 [09:03:08]action value=close_receipt [09:03:08]process_action close_receipt [09:03:08]cmd_close_receipt [09:03:08]MH_GetDate [09:03:08]Write to MH i2c: F0 00 00 9F 48 D6 [09:03:08]Write i2c OK [09:03:08]MH_I2C_Read... [09:03:08]Read from MH i2c: F0 [09:03:08]MH_I2C_Read... [09:03:08]Read from MH i2c: F0 09 00 [09:03:08]MH_I2C_Read... [09:03:08]Read from MH i2c: F0 09 00 9F 48 00 69 F0 73 66 BC EC 60 65 7E [09:03:08]GetLastDocTimeStamp 1718874019 [09:03:08]current date 1718874217 [09:03:08]FM_GetShiftState [09:03:08]SAM_PROTO_GetShiftState [09:03:08]wFMCommunicate request_size=4 [09:03:08]MH_SAM_APDU [09:03:08]CAPDU: 80 13 01 00 [09:03:08]Write to MH i2c: E2 08 00 A0 48 80 13 01 00 00 00 00 00 65 [09:03:08]Write i2c OK [09:03:08]MH_I2C_Read... [09:03:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:08]Read from MH i2c: E2 [09:03:08]MH_I2C_Read... [09:03:08]Read from MH i2c: E2 0E 00 [09:03:08]MH_I2C_Read... [09:03:08]Read from MH i2c: E2 0E 00 A0 48 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 E0 [09:03:08]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [09:03:08]wFMCommunicate OK [09:03:08]SAM_PROTO_GetShiftState done [09:03:08]FM_GetShiftState done [09:03:08]opened in 1718847247 [09:03:08]opened+sec_in_day 1718933647 [09:03:08]quantity*price = 73045 [09:03:08]sum+1 = 73047 [09:03:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 730.00 Внесено: 730.00 СДАЧА: 0.00 НСП 1% : 6.46 НДС 12% : 77.57 Наличными: 730.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 20 20.06.2024 09:03 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111570 ФПД: 245078149791969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T090337&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111570&fm=245078149791969&tin=02508201610067®Number=0000000000092771&sum=73000 [09:03:09]StoreToDocumentArchive [09:03:09]shift 389 fd 111570 [09:03:09]save to /storage/0389/doc_00111570 [09:03:09]save last doc name /storage/0389/doc_00111570 to /storage/kkm_last_doc_name [09:03:09]save OK [09:03:09]Clear old archive folders... [09:03:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:03:09]tlvbuf is 00EC1F60 [09:03:09]SAM_PROTO_ClearQueue [09:03:09]wFMCommunicate request_size=4 [09:03:09]MH_SAM_APDU [09:03:09]CAPDU: 80 09 00 00 [09:03:09]Write to MH i2c: E2 08 00 AD 48 80 09 00 00 00 00 00 00 67 [09:03:09]Write i2c OK [09:03:09]MH_I2C_Read... [09:03:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:09]Read from MH i2c: E2 [09:03:09]MH_I2C_Read... [09:03:09]Read from MH i2c: E2 03 00 [09:03:09]MH_I2C_Read... [09:03:09]Read from MH i2c: E2 03 00 AD 48 00 90 00 69 [09:03:09]RAPDU: 90 00 [09:03:09]wFMCommunicate OK [09:03:09]SAM_PROTO_ClearQueue done [09:03:09]KKMCreateOFDPacket [09:03:09]OFDProtocolAddRootSTLVToBuf [09:03:09]FM_MakeSignedData [09:03:09]FM_MakeSignedData [09:03:09]SAM_PROTO_SignData [09:03:09]wFMCommunicate request_size=4 [09:03:09]MH_SAM_APDU [09:03:09]CAPDU: 80 0D 01 02 [09:03:09]Write to MH i2c: E2 08 00 AE 48 80 0D 01 02 00 00 00 00 6F [09:03:09]Write i2c OK [09:03:09]MH_I2C_Read... [09:03:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:09]Read from MH i2c: E2 [09:03:09]MH_I2C_Read... [09:03:09]Read from MH i2c: E2 03 00 [09:03:09]MH_I2C_Read... [09:03:09]Read from MH i2c: E2 03 00 AE 48 00 90 00 6A [09:03:09]RAPDU: 90 00 [09:03:09]wFMCommunicate OK [09:03:09]wFMCommunicate request_size=255 [09:03:09]MH_SAM_APDU [09:03:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 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 69 F0 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D2 B3 01 00 35 04 06 00 DE E5 B4 0F [09:03:09]Write to MH i2c: E2 02 01 AF 48 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 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 69 F0 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D2 B3 01 00 35 04 06 00 DE E5 B4 0F 00 00 78 [09:03:09]Write i2c OK [09:03:09]MH_I2C_Read... [09:03:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:09]Read from MH i2c: E2 [09:03:09]MH_I2C_Read... [09:03:09]Read from MH i2c: E2 03 00 [09:03:09]MH_I2C_Read... [09:03:09]Read from MH i2c: E2 03 00 AF 48 00 90 00 6B [09:03:09]RAPDU: 90 00 [09:03:09]wFMCommunicate OK [09:03:09]wFMCommunicate request_size=7 [09:03:09]MH_SAM_APDU [09:03:09]CAPDU: 80 0D 02 02 02 80 E1 [09:03:09]Write to MH i2c: E2 0A 00 B0 48 80 0D 02 02 02 00 80 E1 00 00 D7 [09:03:09]Write i2c OK [09:03:09]MH_I2C_Read... [09:03:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:09]Read from MH i2c: E2 [09:03:09]MH_I2C_Read... [09:03:09]Read from MH i2c: E2 03 00 [09:03:09]MH_I2C_Read... [09:03:09]Read from MH i2c: E2 03 00 B0 48 00 90 00 6C [09:03:09]RAPDU: 90 00 [09:03:09]wFMCommunicate OK [09:03:09]wFMCommunicate request_size=4 [09:03:09]MH_SAM_APDU [09:03:09]CAPDU: 80 0D 03 02 [09:03:09]Write to MH i2c: E2 08 00 B1 48 80 0D 03 02 00 00 00 00 74 [09:03:09]Write i2c OK [09:03:09]MH_I2C_Read... [09:03:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:09]Read from MH i2c: E2 [09:03:09]MH_I2C_Read... [09:03:09]Read from MH i2c: E2 0B 00 [09:03:09]MH_I2C_Read... [09:03:09]Read from MH i2c: E2 0B 00 B1 48 00 FB C3 40 A5 BA 86 36 F1 90 00 7F [09:03:09]RAPDU: FB C3 40 A5 BA 86 36 F1 90 00 [09:03:09]wFMCommunicate OK [09:03:09]SAM_PROTO_SignData done [09:03:09]FM_MakeSignedData done [09:03:09]CreateOFDProtocolMessage [09:03:09]wFMCommunicate request_size=4 [09:03:09]MH_SAM_APDU [09:03:09]CAPDU: 80 11 00 00 [09:03:09]Write to MH i2c: E2 08 00 B2 48 80 11 00 00 00 00 00 00 74 [09:03:09]Write i2c OK [09:03:09]MH_I2C_Read... [09:03:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:09]Read from MH i2c: E2 [09:03:09]MH_I2C_Read... [09:03:09]Read from MH i2c: E2 17 00 [09:03:09]MH_I2C_Read... [09:03:09]Read from MH i2c: E2 17 00 B2 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C6 [09:03:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:03:09]wFMCommunicate OK [09:03:09]CreateOFDProtocolMessage done [09:03:09]OFDSenderStorePacket 111570 [09:03:09]StoreOFDPacket docnum=111570 [09:03:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 CA 86 04 01 88 56 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 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 69 F0 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D2 B3 01 00 35 04 06 00 DE E5 B4 0F 80 E1 FB C3 40 A5 BA 86 36 F1 [09:03:09]CheckFolder [09:03:09]dirname=/storage/ofd_packets [09:03:09]CheckFolder done [09:03:09]ProducePacketName [09:03:09]name=ofd_packets/00111570 [09:03:09]NVStorageSaveData ofd_packets/00111570 [09:03:09]File name is /storage/ofd_packets/00111570 [09:03:09]Write 298 bytes [09:03:09]NVStorageSaveData done [09:03:09]OFDSenderStorePacket done [09:03:09]KKMCreateOFDPacket done [09:03:09]NVStorageSaveData kkm_last_timestamp [09:03:09]File name is /storage/kkm_last_timestamp [09:03:09]Write 4 bytes [09:03:09]NVStorageSaveData done [09:03:09]ExternCall_PrintAddStr [09:03:09]wPrintStart [09:03:09]Write to MH i2c: 01 00 00 B3 48 FB [09:03:09]Write i2c OK [09:03:09]MH_I2C_Read... [09:03:09]Read from MH i2c: 01 [09:03:09]MH_I2C_Read... [09:03:09]Read from MH i2c: 01 07 00 [09:03:09]MH_I2C_Read... [09:03:09]Read from MH i2c: 01 07 00 B3 48 00 00 00 00 00 FF 0F 10 [09:03:09]RasterBufferAndPrint [09:03:09]line Счет N : (1)320167 [09:03:09]line ИНН: 02508201610067 [09:03:09]line Контрольно-Кассовый Чек [09:03:09]line ПРОДАЖА [09:03:09]line ТРК (МРК, ГНК) : 22 [09:03:09]line Товар: 2710194210 [09:03:09]line ДТ-К-5 [09:03:09]line 10.020 * 72.90 [09:03:09]line = 730.46 [09:03:09]line НДС 12% НСП 1% [09:03:09]line > о реализуемом товаре [09:03:09]line ОКРУГЛЕНИЕ: -0.46 [09:03:09]line ИТОГО: 730.00 [09:03:09]line Внесено: 730.00 [09:03:09]line СДАЧА: 0.00 [09:03:09]line НСП 1% : 6.46 [09:03:09]line НДС 12% : 77.57 [09:03:09]line Наличными: 730.00 [09:03:09]line Безнал.: 0.00 [09:03:09]line Место: АЗС № 65 "Партнер Нефть" [09:03:09]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:03:09]line СНО: Общий режим [09:03:09]line Чек 20 20.06.2024 09:03 [09:03:09]line Смена: 389 ФФД: 1.0 [09:03:09]line ЗНМ: 0300000198 [09:03:09]line РНМ: 0000000000092771 [09:03:09]line Версия ККМ: 001 [09:03:09]line ФМ: 0000000000875083 [09:03:09]line ФД: 111570 [09:03:09]line ФПД: 245078149791969 [09:03:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T090337&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111570&fm=245078149791969&tin=02508201610067®Number=0000000000092771&sum=73000 [09:03:10]OFD Sender: Processing packet 111570 [packets to send 38, broken 37] [09:03:10]ProducePacketName [09:03:10]name=ofd_packets/00111570 [09:03:10]OFD Sender: To server: pG, [09:03:10]CommunicateWithHost lk.salyk.kg:30040 [09:03:10]ConnectInit lk.salyk.kg [09:03:10]written 0, free lines is 4095 [09:03:10]Connected sock=10 [09:03:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 CA 86 04 01 88 56 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 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 69 F0 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D2 B3 01 00 35 04 06 00 DE E5 B4 0F 80 E1 FB C3 40 A5 BA 86 36 F1 [09:03:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 4F 77 47 00 81 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D2 B3 01 00 F4 03 04 00 B8 87 73 66 B6 04 01 00 00 3F 66 65 38 B9 16 EA E7 [09:03:10]CommunicateWithHost err = 0 [09:03:10]CheckOFDResponse [09:03:10]1017 (14) - 77093643461234 [09:03:10]1041 (16) - 0000000000875083 [09:03:10]1040 (4) - 111570 [09:03:10]1012 (4) - 20.06.2024 01:36 [09:03:10]1206 (1) - 0 [09:03:10]OFD Sender: Remove packet 111570 [09:03:10]ProducePacketName [09:03:10]name=ofd_packets/00111570 [09:03:10]NVStorageDeleteData [09:03:10]Write to MH i2c: 01 00 00 DE 48 26 [09:03:10]Write i2c OK [09:03:10]MH_I2C_Read... [09:03:10]Read from MH i2c: 01 [09:03:10]MH_I2C_Read... [09:03:10]Read from MH i2c: 01 07 00 [09:03:10]MH_I2C_Read... [09:03:10]Read from MH i2c: 01 07 00 DE 48 00 00 00 00 00 CC 0C 05 [09:03:10]RasterBufferAndPrint [09:03:10]line [09:03:10]line [09:03:10]line [09:03:10]line [09:03:10]line [09:03:10]written 0, free lines is 3283 [09:03:10]MH_Cut [09:03:10]Write to MH i2c: D1 01 00 E5 48 01 FF [09:03:10]Write i2c OK [09:03:10]MH_I2C_Read... [09:03:10]Read from MH i2c: D1 [09:03:10]MH_I2C_Read... [09:03:10]Read from MH i2c: D1 01 00 [09:03:10]MH_I2C_Read... [09:03:10]Read from MH i2c: D1 01 00 E5 48 00 FE [09:03:10]Write to MH i2c: 01 00 00 E6 48 2E [09:03:10]Write i2c OK [09:03:10]MH_I2C_Read... [09:03:10]OFD Sender: No OFD packet to send [09:03:11]*** Cut start [09:03:11]*** Partial cut [09:03:11]*** CUTSNS_PIN = 1 [09:03:11]*** CUTSNS_PIN = 0 [09:03:11]*** Brake cut motor [09:03:11]Read from MH i2c: 01 [09:03:11]MH_I2C_Read... [09:03:11]*** Stop cut motor [09:03:11]*** Cut end [09:03:11]Read from MH i2c: 01 07 00 [09:03:11]MH_I2C_Read... [09:03:11]Read from MH i2c: 01 07 00 E6 48 00 00 00 00 00 FF 0F 43 [09:03:11]process_action close_receipt done [09:03:11]requested_data is exist [09:03:11]produce_requested_data [09:03:11]requested_item fm.sn is exist - process it [09:03:11]wFMCommunicate request_size=4 [09:03:11]MH_SAM_APDU [09:03:11]CAPDU: 80 11 00 00 [09:03:11]Write to MH i2c: E2 08 00 E7 48 80 11 00 00 00 00 00 00 A9 [09:03:11]Write i2c OK [09:03:11]MH_I2C_Read... [09:03:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:11]Read from MH i2c: E2 [09:03:11]MH_I2C_Read... [09:03:11]Read from MH i2c: E2 17 00 [09:03:11]MH_I2C_Read... [09:03:11]Read from MH i2c: E2 17 00 E7 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FB [09:03:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:03:11]wFMCommunicate OK [09:03:11]requested_item fd.num is exist - process it [09:03:11]SAM_PROTO_GetFieldsCounters [09:03:11]wFMCommunicate request_size=4 [09:03:11]MH_SAM_APDU [09:03:11]CAPDU: 80 13 00 00 [09:03:11]Write to MH i2c: E2 08 00 E8 48 80 13 00 00 00 00 00 00 AC [09:03:11]Write i2c OK [09:03:11]MH_I2C_Read... [09:03:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:12]Read from MH i2c: E2 [09:03:12]MH_I2C_Read... [09:03:12]Read from MH i2c: E2 62 00 [09:03:12]MH_I2C_Read... [09:03:12]Read from MH i2c: E2 62 00 E8 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D2 B3 01 00 0E 04 04 00 85 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 15 [09:03:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D2 B3 01 00 0E 04 04 00 85 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 [09:03:12]wFMCommunicate OK [09:03:12]SAM_PROTO_GetFieldsCounters done [09:03:12]requested_item shift.num is exist - process it [09:03:12]requested_item shift.opened is exist - process it [09:03:12]req_shift_opened [09:03:12]FM_GetShiftState [09:03:12]SAM_PROTO_GetShiftState [09:03:12]wFMCommunicate request_size=4 [09:03:12]MH_SAM_APDU [09:03:12]CAPDU: 80 13 01 00 [09:03:12]Write to MH i2c: E2 08 00 E9 48 80 13 01 00 00 00 00 00 AE [09:03:12]Write i2c OK [09:03:12]MH_I2C_Read... [09:03:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:12]Read from MH i2c: E2 [09:03:12]MH_I2C_Read... [09:03:12]Read from MH i2c: E2 0E 00 [09:03:12]MH_I2C_Read... [09:03:12]Read from MH i2c: E2 0E 00 E9 48 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 29 [09:03:12]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [09:03:12]wFMCommunicate OK [09:03:12]SAM_PROTO_GetShiftState done [09:03:12]FM_GetShiftState done [09:03:12]req_shift_opened done [09:03:12]requested_item shift.open_date is exist - process it [09:03:12]req_shift_open_date [09:03:12]req_shift_open_date done [09:03:12]produce_requested_data done [09:03:12]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111570,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [09:03:12]process_action_free close_receipt [09:03:12]json_value_free [09:03:12]json_value_free done [09:03:12]process_json_proto returns [09:03:12]Send response to host [09:03:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111570,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [09:03:12]free response buf [09:03:12]execute_script done [09:03:12]execute_script returns [09:03:12]free content buf [09:03:12]Sock 7.Close socket [09:03:12]Sock 7.Thread stoped [09:03:15]OFD Sender: No OFD packet to send [09:03:20]OFD Sender: No OFD packet to send [09:03:25]OFD Sender: No OFD packet to send [09:03:30]OFD Sender: No OFD packet to send [09:03:35]OFD Sender: No OFD packet to send [09:03:40]OFD Sender: No OFD packet to send [09:03:45]OFD Sender: No OFD packet to send [09:03:50]OFD Sender: No OFD packet to send [09:03:55]OFD Sender: No OFD packet to send [09:04:00]OFD Sender: No OFD packet to send [09:04:05]OFD Sender: No OFD packet to send [09:04:10]OFD Sender: No OFD packet to send [09:04:16]OFD Sender: No OFD packet to send [09:04:21]OFD Sender: No OFD packet to send [09:04:26]OFD Sender: No OFD packet to send [09:04:31]OFD Sender: No OFD packet to send [09:04:36]OFD Sender: No OFD packet to send [09:04:41]OFD Sender: No OFD packet to send [09:04:46]OFD Sender: No OFD packet to send [09:04:51]OFD Sender: No OFD packet to send [09:04:56]OFD Sender: No OFD packet to send [09:05:01]OFD Sender: No OFD packet to send [09:05:06]OFD Sender: No OFD packet to send [09:05:11]OFD Sender: No OFD packet to send [09:05:16]OFD Sender: No OFD packet to send [09:05:21]OFD Sender: No OFD packet to send [09:05:26]OFD Sender: No OFD packet to send [09:05:31]OFD Sender: No OFD packet to send [09:05:36]OFD Sender: No OFD packet to send [09:05:41]OFD Sender: No OFD packet to send [09:05:46]OFD Sender: No OFD packet to send [09:05:51]OFD Sender: No OFD packet to send [09:05:56]OFD Sender: No OFD packet to send [09:06:01]OFD Sender: No OFD packet to send [09:06:06]OFD Sender: No OFD packet to send [09:06:11]OFD Sender: No OFD packet to send [09:06:16]OFD Sender: No OFD packet to send [09:06:21]OFD Sender: No OFD packet to send [09:06:26]OFD Sender: No OFD packet to send [09:06:31]OFD Sender: No OFD packet to send [09:06:31]accept exits with 9 [09:06:31]New connection [09:06:31]New thread 3067321700 created [09:06:31]Thread 3067465060 joined [09:06:31]Waiting for new connection... [09:06:31] Sock 9.Parse request [09:06:31]Sock 9.Check first char [09:06:31]Sock 9.First char is OK [09:06:31]request: POST /json_proto HTTP/1.0 [09:06:31]Method: POST [09:06:31]URL: /json_proto [09:06:31]Method is POST - this is cgi request [09:06:31]url: /json_proto [09:06:31]query_string will be loaded in cgi processing [09:06:31]execute_cgi json_proto POST (null) [09:06:31]execute_cgi path=json_proto method=POST [09:06:31]POST find Content-Length [09:06:31]Host: 172.17.59.68:8080 [09:06:31]Content-Length: 682 [09:06:31]Content-Type: application/json [09:06:31] [09:06:31]POST finish read [09:06:31]Found Content-Length = 682 [09:06:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:31]execute_script... [09:06: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)320168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:31]POST & json_proto [09:06:31]process_json_proto [09:06:31]json parsed OK: [09:06:31]protocol is kg_v1.0 [09:06:31]action value=close_receipt [09:06:31]process_action close_receipt [09:06:31]cmd_close_receipt [09:06:31]MH_GetDate [09:06:31]Write to MH i2c: F0 00 00 EA 48 21 [09:06:31]Write i2c OK [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: F0 [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: F0 09 00 [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: F0 09 00 EA 48 00 34 F1 73 66 BC EC 60 65 95 [09:06:31]GetLastDocTimeStamp 1718874217 [09:06:31]current date 1718874420 [09:06:31]FM_GetShiftState [09:06:31]SAM_PROTO_GetShiftState [09:06:31]wFMCommunicate request_size=4 [09:06:31]MH_SAM_APDU [09:06:31]CAPDU: 80 13 01 00 [09:06:31]Write to MH i2c: E2 08 00 EB 48 80 13 01 00 00 00 00 00 B0 [09:06:31]Write i2c OK [09:06:31]MH_I2C_Read... [09:06:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:31]Read from MH i2c: E2 [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: E2 0E 00 [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: E2 0E 00 EB 48 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 2B [09:06:31]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [09:06:31]wFMCommunicate OK [09:06:31]SAM_PROTO_GetShiftState done [09:06:31]FM_GetShiftState done [09:06:31]opened in 1718847247 [09:06:31]opened+sec_in_day 1718933647 [09:06:31]quantity*price = 100064 [09:06:31]sum+1 = 100066 [09:06:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 21 20.06.2024 09:07 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111571 ФПД: 215336647225905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T090700&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111571&fm=215336647225905&tin=02508201610067®Number=0000000000092771&sum=100000 [09:06:32]StoreToDocumentArchive [09:06:32]shift 389 fd 111571 [09:06:32]save to /storage/0389/doc_00111571 [09:06:32]save last doc name /storage/0389/doc_00111571 to /storage/kkm_last_doc_name [09:06:32]save OK [09:06:32]Clear old archive folders... [09:06:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:06:32]tlvbuf is 00ED6620 [09:06:32]SAM_PROTO_ClearQueue [09:06:32]wFMCommunicate request_size=4 [09:06:32]MH_SAM_APDU [09:06:32]CAPDU: 80 09 00 00 [09:06:32]Write to MH i2c: E2 08 00 F8 48 80 09 00 00 00 00 00 00 B2 [09:06:32]Write i2c OK [09:06:32]MH_I2C_Read... [09:06:32]Read from MH i2c: E2 [09:06:32]MH_I2C_Read... [09:06:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:32]Read from MH i2c: E2 03 00 [09:06:32]MH_I2C_Read... [09:06:32]Read from MH i2c: E2 03 00 F8 48 00 90 00 B4 [09:06:32]RAPDU: 90 00 [09:06:32]wFMCommunicate OK [09:06:32]SAM_PROTO_ClearQueue done [09:06:32]KKMCreateOFDPacket [09:06:32]OFDProtocolAddRootSTLVToBuf [09:06:32]FM_MakeSignedData [09:06:32]FM_MakeSignedData [09:06:32]SAM_PROTO_SignData [09:06:32]wFMCommunicate request_size=4 [09:06:32]MH_SAM_APDU [09:06:32]CAPDU: 80 0D 01 02 [09:06:32]Write to MH i2c: E2 08 00 F9 48 80 0D 01 02 00 00 00 00 BA [09:06:32]Write i2c OK [09:06:32]MH_I2C_Read... [09:06:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:32]Read from MH i2c: E2 [09:06:32]MH_I2C_Read... [09:06:32]Read from MH i2c: E2 03 00 [09:06:32]MH_I2C_Read... [09:06:32]Read from MH i2c: E2 03 00 F9 48 00 90 00 B5 [09:06:32]RAPDU: 90 00 [09:06:32]wFMCommunicate OK [09:06:32]wFMCommunicate request_size=255 [09:06:32]MH_SAM_APDU [09:06:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 34 F1 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D3 B3 01 00 35 04 06 00 C3 [09:06:32]Write to MH i2c: E2 02 01 FA 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 34 F1 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D3 B3 01 00 35 04 06 00 C3 00 00 A1 [09:06:32]Write i2c OK [09:06:32]MH_I2C_Read... [09:06:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:33]Read from MH i2c: E2 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: E2 03 00 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: E2 03 00 FA 48 00 90 00 B6 [09:06:33]RAPDU: 90 00 [09:06:33]wFMCommunicate OK [09:06:33]wFMCommunicate request_size=10 [09:06:33]MH_SAM_APDU [09:06:33]CAPDU: 80 0D 02 02 05 D8 F8 5D 72 31 [09:06:33]Write to MH i2c: E2 0D 00 FB 48 80 0D 02 02 05 00 D8 F8 5D 72 31 00 00 97 [09:06:33]Write i2c OK [09:06:33]MH_I2C_Read... [09:06:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:33]Read from MH i2c: E2 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: E2 03 00 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: E2 03 00 FB 48 00 90 00 B7 [09:06:33]RAPDU: 90 00 [09:06:33]wFMCommunicate OK [09:06:33]wFMCommunicate request_size=4 [09:06:33]MH_SAM_APDU [09:06:33]CAPDU: 80 0D 03 02 [09:06:33]Write to MH i2c: E2 08 00 FC 48 80 0D 03 02 00 00 00 00 BF [09:06:33]Write i2c OK [09:06:33]MH_I2C_Read... [09:06:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:33]Read from MH i2c: E2 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: E2 0B 00 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: E2 0B 00 FC 48 00 04 39 A9 06 4E 6F 8C 57 90 00 4C [09:06:33]RAPDU: 04 39 A9 06 4E 6F 8C 57 90 00 [09:06:33]wFMCommunicate OK [09:06:33]SAM_PROTO_SignData done [09:06:33]FM_MakeSignedData done [09:06:33]CreateOFDProtocolMessage [09:06:33]wFMCommunicate request_size=4 [09:06:33]MH_SAM_APDU [09:06:33]CAPDU: 80 11 00 00 [09:06:33]Write to MH i2c: E2 08 00 FD 48 80 11 00 00 00 00 00 00 BF [09:06:33]Write i2c OK [09:06:33]MH_I2C_Read... [09:06:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:33]Read from MH i2c: E2 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: E2 17 00 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: E2 17 00 FD 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 11 [09:06:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:06:33]wFMCommunicate OK [09:06:33]CreateOFDProtocolMessage done [09:06:33]OFDSenderStorePacket 111571 [09:06:33]StoreOFDPacket docnum=111571 [09:06:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D1 F1 07 01 0E 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 34 F1 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D3 B3 01 00 35 04 06 00 C3 D8 F8 5D 72 31 04 39 A9 06 4E 6F 8C 57 [09:06:33]CheckFolder [09:06:33]dirname=/storage/ofd_packets [09:06:33]CheckFolder done [09:06:33]ProducePacketName [09:06:33]name=ofd_packets/00111571 [09:06:33]NVStorageSaveData ofd_packets/00111571 [09:06:33]File name is /storage/ofd_packets/00111571 [09:06:33]Write 301 bytes [09:06:33]NVStorageSaveData done [09:06:33]OFDSenderStorePacket done [09:06:33]KKMCreateOFDPacket done [09:06:33]NVStorageSaveData kkm_last_timestamp [09:06:33]File name is /storage/kkm_last_timestamp [09:06:33]Write 4 bytes [09:06:33]NVStorageSaveData done [09:06:33]ExternCall_PrintAddStr [09:06:33]wPrintStart [09:06:33]Write to MH i2c: 01 00 00 FE 48 46 [09:06:33]Write i2c OK [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: 01 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: 01 07 00 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: 01 07 00 FE 48 00 00 00 00 00 FF 0F 5B [09:06:33]RasterBufferAndPrint [09:06:33]line Счет N : (1)320168 [09:06:33]line ИНН: 02508201610067 [09:06:33]line Контрольно-Кассовый Чек [09:06:33]line ПРОДАЖА [09:06:33]line ТРК (МРК, ГНК) : 11 [09:06:33]line Товар: 2710124130 [09:06:33]line Аи-92-К-5 [09:06:33]line 15.070 * 66.40 [09:06:33]line = 1000.65 [09:06:33]line НДС 12% НСП 1% [09:06:33]line > о реализуемом товаре [09:06:33]line ОКРУГЛЕНИЕ: -0.65 [09:06:33]line ИТОГО: 1000.00 [09:06:33]line Внесено: 1000.00 [09:06:33]line СДАЧА: 0.00 [09:06:33]line НСП 1% : 8.85 [09:06:33]line НДС 12% : 106.26 [09:06:33]line Наличными: 1000.00 [09:06:33]line Безнал.: 0.00 [09:06:33]line Место: АЗС № 65 "Партнер Нефть" [09:06:33]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:06:33]line СНО: Общий режим [09:06:33]line Чек 21 20.06.2024 09:07 [09:06:33]line Смена: 389 ФФД: 1.0 [09:06:33]line ЗНМ: 0300000198 [09:06:33]line РНМ: 0000000000092771 [09:06:33]line Версия ККМ: 001 [09:06:33]line ФМ: 0000000000875083 [09:06:33]line ФД: 111571 [09:06:33]line ФПД: 215336647225905 [09:06:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T090700&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111571&fm=215336647225905&tin=02508201610067®Number=0000000000092771&sum=100000 [09:06:33]OFD Sender: Processing packet 111571 [packets to send 38, broken 37] [09:06:33]ProducePacketName [09:06:33]name=ofd_packets/00111571 [09:06:33]OFD Sender: To server: pG, [09:06:33]CommunicateWithHost lk.salyk.kg:30040 [09:06:33]ConnectInit lk.salyk.kg [09:06:33]written 0, free lines is 4095 [09:06:33]Connected sock=10 [09:06:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D1 F1 07 01 0E 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 34 F1 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D3 B3 01 00 35 04 06 00 C3 D8 F8 5D 72 31 04 39 A9 06 4E 6F 8C 57 [09:06:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 9D BD 47 00 EC 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D3 B3 01 00 F4 03 04 00 83 88 73 66 B6 04 01 00 00 E6 35 F8 5F 90 96 E7 DB [09:06:33]CommunicateWithHost err = 0 [09:06:33]CheckOFDResponse [09:06:33]1017 (14) - 77093643461234 [09:06:33]1041 (16) - 0000000000875083 [09:06:33]1040 (4) - 111571 [09:06:33]1012 (4) - 20.06.2024 01:40 [09:06:33]1206 (1) - 0 [09:06:33]OFD Sender: Remove packet 111571 [09:06:33]ProducePacketName [09:06:33]name=ofd_packets/00111571 [09:06:33]NVStorageDeleteData [09:06:34]Write to MH i2c: 01 00 00 29 49 72 [09:06:34]Write i2c OK [09:06:34]MH_I2C_Read... [09:06:34]Read from MH i2c: 01 [09:06:34]MH_I2C_Read... [09:06:34]Read from MH i2c: 01 07 00 [09:06:34]MH_I2C_Read... [09:06:34]Read from MH i2c: 01 07 00 29 49 00 00 00 00 00 DF 0C 64 [09:06:34]RasterBufferAndPrint [09:06:34]line [09:06:34]line [09:06:34]line [09:06:34]line [09:06:34]line [09:06:34]written 0, free lines is 3301 [09:06:34]MH_Cut [09:06:34]Write to MH i2c: D1 01 00 30 49 01 4B [09:06:34]Write i2c OK [09:06:34]MH_I2C_Read... [09:06:34]Read from MH i2c: D1 [09:06:34]MH_I2C_Read... [09:06:34]Read from MH i2c: D1 01 00 [09:06:34]MH_I2C_Read... [09:06:34]Read from MH i2c: D1 01 00 30 49 00 4A [09:06:34]Write to MH i2c: 01 00 00 31 49 7A [09:06:34]Write i2c OK [09:06:34]MH_I2C_Read... [09:06:34]OFD Sender: No OFD packet to send [09:06:34]*** Cut start [09:06:34]*** Partial cut [09:06:34]*** CUTSNS_PIN = 1 [09:06:34]*** CUTSNS_PIN = 0 [09:06:35]*** Brake cut motor [09:06:35]Read from MH i2c: 01 [09:06:35]MH_I2C_Read... [09:06:35]*** Stop cut motor [09:06:35]*** Cut end [09:06:35]Read from MH i2c: 01 07 00 [09:06:35]MH_I2C_Read... [09:06:35]Read from MH i2c: 01 07 00 31 49 00 00 00 00 00 FF 0F 8F [09:06:35]process_action close_receipt done [09:06:35]requested_data is exist [09:06:35]produce_requested_data [09:06:35]requested_item fm.sn is exist - process it [09:06:35]wFMCommunicate request_size=4 [09:06:35]MH_SAM_APDU [09:06:35]CAPDU: 80 11 00 00 [09:06:35]Write to MH i2c: E2 08 00 32 49 80 11 00 00 00 00 00 00 F5 [09:06:35]Write i2c OK [09:06:35]MH_I2C_Read... [09:06:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:35]Read from MH i2c: E2 [09:06:35]MH_I2C_Read... [09:06:35]Read from MH i2c: E2 17 00 [09:06:35]MH_I2C_Read... [09:06:35]Read from MH i2c: E2 17 00 32 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 47 [09:06:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:06:35]wFMCommunicate OK [09:06:35]requested_item fd.num is exist - process it [09:06:35]SAM_PROTO_GetFieldsCounters [09:06:35]wFMCommunicate request_size=4 [09:06:35]MH_SAM_APDU [09:06:35]CAPDU: 80 13 00 00 [09:06:35]Write to MH i2c: E2 08 00 33 49 80 13 00 00 00 00 00 00 F8 [09:06:35]Write i2c OK [09:06:35]MH_I2C_Read... [09:06:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:35]Read from MH i2c: E2 [09:06:35]MH_I2C_Read... [09:06:35]Read from MH i2c: E2 62 00 [09:06:35]MH_I2C_Read... [09:06:35]Read from MH i2c: E2 62 00 33 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D3 B3 01 00 0E 04 04 00 85 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 65 [09:06:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D3 B3 01 00 0E 04 04 00 85 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 [09:06:35]wFMCommunicate OK [09:06:35]SAM_PROTO_GetFieldsCounters done [09:06:35]requested_item shift.num is exist - process it [09:06:35]requested_item shift.opened is exist - process it [09:06:35]req_shift_opened [09:06:35]FM_GetShiftState [09:06:35]SAM_PROTO_GetShiftState [09:06:35]wFMCommunicate request_size=4 [09:06:35]MH_SAM_APDU [09:06:35]CAPDU: 80 13 01 00 [09:06:35]Write to MH i2c: E2 08 00 34 49 80 13 01 00 00 00 00 00 FA [09:06:35]Write i2c OK [09:06:35]MH_I2C_Read... [09:06:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:35]Read from MH i2c: E2 [09:06:35]MH_I2C_Read... [09:06:35]Read from MH i2c: E2 0E 00 [09:06:35]MH_I2C_Read... [09:06:35]Read from MH i2c: E2 0E 00 34 49 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 75 [09:06:35]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [09:06:35]wFMCommunicate OK [09:06:35]SAM_PROTO_GetShiftState done [09:06:35]FM_GetShiftState done [09:06:35]req_shift_opened done [09:06:35]requested_item shift.open_date is exist - process it [09:06:35]req_shift_open_date [09:06:35]req_shift_open_date done [09:06:35]produce_requested_data done [09:06:35]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111571,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [09:06:35]process_action_free close_receipt [09:06:35]json_value_free [09:06:35]json_value_free done [09:06:35]process_json_proto returns [09:06:35]Send response to host [09:06:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111571,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [09:06:35]free response buf [09:06:35]execute_script done [09:06:35]execute_script returns [09:06:35]free content buf [09:06:35]Sock 9.Close socket [09:06:35]Sock 9.Thread stoped [09:06:39]OFD Sender: No OFD packet to send [09:06:44]OFD Sender: No OFD packet to send [09:06:49]OFD Sender: No OFD packet to send [09:06:54]OFD Sender: No OFD packet to send [09:06:59]OFD Sender: No OFD packet to send [09:07:04]OFD Sender: No OFD packet to send [09:07:09]OFD Sender: No OFD packet to send [09:07:14]OFD Sender: No OFD packet to send [09:07:19]OFD Sender: No OFD packet to send [09:07:24]OFD Sender: No OFD packet to send [09:07:29]OFD Sender: No OFD packet to send [09:07:34]OFD Sender: No OFD packet to send [09:07:39]OFD Sender: No OFD packet to send [09:07:44]OFD Sender: No OFD packet to send [09:07:49]OFD Sender: No OFD packet to send [09:07:54]OFD Sender: No OFD packet to send [09:07:59]OFD Sender: No OFD packet to send [09:08:04]OFD Sender: No OFD packet to send [09:08:09]OFD Sender: No OFD packet to send [09:08:14]OFD Sender: No OFD packet to send [09:08:19]OFD Sender: No OFD packet to send [09:08:24]OFD Sender: No OFD packet to send [09:08:29]OFD Sender: No OFD packet to send [09:08:34]OFD Sender: No OFD packet to send [09:08:39]OFD Sender: No OFD packet to send [09:08:44]OFD Sender: No OFD packet to send [09:08:49]OFD Sender: No OFD packet to send [09:08:54]OFD Sender: No OFD packet to send [09:08:59]OFD Sender: No OFD packet to send [09:09:04]OFD Sender: No OFD packet to send [09:09:09]OFD Sender: No OFD packet to send [09:09:14]OFD Sender: No OFD packet to send [09:09:19]OFD Sender: No OFD packet to send [09:09:24]OFD Sender: No OFD packet to send [09:09:27]accept exits with 7 [09:09:27]New connection [09:09:27]New thread 3067465060 created [09:09:27]Thread 3067321700 joined [09:09:27]Waiting for new connection... [09:09:27] Sock 7.Parse request [09:09:27]Sock 7.Check first char [09:09:27]Sock 7.First char is OK [09:09:27]request: POST /json_proto HTTP/1.0 [09:09:27]Method: POST [09:09:27]URL: /json_proto [09:09:27]Method is POST - this is cgi request [09:09:27]url: /json_proto [09:09:27]query_string will be loaded in cgi processing [09:09:27]execute_cgi json_proto POST (null) [09:09:27]execute_cgi path=json_proto method=POST [09:09:27]POST find Content-Length [09:09:27]Host: 172.17.59.68:8080 [09:09:27]Content-Length: 805 [09:09:27]Content-Type: application/json [09:09:27] [09:09:27]POST finish read [09:09:27]Found Content-Length = 805 [09:09:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.780, "sum" : 450.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 450.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:27]execute_script... [09:09: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)320169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.780, "sum" : 450.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 450.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:27]POST & json_proto [09:09:27]process_json_proto [09:09:27]json parsed OK: [09:09:27]protocol is kg_v1.0 [09:09:27]action value=close_receipt [09:09:27]process_action close_receipt [09:09:27]cmd_close_receipt [09:09:27]MH_GetDate [09:09:27]Write to MH i2c: F0 00 00 35 49 6D [09:09:27]Write i2c OK [09:09:27]MH_I2C_Read... [09:09:27]Read from MH i2c: F0 [09:09:27]MH_I2C_Read... [09:09:27]Read from MH i2c: F0 09 00 [09:09:27]MH_I2C_Read... [09:09:27]Read from MH i2c: F0 09 00 35 49 00 E4 F1 73 66 BC EC 60 65 91 [09:09:27]GetLastDocTimeStamp 1718874420 [09:09:27]current date 1718874596 [09:09:27]FM_GetShiftState [09:09:27]SAM_PROTO_GetShiftState [09:09:27]wFMCommunicate request_size=4 [09:09:27]MH_SAM_APDU [09:09:27]CAPDU: 80 13 01 00 [09:09:27]Write to MH i2c: E2 08 00 36 49 80 13 01 00 00 00 00 00 FC [09:09:27]Write i2c OK [09:09:27]MH_I2C_Read... [09:09:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:27]Read from MH i2c: E2 [09:09:27]MH_I2C_Read... [09:09:27]Read from MH i2c: E2 0E 00 [09:09:27]MH_I2C_Read... [09:09:27]Read from MH i2c: E2 0E 00 36 49 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 77 [09:09:27]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [09:09:27]wFMCommunicate OK [09:09:27]SAM_PROTO_GetShiftState done [09:09:27]FM_GetShiftState done [09:09:27]opened in 1718847247 [09:09:27]opened+sec_in_day 1718933647 [09:09:27]quantity*price = 45019 [09:09:27]sum+1 = 45020 [09:09:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 450.19 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 0.00 Безнал.: 450.19 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 22 20.06.2024 09:09 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111572 ФПД: 185027887861946 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T090956&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111572&fm=185027887861946&tin=02508201610067®Number=0000000000092771&sum=45019 [09:09:28]StoreToDocumentArchive [09:09:28]shift 389 fd 111572 [09:09:28]save to /storage/0389/doc_00111572 [09:09:28]save last doc name /storage/0389/doc_00111572 to /storage/kkm_last_doc_name [09:09:28]save OK [09:09:28]Clear old archive folders... [09:09:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:09:28]tlvbuf is 00F3BA10 [09:09:28]SAM_PROTO_ClearQueue [09:09:28]wFMCommunicate request_size=4 [09:09:28]MH_SAM_APDU [09:09:28]CAPDU: 80 09 00 00 [09:09:28]Write to MH i2c: E2 08 00 43 49 80 09 00 00 00 00 00 00 FE [09:09:28]Write i2c OK [09:09:28]MH_I2C_Read... [09:09:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:28]Read from MH i2c: E2 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 03 00 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 03 00 43 49 00 90 00 00 [09:09:28]RAPDU: 90 00 [09:09:28]wFMCommunicate OK [09:09:28]SAM_PROTO_ClearQueue done [09:09:28]KKMCreateOFDPacket [09:09:28]OFDProtocolAddRootSTLVToBuf [09:09:28]FM_MakeSignedData [09:09:28]FM_MakeSignedData [09:09:28]SAM_PROTO_SignData [09:09:28]wFMCommunicate request_size=4 [09:09:28]MH_SAM_APDU [09:09:28]CAPDU: 80 0D 01 02 [09:09:28]Write to MH i2c: E2 08 00 44 49 80 0D 01 02 00 00 00 00 06 [09:09:28]Write i2c OK [09:09:28]MH_I2C_Read... [09:09:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:28]Read from MH i2c: E2 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 03 00 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 03 00 44 49 00 90 00 01 [09:09:28]RAPDU: 90 00 [09:09:28]wFMCommunicate OK [09:09:28]wFMCommunicate request_size=255 [09:09:28]MH_SAM_APDU [09:09: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 7C 1A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DB AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DB AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 E4 F1 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D4 B3 01 00 35 04 06 00 A8 [09:09:28]Write to MH i2c: E2 02 01 45 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 1A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DB AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DB AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 E4 F1 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D4 B3 01 00 35 04 06 00 A8 00 00 15 [09:09:28]Write i2c OK [09:09:28]MH_I2C_Read... [09:09:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:28]Read from MH i2c: E2 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 03 00 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 03 00 45 49 00 90 00 02 [09:09:28]RAPDU: 90 00 [09:09:28]wFMCommunicate OK [09:09:28]wFMCommunicate request_size=10 [09:09:28]MH_SAM_APDU [09:09:28]CAPDU: 80 0D 02 02 05 48 29 87 90 BA [09:09:28]Write to MH i2c: E2 0D 00 46 49 80 0D 02 02 05 00 48 29 87 90 BA 00 00 55 [09:09:28]Write i2c OK [09:09:28]MH_I2C_Read... [09:09:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:28]Read from MH i2c: E2 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 03 00 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 03 00 46 49 00 90 00 03 [09:09:28]RAPDU: 90 00 [09:09:28]wFMCommunicate OK [09:09:28]wFMCommunicate request_size=4 [09:09:28]MH_SAM_APDU [09:09:28]CAPDU: 80 0D 03 02 [09:09:28]Write to MH i2c: E2 08 00 47 49 80 0D 03 02 00 00 00 00 0B [09:09:28]Write i2c OK [09:09:28]MH_I2C_Read... [09:09:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:28]Read from MH i2c: E2 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 0B 00 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 0B 00 47 49 00 4C B4 50 3C A3 CD 74 A6 90 00 22 [09:09:28]RAPDU: 4C B4 50 3C A3 CD 74 A6 90 00 [09:09:28]wFMCommunicate OK [09:09:28]SAM_PROTO_SignData done [09:09:28]FM_MakeSignedData done [09:09:28]CreateOFDProtocolMessage [09:09:28]wFMCommunicate request_size=4 [09:09:28]MH_SAM_APDU [09:09:28]CAPDU: 80 11 00 00 [09:09:28]Write to MH i2c: E2 08 00 48 49 80 11 00 00 00 00 00 00 0B [09:09:28]Write i2c OK [09:09:28]MH_I2C_Read... [09:09:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:28]Read from MH i2c: E2 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 17 00 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 17 00 48 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5D [09:09:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:09:28]wFMCommunicate OK [09:09:28]CreateOFDProtocolMessage done [09:09:28]OFDSenderStorePacket 111572 [09:09:28]StoreOFDPacket docnum=111572 [09:09:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9A 61 07 01 67 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 7C 1A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DB AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DB AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 E4 F1 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D4 B3 01 00 35 04 06 00 A8 48 29 87 90 BA 4C B4 50 3C A3 CD 74 A6 [09:09:28]CheckFolder [09:09:28]dirname=/storage/ofd_packets [09:09:28]CheckFolder done [09:09:28]ProducePacketName [09:09:28]name=ofd_packets/00111572 [09:09:28]NVStorageSaveData ofd_packets/00111572 [09:09:28]File name is /storage/ofd_packets/00111572 [09:09:28]Write 301 bytes [09:09:28]NVStorageSaveData done [09:09:28]OFDSenderStorePacket done [09:09:28]KKMCreateOFDPacket done [09:09:28]NVStorageSaveData kkm_last_timestamp [09:09:28]File name is /storage/kkm_last_timestamp [09:09:28]Write 4 bytes [09:09:28]NVStorageSaveData done [09:09:28]ExternCall_PrintAddStr [09:09:28]wPrintStart [09:09:28]Write to MH i2c: 01 00 00 49 49 92 [09:09:28]Write i2c OK [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: 01 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: 01 07 00 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: 01 07 00 49 49 00 00 00 00 00 FF 0F A7 [09:09:28]RasterBufferAndPrint [09:09:28]line Счет N : (1)320169 [09:09:28]line ИНН: 02508201610067 [09:09:28]line Контрольно-Кассовый Чек [09:09:28]line ПРОДАЖА [09:09:28]line ТРК (МРК, ГНК) : 11 [09:09:28]line Товар: 2710124130 [09:09:28]line Аи-92-К-5 [09:09:28]line 6.780 * 66.40 [09:09:28]line = 450.19 [09:09:28]line НДС 12% НСП 1% [09:09:28]line > о реализуемом товаре [09:09:28]line ИТОГО: 450.19 [09:09:28]line НСП 1% : 3.98 [09:09:28]line НДС 12% : 47.81 [09:09:28]line Наличными: 0.00 [09:09:28]line Безнал.: 450.19 [09:09:28]line Место: АЗС № 65 "Партнер Нефть" [09:09:28]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:09:28]line СНО: Общий режим [09:09:28]line Чек 22 20.06.2024 09:09 [09:09:28]line Смена: 389 ФФД: 1.0 [09:09:28]line ЗНМ: 0300000198 [09:09:28]line РНМ: 0000000000092771 [09:09:28]line Версия ККМ: 001 [09:09:28]line Платежная система: О! деньги [09:09:28]line ФМ: 0000000000875083 [09:09:28]line ФД: 111572 [09:09:28]line ФПД: 185027887861946 [09:09:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T090956&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111572&fm=185027887861946&tin=02508201610067®Number=0000000000092771&sum=45019 [09:09:29]written 0, free lines is 4095 [09:09:29]OFD Sender: Processing packet 111572 [packets to send 38, broken 37] [09:09:29]ProducePacketName [09:09:29]name=ofd_packets/00111572 [09:09:29]OFD Sender: To server: pG, [09:09:29]CommunicateWithHost lk.salyk.kg:30040 [09:09:29]ConnectInit lk.salyk.kg [09:09:29]Connected sock=10 [09:09:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9A 61 07 01 67 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 7C 1A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DB AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DB AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 E4 F1 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D4 B3 01 00 35 04 06 00 A8 48 29 87 90 BA 4C B4 50 3C A3 CD 74 A6 [09:09:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 31 E1 47 00 52 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 35 30 38 33 10 04 04 00 D4 B3 01 00 F4 03 04 00 33 89 73 66 B6 04 01 00 00 3A D4 D4 AB 54 D8 93 05 [09:09:29]CommunicateWithHost err = 0 [09:09:29]CheckOFDResponse [09:09:29]1017 (14) - 77093643461234 [09:09:29]1041 (16) - 0000000000875083 [09:09:29]1040 (4) - 111572 [09:09:29]1012 (4) - 20.06.2024 01:43 [09:09:29]1206 (1) - 0 [09:09:29]OFD Sender: Remove packet 111572 [09:09:29]ProducePacketName [09:09:29]name=ofd_packets/00111572 [09:09:29]NVStorageDeleteData [09:09:29]Write to MH i2c: 01 00 00 73 49 BC [09:09:29]Write i2c OK [09:09:29]MH_I2C_Read... [09:09:29]Read from MH i2c: 01 [09:09:29]MH_I2C_Read... [09:09:29]Read from MH i2c: 01 07 00 [09:09:29]MH_I2C_Read... [09:09:29]Read from MH i2c: 01 07 00 73 49 00 00 00 00 00 EA 0C B9 [09:09:29]RasterBufferAndPrint [09:09:29]line [09:09:29]line [09:09:29]line [09:09:29]line [09:09:29]line [09:09:29]written 0, free lines is 3312 [09:09:29]MH_Cut [09:09:29]Write to MH i2c: D1 01 00 7A 49 01 95 [09:09:29]Write i2c OK [09:09:29]MH_I2C_Read... [09:09:29]Read from MH i2c: D1 [09:09:29]MH_I2C_Read... [09:09:29]Read from MH i2c: D1 01 00 [09:09:29]MH_I2C_Read... [09:09:29]Read from MH i2c: D1 01 00 7A 49 00 94 [09:09:29]Write to MH i2c: 01 00 00 7B 49 C4 [09:09:29]Write i2c OK [09:09:29]MH_I2C_Read... [09:09:30]OFD Sender: No OFD packet to send [09:09:30]*** Cut start [09:09:30]*** Partial cut [09:09:30]*** CUTSNS_PIN = 1 [09:09:30]*** CUTSNS_PIN = 0 [09:09:30]*** Brake cut motor [09:09:31]Read from MH i2c: 01 [09:09:31]MH_I2C_Read... [09:09:31]*** Stop cut motor [09:09:31]*** Cut end [09:09:31]Read from MH i2c: 01 07 00 [09:09:31]MH_I2C_Read... [09:09:31]Read from MH i2c: 01 07 00 7B 49 00 00 00 00 00 FF 0F D9 [09:09:31]process_action close_receipt done [09:09:31]requested_data is exist [09:09:31]produce_requested_data [09:09:31]requested_item fm.sn is exist - process it [09:09:31]wFMCommunicate request_size=4 [09:09:31]MH_SAM_APDU [09:09:31]CAPDU: 80 11 00 00 [09:09:31]Write to MH i2c: E2 08 00 7C 49 80 11 00 00 00 00 00 00 3F [09:09:31]Write i2c OK [09:09:31]MH_I2C_Read... [09:09:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:31]Read from MH i2c: E2 [09:09:31]MH_I2C_Read... [09:09:31]Read from MH i2c: E2 17 00 [09:09:31]MH_I2C_Read... [09:09:31]Read from MH i2c: E2 17 00 7C 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 91 [09:09:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:09:31]wFMCommunicate OK [09:09:31]requested_item fd.num is exist - process it [09:09:31]SAM_PROTO_GetFieldsCounters [09:09:31]wFMCommunicate request_size=4 [09:09:31]MH_SAM_APDU [09:09:31]CAPDU: 80 13 00 00 [09:09:31]Write to MH i2c: E2 08 00 7D 49 80 13 00 00 00 00 00 00 42 [09:09:31]Write i2c OK [09:09:31]MH_I2C_Read... [09:09:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:31]Read from MH i2c: E2 [09:09:31]MH_I2C_Read... [09:09:31]Read from MH i2c: E2 62 00 [09:09:31]MH_I2C_Read... [09:09:31]Read from MH i2c: E2 62 00 7D 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D4 B3 01 00 0E 04 04 00 85 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 B3 [09:09:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D4 B3 01 00 0E 04 04 00 85 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 [09:09:31]wFMCommunicate OK [09:09:31]SAM_PROTO_GetFieldsCounters done [09:09:31]requested_item shift.num is exist - process it [09:09:31]requested_item shift.opened is exist - process it [09:09:31]req_shift_opened [09:09:31]FM_GetShiftState [09:09:31]SAM_PROTO_GetShiftState [09:09:31]wFMCommunicate request_size=4 [09:09:31]MH_SAM_APDU [09:09:31]CAPDU: 80 13 01 00 [09:09:31]Write to MH i2c: E2 08 00 7E 49 80 13 01 00 00 00 00 00 44 [09:09:31]Write i2c OK [09:09:31]MH_I2C_Read... [09:09:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:31]Read from MH i2c: E2 [09:09:31]MH_I2C_Read... [09:09:31]Read from MH i2c: E2 0E 00 [09:09:31]MH_I2C_Read... [09:09:31]Read from MH i2c: E2 0E 00 7E 49 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 BF [09:09:31]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [09:09:31]wFMCommunicate OK [09:09:31]SAM_PROTO_GetShiftState done [09:09:31]FM_GetShiftState done [09:09:31]req_shift_opened done [09:09:31]requested_item shift.open_date is exist - process it [09:09:31]req_shift_open_date [09:09:31]req_shift_open_date done [09:09:31]produce_requested_data done [09:09:31]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111572,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [09:09:31]process_action_free close_receipt [09:09:31]json_value_free [09:09:31]json_value_free done [09:09:31]process_json_proto returns [09:09:31]Send response to host [09:09:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111572,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [09:09:31]free response buf [09:09:31]execute_script done [09:09:31]execute_script returns [09:09:31]free content buf [09:09:31]Sock 7.Close socket [09:09:31]Sock 7.Thread stoped [09:09:35]OFD Sender: No OFD packet to send [09:09:40]OFD Sender: No OFD packet to send [09:09:45]OFD Sender: No OFD packet to send [09:09:50]OFD Sender: No OFD packet to send [09:09:55]OFD Sender: No OFD packet to send [09:10:00]OFD Sender: No OFD packet to send [09:10:05]OFD Sender: No OFD packet to send [09:10:10]OFD Sender: No OFD packet to send [09:10:15]OFD Sender: No OFD packet to send [09:10:20]OFD Sender: No OFD packet to send [09:10:25]OFD Sender: No OFD packet to send [09:10:30]OFD Sender: No OFD packet to send [09:10:35]OFD Sender: No OFD packet to send [09:10:40]OFD Sender: No OFD packet to send [09:10:45]OFD Sender: No OFD packet to send [09:10:50]OFD Sender: No OFD packet to send [09:10:55]OFD Sender: No OFD packet to send [09:11:00]OFD Sender: No OFD packet to send [09:11:05]OFD Sender: No OFD packet to send [09:11:10]OFD Sender: No OFD packet to send [09:11:15]OFD Sender: No OFD packet to send [09:11:20]OFD Sender: No OFD packet to send [09:11:25]OFD Sender: No OFD packet to send [09:11:30]OFD Sender: No OFD packet to send [09:11:35]OFD Sender: No OFD packet to send [09:11:40]OFD Sender: No OFD packet to send [09:11:45]OFD Sender: No OFD packet to send [09:11:50]OFD Sender: No OFD packet to send [09:11:55]OFD Sender: No OFD packet to send [09:12:00]OFD Sender: No OFD packet to send [09:12:05]OFD Sender: No OFD packet to send [09:12:10]OFD Sender: No OFD packet to send [09:12:15]OFD Sender: No OFD packet to send [09:12:20]OFD Sender: No OFD packet to send [09:12:25]OFD Sender: No OFD packet to send [09:12:30]OFD Sender: No OFD packet to send [09:12:35]OFD Sender: No OFD packet to send [09:12:40]OFD Sender: No OFD packet to send [09:12:45]OFD Sender: No OFD packet to send [09:12:50]OFD Sender: No OFD packet to send [09:12:55]OFD Sender: No OFD packet to send [09:13:00]OFD Sender: No OFD packet to send [09:13:05]OFD Sender: No OFD packet to send [09:13:10]OFD Sender: No OFD packet to send [09:13:15]OFD Sender: No OFD packet to send [09:13:20]OFD Sender: No OFD packet to send [09:13:25]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:05]OFD Sender: No OFD packet to send [09:16:10]OFD Sender: No OFD packet to send [09:16:15]OFD Sender: No OFD packet to send [09:16:20]OFD Sender: No OFD packet to send [09:16:25]OFD Sender: No OFD packet to send [09:16:30]OFD Sender: No OFD packet to send [09:16:35]OFD Sender: No OFD packet to send [09:16:40]OFD Sender: No OFD packet to send [09:16:45]OFD Sender: No OFD packet to send [09:16:50]OFD Sender: No OFD packet to send [09:16:55]OFD Sender: No OFD packet to send [09:17:00]OFD Sender: No OFD packet to send [09:17:05]OFD Sender: No OFD packet to send [09:17:10]OFD Sender: No OFD packet to send [09:17:15]OFD Sender: No OFD packet to send [09:17:20]OFD Sender: No OFD packet to send [09:17:25]OFD Sender: No OFD packet to send [09:17:30]OFD Sender: No OFD packet to send [09:17:35]OFD Sender: No OFD packet to send [09:17:40]OFD Sender: No OFD packet to send [09:17:45]OFD Sender: No OFD packet to send [09:17:50]OFD Sender: No OFD packet to send [09:17:55]OFD Sender: No OFD packet to send [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:35]OFD Sender: No OFD packet to send [09:18:40]OFD Sender: No OFD packet to send [09:18:45]OFD Sender: No OFD packet to send [09:18:50]OFD Sender: No OFD packet to send [09:18:55]OFD Sender: No OFD packet to send [09:19:00]OFD Sender: No OFD packet to send [09:19:05]OFD Sender: No OFD packet to send [09:19:10]OFD Sender: No OFD packet to send [09:19:15]OFD Sender: No OFD packet to send [09:19:20]OFD Sender: No OFD packet to send [09:19:25]OFD Sender: No OFD packet to send [09:19:30]OFD Sender: No OFD packet to send [09:19:35]OFD Sender: No OFD packet to send [09:19:40]OFD Sender: No OFD packet to send [09:19:45]OFD Sender: No OFD packet to send [09:19:50]OFD Sender: No OFD packet to send [09:19:55]OFD Sender: No OFD packet to send [09:20:00]OFD Sender: No OFD packet to send [09:20:05]OFD Sender: No OFD packet to send [09:20:10]OFD Sender: No OFD packet to send [09:20:15]OFD Sender: No OFD packet to send [09:20:20]OFD Sender: No OFD packet to send [09:20:25]OFD Sender: No OFD packet to send [09:20:30]OFD Sender: No OFD packet to send [09:20:35]OFD Sender: No OFD packet to send [09:20:40]OFD Sender: No OFD packet to send [09:20:41]accept exits with 9 [09:20:41]New connection [09:20:41]New thread 3067321700 created [09:20:41]Thread 3067465060 joined [09:20:41]Waiting for new connection... [09:20:41] Sock 9.Parse request [09:20:41]Sock 9.Check first char [09:20:41]Sock 9.First char is OK [09:20:41]request: POST /json_proto HTTP/1.0 [09:20:41]Method: POST [09:20:41]URL: /json_proto [09:20:41]Method is POST - this is cgi request [09:20:41]url: /json_proto [09:20:41]query_string will be loaded in cgi processing [09:20:41]execute_cgi json_proto POST (null) [09:20:41]execute_cgi path=json_proto method=POST [09:20:41]POST find Content-Length [09:20:41]Host: 172.17.59.68:8080 [09:20:41]Content-Length: 805 [09:20:41]Content-Type: application/json [09:20:41] [09:20:41]POST finish read [09:20:41]Found Content-Length = 805 [09:20:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:41]execute_script... [09: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)320170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:41]POST & json_proto [09:20:41]process_json_proto [09:20:41]json parsed OK: [09:20:41]protocol is kg_v1.0 [09:20:41]action value=close_receipt [09:20:41]process_action close_receipt [09:20:41]cmd_close_receipt [09:20:41]MH_GetDate [09:20:41]Write to MH i2c: F0 00 00 7F 49 B7 [09:20:41]Write i2c OK [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: F0 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: F0 09 00 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: F0 09 00 7F 49 00 87 F4 73 66 BC EC 60 65 81 [09:20:41]GetLastDocTimeStamp 1718874596 [09:20:41]current date 1718875271 [09:20:41]FM_GetShiftState [09:20:41]SAM_PROTO_GetShiftState [09:20:41]wFMCommunicate request_size=4 [09:20:41]MH_SAM_APDU [09:20:41]CAPDU: 80 13 01 00 [09:20:41]Write to MH i2c: E2 08 00 80 49 80 13 01 00 00 00 00 00 46 [09:20:41]Write i2c OK [09:20:41]MH_I2C_Read... [09:20:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:41]Read from MH i2c: E2 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: E2 0E 00 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: E2 0E 00 80 49 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 C1 [09:20:41]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [09:20:41]wFMCommunicate OK [09:20:41]SAM_PROTO_GetShiftState done [09:20:41]FM_GetShiftState done [09:20:41]opened in 1718847247 [09:20:41]opened+sec_in_day 1718933647 [09:20:41]quantity*price = 100018 [09:20:41]sum+1 = 100020 [09:20:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 23 20.06.2024 09:21 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111573 ФПД: 237250543213055 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T092111&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111573&fm=237250543213055&tin=02508201610067®Number=0000000000092771&sum=100019 [09:20:42]StoreToDocumentArchive [09:20:42]shift 389 fd 111573 [09:20:42]save to /storage/0389/doc_00111573 [09:20:42]save last doc name /storage/0389/doc_00111573 to /storage/kkm_last_doc_name [09:20:42]save OK [09:20:42]Clear old archive folders... [09:20:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:20:42]tlvbuf is 00F07F40 [09:20:42]SAM_PROTO_ClearQueue [09:20:42]wFMCommunicate request_size=4 [09:20:42]MH_SAM_APDU [09:20:42]CAPDU: 80 09 00 00 [09:20:42]Write to MH i2c: E2 08 00 8D 49 80 09 00 00 00 00 00 00 48 [09:20:42]Write i2c OK [09:20:42]MH_I2C_Read... [09:20:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:20:42]Read from MH i2c: E2 [09:20:42]MH_I2C_Read... [09:20:42]Read from MH i2c: E2 03 00 [09:20:42]MH_I2C_Read... [09:20:42]Read from MH i2c: E2 03 00 8D 49 00 90 00 4A [09:20:42]RAPDU: 90 00 [09:20:42]wFMCommunicate OK [09:20:42]SAM_PROTO_ClearQueue done [09:20:42]KKMCreateOFDPacket [09:20:42]OFDProtocolAddRootSTLVToBuf [09:20:42]FM_MakeSignedData [09:20:42]FM_MakeSignedData [09:20:42]SAM_PROTO_SignData [09:20:42]wFMCommunicate request_size=4 [09:20:42]MH_SAM_APDU [09:20:42]CAPDU: 80 0D 01 02 [09:20:42]Write to MH i2c: E2 08 00 8E 49 80 0D 01 02 00 00 00 00 50 [09:20:42]Write i2c OK [09:20:42]MH_I2C_Read... [09:20:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:20:42]Read from MH i2c: E2 [09:20:42]MH_I2C_Read... [09:20:42]Read from MH i2c: E2 03 00 [09:20:42]MH_I2C_Read... [09:20:42]Read from MH i2c: E2 03 00 8E 49 00 90 00 4B [09:20:42]RAPDU: 90 00 [09:20:42]wFMCommunicate OK [09:20:42]wFMCommunicate request_size=255 [09:20:42]MH_SAM_APDU [09:20:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 87 F4 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D5 B3 01 00 35 04 06 00 D7 C7 32 59 [09:20:42]Write to MH i2c: E2 02 01 8F 49 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 87 F4 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D5 B3 01 00 35 04 06 00 D7 C7 32 59 00 00 7F [09:20:42]Write i2c OK [09:20:42]MH_I2C_Read... [09:20:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:43]Read from MH i2c: E2 [09:20:43]MH_I2C_Read... [09:20:43]Read from MH i2c: E2 03 00 [09:20:43]MH_I2C_Read... [09:20:43]Read from MH i2c: E2 03 00 8F 49 00 90 00 4C [09:20:43]RAPDU: 90 00 [09:20:43]wFMCommunicate OK [09:20:43]wFMCommunicate request_size=7 [09:20:43]MH_SAM_APDU [09:20:43]CAPDU: 80 0D 02 02 02 D9 FF [09:20:43]Write to MH i2c: E2 0A 00 90 49 80 0D 02 02 02 00 D9 FF 00 00 2F [09:20:43]Write i2c OK [09:20:43]MH_I2C_Read... [09:20:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:43]Read from MH i2c: E2 [09:20:43]MH_I2C_Read... [09:20:43]Read from MH i2c: E2 03 00 [09:20:43]MH_I2C_Read... [09:20:43]Read from MH i2c: E2 03 00 90 49 00 90 00 4D [09:20:43]RAPDU: 90 00 [09:20:43]wFMCommunicate OK [09:20:43]wFMCommunicate request_size=4 [09:20:43]MH_SAM_APDU [09:20:43]CAPDU: 80 0D 03 02 [09:20:43]Write to MH i2c: E2 08 00 91 49 80 0D 03 02 00 00 00 00 55 [09:20:43]Write i2c OK [09:20:43]MH_I2C_Read... [09:20:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:20:43]Read from MH i2c: E2 [09:20:43]MH_I2C_Read... [09:20:43]Read from MH i2c: E2 0B 00 [09:20:43]MH_I2C_Read... [09:20:43]Read from MH i2c: E2 0B 00 91 49 00 DC 9D CF CD 58 35 24 C4 90 00 E0 [09:20:43]RAPDU: DC 9D CF CD 58 35 24 C4 90 00 [09:20:43]wFMCommunicate OK [09:20:43]SAM_PROTO_SignData done [09:20:43]FM_MakeSignedData done [09:20:43]CreateOFDProtocolMessage [09:20:43]wFMCommunicate request_size=4 [09:20:43]MH_SAM_APDU [09:20:43]CAPDU: 80 11 00 00 [09:20:43]Write to MH i2c: E2 08 00 92 49 80 11 00 00 00 00 00 00 55 [09:20:43]Write i2c OK [09:20:43]MH_I2C_Read... [09:20:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:43]Read from MH i2c: E2 [09:20:43]MH_I2C_Read... [09:20:43]Read from MH i2c: E2 17 00 [09:20:43]MH_I2C_Read... [09:20:43]Read from MH i2c: E2 17 00 92 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A7 [09:20:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:20:43]wFMCommunicate OK [09:20:43]CreateOFDProtocolMessage done [09:20:43]OFDSenderStorePacket 111573 [09:20:43]StoreOFDPacket docnum=111573 [09:20:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 4B BC 04 01 9F 2D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 87 F4 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D5 B3 01 00 35 04 06 00 D7 C7 32 59 D9 FF DC 9D CF CD 58 35 24 C4 [09:20:43]CheckFolder [09:20:43]dirname=/storage/ofd_packets [09:20:43]CheckFolder done [09:20:43]ProducePacketName [09:20:43]name=ofd_packets/00111573 [09:20:43]NVStorageSaveData ofd_packets/00111573 [09:20:43]File name is /storage/ofd_packets/00111573 [09:20:43]Write 298 bytes [09:20:43]NVStorageSaveData done [09:20:43]OFDSenderStorePacket done [09:20:43]KKMCreateOFDPacket done [09:20:43]NVStorageSaveData kkm_last_timestamp [09:20:43]File name is /storage/kkm_last_timestamp [09:20:43]Write 4 bytes [09:20:43]NVStorageSaveData done [09:20:43]ExternCall_PrintAddStr [09:20:43]wPrintStart [09:20:43]Write to MH i2c: 01 00 00 93 49 DC [09:20:43]Write i2c OK [09:20:43]MH_I2C_Read... [09:20:43]Read from MH i2c: 01 [09:20:43]MH_I2C_Read... [09:20:43]Read from MH i2c: 01 07 00 [09:20:43]MH_I2C_Read... [09:20:43]Read from MH i2c: 01 07 00 93 49 00 00 00 00 00 FF 0F F1 [09:20:43]RasterBufferAndPrint [09:20:43]line Счет N : (1)320170 [09:20:43]line ИНН: 02508201610067 [09:20:43]line Контрольно-Кассовый Чек [09:20:43]line ПРОДАЖА [09:20:43]line ТРК (МРК, ГНК) : 22 [09:20:43]line Товар: 2710194210 [09:20:43]line ДТ-К-5 [09:20:43]line 13.720 * 72.90 [09:20:43]line = 1000.19 [09:20:43]line НДС 12% НСП 1% [09:20:43]line > о реализуемом товаре [09:20:43]line ИТОГО: 1000.19 [09:20:43]line НСП 1% : 8.85 [09:20:43]line НДС 12% : 106.21 [09:20:43]line Наличными: 0.00 [09:20:43]line Безнал.: 1000.19 [09:20:43]line Место: АЗС № 65 "Партнер Нефть" [09:20:43]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:20:43]line СНО: Общий режим [09:20:43]line Чек 23 20.06.2024 09:21 [09:20:43]line Смена: 389 ФФД: 1.0 [09:20:43]line ЗНМ: 0300000198 [09:20:43]line РНМ: 0000000000092771 [09:20:43]line Версия ККМ: 001 [09:20:43]line Платежная система: О! деньги [09:20:43]line ФМ: 0000000000875083 [09:20:43]line ФД: 111573 [09:20:43]line ФПД: 237250543213055 [09:20:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T092111&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111573&fm=237250543213055&tin=02508201610067®Number=0000000000092771&sum=100019 [09:20:43]OFD Sender: Processing packet 111573 [packets to send 38, broken 37] [09:20:43]ProducePacketName [09:20:43]name=ofd_packets/00111573 [09:20:43]OFD Sender: To server: pG, [09:20:43]CommunicateWithHost lk.salyk.kg:30040 [09:20:43]ConnectInit lk.salyk.kg [09:20:43]written 0, free lines is 4095 [09:20:43]Connected sock=10 [09:20:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 4B BC 04 01 9F 2D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 87 F4 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D5 B3 01 00 35 04 06 00 D7 C7 32 59 D9 FF DC 9D CF CD 58 35 24 C4 [09:20:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 7F 4E 47 00 F2 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D5 B3 01 00 F4 03 04 00 D5 8B 73 66 B6 04 01 00 00 59 CC 0C CD 28 99 CF E8 [09:20:43]CommunicateWithHost err = 0 [09:20:43]CheckOFDResponse [09:20:43]1017 (14) - 77093643461234 [09:20:43]1041 (16) - 0000000000875083 [09:20:43]1040 (4) - 111573 [09:20:43]1012 (4) - 20.06.2024 01:54 [09:20:43]1206 (1) - 0 [09:20:43]OFD Sender: Remove packet 111573 [09:20:43]ProducePacketName [09:20:43]name=ofd_packets/00111573 [09:20:43]NVStorageDeleteData [09:20:43]Write to MH i2c: 01 00 00 BD 49 06 [09:20:43]Write i2c OK [09:20:43]MH_I2C_Read... [09:20:43]Read from MH i2c: 01 [09:20:43]MH_I2C_Read... [09:20:43]Read from MH i2c: 01 07 00 [09:20:43]MH_I2C_Read... [09:20:43]Read from MH i2c: 01 07 00 BD 49 00 00 00 00 00 E5 0C FE [09:20:43]RasterBufferAndPrint [09:20:43]line [09:20:43]line [09:20:43]line [09:20:43]line [09:20:43]line [09:20:43]written 0, free lines is 3308 [09:20:43]MH_Cut [09:20:43]Write to MH i2c: D1 01 00 C4 49 01 DF [09:20:44]Write i2c OK [09:20:44]MH_I2C_Read... [09:20:44]Read from MH i2c: D1 [09:20:44]MH_I2C_Read... [09:20:44]Read from MH i2c: D1 01 00 [09:20:44]MH_I2C_Read... [09:20:44]Read from MH i2c: D1 01 00 C4 49 00 DE [09:20:44]Write to MH i2c: 01 00 00 C5 49 0E [09:20:44]Write i2c OK [09:20:44]MH_I2C_Read... [09:20:44]OFD Sender: No OFD packet to send [09:20:44]*** Cut start [09:20:44]*** Partial cut [09:20:44]*** CUTSNS_PIN = 1 [09:20:44]*** CUTSNS_PIN = 0 [09:20:44]*** Brake cut motor [09:20:45]Read from MH i2c: 01 [09:20:45]MH_I2C_Read... [09:20:45]*** Stop cut motor [09:20:45]*** Cut end [09:20:45]Read from MH i2c: 01 07 00 [09:20:45]MH_I2C_Read... [09:20:45]Read from MH i2c: 01 07 00 C5 49 00 00 00 00 00 FF 0F 23 [09:20:45]process_action close_receipt done [09:20:45]requested_data is exist [09:20:45]produce_requested_data [09:20:45]requested_item fm.sn is exist - process it [09:20:45]wFMCommunicate request_size=4 [09:20:45]MH_SAM_APDU [09:20:45]CAPDU: 80 11 00 00 [09:20:45]Write to MH i2c: E2 08 00 C6 49 80 11 00 00 00 00 00 00 89 [09:20:45]Write i2c OK [09:20:45]MH_I2C_Read... [09:20:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:45]Read from MH i2c: E2 [09:20:45]MH_I2C_Read... [09:20:45]Read from MH i2c: E2 17 00 [09:20:45]MH_I2C_Read... [09:20:45]Read from MH i2c: E2 17 00 C6 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DB [09:20:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:20:45]wFMCommunicate OK [09:20:45]requested_item fd.num is exist - process it [09:20:45]SAM_PROTO_GetFieldsCounters [09:20:45]wFMCommunicate request_size=4 [09:20:45]MH_SAM_APDU [09:20:45]CAPDU: 80 13 00 00 [09:20:45]Write to MH i2c: E2 08 00 C7 49 80 13 00 00 00 00 00 00 8C [09:20:45]Write i2c OK [09:20:45]MH_I2C_Read... [09:20:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:45]Read from MH i2c: E2 [09:20:45]MH_I2C_Read... [09:20:45]Read from MH i2c: E2 62 00 [09:20:45]MH_I2C_Read... [09:20:45]Read from MH i2c: E2 62 00 C7 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D5 B3 01 00 0E 04 04 00 85 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 01 [09: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D5 B3 01 00 0E 04 04 00 85 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 [09:20:45]wFMCommunicate OK [09:20:45]SAM_PROTO_GetFieldsCounters done [09:20:45]requested_item shift.num is exist - process it [09:20:45]requested_item shift.opened is exist - process it [09:20:45]req_shift_opened [09:20:45]FM_GetShiftState [09:20:45]SAM_PROTO_GetShiftState [09:20:45]wFMCommunicate request_size=4 [09:20:45]MH_SAM_APDU [09:20:45]CAPDU: 80 13 01 00 [09:20:45]Write to MH i2c: E2 08 00 C8 49 80 13 01 00 00 00 00 00 8E [09:20:45]Write i2c OK [09:20:45]MH_I2C_Read... [09:20:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:45]Read from MH i2c: E2 [09:20:45]MH_I2C_Read... [09:20:45]Read from MH i2c: E2 0E 00 [09:20:45]MH_I2C_Read... [09:20:45]Read from MH i2c: E2 0E 00 C8 49 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 09 [09:20:45]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [09:20:45]wFMCommunicate OK [09:20:45]SAM_PROTO_GetShiftState done [09:20:45]FM_GetShiftState done [09:20:45]req_shift_opened done [09:20:45]requested_item shift.open_date is exist - process it [09:20:45]req_shift_open_date [09:20:45]req_shift_open_date done [09:20:45]produce_requested_data done [09:20:45]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111573,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [09:20:45]process_action_free close_receipt [09:20:45]json_value_free [09:20:45]json_value_free done [09:20:45]process_json_proto returns [09:20:45]Send response to host [09:20:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111573,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [09:20:45]free response buf [09:20:45]execute_script done [09:20:45]execute_script returns [09:20:45]free content buf [09:20:45]Sock 9.Close socket [09:20:45]Sock 9.Thread stoped [09:20:49]OFD Sender: No OFD packet to send [09:20:54]OFD Sender: No OFD packet to send [09:20:59]OFD Sender: No OFD packet to send [09:21:04]OFD Sender: No OFD packet to send [09:21:09]OFD Sender: No OFD packet to send [09:21:14]OFD Sender: No OFD packet to send [09:21:19]OFD Sender: No OFD packet to send [09:21:24]OFD Sender: No OFD packet to send [09:21:29]OFD Sender: No OFD packet to send [09:21:34]OFD Sender: No OFD packet to send [09:21:39]OFD Sender: No OFD packet to send [09:21:44]OFD Sender: No OFD packet to send [09:21:49]OFD Sender: No OFD packet to send [09:21:54]OFD Sender: No OFD packet to send [09:21:59]OFD Sender: No OFD packet to send [09:22:04]OFD Sender: No OFD packet to send [09:22:09]OFD Sender: No OFD packet to send [09:22:14]OFD Sender: No OFD packet to send [09:22:19]OFD Sender: No OFD packet to send [09:22:24]OFD Sender: No OFD packet to send [09:22:29]OFD Sender: No OFD packet to send [09:22:34]OFD Sender: No OFD packet to send [09:22:39]OFD Sender: No OFD packet to send [09:22:44]OFD Sender: No OFD packet to send [09:22:49]OFD Sender: No OFD packet to send [09:22:54]OFD Sender: No OFD packet to send [09:22:59]OFD Sender: No OFD packet to send [09:23:04]OFD Sender: No OFD packet to send [09:23:09]OFD Sender: No OFD packet to send [09:23:14]OFD Sender: No OFD packet to send [09:23:19]OFD Sender: No OFD packet to send [09:23:24]OFD Sender: No OFD packet to send [09:23:29]OFD Sender: No OFD packet to send [09:23:34]OFD Sender: No OFD packet to send [09:23:39]OFD Sender: No OFD packet to send [09:23:44]OFD Sender: No OFD packet to send [09:23:49]OFD Sender: No OFD packet to send [09:23:54]OFD Sender: No OFD packet to send [09:23:59]OFD Sender: No OFD packet to send [09:24:04]OFD Sender: No OFD packet to send [09:24:09]OFD Sender: No OFD packet to send [09:24:14]OFD Sender: No OFD packet to send [09:24:19]OFD Sender: No OFD packet to send [09:24:24]OFD Sender: No OFD packet to send [09:24:29]OFD Sender: No OFD packet to send [09:24:34]OFD Sender: No OFD packet to send [09:24:39]OFD Sender: No OFD packet to send [09:24:44]OFD Sender: No OFD packet to send [09:24:49]OFD Sender: No OFD packet to send [09:24:54]OFD Sender: No OFD packet to send [09:24:59]OFD Sender: No OFD packet to send [09:25:04]OFD Sender: No OFD packet to send [09:25:09]OFD Sender: No OFD packet to send [09:25:14]OFD Sender: No OFD packet to send [09:25:19]OFD Sender: No OFD packet to send [09:25:24]OFD Sender: No OFD packet to send [09:25:29]OFD Sender: No OFD packet to send [09:25:34]OFD Sender: No OFD packet to send [09:25:39]OFD Sender: No OFD packet to send [09:25:44]OFD Sender: No OFD packet to send [09:25:49]OFD Sender: No OFD packet to send [09:25:54]OFD Sender: No OFD packet to send [09:25:59]OFD Sender: No OFD packet to send [09:26:04]OFD Sender: No OFD packet to send [09:26:09]OFD Sender: No OFD packet to send [09:26:14]OFD Sender: No OFD packet to send [09:26:19]OFD Sender: No OFD packet to send [09:26:24]OFD Sender: No OFD packet to send [09:26:29]OFD Sender: No OFD packet to send [09:26:34]OFD Sender: No OFD packet to send [09:26:39]OFD Sender: No OFD packet to send [09:26:44]OFD Sender: No OFD packet to send [09:26:49]OFD Sender: No OFD packet to send [09:26:54]OFD Sender: No OFD packet to send [09:26:59]OFD Sender: No OFD packet to send [09:27:04]OFD Sender: No OFD packet to send [09:27:09]OFD Sender: No OFD packet to send [09:27:14]OFD Sender: No OFD packet to send [09:27:19]OFD Sender: No OFD packet to send [09:27:24]OFD Sender: No OFD packet to send [09:27:29]OFD Sender: No OFD packet to send [09:27:34]OFD Sender: No OFD packet to send [09:27:39]OFD Sender: No OFD packet to send [09:27:44]OFD Sender: No OFD packet to send [09:27:49]OFD Sender: No OFD packet to send [09:27:54]OFD Sender: No OFD packet to send [09:27:59]OFD Sender: No OFD packet to send [09:28:04]OFD Sender: No OFD packet to send [09:28:09]OFD Sender: No OFD packet to send [09:28:14]OFD Sender: No OFD packet to send [09:28:19]OFD Sender: No OFD packet to send [09:28:24]OFD Sender: No OFD packet to send [09:28:29]OFD Sender: No OFD packet to send [09:28:34]OFD Sender: No OFD packet to send [09:28:39]OFD Sender: No OFD packet to send [09:28:44]OFD Sender: No OFD packet to send [09:28:49]OFD Sender: No OFD packet to send [09:28:54]OFD Sender: No OFD packet to send [09:28:59]OFD Sender: No OFD packet to send [09:29:04]OFD Sender: No OFD packet to send [09:29:09]OFD Sender: No OFD packet to send [09:29:14]OFD Sender: No OFD packet to send [09:29:19]OFD Sender: No OFD packet to send [09:29:24]OFD Sender: No OFD packet to send [09:29:29]OFD Sender: No OFD packet to send [09:29:34]OFD Sender: No OFD packet to send [09:29:39]OFD Sender: No OFD packet to send [09:29:44]OFD Sender: No OFD packet to send [09:29:49]OFD Sender: No OFD packet to send [09:29:54]OFD Sender: No OFD packet to send [09:29:59]OFD Sender: No OFD packet to send [09:30:04]OFD Sender: No OFD packet to send [09:30:09]OFD Sender: No OFD packet to send [09:30:14]OFD Sender: No OFD packet to send [09:30:19]OFD Sender: No OFD packet to send [09:30:24]OFD Sender: No OFD packet to send [09:30:29]OFD Sender: No OFD packet to send [09:30:34]OFD Sender: No OFD packet to send [09:30:39]OFD Sender: No OFD packet to send [09:30:44]OFD Sender: No OFD packet to send [09:30:49]OFD Sender: No OFD packet to send [09:30:54]OFD Sender: No OFD packet to send [09:30:59]OFD Sender: No OFD packet to send [09:31:04]OFD Sender: No OFD packet to send [09:31:09]OFD Sender: No OFD packet to send [09:31:14]OFD Sender: No OFD packet to send [09:31:19]OFD Sender: No OFD packet to send [09:31:24]OFD Sender: No OFD packet to send [09:31:29]OFD Sender: No OFD packet to send [09:31:34]OFD Sender: No OFD packet to send [09:31:39]OFD Sender: No OFD packet to send [09:31:44]OFD Sender: No OFD packet to send [09:31:49]OFD Sender: No OFD packet to send [09:31:54]OFD Sender: No OFD packet to send [09:31:59]OFD Sender: No OFD packet to send [09:32:04]OFD Sender: No OFD packet to send [09:32:09]OFD Sender: No OFD packet to send [09:32:14]OFD Sender: No OFD packet to send [09:32:19]OFD Sender: No OFD packet to send [09:32:24]OFD Sender: No OFD packet to send [09:32:29]OFD Sender: No OFD packet to send [09:32:34]OFD Sender: No OFD packet to send [09:32:39]OFD Sender: No OFD packet to send [09:32:44]OFD Sender: No OFD packet to send [09:32:49]OFD Sender: No OFD packet to send [09:32:54]OFD Sender: No OFD packet to send [09:32:59]OFD Sender: No OFD packet to send [09:33:04]OFD Sender: No OFD packet to send [09:33:09]OFD Sender: No OFD packet to send [09:33:15]OFD Sender: No OFD packet to send [09:33:20]OFD Sender: No OFD packet to send [09:33:25]OFD Sender: No OFD packet to send [09:33:30]OFD Sender: No OFD packet to send [09:33:35]OFD Sender: No OFD packet to send [09:33:40]OFD Sender: No OFD packet to send [09:33:45]OFD Sender: No OFD packet to send [09:33:50]OFD Sender: No OFD packet to send [09:33:55]OFD Sender: No OFD packet to send [09:34:00]OFD Sender: No OFD packet to send [09:34:05]OFD Sender: No OFD packet to send [09:34:10]OFD Sender: No OFD packet to send [09:34:15]OFD Sender: No OFD packet to send [09:34:20]OFD Sender: No OFD packet to send [09:34:25]OFD Sender: No OFD packet to send [09:34:25]accept exits with 7 [09:34:25]New connection [09:34:25]New thread 3067465060 created [09:34:25]Thread 3067321700 joined [09:34:25]Waiting for new connection... [09:34:25] Sock 7.Parse request [09:34:25]Sock 7.Check first char [09:34:25]Sock 7.First char is OK [09:34:25]request: POST /json_proto HTTP/1.0 [09:34:25]Method: POST [09:34:25]URL: /json_proto [09:34:25]Method is POST - this is cgi request [09:34:25]url: /json_proto [09:34:25]query_string will be loaded in cgi processing [09:34:25]execute_cgi json_proto POST (null) [09:34:25]execute_cgi path=json_proto method=POST [09:34:25]POST find Content-Length [09:34:25]Host: 172.17.59.68:8080 [09:34:25]Content-Length: 677 [09:34:25]Content-Type: application/json [09:34:25] [09:34:25]POST finish read [09:34:25]Found Content-Length = 677 [09:34:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:25]execute_script... [09:34:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:25]POST & json_proto [09:34:25]process_json_proto [09:34:25]json parsed OK: [09:34:25]protocol is kg_v1.0 [09:34:25]action value=close_receipt [09:34:25]process_action close_receipt [09:34:25]cmd_close_receipt [09:34:25]MH_GetDate [09:34:25]Write to MH i2c: F0 00 00 C9 49 01 [09:34:25]Write i2c OK [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: F0 [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: F0 09 00 [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: F0 09 00 C9 49 00 BF F7 73 66 BC EC 60 65 06 [09:34:25]GetLastDocTimeStamp 1718875271 [09:34:25]current date 1718876095 [09:34:25]FM_GetShiftState [09:34:25]SAM_PROTO_GetShiftState [09:34:25]wFMCommunicate request_size=4 [09:34:25]MH_SAM_APDU [09:34:25]CAPDU: 80 13 01 00 [09:34:25]Write to MH i2c: E2 08 00 CA 49 80 13 01 00 00 00 00 00 90 [09:34:25]Write i2c OK [09:34:25]MH_I2C_Read... [09:34:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:25]Read from MH i2c: E2 [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: E2 0E 00 [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: E2 0E 00 CA 49 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 0B [09:34:25]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [09:34:25]wFMCommunicate OK [09:34:25]SAM_PROTO_GetShiftState done [09:34:25]FM_GetShiftState done [09:34:25]opened in 1718847247 [09:34:25]opened+sec_in_day 1718933647 [09:34:25]quantity*price = 20052 [09:34:25]sum+1 = 20054 [09:34:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 24 20.06.2024 09:34 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111574 ФПД: 180499393904115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T093455&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111574&fm=180499393904115&tin=02508201610067®Number=0000000000092771&sum=20000 [09:34:27]StoreToDocumentArchive [09:34:27]shift 389 fd 111574 [09:34:27]save to /storage/0389/doc_00111574 [09:34:27]save last doc name /storage/0389/doc_00111574 to /storage/kkm_last_doc_name [09:34:27]save OK [09:34:27]Clear old archive folders... [09:34:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:34:27]tlvbuf is B6FD54F0 [09:34:27]SAM_PROTO_ClearQueue [09:34:27]wFMCommunicate request_size=4 [09:34:27]MH_SAM_APDU [09:34:27]CAPDU: 80 09 00 00 [09:34:27]Write to MH i2c: E2 08 00 D7 49 80 09 00 00 00 00 00 00 92 [09:34:27]Write i2c OK [09:34:27]MH_I2C_Read... [09:34:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:34:27]Read from MH i2c: E2 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 03 00 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 03 00 D7 49 00 90 00 94 [09:34:27]RAPDU: 90 00 [09:34:27]wFMCommunicate OK [09:34:27]SAM_PROTO_ClearQueue done [09:34:27]KKMCreateOFDPacket [09:34:27]OFDProtocolAddRootSTLVToBuf [09:34:27]FM_MakeSignedData [09:34:27]FM_MakeSignedData [09:34:27]SAM_PROTO_SignData [09:34:27]wFMCommunicate request_size=4 [09:34:27]MH_SAM_APDU [09:34:27]CAPDU: 80 0D 01 02 [09:34:27]Write to MH i2c: E2 08 00 D8 49 80 0D 01 02 00 00 00 00 9A [09:34:27]Write i2c OK [09:34:27]MH_I2C_Read... [09:34:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:34:27]Read from MH i2c: E2 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 03 00 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 03 00 D8 49 00 90 00 95 [09:34:27]RAPDU: 90 00 [09:34:27]wFMCommunicate OK [09:34:27]wFMCommunicate request_size=255 [09:34:27]MH_SAM_APDU [09:34:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 BF F7 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D6 B3 01 00 35 04 06 00 A4 [09:34:27]Write to MH i2c: E2 02 01 D9 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 BF F7 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D6 B3 01 00 35 04 06 00 A4 00 00 68 [09:34:27]Write i2c OK [09:34:27]MH_I2C_Read... [09:34:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:27]Read from MH i2c: E2 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 03 00 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 03 00 D9 49 00 90 00 96 [09:34:27]RAPDU: 90 00 [09:34:27]wFMCommunicate OK [09:34:27]wFMCommunicate request_size=10 [09:34:27]MH_SAM_APDU [09:34:27]CAPDU: 80 0D 02 02 05 29 CA 41 7D F3 [09:34:27]Write to MH i2c: E2 0D 00 DA 49 80 0D 02 02 05 00 29 CA 41 7D F3 00 00 4B [09:34:27]Write i2c OK [09:34:27]MH_I2C_Read... [09:34:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:27]Read from MH i2c: E2 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 03 00 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 03 00 DA 49 00 90 00 97 [09:34:27]RAPDU: 90 00 [09:34:27]wFMCommunicate OK [09:34:27]wFMCommunicate request_size=4 [09:34:27]MH_SAM_APDU [09:34:27]CAPDU: 80 0D 03 02 [09:34:27]Write to MH i2c: E2 08 00 DB 49 80 0D 03 02 00 00 00 00 9F [09:34:27]Write i2c OK [09:34:27]MH_I2C_Read... [09:34:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:34:27]Read from MH i2c: E2 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 0B 00 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 0B 00 DB 49 00 A5 8B 0A 8D C3 3A 97 04 90 00 FF [09:34:27]RAPDU: A5 8B 0A 8D C3 3A 97 04 90 00 [09:34:27]wFMCommunicate OK [09:34:27]SAM_PROTO_SignData done [09:34:27]FM_MakeSignedData done [09:34:27]CreateOFDProtocolMessage [09:34:27]wFMCommunicate request_size=4 [09:34:27]MH_SAM_APDU [09:34:27]CAPDU: 80 11 00 00 [09:34:27]Write to MH i2c: E2 08 00 DC 49 80 11 00 00 00 00 00 00 9F [09:34:27]Write i2c OK [09:34:27]MH_I2C_Read... [09:34:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:27]Read from MH i2c: E2 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 17 00 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 17 00 DC 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F1 [09:34:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:34:27]wFMCommunicate OK [09:34:27]CreateOFDProtocolMessage done [09:34:27]OFDSenderStorePacket 111574 [09:34:27]StoreOFDPacket docnum=111574 [09:34:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7A 69 07 01 B0 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 BF F7 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D6 B3 01 00 35 04 06 00 A4 29 CA 41 7D F3 A5 8B 0A 8D C3 3A 97 04 [09:34:27]CheckFolder [09:34:27]dirname=/storage/ofd_packets [09:34:27]CheckFolder done [09:34:27]ProducePacketName [09:34:27]name=ofd_packets/00111574 [09:34:27]NVStorageSaveData ofd_packets/00111574 [09:34:27]File name is /storage/ofd_packets/00111574 [09:34:27]Write 301 bytes [09:34:27]NVStorageSaveData done [09:34:27]OFDSenderStorePacket done [09:34:27]KKMCreateOFDPacket done [09:34:27]NVStorageSaveData kkm_last_timestamp [09:34:27]File name is /storage/kkm_last_timestamp [09:34:27]Write 4 bytes [09:34:27]NVStorageSaveData done [09:34:27]ExternCall_PrintAddStr [09:34:27]wPrintStart [09:34:27]Write to MH i2c: 01 00 00 DD 49 26 [09:34:27]Write i2c OK [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: 01 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: 01 07 00 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: 01 07 00 DD 49 00 00 00 00 00 FF 0F 3B [09:34:27]RasterBufferAndPrint [09:34:27]line Счет N : (1)320171 [09:34:27]line ИНН: 02508201610067 [09:34:27]line Контрольно-Кассовый Чек [09:34:27]line ПРОДАЖА [09:34:27]line ТРК (МРК, ГНК) : 11 [09:34:27]line Товар: 2710124130 [09:34:27]line Аи-92-К-5 [09:34:27]line 3.020 * 66.40 [09:34:27]line = 200.53 [09:34:27]line НДС 12% НСП 1% [09:34:27]line > о реализуемом товаре [09:34:27]line ОКРУГЛЕНИЕ: -0.53 [09:34:27]line ИТОГО: 200.00 [09:34:27]line Внесено: 200.00 [09:34:27]line СДАЧА: 0.00 [09:34:27]line НСП 1% : 1.77 [09:34:27]line НДС 12% : 21.29 [09:34:27]line Наличными: 200.00 [09:34:27]line Безнал.: 0.00 [09:34:27]line Место: АЗС № 65 "Партнер Нефть" [09:34:27]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:34:27]line СНО: Общий режим [09:34:27]line Чек 24 20.06.2024 09:34 [09:34:27]line Смена: 389 ФФД: 1.0 [09:34:27]line ЗНМ: 0300000198 [09:34:27]line РНМ: 0000000000092771 [09:34:27]line Версия ККМ: 001 [09:34:27]line ФМ: 0000000000875083 [09:34:27]line ФД: 111574 [09:34:27]line ФПД: 180499393904115 [09:34:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T093455&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111574&fm=180499393904115&tin=02508201610067®Number=0000000000092771&sum=20000 [09:34:27]OFD Sender: Processing packet 111574 [packets to send 38, broken 37] [09:34:27]ProducePacketName [09:34:27]name=ofd_packets/00111574 [09:34:27]OFD Sender: To server: pG, [09:34:27]CommunicateWithHost lk.salyk.kg:30040 [09:34:27]ConnectInit lk.salyk.kg [09:34:27]written 0, free lines is 4095 [09:34:27]Connected sock=10 [09:34:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7A 69 07 01 B0 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 BF F7 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D6 B3 01 00 35 04 06 00 A4 29 CA 41 7D F3 A5 8B 0A 8D C3 3A 97 04 [09:34:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 EB 0E 47 00 10 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 35 30 38 33 10 04 04 00 D6 B3 01 00 F4 03 04 00 0E 8F 73 66 B6 04 01 00 00 AB 2C F0 E5 59 F4 61 D8 [09:34:28]CommunicateWithHost err = 0 [09:34:28]CheckOFDResponse [09:34:28]1017 (14) - 77093643461234 [09:34:28]1041 (16) - 0000000000875083 [09:34:28]1040 (4) - 111574 [09:34:28]1012 (4) - 20.06.2024 02:08 [09:34:28]1206 (1) - 0 [09:34:28]OFD Sender: Remove packet 111574 [09:34:28]ProducePacketName [09:34:28]name=ofd_packets/00111574 [09:34:28]NVStorageDeleteData [09:34:28]Write to MH i2c: 01 00 00 08 4A 52 [09:34:28]Write i2c OK [09:34:28]MH_I2C_Read... [09:34:28]Read from MH i2c: 01 [09:34:28]MH_I2C_Read... [09:34:28]Read from MH i2c: 01 07 00 [09:34:28]MH_I2C_Read... [09:34:28]Read from MH i2c: 01 07 00 08 4A 00 00 00 00 00 CC 0C 31 [09:34:28]RasterBufferAndPrint [09:34:28]line [09:34:28]line [09:34:28]line [09:34:28]line [09:34:28]line [09:34:28]written 0, free lines is 3283 [09:34:28]MH_Cut [09:34:28]Write to MH i2c: D1 01 00 0F 4A 01 2B [09:34:28]Write i2c OK [09:34:28]MH_I2C_Read... [09:34:28]Read from MH i2c: D1 [09:34:28]MH_I2C_Read... [09:34:28]Read from MH i2c: D1 01 00 [09:34:28]MH_I2C_Read... [09:34:28]Read from MH i2c: D1 01 00 0F 4A 00 2A [09:34:28]Write to MH i2c: 01 00 00 10 4A 5A [09:34:28]Write i2c OK [09:34:28]MH_I2C_Read... [09:34:28]OFD Sender: No OFD packet to send [09:34:29]*** Cut start [09:34:29]*** Partial cut [09:34:29]*** CUTSNS_PIN = 1 [09:34:29]*** CUTSNS_PIN = 0 [09:34:29]*** Brake cut motor [09:34:29]Read from MH i2c: 01 [09:34:29]MH_I2C_Read... [09:34:29]*** Stop cut motor [09:34:29]*** Cut end [09:34:29]Read from MH i2c: 01 07 00 [09:34:29]MH_I2C_Read... [09:34:29]Read from MH i2c: 01 07 00 10 4A 00 00 00 00 00 FF 0F 6F [09:34:29]process_action close_receipt done [09:34:29]requested_data is exist [09:34:29]produce_requested_data [09:34:29]requested_item fm.sn is exist - process it [09:34:29]wFMCommunicate request_size=4 [09:34:29]MH_SAM_APDU [09:34:29]CAPDU: 80 11 00 00 [09:34:29]Write to MH i2c: E2 08 00 11 4A 80 11 00 00 00 00 00 00 D5 [09:34:29]Write i2c OK [09:34:29]MH_I2C_Read... [09:34:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:29]Read from MH i2c: E2 [09:34:29]MH_I2C_Read... [09:34:29]Read from MH i2c: E2 17 00 [09:34:29]MH_I2C_Read... [09:34:29]Read from MH i2c: E2 17 00 11 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 27 [09:34:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:34:29]wFMCommunicate OK [09:34:29]requested_item fd.num is exist - process it [09:34:29]SAM_PROTO_GetFieldsCounters [09:34:29]wFMCommunicate request_size=4 [09:34:29]MH_SAM_APDU [09:34:29]CAPDU: 80 13 00 00 [09:34:29]Write to MH i2c: E2 08 00 12 4A 80 13 00 00 00 00 00 00 D8 [09:34:29]Write i2c OK [09:34:29]MH_I2C_Read... [09:34:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:34:29]Read from MH i2c: E2 [09:34:29]MH_I2C_Read... [09:34:29]Read from MH i2c: E2 62 00 [09:34:29]MH_I2C_Read... [09:34:29]Read from MH i2c: E2 62 00 12 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D6 B3 01 00 0E 04 04 00 85 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 51 [09:34:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D6 B3 01 00 0E 04 04 00 85 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 [09:34:29]wFMCommunicate OK [09:34:29]SAM_PROTO_GetFieldsCounters done [09:34:29]requested_item shift.num is exist - process it [09:34:29]requested_item shift.opened is exist - process it [09:34:29]req_shift_opened [09:34:29]FM_GetShiftState [09:34:29]SAM_PROTO_GetShiftState [09:34:29]wFMCommunicate request_size=4 [09:34:29]MH_SAM_APDU [09:34:29]CAPDU: 80 13 01 00 [09:34:29]Write to MH i2c: E2 08 00 13 4A 80 13 01 00 00 00 00 00 DA [09:34:29]Write i2c OK [09:34:29]MH_I2C_Read... [09:34:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:29]Read from MH i2c: E2 [09:34:29]MH_I2C_Read... [09:34:29]Read from MH i2c: E2 0E 00 [09:34:29]MH_I2C_Read... [09:34:29]Read from MH i2c: E2 0E 00 13 4A 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 55 [09:34:29]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [09:34:29]wFMCommunicate OK [09:34:29]SAM_PROTO_GetShiftState done [09:34:29]FM_GetShiftState done [09:34:29]req_shift_opened done [09:34:29]requested_item shift.open_date is exist - process it [09:34:29]req_shift_open_date [09:34:29]req_shift_open_date done [09:34:29]produce_requested_data done [09:34:29]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111574,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [09:34:29]process_action_free close_receipt [09:34:29]json_value_free [09:34:29]json_value_free done [09:34:29]process_json_proto returns [09:34:29]Send response to host [09:34:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111574,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [09:34:29]free response buf [09:34:29]execute_script done [09:34:29]execute_script returns [09:34:29]free content buf [09:34:29]Sock 7.Close socket [09:34:29]Sock 7.Thread stoped [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:36]accept exits with 9 [09:35:36]New connection [09:35:36]New thread 3067321700 created [09:35:36]Thread 3067465060 joined [09:35:36]Waiting for new connection... [09:35:36] Sock 9.Parse request [09:35:36]Sock 9.Check first char [09:35:36]Sock 9.First char is OK [09:35:36]request: POST /json_proto HTTP/1.0 [09:35:36]Method: POST [09:35:36]URL: /json_proto [09:35:36]Method is POST - this is cgi request [09:35:36]url: /json_proto [09:35:36]query_string will be loaded in cgi processing [09:35:36]execute_cgi json_proto POST (null) [09:35:36]execute_cgi path=json_proto method=POST [09:35:36]POST find Content-Length [09:35:36]Host: 172.17.59.68:8080 [09:35:36]Content-Length: 677 [09:35:36]Content-Type: application/json [09:35:36] [09:35:36]POST finish read [09:35:36]Found Content-Length = 677 [09:35:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:36]execute_script... [09:35: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)320172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:36]POST & json_proto [09:35:36]process_json_proto [09:35:36]json parsed OK: [09:35:36]protocol is kg_v1.0 [09:35:36]action value=close_receipt [09:35:36]process_action close_receipt [09:35:36]cmd_close_receipt [09:35:36]MH_GetDate [09:35:36]Write to MH i2c: F0 00 00 14 4A 4D [09:35:36]Write i2c OK [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: F0 [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: F0 09 00 [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: F0 09 00 14 4A 00 06 F8 73 66 BC EC 60 65 9A [09:35:36]GetLastDocTimeStamp 1718876095 [09:35:36]current date 1718876166 [09:35:36]FM_GetShiftState [09:35:36]SAM_PROTO_GetShiftState [09:35:36]wFMCommunicate request_size=4 [09:35:36]MH_SAM_APDU [09:35:36]CAPDU: 80 13 01 00 [09:35:36]Write to MH i2c: E2 08 00 15 4A 80 13 01 00 00 00 00 00 DC [09:35:36]Write i2c OK [09:35:36]MH_I2C_Read... [09:35:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:36]Read from MH i2c: E2 [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: E2 0E 00 [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: E2 0E 00 15 4A 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 57 [09:35:36]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [09:35:36]wFMCommunicate OK [09:35:36]SAM_PROTO_GetShiftState done [09:35:36]FM_GetShiftState done [09:35:36]opened in 1718847247 [09:35:36]opened+sec_in_day 1718933647 [09:35:36]quantity*price = 30012 [09:35:36]sum+1 = 30014 [09:35:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 25 20.06.2024 09:36 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111575 ФПД: 215382541339483 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T093606&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111575&fm=215382541339483&tin=02508201610067®Number=0000000000092771&sum=30000 [09:35:37]StoreToDocumentArchive [09:35:37]shift 389 fd 111575 [09:35:37]save to /storage/0389/doc_00111575 [09:35:37]save last doc name /storage/0389/doc_00111575 to /storage/kkm_last_doc_name [09:35:37]save OK [09:35:37]Clear old archive folders... [09:35:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:35:37]tlvbuf is B6FD5230 [09:35:37]SAM_PROTO_ClearQueue [09:35:37]wFMCommunicate request_size=4 [09:35:37]MH_SAM_APDU [09:35:37]CAPDU: 80 09 00 00 [09:35:37]Write to MH i2c: E2 08 00 22 4A 80 09 00 00 00 00 00 00 DE [09:35:37]Write i2c OK [09:35:37]MH_I2C_Read... [09:35:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:37]Read from MH i2c: E2 [09:35:37]MH_I2C_Read... [09:35:37]Read from MH i2c: E2 03 00 [09:35:37]MH_I2C_Read... [09:35:37]Read from MH i2c: E2 03 00 22 4A 00 90 00 E0 [09:35:37]RAPDU: 90 00 [09:35:37]wFMCommunicate OK [09:35:37]SAM_PROTO_ClearQueue done [09:35:37]KKMCreateOFDPacket [09:35:37]OFDProtocolAddRootSTLVToBuf [09:35:37]FM_MakeSignedData [09:35:37]FM_MakeSignedData [09:35:37]SAM_PROTO_SignData [09:35:37]wFMCommunicate request_size=4 [09:35:37]MH_SAM_APDU [09:35:37]CAPDU: 80 0D 01 02 [09:35:37]Write to MH i2c: E2 08 00 23 4A 80 0D 01 02 00 00 00 00 E6 [09:35:37]Write i2c OK [09:35:37]MH_I2C_Read... [09:35:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:35:37]Read from MH i2c: E2 [09:35:37]MH_I2C_Read... [09:35:37]Read from MH i2c: E2 03 00 [09:35:37]MH_I2C_Read... [09:35:37]Read from MH i2c: E2 03 00 23 4A 00 90 00 E1 [09:35:37]RAPDU: 90 00 [09:35:37]wFMCommunicate OK [09:35:37]wFMCommunicate request_size=255 [09:35:37]MH_SAM_APDU [09:35: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 06 F8 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D7 B3 01 00 35 04 06 00 C3 [09:35:37]Write to MH i2c: E2 02 01 24 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 06 F8 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D7 B3 01 00 35 04 06 00 C3 00 00 FC [09:35:37]Write i2c OK [09:35:37]MH_I2C_Read... [09:35:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:37]Read from MH i2c: E2 [09:35:37]MH_I2C_Read... [09:35:37]Read from MH i2c: E2 03 00 [09:35:37]MH_I2C_Read... [09:35:37]Read from MH i2c: E2 03 00 24 4A 00 90 00 E2 [09:35:37]RAPDU: 90 00 [09:35:37]wFMCommunicate OK [09:35:37]wFMCommunicate request_size=10 [09:35:37]MH_SAM_APDU [09:35:37]CAPDU: 80 0D 02 02 05 E3 A7 DE 0B 5B [09:35:37]Write to MH i2c: E2 0D 00 25 4A 80 0D 02 02 05 00 E3 A7 DE 0B 5B 00 00 C1 [09:35:37]Write i2c OK [09:35:37]MH_I2C_Read... [09:35:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:38]Read from MH i2c: E2 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: E2 03 00 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: E2 03 00 25 4A 00 90 00 E3 [09:35:38]RAPDU: 90 00 [09:35:38]wFMCommunicate OK [09:35:38]wFMCommunicate request_size=4 [09:35:38]MH_SAM_APDU [09:35:38]CAPDU: 80 0D 03 02 [09:35:38]Write to MH i2c: E2 08 00 26 4A 80 0D 03 02 00 00 00 00 EB [09:35:38]Write i2c OK [09:35:38]MH_I2C_Read... [09:35:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:38]Read from MH i2c: E2 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: E2 0B 00 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: E2 0B 00 26 4A 00 25 DB A0 F4 43 FC 59 3C 90 00 54 [09:35:38]RAPDU: 25 DB A0 F4 43 FC 59 3C 90 00 [09:35:38]wFMCommunicate OK [09:35:38]SAM_PROTO_SignData done [09:35:38]FM_MakeSignedData done [09:35:38]CreateOFDProtocolMessage [09:35:38]wFMCommunicate request_size=4 [09:35:38]MH_SAM_APDU [09:35:38]CAPDU: 80 11 00 00 [09:35:38]Write to MH i2c: E2 08 00 27 4A 80 11 00 00 00 00 00 00 EB [09:35:38]Write i2c OK [09:35:38]MH_I2C_Read... [09:35:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:38]Read from MH i2c: E2 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: E2 17 00 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: E2 17 00 27 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3D [09:35:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:35:38]wFMCommunicate OK [09:35:38]CreateOFDProtocolMessage done [09:35:38]OFDSenderStorePacket 111575 [09:35:38]StoreOFDPacket docnum=111575 [09:35:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7E 7A 07 01 49 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 06 F8 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D7 B3 01 00 35 04 06 00 C3 E3 A7 DE 0B 5B 25 DB A0 F4 43 FC 59 3C [09:35:38]CheckFolder [09:35:38]dirname=/storage/ofd_packets [09:35:38]CheckFolder done [09:35:38]ProducePacketName [09:35:38]name=ofd_packets/00111575 [09:35:38]NVStorageSaveData ofd_packets/00111575 [09:35:38]File name is /storage/ofd_packets/00111575 [09:35:38]Write 301 bytes [09:35:38]NVStorageSaveData done [09:35:38]OFDSenderStorePacket done [09:35:38]KKMCreateOFDPacket done [09:35:38]NVStorageSaveData kkm_last_timestamp [09:35:38]File name is /storage/kkm_last_timestamp [09:35:38]Write 4 bytes [09:35:38]NVStorageSaveData done [09:35:38]ExternCall_PrintAddStr [09:35:38]wPrintStart [09:35:38]Write to MH i2c: 01 00 00 28 4A 72 [09:35:38]Write i2c OK [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: 01 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: 01 07 00 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: 01 07 00 28 4A 00 00 00 00 00 FF 0F 87 [09:35:38]RasterBufferAndPrint [09:35:38]line Счет N : (1)320172 [09:35:38]line ИНН: 02508201610067 [09:35:38]line Контрольно-Кассовый Чек [09:35:38]line ПРОДАЖА [09:35:38]line ТРК (МРК, ГНК) : 11 [09:35:38]line Товар: 2710124130 [09:35:38]line Аи-92-К-5 [09:35:38]line 4.520 * 66.40 [09:35:38]line = 300.13 [09:35:38]line НДС 12% НСП 1% [09:35:38]line > о реализуемом товаре [09:35:38]line ОКРУГЛЕНИЕ: -0.13 [09:35:38]line ИТОГО: 300.00 [09:35:38]line Внесено: 300.00 [09:35:38]line СДАЧА: 0.00 [09:35:38]line НСП 1% : 2.66 [09:35:38]line НДС 12% : 31.87 [09:35:38]line Наличными: 300.00 [09:35:38]line Безнал.: 0.00 [09:35:38]line Место: АЗС № 65 "Партнер Нефть" [09:35:38]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:35:38]line СНО: Общий режим [09:35:38]line Чек 25 20.06.2024 09:36 [09:35:38]line Смена: 389 ФФД: 1.0 [09:35:38]line ЗНМ: 0300000198 [09:35:38]line РНМ: 0000000000092771 [09:35:38]line Версия ККМ: 001 [09:35:38]line ФМ: 0000000000875083 [09:35:38]line ФД: 111575 [09:35:38]line ФПД: 215382541339483 [09:35:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T093606&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111575&fm=215382541339483&tin=02508201610067®Number=0000000000092771&sum=30000 [09:35:38]OFD Sender: Processing packet 111575 [packets to send 38, broken 37] [09:35:38]ProducePacketName [09:35:38]name=ofd_packets/00111575 [09:35:38]OFD Sender: To server: pG, [09:35:38]CommunicateWithHost lk.salyk.kg:30040 [09:35:38]ConnectInit lk.salyk.kg [09:35:38]written 0, free lines is 4095 [09:35:38]Connected sock=10 [09:35:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7E 7A 07 01 49 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 06 F8 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D7 B3 01 00 35 04 06 00 C3 E3 A7 DE 0B 5B 25 DB A0 F4 43 FC 59 3C [09:35:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 5C EF 47 00 A1 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D7 B3 01 00 F4 03 04 00 54 8F 73 66 B6 04 01 00 00 57 0C 82 74 9D BA 82 31 [09:35:38]CommunicateWithHost err = 0 [09:35:38]CheckOFDResponse [09:35:38]1017 (14) - 77093643461234 [09:35:38]1041 (16) - 0000000000875083 [09:35:38]1040 (4) - 111575 [09:35:38]1012 (4) - 20.06.2024 02:09 [09:35:38]1206 (1) - 0 [09:35:38]OFD Sender: Remove packet 111575 [09:35:38]ProducePacketName [09:35:38]name=ofd_packets/00111575 [09:35:38]NVStorageDeleteData [09:35:38]Write to MH i2c: 01 00 00 53 4A 9D [09:35:38]Write i2c OK [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: 01 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: 01 07 00 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: 01 07 00 53 4A 00 00 00 00 00 E0 0C 90 [09:35:38]RasterBufferAndPrint [09:35:38]line [09:35:38]line [09:35:38]line [09:35:38]line [09:35:38]line [09:35:38]written 0, free lines is 3302 [09:35:38]MH_Cut [09:35:38]Write to MH i2c: D1 01 00 5A 4A 01 76 [09:35:38]Write i2c OK [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: D1 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: D1 01 00 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: D1 01 00 5A 4A 00 75 [09:35:38]Write to MH i2c: 01 00 00 5B 4A A5 [09:35:38]Write i2c OK [09:35:38]MH_I2C_Read... [09:35:39]OFD Sender: No OFD packet to send [09:35:39]*** Cut start [09:35:39]*** Partial cut [09:35:39]*** CUTSNS_PIN = 1 [09:35:39]*** CUTSNS_PIN = 0 [09:35:39]*** Brake cut motor [09:35:40]Read from MH i2c: 01 [09:35:40]MH_I2C_Read... [09:35:40]*** Stop cut motor [09:35:40]*** Cut end [09:35:40]Read from MH i2c: 01 07 00 [09:35:40]MH_I2C_Read... [09:35:40]Read from MH i2c: 01 07 00 5B 4A 00 00 00 00 00 FF 0F BA [09:35:40]process_action close_receipt done [09:35:40]requested_data is exist [09:35:40]produce_requested_data [09:35:40]requested_item fm.sn is exist - process it [09:35:40]wFMCommunicate request_size=4 [09:35:40]MH_SAM_APDU [09:35:40]CAPDU: 80 11 00 00 [09:35:40]Write to MH i2c: E2 08 00 5C 4A 80 11 00 00 00 00 00 00 20 [09:35:40]Write i2c OK [09:35:40]MH_I2C_Read... [09:35:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:40]Read from MH i2c: E2 [09:35:40]MH_I2C_Read... [09:35:40]Read from MH i2c: E2 17 00 [09:35:40]MH_I2C_Read... [09:35:40]Read from MH i2c: E2 17 00 5C 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 72 [09:35:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:35:40]wFMCommunicate OK [09:35:40]requested_item fd.num is exist - process it [09:35:40]SAM_PROTO_GetFieldsCounters [09:35:40]wFMCommunicate request_size=4 [09:35:40]MH_SAM_APDU [09:35:40]CAPDU: 80 13 00 00 [09:35:40]Write to MH i2c: E2 08 00 5D 4A 80 13 00 00 00 00 00 00 23 [09:35:40]Write i2c OK [09:35:40]MH_I2C_Read... [09:35:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:40]Read from MH i2c: E2 [09:35:40]MH_I2C_Read... [09:35:40]Read from MH i2c: E2 62 00 [09:35:40]MH_I2C_Read... [09:35:40]Read from MH i2c: E2 62 00 5D 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D7 B3 01 00 0E 04 04 00 85 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 A0 [09:35:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D7 B3 01 00 0E 04 04 00 85 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 [09:35:40]wFMCommunicate OK [09:35:40]SAM_PROTO_GetFieldsCounters done [09:35:40]requested_item shift.num is exist - process it [09:35:40]requested_item shift.opened is exist - process it [09:35:40]req_shift_opened [09:35:40]FM_GetShiftState [09:35:40]SAM_PROTO_GetShiftState [09:35:40]wFMCommunicate request_size=4 [09:35:40]MH_SAM_APDU [09:35:40]CAPDU: 80 13 01 00 [09:35:40]Write to MH i2c: E2 08 00 5E 4A 80 13 01 00 00 00 00 00 25 [09:35:40]Write i2c OK [09:35:40]MH_I2C_Read... [09:35:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:40]Read from MH i2c: E2 [09:35:40]MH_I2C_Read... [09:35:40]Read from MH i2c: E2 0E 00 [09:35:40]MH_I2C_Read... [09:35:40]Read from MH i2c: E2 0E 00 5E 4A 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 A0 [09:35:40]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [09:35:40]wFMCommunicate OK [09:35:40]SAM_PROTO_GetShiftState done [09:35:40]FM_GetShiftState done [09:35:40]req_shift_opened done [09:35:40]requested_item shift.open_date is exist - process it [09:35:40]req_shift_open_date [09:35:40]req_shift_open_date done [09:35:40]produce_requested_data done [09:35:40]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111575,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [09:35:40]process_action_free close_receipt [09:35:40]json_value_free [09:35:40]json_value_free done [09:35:40]process_json_proto returns [09:35:40]Send response to host [09:35:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111575,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [09:35:40]free response buf [09:35:40]execute_script done [09:35:40]execute_script returns [09:35:40]free content buf [09:35:40]Sock 9.Close socket [09:35:40]Sock 9.Thread stoped [09:35:44]OFD Sender: No OFD packet to send [09:35:49]OFD Sender: No OFD packet to send [09:35:54]OFD Sender: No OFD packet to send [09:35:59]OFD Sender: No OFD packet to send [09:36:04]OFD Sender: No OFD packet to send [09:36:09]OFD Sender: No OFD packet to send [09:36:14]OFD Sender: No OFD packet to send [09:36:19]OFD Sender: No OFD packet to send [09:36:24]OFD Sender: No OFD packet to send [09:36:29]OFD Sender: No OFD packet to send [09:36:34]OFD Sender: No OFD packet to send [09:36:39]OFD Sender: No OFD packet to send [09:36:44]OFD Sender: No OFD packet to send [09:36:49]OFD Sender: No OFD packet to send [09:36:53]accept exits with 7 [09:36:53]New connection [09:36:53]New thread 3067465060 created [09:36:53]Thread 3067321700 joined [09:36:53]Waiting for new connection... [09:36:53] Sock 7.Parse request [09:36:53]Sock 7.Check first char [09:36:53]Sock 7.First char is OK [09:36:53]request: POST /json_proto HTTP/1.0 [09:36:53]Method: POST [09:36:53]URL: /json_proto [09:36:53]Method is POST - this is cgi request [09:36:53]url: /json_proto [09:36:53]query_string will be loaded in cgi processing [09:36:53]execute_cgi json_proto POST (null) [09:36:53]execute_cgi path=json_proto method=POST [09:36:53]POST find Content-Length [09:36:53]Host: 172.17.59.68:8080 [09:36:53]Content-Length: 674 [09:36:53]Content-Type: application/json [09:36:53] [09:36:53]POST finish read [09:36:53]Found Content-Length = 674 [09:36:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 0.260, "sum" : 17.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 332.00, "total" : 17.00, "payments": [ { "type": 0, "sum" : 17.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:53]execute_script... [09:36: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)320173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 0.260, "sum" : 17.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 332.00, "total" : 17.00, "payments": [ { "type": 0, "sum" : 17.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:53]POST & json_proto [09:36:53]process_json_proto [09:36:53]json parsed OK: [09:36:53]protocol is kg_v1.0 [09:36:53]action value=close_receipt [09:36:53]process_action close_receipt [09:36:53]cmd_close_receipt [09:36:53]MH_GetDate [09:36:53]Write to MH i2c: F0 00 00 5F 4A 98 [09:36:53]Write i2c OK [09:36:53]MH_I2C_Read... [09:36:53]Read from MH i2c: F0 [09:36:53]MH_I2C_Read... [09:36:53]Read from MH i2c: F0 09 00 [09:36:53]MH_I2C_Read... [09:36:53]Read from MH i2c: F0 09 00 5F 4A 00 53 F8 73 66 BC EC 60 65 32 [09:36:53]GetLastDocTimeStamp 1718876166 [09:36:53]current date 1718876243 [09:36:53]FM_GetShiftState [09:36:53]SAM_PROTO_GetShiftState [09:36:53]wFMCommunicate request_size=4 [09:36:53]MH_SAM_APDU [09:36:53]CAPDU: 80 13 01 00 [09:36:53]Write to MH i2c: E2 08 00 60 4A 80 13 01 00 00 00 00 00 27 [09:36:53]Write i2c OK [09:36:53]MH_I2C_Read... [09:36:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:53]Read from MH i2c: E2 [09:36:53]MH_I2C_Read... [09:36:53]Read from MH i2c: E2 0E 00 [09:36:53]MH_I2C_Read... [09:36:53]Read from MH i2c: E2 0E 00 60 4A 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 A2 [09:36:53]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [09:36:53]wFMCommunicate OK [09:36:53]SAM_PROTO_GetShiftState done [09:36:53]FM_GetShiftState done [09:36:53]opened in 1718847247 [09:36:53]opened+sec_in_day 1718933647 [09:36:53]quantity*price = 1726 [09:36:53]sum+1 = 1727 [09:36:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 17.00 Внесено: 332.00 СДАЧА: 315.00 НСП 1% : 0.15 НДС 12% : 1.83 Наличными: 17.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 26 20.06.2024 09:37 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111576 ФПД: 204847939351209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T093723&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111576&fm=204847939351209&tin=02508201610067®Number=0000000000092771&sum=1700 [09:36:54]StoreToDocumentArchive [09:36:54]shift 389 fd 111576 [09:36:54]save to /storage/0389/doc_00111576 [09:36:54]save last doc name /storage/0389/doc_00111576 to /storage/kkm_last_doc_name [09:36:54]save OK [09:36:54]Clear old archive folders... [09:36:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:36:54]tlvbuf is 00F08090 [09:36:54]SAM_PROTO_ClearQueue [09:36:54]wFMCommunicate request_size=4 [09:36:54]MH_SAM_APDU [09:36:54]CAPDU: 80 09 00 00 [09:36:54]Write to MH i2c: E2 08 00 6D 4A 80 09 00 00 00 00 00 00 29 [09:36:54]Write i2c OK [09:36:54]MH_I2C_Read... [09:36:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:36:54]Read from MH i2c: E2 [09:36:54]MH_I2C_Read... [09:36:54]Read from MH i2c: E2 03 00 [09:36:54]MH_I2C_Read... [09:36:54]Read from MH i2c: E2 03 00 6D 4A 00 90 00 2B [09:36:54]RAPDU: 90 00 [09:36:54]wFMCommunicate OK [09:36:54]SAM_PROTO_ClearQueue done [09:36:54]KKMCreateOFDPacket [09:36:54]OFDProtocolAddRootSTLVToBuf [09:36:54]FM_MakeSignedData [09:36:54]FM_MakeSignedData [09:36:54]SAM_PROTO_SignData [09:36:54]wFMCommunicate request_size=4 [09:36:54]MH_SAM_APDU [09:36:54]CAPDU: 80 0D 01 02 [09:36:54]Write to MH i2c: E2 08 00 6E 4A 80 0D 01 02 00 00 00 00 31 [09:36:54]Write i2c OK [09:36:54]MH_I2C_Read... [09:36:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:36:54]Read from MH i2c: E2 [09:36:54]MH_I2C_Read... [09:36:54]Read from MH i2c: E2 03 00 [09:36:54]MH_I2C_Read... [09:36:54]Read from MH i2c: E2 03 00 6E 4A 00 90 00 2C [09:36:54]RAPDU: 90 00 [09:36:54]wFMCommunicate OK [09:36:54]wFMCommunicate request_size=255 [09:36:54]MH_SAM_APDU [09:36: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 04 01 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BE 06 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 06 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 00 00 00 00 00 07 04 06 00 A4 06 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 53 F8 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D8 B3 01 00 35 04 06 00 BA [09:36:54]Write to MH i2c: E2 02 01 6F 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 04 01 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BE 06 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 06 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 00 00 00 00 00 07 04 06 00 A4 06 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 53 F8 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D8 B3 01 00 35 04 06 00 BA 00 00 31 [09:36:55]Write i2c OK [09:36:55]MH_I2C_Read... [09:36:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:55]Read from MH i2c: E2 [09:36:55]MH_I2C_Read... [09:36:55]Read from MH i2c: E2 03 00 [09:36:55]MH_I2C_Read... [09:36:55]Read from MH i2c: E2 03 00 6F 4A 00 90 00 2D [09:36:55]RAPDU: 90 00 [09:36:55]wFMCommunicate OK [09:36:55]wFMCommunicate request_size=10 [09:36:55]MH_SAM_APDU [09:36:55]CAPDU: 80 0D 02 02 05 4E E0 A8 72 A9 [09:36:55]Write to MH i2c: E2 0D 00 70 4A 80 0D 02 02 05 00 4E E0 A8 72 A9 00 00 2F [09:36:55]Write i2c OK [09:36:55]MH_I2C_Read... [09:36:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:55]Read from MH i2c: E2 [09:36:55]MH_I2C_Read... [09:36:55]Read from MH i2c: E2 03 00 [09:36:55]MH_I2C_Read... [09:36:55]Read from MH i2c: E2 03 00 70 4A 00 90 00 2E [09:36:55]RAPDU: 90 00 [09:36:55]wFMCommunicate OK [09:36:55]wFMCommunicate request_size=4 [09:36:55]MH_SAM_APDU [09:36:55]CAPDU: 80 0D 03 02 [09:36:55]Write to MH i2c: E2 08 00 71 4A 80 0D 03 02 00 00 00 00 36 [09:36:55]Write i2c OK [09:36:55]MH_I2C_Read... [09:36:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:36:55]Read from MH i2c: E2 [09:36:55]MH_I2C_Read... [09:36:55]Read from MH i2c: E2 0B 00 [09:36:55]MH_I2C_Read... [09:36:55]Read from MH i2c: E2 0B 00 71 4A 00 27 FC 03 61 99 32 84 43 90 00 50 [09:36:55]RAPDU: 27 FC 03 61 99 32 84 43 90 00 [09:36:55]wFMCommunicate OK [09:36:55]SAM_PROTO_SignData done [09:36:55]FM_MakeSignedData done [09:36:55]CreateOFDProtocolMessage [09:36:55]wFMCommunicate request_size=4 [09:36:55]MH_SAM_APDU [09:36:55]CAPDU: 80 11 00 00 [09:36:55]Write to MH i2c: E2 08 00 72 4A 80 11 00 00 00 00 00 00 36 [09:36:55]Write i2c OK [09:36:55]MH_I2C_Read... [09:36:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:55]Read from MH i2c: E2 [09:36:55]MH_I2C_Read... [09:36:55]Read from MH i2c: E2 17 00 [09:36:55]MH_I2C_Read... [09:36:55]Read from MH i2c: E2 17 00 72 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 88 [09:36:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:36:55]wFMCommunicate OK [09:36:55]CreateOFDProtocolMessage done [09:36:55]OFDSenderStorePacket 111576 [09:36:55]StoreOFDPacket docnum=111576 [09:36:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 06 CD 07 01 8D 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 04 01 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BE 06 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 06 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 00 00 00 00 00 07 04 06 00 A4 06 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 53 F8 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D8 B3 01 00 35 04 06 00 BA 4E E0 A8 72 A9 27 FC 03 61 99 32 84 43 [09:36:55]CheckFolder [09:36:55]dirname=/storage/ofd_packets [09:36:55]CheckFolder done [09:36:55]ProducePacketName [09:36:55]name=ofd_packets/00111576 [09:36:55]NVStorageSaveData ofd_packets/00111576 [09:36:55]File name is /storage/ofd_packets/00111576 [09:36:55]Write 301 bytes [09:36:55]NVStorageSaveData done [09:36:55]OFDSenderStorePacket done [09:36:55]KKMCreateOFDPacket done [09:36:55]NVStorageSaveData kkm_last_timestamp [09:36:55]File name is /storage/kkm_last_timestamp [09:36:55]Write 4 bytes [09:36:55]NVStorageSaveData done [09:36:55]ExternCall_PrintAddStr [09:36:55]wPrintStart [09:36:55]Write to MH i2c: 01 00 00 73 4A BD [09:36:55]Write i2c OK [09:36:55]MH_I2C_Read... [09:36:55]Read from MH i2c: 01 [09:36:55]MH_I2C_Read... [09:36:55]Read from MH i2c: 01 07 00 [09:36:55]MH_I2C_Read... [09:36:55]Read from MH i2c: 01 07 00 73 4A 00 00 00 00 00 FF 0F D2 [09:36:55]RasterBufferAndPrint [09:36:55]line Счет N : (1)320173 [09:36:55]line ИНН: 02508201610067 [09:36:55]line Контрольно-Кассовый Чек [09:36:55]line ПРОДАЖА [09:36:55]line ТРК (МРК, ГНК) : 11 [09:36:55]line Товар: 2710124130 [09:36:55]line Аи-92-К-5 [09:36:55]line 0.260 * 66.40 [09:36:55]line = 17.26 [09:36:55]line НДС 12% НСП 1% [09:36:55]line > о реализуемом товаре [09:36:55]line ОКРУГЛЕНИЕ: -0.26 [09:36:55]line ИТОГО: 17.00 [09:36:55]line Внесено: 332.00 [09:36:55]line СДАЧА: 315.00 [09:36:55]line НСП 1% : 0.15 [09:36:55]line НДС 12% : 1.83 [09:36:55]line Наличными: 17.00 [09:36:55]line Безнал.: 0.00 [09:36:55]line Место: АЗС № 65 "Партнер Нефть" [09:36:55]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:36:55]line СНО: Общий режим [09:36:55]line Чек 26 20.06.2024 09:37 [09:36:55]line Смена: 389 ФФД: 1.0 [09:36:55]line ЗНМ: 0300000198 [09:36:55]line РНМ: 0000000000092771 [09:36:55]line Версия ККМ: 001 [09:36:55]line ФМ: 0000000000875083 [09:36:55]line ФД: 111576 [09:36:55]line ФПД: 204847939351209 [09:36:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T093723&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111576&fm=204847939351209&tin=02508201610067®Number=0000000000092771&sum=1700 [09:36:55]OFD Sender: Processing packet 111576 [packets to send 38, broken 37] [09:36:55]ProducePacketName [09:36:55]name=ofd_packets/00111576 [09:36:55]OFD Sender: To server: pG, [09:36:55]CommunicateWithHost lk.salyk.kg:30040 [09:36:55]ConnectInit lk.salyk.kg [09:36:55]written 0, free lines is 4095 [09:36:55]Connected sock=10 [09:36:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 06 CD 07 01 8D 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 04 01 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BE 06 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 06 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 00 00 00 00 00 07 04 06 00 A4 06 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 53 F8 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D8 B3 01 00 35 04 06 00 BA 4E E0 A8 72 A9 27 FC 03 61 99 32 84 43 [09:36:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 45 60 47 00 81 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D8 B3 01 00 F4 03 04 00 A2 8F 73 66 B6 04 01 00 00 C1 9D 45 E7 7F 6B 4D 60 [09:36:56]CommunicateWithHost err = 0 [09:36:56]CheckOFDResponse [09:36:56]1017 (14) - 77093643461234 [09:36:56]1041 (16) - 0000000000875083 [09:36:56]1040 (4) - 111576 [09:36:56]1012 (4) - 20.06.2024 02:10 [09:36:56]1206 (1) - 0 [09:36:56]OFD Sender: Remove packet 111576 [09:36:56]ProducePacketName [09:36:56]name=ofd_packets/00111576 [09:36:56]NVStorageDeleteData [09:36:56]Write to MH i2c: 01 00 00 9E 4A E8 [09:36:56]Write i2c OK [09:36:56]MH_I2C_Read... [09:36:56]Read from MH i2c: 01 [09:36:56]MH_I2C_Read... [09:36:56]Read from MH i2c: 01 07 00 [09:36:56]MH_I2C_Read... [09:36:56]Read from MH i2c: 01 07 00 9E 4A 00 00 00 00 00 D5 0C D0 [09:36:56]RasterBufferAndPrint [09:36:56]line [09:36:56]line [09:36:56]line [09:36:56]line [09:36:56]line [09:36:56]written 0, free lines is 3293 [09:36:56]MH_Cut [09:36:56]Write to MH i2c: D1 01 00 A5 4A 01 C1 [09:36:56]Write i2c OK [09:36:56]MH_I2C_Read... [09:36:56]Read from MH i2c: D1 [09:36:56]MH_I2C_Read... [09:36:56]Read from MH i2c: D1 01 00 [09:36:56]MH_I2C_Read... [09:36:56]Read from MH i2c: D1 01 00 A5 4A 00 C0 [09:36:56]Write to MH i2c: 01 00 00 A6 4A F0 [09:36:56]Write i2c OK [09:36:56]MH_I2C_Read... [09:36:56]OFD Sender: No OFD packet to send [09:36:57]*** Cut start [09:36:57]*** Partial cut [09:36:57]*** CUTSNS_PIN = 1 [09:36:57]*** CUTSNS_PIN = 0 [09:36:57]*** Brake cut motor [09:36:57]Read from MH i2c: 01 [09:36:57]MH_I2C_Read... [09:36:57]*** Stop cut motor [09:36:57]*** Cut end [09:36:57]Read from MH i2c: 01 07 00 [09:36:57]MH_I2C_Read... [09:36:57]Read from MH i2c: 01 07 00 A6 4A 00 00 00 00 00 FF 0F 05 [09:36:57]process_action close_receipt done [09:36:57]requested_data is exist [09:36:57]produce_requested_data [09:36:57]requested_item fm.sn is exist - process it [09:36:57]wFMCommunicate request_size=4 [09:36:57]MH_SAM_APDU [09:36:57]CAPDU: 80 11 00 00 [09:36:57]Write to MH i2c: E2 08 00 A7 4A 80 11 00 00 00 00 00 00 6B [09:36:57]Write i2c OK [09:36:57]MH_I2C_Read... [09:36:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:57]Read from MH i2c: E2 [09:36:57]MH_I2C_Read... [09:36:57]Read from MH i2c: E2 17 00 [09:36:57]MH_I2C_Read... [09:36:57]Read from MH i2c: E2 17 00 A7 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BD [09:36:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:36:57]wFMCommunicate OK [09:36:57]requested_item fd.num is exist - process it [09:36:57]SAM_PROTO_GetFieldsCounters [09:36:57]wFMCommunicate request_size=4 [09:36:57]MH_SAM_APDU [09:36:57]CAPDU: 80 13 00 00 [09:36:57]Write to MH i2c: E2 08 00 A8 4A 80 13 00 00 00 00 00 00 6E [09:36:57]Write i2c OK [09:36:57]MH_I2C_Read... [09:36:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:57]Read from MH i2c: E2 [09:36:57]MH_I2C_Read... [09:36:57]Read from MH i2c: E2 62 00 [09:36:57]MH_I2C_Read... [09:36:57]Read from MH i2c: E2 62 00 A8 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D8 B3 01 00 0E 04 04 00 85 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 EF [09:36:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D8 B3 01 00 0E 04 04 00 85 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 [09:36:57]wFMCommunicate OK [09:36:57]SAM_PROTO_GetFieldsCounters done [09:36:57]requested_item shift.num is exist - process it [09:36:57]requested_item shift.opened is exist - process it [09:36:57]req_shift_opened [09:36:57]FM_GetShiftState [09:36:57]SAM_PROTO_GetShiftState [09:36:57]wFMCommunicate request_size=4 [09:36:57]MH_SAM_APDU [09:36:57]CAPDU: 80 13 01 00 [09:36:57]Write to MH i2c: E2 08 00 A9 4A 80 13 01 00 00 00 00 00 70 [09:36:57]Write i2c OK [09:36:57]MH_I2C_Read... [09:36:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:57]Read from MH i2c: E2 [09:36:57]MH_I2C_Read... [09:36:57]Read from MH i2c: E2 0E 00 [09:36:57]MH_I2C_Read... [09:36:57]Read from MH i2c: E2 0E 00 A9 4A 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 EB [09:36:57]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [09:36:57]wFMCommunicate OK [09:36:57]SAM_PROTO_GetShiftState done [09:36:57]FM_GetShiftState done [09:36:57]req_shift_opened done [09:36:57]requested_item shift.open_date is exist - process it [09:36:57]req_shift_open_date [09:36:57]req_shift_open_date done [09:36:57]produce_requested_data done [09:36:57]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111576,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [09:36:57]process_action_free close_receipt [09:36:57]json_value_free [09:36:57]json_value_free done [09:36:57]process_json_proto returns [09:36:57]Send response to host [09:36:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111576,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [09:36:57]free response buf [09:36:57]execute_script done [09:36:57]execute_script returns [09:36:57]free content buf [09:36:57]Sock 7.Close socket [09:36:57]Sock 7.Thread stoped [09:37:01]OFD Sender: No OFD packet to send [09:37:06]OFD Sender: No OFD packet to send [09:37:11]OFD Sender: No OFD packet to send [09:37:16]OFD Sender: No OFD packet to send [09:37:21]OFD Sender: No OFD packet to send [09:37:26]OFD Sender: No OFD packet to send [09:37:31]OFD Sender: No OFD packet to send [09:37:36]OFD Sender: No OFD packet to send [09:37:41]OFD Sender: No OFD packet to send [09:37:46]OFD Sender: No OFD packet to send [09:37:51]OFD Sender: No OFD packet to send [09:37:56]OFD Sender: No OFD packet to send [09:38:01]OFD Sender: No OFD packet to send [09:38:05]accept exits with 9 [09:38:05]New connection [09:38:05]New thread 3067321700 created [09:38:05]Thread 3067465060 joined [09:38:05]Waiting for new connection... [09:38:05] Sock 9.Parse request [09:38:05]Sock 9.Check first char [09:38:05]Sock 9.First char is OK [09:38:05]request: POST /json_proto HTTP/1.0 [09:38:05]Method: POST [09:38:05]URL: /json_proto [09:38:05]Method is POST - this is cgi request [09:38:05]url: /json_proto [09:38:05]query_string will be loaded in cgi processing [09:38:05]execute_cgi json_proto POST (null) [09:38:05]execute_cgi path=json_proto method=POST [09:38:05]POST find Content-Length [09:38:05]Host: 172.17.59.68:8080 [09:38:05]Content-Length: 677 [09:38:05]Content-Type: application/json [09:38:05] [09:38:05]POST finish read [09:38:05]Found Content-Length = 677 [09:38:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.750, "sum" : 315.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 315.00, "total" : 315.00, "payments": [ { "type": 0, "sum" : 315.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:05]execute_script... [09:38: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)320174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.750, "sum" : 315.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 315.00, "total" : 315.00, "payments": [ { "type": 0, "sum" : 315.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:05]POST & json_proto [09:38:05]process_json_proto [09:38:05]json parsed OK: [09:38:05]protocol is kg_v1.0 [09:38:05]action value=close_receipt [09:38:05]process_action close_receipt [09:38:05]cmd_close_receipt [09:38:05]MH_GetDate [09:38:05]Write to MH i2c: F0 00 00 AA 4A E3 [09:38:05]Write i2c OK [09:38:05]MH_I2C_Read... [09:38:05]Read from MH i2c: F0 [09:38:05]MH_I2C_Read... [09:38:05]Read from MH i2c: F0 09 00 [09:38:05]MH_I2C_Read... [09:38:05]Read from MH i2c: F0 09 00 AA 4A 00 9B F8 73 66 BC EC 60 65 C5 [09:38:05]GetLastDocTimeStamp 1718876243 [09:38:05]current date 1718876315 [09:38:05]FM_GetShiftState [09:38:05]SAM_PROTO_GetShiftState [09:38:05]wFMCommunicate request_size=4 [09:38:05]MH_SAM_APDU [09:38:05]CAPDU: 80 13 01 00 [09:38:05]Write to MH i2c: E2 08 00 AB 4A 80 13 01 00 00 00 00 00 72 [09:38:05]Write i2c OK [09:38:05]MH_I2C_Read... [09:38:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:05]Read from MH i2c: E2 [09:38:05]MH_I2C_Read... [09:38:05]Read from MH i2c: E2 0E 00 [09:38:05]MH_I2C_Read... [09:38:05]Read from MH i2c: E2 0E 00 AB 4A 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 ED [09:38:05]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [09:38:05]wFMCommunicate OK [09:38:05]SAM_PROTO_GetShiftState done [09:38:05]FM_GetShiftState done [09:38:05]opened in 1718847247 [09:38:05]opened+sec_in_day 1718933647 [09:38:05]quantity*price = 31540 [09:38:05]sum+1 = 31541 [09:38:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 315.00 Внесено: 315.00 СДАЧА: 0.00 НСП 1% : 2.79 НДС 12% : 33.49 Наличными: 315.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 27 20.06.2024 09:38 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111577 ФПД: 185996920726143 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T093835&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111577&fm=185996920726143&tin=02508201610067®Number=0000000000092771&sum=31500 [09:38:06]StoreToDocumentArchive [09:38:06]shift 389 fd 111577 [09:38:06]save to /storage/0389/doc_00111577 [09:38:06]save last doc name /storage/0389/doc_00111577 to /storage/kkm_last_doc_name [09:38:06]save OK [09:38:06]Clear old archive folders... [09:38:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:38:06]tlvbuf is 00EBCA30 [09:38:06]SAM_PROTO_ClearQueue [09:38:06]wFMCommunicate request_size=4 [09:38:06]MH_SAM_APDU [09:38:06]CAPDU: 80 09 00 00 [09:38:06]Write to MH i2c: E2 08 00 B8 4A 80 09 00 00 00 00 00 00 74 [09:38:06]Write i2c OK [09:38:06]MH_I2C_Read... [09:38:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:38:06]Read from MH i2c: E2 [09:38:06]MH_I2C_Read... [09:38:06]Read from MH i2c: E2 03 00 [09:38:06]MH_I2C_Read... [09:38:06]Read from MH i2c: E2 03 00 B8 4A 00 90 00 76 [09:38:06]RAPDU: 90 00 [09:38:06]wFMCommunicate OK [09:38:06]SAM_PROTO_ClearQueue done [09:38:06]KKMCreateOFDPacket [09:38:06]OFDProtocolAddRootSTLVToBuf [09:38:06]FM_MakeSignedData [09:38:06]FM_MakeSignedData [09:38:06]SAM_PROTO_SignData [09:38:06]wFMCommunicate request_size=4 [09:38:06]MH_SAM_APDU [09:38:06]CAPDU: 80 0D 01 02 [09:38:06]Write to MH i2c: E2 08 00 B9 4A 80 0D 01 02 00 00 00 00 7C [09:38:06]Write i2c OK [09:38:06]MH_I2C_Read... [09:38:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:38:06]Read from MH i2c: E2 [09:38:06]MH_I2C_Read... [09:38:06]Read from MH i2c: E2 03 00 [09:38:06]MH_I2C_Read... [09:38:06]Read from MH i2c: E2 03 00 B9 4A 00 90 00 77 [09:38:06]RAPDU: 90 00 [09:38:06]wFMCommunicate OK [09:38:06]wFMCommunicate request_size=255 [09:38:06]MH_SAM_APDU [09:38: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 8E 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 34 7B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 0D 00 00 00 00 07 04 06 00 0C 7B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 9B F8 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D9 B3 01 00 35 04 06 00 A9 [09:38:06]Write to MH i2c: E2 02 01 BA 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 34 7B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 0D 00 00 00 00 07 04 06 00 0C 7B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 9B F8 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D9 B3 01 00 35 04 06 00 A9 00 00 69 [09:38:06]Write i2c OK [09:38:06]MH_I2C_Read... [09:38:06]OFD Sender: No OFD packet to send [09:38:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:06]Read from MH i2c: E2 [09:38:06]MH_I2C_Read... [09:38:06]Read from MH i2c: E2 03 00 [09:38:06]MH_I2C_Read... [09:38:06]Read from MH i2c: E2 03 00 BA 4A 00 90 00 78 [09:38:06]RAPDU: 90 00 [09:38:06]wFMCommunicate OK [09:38:06]wFMCommunicate request_size=10 [09:38:06]MH_SAM_APDU [09:38:06]CAPDU: 80 0D 02 02 05 29 C8 63 A2 7F [09:38:06]Write to MH i2c: E2 0D 00 BB 4A 80 0D 02 02 05 00 29 C8 63 A2 7F 00 00 FE [09:38:06]Write i2c OK [09:38:06]MH_I2C_Read... [09:38:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:06]Read from MH i2c: E2 [09:38:06]MH_I2C_Read... [09:38:06]Read from MH i2c: E2 03 00 [09:38:06]MH_I2C_Read... [09:38:06]Read from MH i2c: E2 03 00 BB 4A 00 90 00 79 [09:38:06]RAPDU: 90 00 [09:38:06]wFMCommunicate OK [09:38:06]wFMCommunicate request_size=4 [09:38:06]MH_SAM_APDU [09:38:06]CAPDU: 80 0D 03 02 [09:38:06]Write to MH i2c: E2 08 00 BC 4A 80 0D 03 02 00 00 00 00 81 [09:38:06]Write i2c OK [09:38:06]MH_I2C_Read... [09:38:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:38:06]Read from MH i2c: E2 [09:38:06]MH_I2C_Read... [09:38:06]Read from MH i2c: E2 0B 00 [09:38:06]MH_I2C_Read... [09:38:06]Read from MH i2c: E2 0B 00 BC 4A 00 B8 5C 78 58 8A 2C 8B 45 90 00 EC [09:38:06]RAPDU: B8 5C 78 58 8A 2C 8B 45 90 00 [09:38:06]wFMCommunicate OK [09:38:06]SAM_PROTO_SignData done [09:38:06]FM_MakeSignedData done [09:38:06]CreateOFDProtocolMessage [09:38:06]wFMCommunicate request_size=4 [09:38:06]MH_SAM_APDU [09:38:06]CAPDU: 80 11 00 00 [09:38:06]Write to MH i2c: E2 08 00 BD 4A 80 11 00 00 00 00 00 00 81 [09:38:06]Write i2c OK [09:38:06]MH_I2C_Read... [09:38:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:07]Read from MH i2c: E2 [09:38:07]MH_I2C_Read... [09:38:07]Read from MH i2c: E2 17 00 [09:38:07]MH_I2C_Read... [09:38:07]Read from MH i2c: E2 17 00 BD 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D3 [09:38:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:38:07]wFMCommunicate OK [09:38:07]CreateOFDProtocolMessage done [09:38:07]OFDSenderStorePacket 111577 [09:38:07]StoreOFDPacket docnum=111577 [09:38:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 8C A9 07 01 E9 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 8E 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 34 7B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 0D 00 00 00 00 07 04 06 00 0C 7B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 9B F8 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D9 B3 01 00 35 04 06 00 A9 29 C8 63 A2 7F B8 5C 78 58 8A 2C 8B 45 [09:38:07]CheckFolder [09:38:07]dirname=/storage/ofd_packets [09:38:07]CheckFolder done [09:38:07]ProducePacketName [09:38:07]name=ofd_packets/00111577 [09:38:07]NVStorageSaveData ofd_packets/00111577 [09:38:07]File name is /storage/ofd_packets/00111577 [09:38:07]Write 301 bytes [09:38:07]NVStorageSaveData done [09:38:07]OFDSenderStorePacket done [09:38:07]KKMCreateOFDPacket done [09:38:07]NVStorageSaveData kkm_last_timestamp [09:38:07]File name is /storage/kkm_last_timestamp [09:38:07]Write 4 bytes [09:38:07]NVStorageSaveData done [09:38:07]ExternCall_PrintAddStr [09:38:07]wPrintStart [09:38:07]Write to MH i2c: 01 00 00 BE 4A 08 [09:38:07]Write i2c OK [09:38:07]MH_I2C_Read... [09:38:07]Read from MH i2c: 01 [09:38:07]MH_I2C_Read... [09:38:07]Read from MH i2c: 01 07 00 [09:38:07]MH_I2C_Read... [09:38:07]Read from MH i2c: 01 07 00 BE 4A 00 00 00 00 00 FF 0F 1D [09:38:07]RasterBufferAndPrint [09:38:07]line Счет N : (1)320174 [09:38:07]line ИНН: 02508201610067 [09:38:07]line Контрольно-Кассовый Чек [09:38:07]line ПРОДАЖА [09:38:07]line ТРК (МРК, ГНК) : 11 [09:38:07]line Товар: 2710124130 [09:38:07]line Аи-92-К-5 [09:38:07]line 4.750 * 66.40 [09:38:07]line = 315.40 [09:38:07]line НДС 12% НСП 1% [09:38:07]line > о реализуемом товаре [09:38:07]line ОКРУГЛЕНИЕ: -0.40 [09:38:07]line ИТОГО: 315.00 [09:38:07]line Внесено: 315.00 [09:38:07]line СДАЧА: 0.00 [09:38:07]line НСП 1% : 2.79 [09:38:07]line НДС 12% : 33.49 [09:38:07]line Наличными: 315.00 [09:38:07]line Безнал.: 0.00 [09:38:07]line Место: АЗС № 65 "Партнер Нефть" [09:38:07]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:38:07]line СНО: Общий режим [09:38:07]line Чек 27 20.06.2024 09:38 [09:38:07]line Смена: 389 ФФД: 1.0 [09:38:07]line ЗНМ: 0300000198 [09:38:07]line РНМ: 0000000000092771 [09:38:07]line Версия ККМ: 001 [09:38:07]line ФМ: 0000000000875083 [09:38:07]line ФД: 111577 [09:38:07]line ФПД: 185996920726143 [09:38:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T093835&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111577&fm=185996920726143&tin=02508201610067®Number=0000000000092771&sum=31500 [09:38:07]OFD Sender: Processing packet 111577 [packets to send 38, broken 37] [09:38:07]ProducePacketName [09:38:07]name=ofd_packets/00111577 [09:38:07]OFD Sender: To server: pG, [09:38:07]CommunicateWithHost lk.salyk.kg:30040 [09:38:07]ConnectInit lk.salyk.kg [09:38:07]written 0, free lines is 4095 [09:38:07]Connected sock=10 [09:38:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 8C A9 07 01 E9 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 8E 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 34 7B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 0D 00 00 00 00 07 04 06 00 0C 7B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 9B F8 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D9 B3 01 00 35 04 06 00 A9 29 C8 63 A2 7F B8 5C 78 58 8A 2C 8B 45 [09:38:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 79 FA 47 00 9A 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D9 B3 01 00 F4 03 04 00 E9 8F 73 66 B6 04 01 00 00 23 29 DE 98 EB 4F 4A 99 [09:38:07]CommunicateWithHost err = 0 [09:38:07]CheckOFDResponse [09:38:07]1017 (14) - 77093643461234 [09:38:07]1041 (16) - 0000000000875083 [09:38:07]1040 (4) - 111577 [09:38:07]1012 (4) - 20.06.2024 02:11 [09:38:07]1206 (1) - 0 [09:38:07]OFD Sender: Remove packet 111577 [09:38:07]ProducePacketName [09:38:07]name=ofd_packets/00111577 [09:38:07]NVStorageDeleteData [09:38:07]Write to MH i2c: 01 00 00 E9 4A 33 [09:38:07]Write i2c OK [09:38:07]MH_I2C_Read... [09:38:07]Read from MH i2c: 01 [09:38:07]MH_I2C_Read... [09:38:07]Read from MH i2c: 01 07 00 [09:38:07]MH_I2C_Read... [09:38:07]Read from MH i2c: 01 07 00 E9 4A 00 00 00 00 00 DC 0C 22 [09:38:07]RasterBufferAndPrint [09:38:07]line [09:38:07]line [09:38:07]line [09:38:07]line [09:38:07]line [09:38:07]written 0, free lines is 3298 [09:38:07]MH_Cut [09:38:07]Write to MH i2c: D1 01 00 F0 4A 01 0C [09:38:07]Write i2c OK [09:38:07]MH_I2C_Read... [09:38:07]Read from MH i2c: D1 [09:38:07]MH_I2C_Read... [09:38:07]Read from MH i2c: D1 01 00 [09:38:07]MH_I2C_Read... [09:38:07]Read from MH i2c: D1 01 00 F0 4A 00 0B [09:38:07]Write to MH i2c: 01 00 00 F1 4A 3B [09:38:07]Write i2c OK [09:38:07]MH_I2C_Read... [09:38:08]OFD Sender: No OFD packet to send [09:38:08]*** Cut start [09:38:08]*** Partial cut [09:38:08]*** CUTSNS_PIN = 1 [09:38:08]*** CUTSNS_PIN = 0 [09:38:08]*** Brake cut motor [09:38:09]Read from MH i2c: 01 [09:38:09]MH_I2C_Read... [09:38:09]*** Stop cut motor [09:38:09]*** Cut end [09:38:09]Read from MH i2c: 01 07 00 [09:38:09]MH_I2C_Read... [09:38:09]Read from MH i2c: 01 07 00 F1 4A 00 00 00 00 00 FF 0F 50 [09:38:09]process_action close_receipt done [09:38:09]requested_data is exist [09:38:09]produce_requested_data [09:38:09]requested_item fm.sn is exist - process it [09:38:09]wFMCommunicate request_size=4 [09:38:09]MH_SAM_APDU [09:38:09]CAPDU: 80 11 00 00 [09:38:09]Write to MH i2c: E2 08 00 F2 4A 80 11 00 00 00 00 00 00 B6 [09:38:09]Write i2c OK [09:38:09]MH_I2C_Read... [09:38:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:09]Read from MH i2c: E2 [09:38:09]MH_I2C_Read... [09:38:09]Read from MH i2c: E2 17 00 [09:38:09]MH_I2C_Read... [09:38:09]Read from MH i2c: E2 17 00 F2 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 08 [09:38:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:38:09]wFMCommunicate OK [09:38:09]requested_item fd.num is exist - process it [09:38:09]SAM_PROTO_GetFieldsCounters [09:38:09]wFMCommunicate request_size=4 [09:38:09]MH_SAM_APDU [09:38:09]CAPDU: 80 13 00 00 [09:38:09]Write to MH i2c: E2 08 00 F3 4A 80 13 00 00 00 00 00 00 B9 [09:38:09]Write i2c OK [09:38:09]MH_I2C_Read... [09:38:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:38:09]Read from MH i2c: E2 [09:38:09]MH_I2C_Read... [09:38:09]Read from MH i2c: E2 62 00 [09:38:09]MH_I2C_Read... [09:38:09]Read from MH i2c: E2 62 00 F3 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D9 B3 01 00 0E 04 04 00 85 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 3E [09:38:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D9 B3 01 00 0E 04 04 00 85 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 [09:38:09]wFMCommunicate OK [09:38:09]SAM_PROTO_GetFieldsCounters done [09:38:09]requested_item shift.num is exist - process it [09:38:09]requested_item shift.opened is exist - process it [09:38:09]req_shift_opened [09:38:09]FM_GetShiftState [09:38:09]SAM_PROTO_GetShiftState [09:38:09]wFMCommunicate request_size=4 [09:38:09]MH_SAM_APDU [09:38:09]CAPDU: 80 13 01 00 [09:38:09]Write to MH i2c: E2 08 00 F4 4A 80 13 01 00 00 00 00 00 BB [09:38:09]Write i2c OK [09:38:09]MH_I2C_Read... [09:38:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:09]Read from MH i2c: E2 [09:38:09]MH_I2C_Read... [09:38:09]Read from MH i2c: E2 0E 00 [09:38:09]MH_I2C_Read... [09:38:09]Read from MH i2c: E2 0E 00 F4 4A 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 36 [09:38:09]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [09:38:09]wFMCommunicate OK [09:38:09]SAM_PROTO_GetShiftState done [09:38:09]FM_GetShiftState done [09:38:09]req_shift_opened done [09:38:09]requested_item shift.open_date is exist - process it [09:38:09]req_shift_open_date [09:38:09]req_shift_open_date done [09:38:09]produce_requested_data done [09:38:09]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111577,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [09:38:09]process_action_free close_receipt [09:38:09]json_value_free [09:38:09]json_value_free done [09:38:09]process_json_proto returns [09:38:09]Send response to host [09:38:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111577,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [09:38:09]free response buf [09:38:09]execute_script done [09:38:09]execute_script returns [09:38:09]free content buf [09:38:09]Sock 9.Close socket [09:38:09]Sock 9.Thread stoped [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:08]OFD Sender: No OFD packet to send [09:39:13]OFD Sender: No OFD packet to send [09:39:18]OFD Sender: No OFD packet to send [09:39:23]OFD Sender: No OFD packet to send [09:39:28]OFD Sender: No OFD packet to send [09:39:33]OFD Sender: No OFD packet to send [09:39:38]OFD Sender: No OFD packet to send [09:39:43]OFD Sender: No OFD packet to send [09:39:48]OFD Sender: No OFD packet to send [09:39:53]OFD Sender: No OFD packet to send [09:39:58]OFD Sender: No OFD packet to send [09:40:03]OFD Sender: No OFD packet to send [09:40:08]OFD Sender: No OFD packet to send [09:40:13]OFD Sender: No OFD packet to send [09:40:14]accept exits with 7 [09:40:14]New connection [09:40:14]New thread 3067465060 created [09:40:14]Thread 3067321700 joined [09:40:14]Waiting for new connection... [09:40:14] Sock 7.Parse request [09:40:14]Sock 7.Check first char [09:40:14]Sock 7.First char is OK [09:40:14]request: POST /json_proto HTTP/1.0 [09:40:14]Method: POST [09:40:14]URL: /json_proto [09:40:14]Method is POST - this is cgi request [09:40:14]url: /json_proto [09:40:14]query_string will be loaded in cgi processing [09:40:14]execute_cgi json_proto POST (null) [09:40:14]execute_cgi path=json_proto method=POST [09:40:14]POST find Content-Length [09:40:14]Host: 172.17.59.68:8080 [09:40:14]Content-Length: 678 [09:40:14]Content-Type: application/json [09:40:14] [09:40:14]POST finish read [09:40:14]Found Content-Length = 678 [09:40:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:14]execute_script... [09:40: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)320175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:14]POST & json_proto [09:40:14]process_json_proto [09:40:14]json parsed OK: [09:40:14]protocol is kg_v1.0 [09:40:14]action value=close_receipt [09:40:14]process_action close_receipt [09:40:14]cmd_close_receipt [09:40:14]MH_GetDate [09:40:14]Write to MH i2c: F0 00 00 F5 4A 2E [09:40:14]Write i2c OK [09:40:14]MH_I2C_Read... [09:40:14]Read from MH i2c: F0 [09:40:14]MH_I2C_Read... [09:40:14]Read from MH i2c: F0 09 00 [09:40:14]MH_I2C_Read... [09:40:14]Read from MH i2c: F0 09 00 F5 4A 00 1C F9 73 66 BC EC 60 65 92 [09:40:14]GetLastDocTimeStamp 1718876315 [09:40:14]current date 1718876444 [09:40:14]FM_GetShiftState [09:40:14]SAM_PROTO_GetShiftState [09:40:14]wFMCommunicate request_size=4 [09:40:14]MH_SAM_APDU [09:40:14]CAPDU: 80 13 01 00 [09:40:14]Write to MH i2c: E2 08 00 F6 4A 80 13 01 00 00 00 00 00 BD [09:40:14]Write i2c OK [09:40:14]MH_I2C_Read... [09:40:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:14]Read from MH i2c: E2 [09:40:14]MH_I2C_Read... [09:40:14]Read from MH i2c: E2 0E 00 [09:40:14]MH_I2C_Read... [09:40:14]Read from MH i2c: E2 0E 00 F6 4A 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 38 [09:40:14]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [09:40:14]wFMCommunicate OK [09:40:14]SAM_PROTO_GetShiftState done [09:40:14]FM_GetShiftState done [09:40:14]opened in 1718847247 [09:40:14]opened+sec_in_day 1718933647 [09:40:14]quantity*price = 70052 [09:40:14]sum+1 = 70053 [09:40:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 28 20.06.2024 09:40 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111578 ФПД: 126393695417860 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T094044&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111578&fm=126393695417860&tin=02508201610067®Number=0000000000092771&sum=70000 [09:40:15]StoreToDocumentArchive [09:40:15]shift 389 fd 111578 [09:40:15]save to /storage/0389/doc_00111578 [09:40:15]save last doc name /storage/0389/doc_00111578 to /storage/kkm_last_doc_name [09:40:15]save OK [09:40:15]Clear old archive folders... [09:40:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:40:15]tlvbuf is 00F37E90 [09:40:15]SAM_PROTO_ClearQueue [09:40:15]wFMCommunicate request_size=4 [09:40:15]MH_SAM_APDU [09:40:15]CAPDU: 80 09 00 00 [09:40:15]Write to MH i2c: E2 08 00 03 4B 80 09 00 00 00 00 00 00 C0 [09:40:15]Write i2c OK [09:40:15]MH_I2C_Read... [09:40:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:15]Read from MH i2c: E2 [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: E2 03 00 [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: E2 03 00 03 4B 00 90 00 C2 [09:40:15]RAPDU: 90 00 [09:40:15]wFMCommunicate OK [09:40:15]SAM_PROTO_ClearQueue done [09:40:15]KKMCreateOFDPacket [09:40:15]OFDProtocolAddRootSTLVToBuf [09:40:15]FM_MakeSignedData [09:40:15]FM_MakeSignedData [09:40:15]SAM_PROTO_SignData [09:40:15]wFMCommunicate request_size=4 [09:40:15]MH_SAM_APDU [09:40:15]CAPDU: 80 0D 01 02 [09:40:15]Write to MH i2c: E2 08 00 04 4B 80 0D 01 02 00 00 00 00 C8 [09:40:15]Write i2c OK [09:40:15]MH_I2C_Read... [09:40:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:15]Read from MH i2c: E2 [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: E2 03 00 [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: E2 03 00 04 4B 00 90 00 C3 [09:40:15]RAPDU: 90 00 [09:40:15]wFMCommunicate OK [09:40:15]wFMCommunicate request_size=255 [09:40:15]MH_SAM_APDU [09:40:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 1C F9 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DA B3 01 00 35 04 06 00 72 [09:40:15]Write to MH i2c: E2 02 01 05 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 1C F9 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DA B3 01 00 35 04 06 00 72 00 00 1E [09:40:15]Write i2c OK [09:40:15]MH_I2C_Read... [09:40:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:16]Read from MH i2c: E2 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 03 00 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 03 00 05 4B 00 90 00 C4 [09:40:16]RAPDU: 90 00 [09:40:16]wFMCommunicate OK [09:40:16]wFMCommunicate request_size=10 [09:40:16]MH_SAM_APDU [09:40:16]CAPDU: 80 0D 02 02 05 F4 53 51 36 04 [09:40:16]Write to MH i2c: E2 0D 00 06 4B 80 0D 02 02 05 00 F4 53 51 36 04 00 00 A7 [09:40:16]Write i2c OK [09:40:16]MH_I2C_Read... [09:40:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:16]Read from MH i2c: E2 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 03 00 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 03 00 06 4B 00 90 00 C5 [09:40:16]RAPDU: 90 00 [09:40:16]wFMCommunicate OK [09:40:16]wFMCommunicate request_size=4 [09:40:16]MH_SAM_APDU [09:40:16]CAPDU: 80 0D 03 02 [09:40:16]Write to MH i2c: E2 08 00 07 4B 80 0D 03 02 00 00 00 00 CD [09:40:16]Write i2c OK [09:40:16]MH_I2C_Read... [09:40:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:16]Read from MH i2c: E2 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 0B 00 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 0B 00 07 4B 00 03 0F FC C9 51 E2 8C 6A 90 00 CE [09:40:16]RAPDU: 03 0F FC C9 51 E2 8C 6A 90 00 [09:40:16]wFMCommunicate OK [09:40:16]SAM_PROTO_SignData done [09:40:16]FM_MakeSignedData done [09:40:16]CreateOFDProtocolMessage [09:40:16]wFMCommunicate request_size=4 [09:40:16]MH_SAM_APDU [09:40:16]CAPDU: 80 11 00 00 [09:40:16]Write to MH i2c: E2 08 00 08 4B 80 11 00 00 00 00 00 00 CD [09:40:16]Write i2c OK [09:40:16]MH_I2C_Read... [09:40:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:16]Read from MH i2c: E2 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 17 00 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 17 00 08 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1F [09:40:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:40:16]wFMCommunicate OK [09:40:16]CreateOFDProtocolMessage done [09:40:16]OFDSenderStorePacket 111578 [09:40:16]StoreOFDPacket docnum=111578 [09:40:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 87 46 07 01 06 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 1C F9 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DA B3 01 00 35 04 06 00 72 F4 53 51 36 04 03 0F FC C9 51 E2 8C 6A [09:40:16]CheckFolder [09:40:16]dirname=/storage/ofd_packets [09:40:16]CheckFolder done [09:40:16]ProducePacketName [09:40:16]name=ofd_packets/00111578 [09:40:16]NVStorageSaveData ofd_packets/00111578 [09:40:16]File name is /storage/ofd_packets/00111578 [09:40:16]Write 301 bytes [09:40:16]NVStorageSaveData done [09:40:16]OFDSenderStorePacket done [09:40:16]KKMCreateOFDPacket done [09:40:16]NVStorageSaveData kkm_last_timestamp [09:40:16]File name is /storage/kkm_last_timestamp [09:40:16]Write 4 bytes [09:40:16]NVStorageSaveData done [09:40:16]ExternCall_PrintAddStr [09:40:16]wPrintStart [09:40:16]Write to MH i2c: 01 00 00 09 4B 54 [09:40:16]Write i2c OK [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: 01 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: 01 07 00 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: 01 07 00 09 4B 00 00 00 00 00 FF 0F 69 [09:40:16]RasterBufferAndPrint [09:40:16]line Счет N : (1)320175 [09:40:16]line ИНН: 02508201610067 [09:40:16]line Контрольно-Кассовый Чек [09:40:16]line ПРОДАЖА [09:40:16]line ТРК (МРК, ГНК) : 11 [09:40:16]line Товар: 2710124130 [09:40:16]line Аи-92-К-5 [09:40:16]line 10.550 * 66.40 [09:40:16]line = 700.52 [09:40:16]line НДС 12% НСП 1% [09:40:16]line > о реализуемом товаре [09:40:16]line ОКРУГЛЕНИЕ: -0.52 [09:40:16]line ИТОГО: 700.00 [09:40:16]line Внесено: 700.00 [09:40:16]line СДАЧА: 0.00 [09:40:16]line НСП 1% : 6.20 [09:40:16]line НДС 12% : 74.39 [09:40:16]line Наличными: 700.00 [09:40:16]line Безнал.: 0.00 [09:40:16]line Место: АЗС № 65 "Партнер Нефть" [09:40:16]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:40:16]line СНО: Общий режим [09:40:16]line Чек 28 20.06.2024 09:40 [09:40:16]line Смена: 389 ФФД: 1.0 [09:40:16]line ЗНМ: 0300000198 [09:40:16]line РНМ: 0000000000092771 [09:40:16]line Версия ККМ: 001 [09:40:16]line ФМ: 0000000000875083 [09:40:16]line ФД: 111578 [09:40:16]line ФПД: 126393695417860 [09:40:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T094044&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111578&fm=126393695417860&tin=02508201610067®Number=0000000000092771&sum=70000 [09:40:16]OFD Sender: Processing packet 111578 [packets to send 38, broken 37] [09:40:16]ProducePacketName [09:40:16]name=ofd_packets/00111578 [09:40:16]OFD Sender: To server: pG, [09:40:16]CommunicateWithHost lk.salyk.kg:30040 [09:40:16]ConnectInit lk.salyk.kg [09:40:16]written 0, free lines is 4095 [09:40:16]Connected sock=10 [09:40:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 87 46 07 01 06 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 1C F9 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DA B3 01 00 35 04 06 00 72 F4 53 51 36 04 03 0F FC C9 51 E2 8C 6A [09:40:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 BA DE 47 00 61 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DA B3 01 00 F4 03 04 00 6A 90 73 66 B6 04 01 00 00 74 FA A1 35 48 55 68 9D [09:40:17]CommunicateWithHost err = 0 [09:40:17]CheckOFDResponse [09:40:17]1017 (14) - 77093643461234 [09:40:17]1041 (16) - 0000000000875083 [09:40:17]1040 (4) - 111578 [09:40:17]1012 (4) - 20.06.2024 02:14 [09:40:17]1206 (1) - 0 [09:40:17]OFD Sender: Remove packet 111578 [09:40:17]ProducePacketName [09:40:17]name=ofd_packets/00111578 [09:40:17]NVStorageDeleteData [09:40:17]Write to MH i2c: 01 00 00 34 4B 7F [09:40:17]Write i2c OK [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: 01 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: 01 07 00 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: 01 07 00 34 4B 00 00 00 00 00 DF 0C 71 [09:40:17]RasterBufferAndPrint [09:40:17]line [09:40:17]line [09:40:17]line [09:40:17]line [09:40:17]line [09:40:17]written 0, free lines is 3304 [09:40:17]MH_Cut [09:40:17]Write to MH i2c: D1 01 00 3B 4B 01 58 [09:40:17]Write i2c OK [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: D1 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: D1 01 00 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: D1 01 00 3B 4B 00 57 [09:40:17]Write to MH i2c: 01 00 00 3C 4B 87 [09:40:17]Write i2c OK [09:40:17]MH_I2C_Read... [09:40:17]OFD Sender: No OFD packet to send [09:40:17]*** Cut start [09:40:17]*** Partial cut [09:40:17]*** CUTSNS_PIN = 1 [09:40:17]*** CUTSNS_PIN = 0 [09:40:18]*** Brake cut motor [09:40:18]Read from MH i2c: 01 [09:40:18]MH_I2C_Read... [09:40:18]*** Stop cut motor [09:40:18]*** Cut end [09:40:18]Read from MH i2c: 01 07 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: 01 07 00 3C 4B 00 00 00 00 00 FF 0F 9C [09:40:18]process_action close_receipt done [09:40:18]requested_data is exist [09:40:18]produce_requested_data [09:40:18]requested_item fm.sn is exist - process it [09:40:18]wFMCommunicate request_size=4 [09:40:18]MH_SAM_APDU [09:40:18]CAPDU: 80 11 00 00 [09:40:18]Write to MH i2c: E2 08 00 3D 4B 80 11 00 00 00 00 00 00 02 [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:18]Read from MH i2c: E2 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 17 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 17 00 3D 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 54 [09:40:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:40:18]wFMCommunicate OK [09:40:18]requested_item fd.num is exist - process it [09:40:18]SAM_PROTO_GetFieldsCounters [09:40:18]wFMCommunicate request_size=4 [09:40:18]MH_SAM_APDU [09:40:18]CAPDU: 80 13 00 00 [09:40:18]Write to MH i2c: E2 08 00 3E 4B 80 13 00 00 00 00 00 00 05 [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:18]Read from MH i2c: E2 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 62 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 62 00 3E 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DA B3 01 00 0E 04 04 00 85 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 8E [09:40:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DA B3 01 00 0E 04 04 00 85 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 [09:40:18]wFMCommunicate OK [09:40:18]SAM_PROTO_GetFieldsCounters done [09:40:18]requested_item shift.num is exist - process it [09:40:18]requested_item shift.opened is exist - process it [09:40:18]req_shift_opened [09:40:18]FM_GetShiftState [09:40:18]SAM_PROTO_GetShiftState [09:40:18]wFMCommunicate request_size=4 [09:40:18]MH_SAM_APDU [09:40:18]CAPDU: 80 13 01 00 [09:40:18]Write to MH i2c: E2 08 00 3F 4B 80 13 01 00 00 00 00 00 07 [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:18]Read from MH i2c: E2 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 0E 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 0E 00 3F 4B 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 82 [09:40:18]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [09:40:18]wFMCommunicate OK [09:40:18]SAM_PROTO_GetShiftState done [09:40:18]FM_GetShiftState done [09:40:18]req_shift_opened done [09:40:18]requested_item shift.open_date is exist - process it [09:40:18]req_shift_open_date [09:40:18]req_shift_open_date done [09:40:18]produce_requested_data done [09:40:18]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111578,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [09:40:18]process_action_free close_receipt [09:40:18]json_value_free [09:40:18]json_value_free done [09:40:18]process_json_proto returns [09:40:18]Send response to host [09:40:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111578,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [09:40:18]free response buf [09:40:18]execute_script done [09:40:18]execute_script returns [09:40:18]free content buf [09:40:18]Sock 7.Close socket [09:40:18]Sock 7.Thread stoped [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:12]OFD Sender: No OFD packet to send [09:41:17]OFD Sender: No OFD packet to send [09:41:22]OFD Sender: No OFD packet to send [09:41:27]OFD Sender: No OFD packet to send [09:41:32]OFD Sender: No OFD packet to send [09:41:36]accept exits with 9 [09:41:36]New connection [09:41:36]New thread 3067321700 created [09:41:36]Thread 3067465060 joined [09:41:36]Waiting for new connection... [09:41:36] Sock 9.Parse request [09:41:36]Sock 9.Check first char [09:41:36]Sock 9.First char is OK [09:41:36]request: POST /json_proto HTTP/1.0 [09:41:36]Method: POST [09:41:36]URL: /json_proto [09:41:36]Method is POST - this is cgi request [09:41:36]url: /json_proto [09:41:36]query_string will be loaded in cgi processing [09:41:36]execute_cgi json_proto POST (null) [09:41:36]execute_cgi path=json_proto method=POST [09:41:36]POST find Content-Length [09:41:36]Host: 172.17.59.68:8080 [09:41:36]Content-Length: 677 [09:41:36]Content-Type: application/json [09:41:36] [09:41:36]POST finish read [09:41:36]Found Content-Length = 677 [09:41:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:36]execute_script... [09:41:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:36]POST & json_proto [09:41:36]process_json_proto [09:41:36]json parsed OK: [09:41:36]protocol is kg_v1.0 [09:41:36]action value=close_receipt [09:41:36]process_action close_receipt [09:41:36]cmd_close_receipt [09:41:36]MH_GetDate [09:41:36]Write to MH i2c: F0 00 00 40 4B 7A [09:41:36]Write i2c OK [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: F0 [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: F0 09 00 [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: F0 09 00 40 4B 00 6E F9 73 66 BC EC 60 65 30 [09:41:36]GetLastDocTimeStamp 1718876444 [09:41:36]current date 1718876526 [09:41:36]FM_GetShiftState [09:41:36]SAM_PROTO_GetShiftState [09:41:36]wFMCommunicate request_size=4 [09:41:36]MH_SAM_APDU [09:41:36]CAPDU: 80 13 01 00 [09:41:36]Write to MH i2c: E2 08 00 41 4B 80 13 01 00 00 00 00 00 09 [09:41:36]Write i2c OK [09:41:36]MH_I2C_Read... [09:41:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:36]Read from MH i2c: E2 [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: E2 0E 00 [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: E2 0E 00 41 4B 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 84 [09:41:36]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [09:41:36]wFMCommunicate OK [09:41:36]SAM_PROTO_GetShiftState done [09:41:36]FM_GetShiftState done [09:41:36]opened in 1718847247 [09:41:36]opened+sec_in_day 1718933647 [09:41:36]quantity*price = 50065 [09:41:36]sum+1 = 50067 [09:41:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 29 20.06.2024 09:42 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111579 ФПД: 214192712468858 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T094206&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111579&fm=214192712468858&tin=02508201610067®Number=0000000000092771&sum=50000 [09:41:37]StoreToDocumentArchive [09:41:37]shift 389 fd 111579 [09:41:37]save to /storage/0389/doc_00111579 [09:41:37]save last doc name /storage/0389/doc_00111579 to /storage/kkm_last_doc_name [09:41:37]save OK [09:41:37]Clear old archive folders... [09:41:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:41:37]tlvbuf is 00F0C630 [09:41:37]SAM_PROTO_ClearQueue [09:41:37]wFMCommunicate request_size=4 [09:41:37]MH_SAM_APDU [09:41:37]CAPDU: 80 09 00 00 [09:41:37]Write to MH i2c: E2 08 00 4E 4B 80 09 00 00 00 00 00 00 0B [09:41:37]Write i2c OK [09:41:37]MH_I2C_Read... [09:41:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:37]Read from MH i2c: E2 [09:41:37]MH_I2C_Read... [09:41:37]Read from MH i2c: E2 03 00 [09:41:37]MH_I2C_Read... [09:41:37]Read from MH i2c: E2 03 00 4E 4B 00 90 00 0D [09:41:37]RAPDU: 90 00 [09:41:37]wFMCommunicate OK [09:41:37]SAM_PROTO_ClearQueue done [09:41:37]KKMCreateOFDPacket [09:41:37]OFDProtocolAddRootSTLVToBuf [09:41:37]FM_MakeSignedData [09:41:37]FM_MakeSignedData [09:41:37]SAM_PROTO_SignData [09:41:37]wFMCommunicate request_size=4 [09:41:37]MH_SAM_APDU [09:41:37]CAPDU: 80 0D 01 02 [09:41:37]Write to MH i2c: E2 08 00 4F 4B 80 0D 01 02 00 00 00 00 13 [09:41:37]Write i2c OK [09:41:37]MH_I2C_Read... [09:41:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:37]Read from MH i2c: E2 [09:41:37]MH_I2C_Read... [09:41:37]Read from MH i2c: E2 03 00 [09:41:37]MH_I2C_Read... [09:41:37]Read from MH i2c: E2 03 00 4F 4B 00 90 00 0E [09:41:37]RAPDU: 90 00 [09:41:37]wFMCommunicate OK [09:41:37]wFMCommunicate request_size=255 [09:41:37]MH_SAM_APDU [09:41:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 6E F9 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DB B3 01 00 35 04 06 00 C2 [09:41:37]Write to MH i2c: E2 02 01 50 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 6E F9 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DB B3 01 00 35 04 06 00 C2 00 00 FB [09:41:37]Write i2c OK [09:41:37]MH_I2C_Read... [09:41:37]OFD Sender: No OFD packet to send [09:41:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:37]Read from MH i2c: E2 [09:41:37]MH_I2C_Read... [09:41:37]Read from MH i2c: E2 03 00 [09:41:37]MH_I2C_Read... [09:41:37]Read from MH i2c: E2 03 00 50 4B 00 90 00 0F [09:41:37]RAPDU: 90 00 [09:41:37]wFMCommunicate OK [09:41:37]wFMCommunicate request_size=10 [09:41:37]MH_SAM_APDU [09:41:37]CAPDU: 80 0D 02 02 05 CE A0 8A 49 7A [09:41:37]Write to MH i2c: E2 0D 00 51 4B 80 0D 02 02 05 00 CE A0 8A 49 7A 00 00 DB [09:41:37]Write i2c OK [09:41:37]MH_I2C_Read... [09:41:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:37]Read from MH i2c: E2 [09:41:37]MH_I2C_Read... [09:41:37]Read from MH i2c: E2 03 00 [09:41:37]MH_I2C_Read... [09:41:37]Read from MH i2c: E2 03 00 51 4B 00 90 00 10 [09:41:37]RAPDU: 90 00 [09:41:37]wFMCommunicate OK [09:41:37]wFMCommunicate request_size=4 [09:41:37]MH_SAM_APDU [09:41:37]CAPDU: 80 0D 03 02 [09:41:37]Write to MH i2c: E2 08 00 52 4B 80 0D 03 02 00 00 00 00 18 [09:41:37]Write i2c OK [09:41:37]MH_I2C_Read... [09:41:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:37]Read from MH i2c: E2 [09:41:37]MH_I2C_Read... [09:41:37]Read from MH i2c: E2 0B 00 [09:41:37]MH_I2C_Read... [09:41:37]Read from MH i2c: E2 0B 00 52 4B 00 86 5B A6 DB 18 4D 85 05 90 00 6A [09:41:37]RAPDU: 86 5B A6 DB 18 4D 85 05 90 00 [09:41:37]wFMCommunicate OK [09:41:37]SAM_PROTO_SignData done [09:41:37]FM_MakeSignedData done [09:41:37]CreateOFDProtocolMessage [09:41:37]wFMCommunicate request_size=4 [09:41:37]MH_SAM_APDU [09:41:37]CAPDU: 80 11 00 00 [09:41:37]Write to MH i2c: E2 08 00 53 4B 80 11 00 00 00 00 00 00 18 [09:41:37]Write i2c OK [09:41:37]MH_I2C_Read... [09:41:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:37]Read from MH i2c: E2 [09:41:37]MH_I2C_Read... [09:41:37]Read from MH i2c: E2 17 00 [09:41:37]MH_I2C_Read... [09:41:37]Read from MH i2c: E2 17 00 53 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6A [09:41:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:41:37]wFMCommunicate OK [09:41:37]CreateOFDProtocolMessage done [09:41:37]OFDSenderStorePacket 111579 [09:41:37]StoreOFDPacket docnum=111579 [09:41:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EB 0E 07 01 C3 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 6E F9 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DB B3 01 00 35 04 06 00 C2 CE A0 8A 49 7A 86 5B A6 DB 18 4D 85 05 [09:41:37]CheckFolder [09:41:37]dirname=/storage/ofd_packets [09:41:37]CheckFolder done [09:41:37]ProducePacketName [09:41:37]name=ofd_packets/00111579 [09:41:37]NVStorageSaveData ofd_packets/00111579 [09:41:37]File name is /storage/ofd_packets/00111579 [09:41:37]Write 301 bytes [09:41:37]NVStorageSaveData done [09:41:37]OFDSenderStorePacket done [09:41:37]KKMCreateOFDPacket done [09:41:37]NVStorageSaveData kkm_last_timestamp [09:41:37]File name is /storage/kkm_last_timestamp [09:41:37]Write 4 bytes [09:41:37]NVStorageSaveData done [09:41:37]ExternCall_PrintAddStr [09:41:37]wPrintStart [09:41:38]Write to MH i2c: 01 00 00 54 4B 9F [09:41:38]Write i2c OK [09:41:38]MH_I2C_Read... [09:41:38]Read from MH i2c: 01 [09:41:38]MH_I2C_Read... [09:41:38]Read from MH i2c: 01 07 00 [09:41:38]MH_I2C_Read... [09:41:38]Read from MH i2c: 01 07 00 54 4B 00 00 00 00 00 FF 0F B4 [09:41:38]RasterBufferAndPrint [09:41:38]line Счет N : (1)320176 [09:41:38]line ИНН: 02508201610067 [09:41:38]line Контрольно-Кассовый Чек [09:41:38]line ПРОДАЖА [09:41:38]line ТРК (МРК, ГНК) : 11 [09:41:38]line Товар: 2710124130 [09:41:38]line Аи-92-К-5 [09:41:38]line 7.540 * 66.40 [09:41:38]line = 500.66 [09:41:38]line НДС 12% НСП 1% [09:41:38]line > о реализуемом товаре [09:41:38]line ОКРУГЛЕНИЕ: -0.66 [09:41:38]line ИТОГО: 500.00 [09:41:38]line Внесено: 500.00 [09:41:38]line СДАЧА: 0.00 [09:41:38]line НСП 1% : 4.43 [09:41:38]line НДС 12% : 53.17 [09:41:38]line Наличными: 500.00 [09:41:38]line Безнал.: 0.00 [09:41:38]line Место: АЗС № 65 "Партнер Нефть" [09:41:38]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:41:38]line СНО: Общий режим [09:41:38]line Чек 29 20.06.2024 09:42 [09:41:38]line Смена: 389 ФФД: 1.0 [09:41:38]line ЗНМ: 0300000198 [09:41:38]line РНМ: 0000000000092771 [09:41:38]line Версия ККМ: 001 [09:41:38]line ФМ: 0000000000875083 [09:41:38]line ФД: 111579 [09:41:38]line ФПД: 214192712468858 [09:41:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T094206&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111579&fm=214192712468858&tin=02508201610067®Number=0000000000092771&sum=50000 [09:41:38]OFD Sender: Processing packet 111579 [packets to send 38, broken 37] [09:41:38]ProducePacketName [09:41:38]name=ofd_packets/00111579 [09:41:38]OFD Sender: To server: pG, [09:41:38]CommunicateWithHost lk.salyk.kg:30040 [09:41:38]ConnectInit lk.salyk.kg [09:41:38]written 0, free lines is 4095 [09:41:38]Connected sock=10 [09:41:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EB 0E 07 01 C3 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 6E F9 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DB B3 01 00 35 04 06 00 C2 CE A0 8A 49 7A 86 5B A6 DB 18 4D 85 05 [09:41:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 2E A1 47 00 00 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DB B3 01 00 F4 03 04 00 BC 90 73 66 B6 04 01 00 00 31 97 D6 FF 4B FD 60 D0 [09:41:38]CommunicateWithHost err = 0 [09:41:38]CheckOFDResponse [09:41:38]1017 (14) - 77093643461234 [09:41:38]1041 (16) - 0000000000875083 [09:41:38]1040 (4) - 111579 [09:41:38]1012 (4) - 20.06.2024 02:15 [09:41:38]1206 (1) - 0 [09:41:38]OFD Sender: Remove packet 111579 [09:41:38]ProducePacketName [09:41:38]name=ofd_packets/00111579 [09:41:38]NVStorageDeleteData [09:41:38]Write to MH i2c: 01 00 00 7F 4B CA [09:41:38]Write i2c OK [09:41:38]MH_I2C_Read... [09:41:38]Read from MH i2c: 01 [09:41:38]MH_I2C_Read... [09:41:38]Read from MH i2c: 01 07 00 [09:41:38]MH_I2C_Read... [09:41:38]Read from MH i2c: 01 07 00 7F 4B 00 00 00 00 00 DE 0C BB [09:41:38]RasterBufferAndPrint [09:41:38]line [09:41:38]line [09:41:38]line [09:41:38]line [09:41:38]line [09:41:38]written 0, free lines is 3300 [09:41:38]MH_Cut [09:41:38]Write to MH i2c: D1 01 00 86 4B 01 A3 [09:41:38]Write i2c OK [09:41:38]MH_I2C_Read... [09:41:38]Read from MH i2c: D1 [09:41:38]MH_I2C_Read... [09:41:38]Read from MH i2c: D1 01 00 [09:41:38]MH_I2C_Read... [09:41:38]Read from MH i2c: D1 01 00 86 4B 00 A2 [09:41:38]Write to MH i2c: 01 00 00 87 4B D2 [09:41:38]Write i2c OK [09:41:38]MH_I2C_Read... [09:41:39]OFD Sender: No OFD packet to send [09:41:39]*** Cut start [09:41:39]*** Partial cut [09:41:39]*** CUTSNS_PIN = 1 [09:41:39]*** CUTSNS_PIN = 0 [09:41:39]*** Brake cut motor [09:41:40]Read from MH i2c: 01 [09:41:40]MH_I2C_Read... [09:41:40]*** Stop cut motor [09:41:40]*** Cut end [09:41:40]Read from MH i2c: 01 07 00 [09:41:40]MH_I2C_Read... [09:41:40]Read from MH i2c: 01 07 00 87 4B 00 00 00 00 00 FF 0F E7 [09:41:40]process_action close_receipt done [09:41:40]requested_data is exist [09:41:40]produce_requested_data [09:41:40]requested_item fm.sn is exist - process it [09:41:40]wFMCommunicate request_size=4 [09:41:40]MH_SAM_APDU [09:41:40]CAPDU: 80 11 00 00 [09:41:40]Write to MH i2c: E2 08 00 88 4B 80 11 00 00 00 00 00 00 4D [09:41:40]Write i2c OK [09:41:40]MH_I2C_Read... [09:41:40]Read from MH i2c: E2 [09:41:40]MH_I2C_Read... [09:41:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:40]Read from MH i2c: E2 17 00 [09:41:40]MH_I2C_Read... [09:41:40]Read from MH i2c: E2 17 00 88 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9F [09:41:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:41:40]wFMCommunicate OK [09:41:40]requested_item fd.num is exist - process it [09:41:40]SAM_PROTO_GetFieldsCounters [09:41:40]wFMCommunicate request_size=4 [09:41:40]MH_SAM_APDU [09:41:40]CAPDU: 80 13 00 00 [09:41:40]Write to MH i2c: E2 08 00 89 4B 80 13 00 00 00 00 00 00 50 [09:41:40]Write i2c OK [09:41:40]MH_I2C_Read... [09:41:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:40]Read from MH i2c: E2 [09:41:40]MH_I2C_Read... [09:41:40]Read from MH i2c: E2 62 00 [09:41:40]MH_I2C_Read... [09:41:40]Read from MH i2c: E2 62 00 89 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DB B3 01 00 0E 04 04 00 85 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 DD [09:41:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DB B3 01 00 0E 04 04 00 85 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 [09:41:40]wFMCommunicate OK [09:41:40]SAM_PROTO_GetFieldsCounters done [09:41:40]requested_item shift.num is exist - process it [09:41:40]requested_item shift.opened is exist - process it [09:41:40]req_shift_opened [09:41:40]FM_GetShiftState [09:41:40]SAM_PROTO_GetShiftState [09:41:40]wFMCommunicate request_size=4 [09:41:40]MH_SAM_APDU [09:41:40]CAPDU: 80 13 01 00 [09:41:40]Write to MH i2c: E2 08 00 8A 4B 80 13 01 00 00 00 00 00 52 [09:41:40]Write i2c OK [09:41:40]MH_I2C_Read... [09:41:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:40]Read from MH i2c: E2 [09:41:40]MH_I2C_Read... [09:41:40]Read from MH i2c: E2 0E 00 [09:41:40]MH_I2C_Read... [09:41:40]Read from MH i2c: E2 0E 00 8A 4B 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 CD [09:41:40]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [09:41:40]wFMCommunicate OK [09:41:40]SAM_PROTO_GetShiftState done [09:41:40]FM_GetShiftState done [09:41:40]req_shift_opened done [09:41:40]requested_item shift.open_date is exist - process it [09:41:40]req_shift_open_date [09:41:40]req_shift_open_date done [09:41:40]produce_requested_data done [09:41:40]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111579,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [09:41:40]process_action_free close_receipt [09:41:40]json_value_free [09:41:40]json_value_free done [09:41:40]process_json_proto returns [09:41:40]Send response to host [09:41:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111579,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [09:41:40]free response buf [09:41:40]execute_script done [09:41:40]execute_script returns [09:41:40]free content buf [09:41:40]Sock 9.Close socket [09:41:40]Sock 9.Thread stoped [09:41:44]OFD Sender: No OFD packet to send [09:41:49]OFD Sender: No OFD packet to send [09:41:54]OFD Sender: No OFD packet to send [09:41:59]OFD Sender: No OFD packet to send [09:42:04]OFD Sender: No OFD packet to send [09:42:09]OFD Sender: No OFD packet to send [09:42:14]OFD Sender: No OFD packet to send [09:42:19]OFD Sender: No OFD packet to send [09:42:24]OFD Sender: No OFD packet to send [09:42:29]OFD Sender: No OFD packet to send [09:42:34]OFD Sender: No OFD packet to send [09:42:39]OFD Sender: No OFD packet to send [09:42:44]OFD Sender: No OFD packet to send [09:42:49]OFD Sender: No OFD packet to send [09:42:54]OFD Sender: No OFD packet to send [09:42:59]OFD Sender: No OFD packet to send [09:43:04]OFD Sender: No OFD packet to send [09:43:09]OFD Sender: No OFD packet to send [09:43:14]OFD Sender: No OFD packet to send [09:43:19]OFD Sender: No OFD packet to send [09:43:24]OFD Sender: No OFD packet to send [09:43:29]OFD Sender: No OFD packet to send [09:43:34]OFD Sender: No OFD packet to send [09:43:39]OFD Sender: No OFD packet to send [09:43:44]OFD Sender: No OFD packet to send [09:43:49]OFD Sender: No OFD packet to send [09:43:54]OFD Sender: No OFD packet to send [09:43:59]OFD Sender: No OFD packet to send [09:44:04]OFD Sender: No OFD packet to send [09:44:09]OFD Sender: No OFD packet to send [09:44:14]OFD Sender: No OFD packet to send [09:44:19]OFD Sender: No OFD packet to send [09:44:24]OFD Sender: No OFD packet to send [09:44:29]OFD Sender: No OFD packet to send [09:44:34]OFD Sender: No OFD packet to send [09:44:39]OFD Sender: No OFD packet to send [09:44:44]OFD Sender: No OFD packet to send [09:44:49]OFD Sender: No OFD packet to send [09:44:54]OFD Sender: No OFD packet to send [09:44:59]OFD Sender: No OFD packet to send [09:45:04]OFD Sender: No OFD packet to send [09:45:09]OFD Sender: No OFD packet to send [09:45:14]OFD Sender: No OFD packet to send [09:45:19]OFD Sender: No OFD packet to send [09:45:24]OFD Sender: No OFD packet to send [09:45:29]OFD Sender: No OFD packet to send [09:45:34]OFD Sender: No OFD packet to send [09:45:39]OFD Sender: No OFD packet to send [09:45:44]OFD Sender: No OFD packet to send [09:45:49]OFD Sender: No OFD packet to send [09:45:54]OFD Sender: No OFD packet to send [09:45:59]OFD Sender: No OFD packet to send [09:46:04]OFD Sender: No OFD packet to send [09:46:09]OFD Sender: No OFD packet to send [09:46:14]OFD Sender: No OFD packet to send [09:46:19]OFD Sender: No OFD packet to send [09:46:24]OFD Sender: No OFD packet to send [09:46:29]OFD Sender: No OFD packet to send [09:46:34]OFD Sender: No OFD packet to send [09:46:39]OFD Sender: No OFD packet to send [09:46:44]OFD Sender: No OFD packet to send [09:46:49]OFD Sender: No OFD packet to send [09:46:54]OFD Sender: No OFD packet to send [09:46:59]OFD Sender: No OFD packet to send [09:47:04]OFD Sender: No OFD packet to send [09:47:09]OFD Sender: No OFD packet to send [09:47:14]OFD Sender: No OFD packet to send [09:47:19]OFD Sender: No OFD packet to send [09:47:24]OFD Sender: No OFD packet to send [09:47:29]OFD Sender: No OFD packet to send [09:47:34]OFD Sender: No OFD packet to send [09:47:39]OFD Sender: No OFD packet to send [09:47:44]OFD Sender: No OFD packet to send [09:47:49]OFD Sender: No OFD packet to send [09:47:54]OFD Sender: No OFD packet to send [09:47:54]accept exits with 7 [09:47:54]New connection [09:47:54]New thread 3067465060 created [09:47:54]Thread 3067321700 joined [09:47:54]Waiting for new connection... [09:47:54] Sock 7.Parse request [09:47:54]Sock 7.Check first char [09:47:54]Sock 7.First char is OK [09:47:54]request: POST /json_proto HTTP/1.0 [09:47:54]Method: POST [09:47:54]URL: /json_proto [09:47:54]Method is POST - this is cgi request [09:47:54]url: /json_proto [09:47:54]query_string will be loaded in cgi processing [09:47:54]execute_cgi json_proto POST (null) [09:47:54]execute_cgi path=json_proto method=POST [09:47:54]POST find Content-Length [09:47:54]Host: 172.17.59.68:8080 [09:47:54]Content-Length: 677 [09:47:54]Content-Type: application/json [09:47:54] [09:47:54]POST finish read [09:47:54]Found Content-Length = 677 [09:47:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:54]execute_script... [09:47: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)320177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:54]POST & json_proto [09:47:54]process_json_proto [09:47:54]json parsed OK: [09:47:54]protocol is kg_v1.0 [09:47:54]action value=close_receipt [09:47:54]process_action close_receipt [09:47:54]cmd_close_receipt [09:47:54]MH_GetDate [09:47:54]Write to MH i2c: F0 00 00 8B 4B C5 [09:47:54]Write i2c OK [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: F0 [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: F0 09 00 [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: F0 09 00 8B 4B 00 E8 FA 73 66 BC EC 60 65 F6 [09:47:54]GetLastDocTimeStamp 1718876526 [09:47:54]current date 1718876904 [09:47:54]FM_GetShiftState [09:47:54]SAM_PROTO_GetShiftState [09:47:54]wFMCommunicate request_size=4 [09:47:54]MH_SAM_APDU [09:47:54]CAPDU: 80 13 01 00 [09:47:54]Write to MH i2c: E2 08 00 8C 4B 80 13 01 00 00 00 00 00 54 [09:47:54]Write i2c OK [09:47:54]MH_I2C_Read... [09:47:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:54]Read from MH i2c: E2 [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: E2 0E 00 [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: E2 0E 00 8C 4B 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 CF [09:47:54]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [09:47:54]wFMCommunicate OK [09:47:54]SAM_PROTO_GetShiftState done [09:47:54]FM_GetShiftState done [09:47:54]opened in 1718847247 [09:47:54]opened+sec_in_day 1718933647 [09:47:54]quantity*price = 30012 [09:47:54]sum+1 = 30014 [09:47:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 30 20.06.2024 09:48 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111580 ФПД: 277475781729757 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T094824&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111580&fm=277475781729757&tin=02508201610067®Number=0000000000092771&sum=30000 [09:47:55]StoreToDocumentArchive [09:47:55]shift 389 fd 111580 [09:47:55]save to /storage/0389/doc_00111580 [09:47:55]save last doc name /storage/0389/doc_00111580 to /storage/kkm_last_doc_name [09:47:55]save OK [09:47:55]Clear old archive folders... [09:47:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:47:55]tlvbuf is 00F50160 [09:47:55]SAM_PROTO_ClearQueue [09:47:55]wFMCommunicate request_size=4 [09:47:55]MH_SAM_APDU [09:47:55]CAPDU: 80 09 00 00 [09:47:55]Write to MH i2c: E2 08 00 99 4B 80 09 00 00 00 00 00 00 56 [09:47:55]Write i2c OK [09:47:55]MH_I2C_Read... [09:47:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:55]Read from MH i2c: E2 [09:47:55]MH_I2C_Read... [09:47:55]Read from MH i2c: E2 03 00 [09:47:55]MH_I2C_Read... [09:47:55]Read from MH i2c: E2 03 00 99 4B 00 90 00 58 [09:47:55]RAPDU: 90 00 [09:47:55]wFMCommunicate OK [09:47:55]SAM_PROTO_ClearQueue done [09:47:55]KKMCreateOFDPacket [09:47:55]OFDProtocolAddRootSTLVToBuf [09:47:55]FM_MakeSignedData [09:47:55]FM_MakeSignedData [09:47:55]SAM_PROTO_SignData [09:47:55]wFMCommunicate request_size=4 [09:47:55]MH_SAM_APDU [09:47:55]CAPDU: 80 0D 01 02 [09:47:55]Write to MH i2c: E2 08 00 9A 4B 80 0D 01 02 00 00 00 00 5E [09:47:55]Write i2c OK [09:47:55]MH_I2C_Read... [09:47:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:55]Read from MH i2c: E2 [09:47:55]MH_I2C_Read... [09:47:55]Read from MH i2c: E2 03 00 [09:47:55]MH_I2C_Read... [09:47:55]Read from MH i2c: E2 03 00 9A 4B 00 90 00 59 [09:47:55]RAPDU: 90 00 [09:47:55]wFMCommunicate OK [09:47:55]wFMCommunicate request_size=255 [09:47:55]MH_SAM_APDU [09:47: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 E8 FA 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DC B3 01 00 35 04 06 00 FC [09:47:55]Write to MH i2c: E2 02 01 9B 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 E8 FA 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DC B3 01 00 35 04 06 00 FC 00 00 9B [09:47:55]Write i2c OK [09:47:55]MH_I2C_Read... [09:47:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:56]Read from MH i2c: E2 [09:47:56]MH_I2C_Read... [09:47:56]Read from MH i2c: E2 03 00 [09:47:56]MH_I2C_Read... [09:47:56]Read from MH i2c: E2 03 00 9B 4B 00 90 00 5A [09:47:56]RAPDU: 90 00 [09:47:56]wFMCommunicate OK [09:47:56]wFMCommunicate request_size=10 [09:47:56]MH_SAM_APDU [09:47:56]CAPDU: 80 0D 02 02 05 5C DD 67 5D DD [09:47:56]Write to MH i2c: E2 0D 00 9C 4B 80 0D 02 02 05 00 5C DD 67 5D DD 00 00 45 [09:47:56]Write i2c OK [09:47:56]MH_I2C_Read... [09:47:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:56]Read from MH i2c: E2 [09:47:56]MH_I2C_Read... [09:47:56]Read from MH i2c: E2 03 00 [09:47:56]MH_I2C_Read... [09:47:56]Read from MH i2c: E2 03 00 9C 4B 00 90 00 5B [09:47:56]RAPDU: 90 00 [09:47:56]wFMCommunicate OK [09:47:56]wFMCommunicate request_size=4 [09:47:56]MH_SAM_APDU [09:47:56]CAPDU: 80 0D 03 02 [09:47:56]Write to MH i2c: E2 08 00 9D 4B 80 0D 03 02 00 00 00 00 63 [09:47:56]Write i2c OK [09:47:56]MH_I2C_Read... [09:47:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:56]Read from MH i2c: E2 [09:47:56]MH_I2C_Read... [09:47:56]Read from MH i2c: E2 0B 00 [09:47:56]MH_I2C_Read... [09:47:56]Read from MH i2c: E2 0B 00 9D 4B 00 1E 99 2E 69 31 72 21 26 90 00 9C [09:47:56]RAPDU: 1E 99 2E 69 31 72 21 26 90 00 [09:47:56]wFMCommunicate OK [09:47:56]SAM_PROTO_SignData done [09:47:56]FM_MakeSignedData done [09:47:56]CreateOFDProtocolMessage [09:47:56]wFMCommunicate request_size=4 [09:47:56]MH_SAM_APDU [09:47:56]CAPDU: 80 11 00 00 [09:47:56]Write to MH i2c: E2 08 00 9E 4B 80 11 00 00 00 00 00 00 63 [09:47:56]Write i2c OK [09:47:56]MH_I2C_Read... [09:47:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:56]Read from MH i2c: E2 [09:47:56]MH_I2C_Read... [09:47:56]Read from MH i2c: E2 17 00 [09:47:56]MH_I2C_Read... [09:47:56]Read from MH i2c: E2 17 00 9E 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B5 [09:47:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:47:56]wFMCommunicate OK [09:47:56]CreateOFDProtocolMessage done [09:47:56]OFDSenderStorePacket 111580 [09:47:56]StoreOFDPacket docnum=111580 [09:47:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AE 56 07 01 51 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 E8 FA 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DC B3 01 00 35 04 06 00 FC 5C DD 67 5D DD 1E 99 2E 69 31 72 21 26 [09:47:56]CheckFolder [09:47:56]dirname=/storage/ofd_packets [09:47:56]CheckFolder done [09:47:56]ProducePacketName [09:47:56]name=ofd_packets/00111580 [09:47:56]NVStorageSaveData ofd_packets/00111580 [09:47:56]File name is /storage/ofd_packets/00111580 [09:47:56]Write 301 bytes [09:47:56]NVStorageSaveData done [09:47:56]OFDSenderStorePacket done [09:47:56]KKMCreateOFDPacket done [09:47:56]NVStorageSaveData kkm_last_timestamp [09:47:56]File name is /storage/kkm_last_timestamp [09:47:56]Write 4 bytes [09:47:56]NVStorageSaveData done [09:47:56]ExternCall_PrintAddStr [09:47:56]wPrintStart [09:47:56]Write to MH i2c: 01 00 00 9F 4B EA [09:47:56]Write i2c OK [09:47:56]MH_I2C_Read... [09:47:56]Read from MH i2c: 01 [09:47:56]MH_I2C_Read... [09:47:56]Read from MH i2c: 01 07 00 [09:47:56]MH_I2C_Read... [09:47:56]Read from MH i2c: 01 07 00 9F 4B 00 00 00 00 00 FF 0F FF [09:47:56]RasterBufferAndPrint [09:47:56]line Счет N : (1)320177 [09:47:56]line ИНН: 02508201610067 [09:47:56]line Контрольно-Кассовый Чек [09:47:56]line ПРОДАЖА [09:47:56]line ТРК (МРК, ГНК) : 11 [09:47:56]line Товар: 2710124130 [09:47:56]line Аи-92-К-5 [09:47:56]line 4.520 * 66.40 [09:47:56]line = 300.13 [09:47:56]line НДС 12% НСП 1% [09:47:56]line > о реализуемом товаре [09:47:56]line ОКРУГЛЕНИЕ: -0.13 [09:47:56]line ИТОГО: 300.00 [09:47:56]line Внесено: 300.00 [09:47:56]line СДАЧА: 0.00 [09:47:56]line НСП 1% : 2.66 [09:47:56]line НДС 12% : 31.87 [09:47:56]line Наличными: 300.00 [09:47:56]line Безнал.: 0.00 [09:47:56]line Место: АЗС № 65 "Партнер Нефть" [09:47:56]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:47:56]line СНО: Общий режим [09:47:56]line Чек 30 20.06.2024 09:48 [09:47:56]line Смена: 389 ФФД: 1.0 [09:47:56]line ЗНМ: 0300000198 [09:47:56]line РНМ: 0000000000092771 [09:47:56]line Версия ККМ: 001 [09:47:56]line ФМ: 0000000000875083 [09:47:56]line ФД: 111580 [09:47:56]line ФПД: 277475781729757 [09:47:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T094824&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111580&fm=277475781729757&tin=02508201610067®Number=0000000000092771&sum=30000 [09:47:56]OFD Sender: Processing packet 111580 [packets to send 38, broken 37] [09:47:56]ProducePacketName [09:47:56]name=ofd_packets/00111580 [09:47:56]OFD Sender: To server: pG, [09:47:56]CommunicateWithHost lk.salyk.kg:30040 [09:47:56]ConnectInit lk.salyk.kg [09:47:56]written 0, free lines is 4095 [09:47:56]Connected sock=10 [09:47:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AE 56 07 01 51 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 E8 FA 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DC B3 01 00 35 04 06 00 FC 5C DD 67 5D DD 1E 99 2E 69 31 72 21 26 [09:47:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 62 4B 47 00 C8 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DC B3 01 00 F4 03 04 00 36 92 73 66 B6 04 01 00 00 5F B3 E8 95 24 F2 D5 95 [09:47:56]CommunicateWithHost err = 0 [09:47:56]CheckOFDResponse [09:47:56]1017 (14) - 77093643461234 [09:47:56]1041 (16) - 0000000000875083 [09:47:56]1040 (4) - 111580 [09:47:56]1012 (4) - 20.06.2024 02:21 [09:47:56]1206 (1) - 0 [09:47:56]OFD Sender: Remove packet 111580 [09:47:56]ProducePacketName [09:47:56]name=ofd_packets/00111580 [09:47:56]NVStorageDeleteData [09:47:56]Write to MH i2c: 01 00 00 CA 4B 15 [09:47:56]Write i2c OK [09:47:56]MH_I2C_Read... [09:47:56]Read from MH i2c: 01 [09:47:56]MH_I2C_Read... [09:47:56]Read from MH i2c: 01 07 00 [09:47:56]MH_I2C_Read... [09:47:56]Read from MH i2c: 01 07 00 CA 4B 00 00 00 00 00 CD 0C F5 [09:47:56]RasterBufferAndPrint [09:47:56]line [09:47:56]line [09:47:56]line [09:47:56]line [09:47:56]line [09:47:56]written 0, free lines is 3283 [09:47:56]MH_Cut [09:47:56]Write to MH i2c: D1 01 00 D1 4B 01 EE [09:47:56]Write i2c OK [09:47:56]MH_I2C_Read... [09:47:56]Read from MH i2c: D1 [09:47:56]MH_I2C_Read... [09:47:56]Read from MH i2c: D1 01 00 [09:47:56]MH_I2C_Read... [09:47:56]Read from MH i2c: D1 01 00 D1 4B 00 ED [09:47:56]Write to MH i2c: 01 00 00 D2 4B 1D [09:47:56]Write i2c OK [09:47:56]MH_I2C_Read... [09:47:57]OFD Sender: No OFD packet to send [09:47:57]*** Cut start [09:47:57]*** Partial cut [09:47:57]*** CUTSNS_PIN = 1 [09:47:57]*** CUTSNS_PIN = 0 [09:47:57]*** Brake cut motor [09:47:58]Read from MH i2c: 01 [09:47:58]MH_I2C_Read... [09:47:58]*** Stop cut motor [09:47:58]*** Cut end [09:47:58]Read from MH i2c: 01 07 00 [09:47:58]MH_I2C_Read... [09:47:58]Read from MH i2c: 01 07 00 D2 4B 00 00 00 00 00 FF 0F 32 [09:47:58]process_action close_receipt done [09:47:58]requested_data is exist [09:47:58]produce_requested_data [09:47:58]requested_item fm.sn is exist - process it [09:47:58]wFMCommunicate request_size=4 [09:47:58]MH_SAM_APDU [09:47:58]CAPDU: 80 11 00 00 [09:47:58]Write to MH i2c: E2 08 00 D3 4B 80 11 00 00 00 00 00 00 98 [09:47:58]Write i2c OK [09:47:58]MH_I2C_Read... [09:47:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:58]Read from MH i2c: E2 [09:47:58]MH_I2C_Read... [09:47:58]Read from MH i2c: E2 17 00 [09:47:58]MH_I2C_Read... [09:47:58]Read from MH i2c: E2 17 00 D3 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EA [09:47:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:47:58]wFMCommunicate OK [09:47:58]requested_item fd.num is exist - process it [09:47:58]SAM_PROTO_GetFieldsCounters [09:47:58]wFMCommunicate request_size=4 [09:47:58]MH_SAM_APDU [09:47:58]CAPDU: 80 13 00 00 [09:47:58]Write to MH i2c: E2 08 00 D4 4B 80 13 00 00 00 00 00 00 9B [09:47:58]Write i2c OK [09:47:58]MH_I2C_Read... [09:47:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:58]Read from MH i2c: E2 [09:47:58]MH_I2C_Read... [09:47:58]Read from MH i2c: E2 62 00 [09:47:58]MH_I2C_Read... [09:47:58]Read from MH i2c: E2 62 00 D4 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DC B3 01 00 0E 04 04 00 85 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 2C [09:47:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DC B3 01 00 0E 04 04 00 85 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 [09:47:58]wFMCommunicate OK [09:47:58]SAM_PROTO_GetFieldsCounters done [09:47:58]requested_item shift.num is exist - process it [09:47:58]requested_item shift.opened is exist - process it [09:47:58]req_shift_opened [09:47:58]FM_GetShiftState [09:47:58]SAM_PROTO_GetShiftState [09:47:58]wFMCommunicate request_size=4 [09:47:58]MH_SAM_APDU [09:47:58]CAPDU: 80 13 01 00 [09:47:58]Write to MH i2c: E2 08 00 D5 4B 80 13 01 00 00 00 00 00 9D [09:47:58]Write i2c OK [09:47:58]MH_I2C_Read... [09:47:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:58]Read from MH i2c: E2 [09:47:58]MH_I2C_Read... [09:47:58]Read from MH i2c: E2 0E 00 [09:47:58]MH_I2C_Read... [09:47:58]Read from MH i2c: E2 0E 00 D5 4B 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 18 [09:47:58]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [09:47:58]wFMCommunicate OK [09:47:58]SAM_PROTO_GetShiftState done [09:47:58]FM_GetShiftState done [09:47:58]req_shift_opened done [09:47:58]requested_item shift.open_date is exist - process it [09:47:58]req_shift_open_date [09:47:58]req_shift_open_date done [09:47:58]produce_requested_data done [09:47:58]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111580,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [09:47:58]process_action_free close_receipt [09:47:58]json_value_free [09:47:58]json_value_free done [09:47:58]process_json_proto returns [09:47:58]Send response to host [09:47:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111580,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [09:47:58]free response buf [09:47:58]execute_script done [09:47:58]execute_script returns [09:47:58]free content buf [09:47:58]Sock 7.Close socket [09:47:58]Sock 7.Thread stoped [09:48:02]OFD Sender: No OFD packet to send [09:48:07]OFD Sender: No OFD packet to send [09:48:12]OFD Sender: No OFD packet to send [09:48:17]OFD Sender: No OFD packet to send [09:48:22]OFD Sender: No OFD packet to send [09:48:27]OFD Sender: No OFD packet to send [09:48:32]OFD Sender: No OFD packet to send [09:48:37]OFD Sender: No OFD packet to send [09:48:42]OFD Sender: No OFD packet to send [09:48:47]OFD Sender: No OFD packet to send [09:48:52]OFD Sender: No OFD packet to send [09:48:57]OFD Sender: No OFD packet to send [09:49:02]OFD Sender: No OFD packet to send [09:49:07]OFD Sender: No OFD packet to send [09:49:12]OFD Sender: No OFD packet to send [09:49:17]OFD Sender: No OFD packet to send [09:49:22]OFD Sender: No OFD packet to send [09:49:27]OFD Sender: No OFD packet to send [09:49:32]OFD Sender: No OFD packet to send [09:49:37]OFD Sender: No OFD packet to send [09:49:42]OFD Sender: No OFD packet to send [09:49:47]OFD Sender: No OFD packet to send [09:49:52]OFD Sender: No OFD packet to send [09:49:57]OFD Sender: No OFD packet to send [09:50:02]OFD Sender: No OFD packet to send [09:50:07]OFD Sender: No OFD packet to send [09:50:12]OFD Sender: No OFD packet to send [09:50:17]OFD Sender: No OFD packet to send [09:50:18]accept exits with 9 [09:50:18]New connection [09:50:18]New thread 3067321700 created [09:50:18]Thread 3067465060 joined [09:50:18]Waiting for new connection... [09:50:18] Sock 9.Parse request [09:50:18]Sock 9.Check first char [09:50:18]Sock 9.First char is OK [09:50:18]request: POST /json_proto HTTP/1.0 [09:50:18]Method: POST [09:50:18]URL: /json_proto [09:50:18]Method is POST - this is cgi request [09:50:18]url: /json_proto [09:50:18]query_string will be loaded in cgi processing [09:50:18]execute_cgi json_proto POST (null) [09:50:18]execute_cgi path=json_proto method=POST [09:50:18]POST find Content-Length [09:50:18]Host: 172.17.59.68:8080 [09:50:18]Content-Length: 677 [09:50:18]Content-Type: application/json [09:50:18] [09:50:18]POST finish read [09:50:18]Found Content-Length = 677 [09:50:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:18]execute_script... [09:50: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)320178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:18]POST & json_proto [09:50:18]process_json_proto [09:50:18]json parsed OK: [09:50:18]protocol is kg_v1.0 [09:50:18]action value=close_receipt [09:50:18]process_action close_receipt [09:50:18]cmd_close_receipt [09:50:18]MH_GetDate [09:50:18]Write to MH i2c: F0 00 00 D6 4B 10 [09:50:18]Write i2c OK [09:50:18]MH_I2C_Read... [09:50:18]Read from MH i2c: F0 [09:50:18]MH_I2C_Read... [09:50:18]Read from MH i2c: F0 09 00 [09:50:18]MH_I2C_Read... [09:50:18]Read from MH i2c: F0 09 00 D6 4B 00 79 FB 73 66 BC EC 60 65 D3 [09:50:18]GetLastDocTimeStamp 1718876904 [09:50:18]current date 1718877049 [09:50:18]FM_GetShiftState [09:50:18]SAM_PROTO_GetShiftState [09:50:18]wFMCommunicate request_size=4 [09:50:18]MH_SAM_APDU [09:50:18]CAPDU: 80 13 01 00 [09:50:18]Write to MH i2c: E2 08 00 D7 4B 80 13 01 00 00 00 00 00 9F [09:50:18]Write i2c OK [09:50:18]MH_I2C_Read... [09:50:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:18]Read from MH i2c: E2 [09:50:18]MH_I2C_Read... [09:50:18]Read from MH i2c: E2 0E 00 [09:50:18]MH_I2C_Read... [09:50:18]Read from MH i2c: E2 0E 00 D7 4B 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 1A [09:50:18]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [09:50:18]wFMCommunicate OK [09:50:18]SAM_PROTO_GetShiftState done [09:50:18]FM_GetShiftState done [09:50:18]opened in 1718847247 [09:50:18]opened+sec_in_day 1718933647 [09:50:18]quantity*price = 20052 [09:50:18]sum+1 = 20054 [09:50:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 31 20.06.2024 09:50 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111581 ФПД: 104973728158931 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T095049&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111581&fm=104973728158931&tin=02508201610067®Number=0000000000092771&sum=20000 [09:50:20]StoreToDocumentArchive [09:50:20]shift 389 fd 111581 [09:50:20]save to /storage/0389/doc_00111581 [09:50:20]save last doc name /storage/0389/doc_00111581 to /storage/kkm_last_doc_name [09:50:20]save OK [09:50:20]Clear old archive folders... [09:50:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:50:20]tlvbuf is 01018A50 [09:50:20]SAM_PROTO_ClearQueue [09:50:20]wFMCommunicate request_size=4 [09:50:20]MH_SAM_APDU [09:50:20]CAPDU: 80 09 00 00 [09:50:20]Write to MH i2c: E2 08 00 E4 4B 80 09 00 00 00 00 00 00 A1 [09:50:20]Write i2c OK [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: E2 [09:50:20]MH_I2C_Read... [09:50:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:50:20]Read from MH i2c: E2 03 00 [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: E2 03 00 E4 4B 00 90 00 A3 [09:50:20]RAPDU: 90 00 [09:50:20]wFMCommunicate OK [09:50:20]SAM_PROTO_ClearQueue done [09:50:20]KKMCreateOFDPacket [09:50:20]OFDProtocolAddRootSTLVToBuf [09:50:20]FM_MakeSignedData [09:50:20]FM_MakeSignedData [09:50:20]SAM_PROTO_SignData [09:50:20]wFMCommunicate request_size=4 [09:50:20]MH_SAM_APDU [09:50:20]CAPDU: 80 0D 01 02 [09:50:20]Write to MH i2c: E2 08 00 E5 4B 80 0D 01 02 00 00 00 00 A9 [09:50:20]Write i2c OK [09:50:20]MH_I2C_Read... [09:50:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:50:20]Read from MH i2c: E2 [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: E2 03 00 [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: E2 03 00 E5 4B 00 90 00 A4 [09:50:20]RAPDU: 90 00 [09:50:20]wFMCommunicate OK [09:50:20]wFMCommunicate request_size=255 [09:50:20]MH_SAM_APDU [09:50: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 79 FB 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DD B3 01 00 35 04 06 00 5F [09:50:20]Write to MH i2c: E2 02 01 E6 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 79 FB 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DD B3 01 00 35 04 06 00 5F 00 00 FE [09:50:20]Write i2c OK [09:50:20]MH_I2C_Read... [09:50:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:20]Read from MH i2c: E2 [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: E2 03 00 [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: E2 03 00 E6 4B 00 90 00 A5 [09:50:20]RAPDU: 90 00 [09:50:20]wFMCommunicate OK [09:50:20]wFMCommunicate request_size=10 [09:50:20]MH_SAM_APDU [09:50:20]CAPDU: 80 0D 02 02 05 79 19 C7 14 D3 [09:50:20]Write to MH i2c: E2 0D 00 E7 4B 80 0D 02 02 05 00 79 19 C7 14 D3 00 00 F6 [09:50:20]Write i2c OK [09:50:20]MH_I2C_Read... [09:50:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:20]Read from MH i2c: E2 [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: E2 03 00 [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: E2 03 00 E7 4B 00 90 00 A6 [09:50:20]RAPDU: 90 00 [09:50:20]wFMCommunicate OK [09:50:20]wFMCommunicate request_size=4 [09:50:20]MH_SAM_APDU [09:50:20]CAPDU: 80 0D 03 02 [09:50:20]Write to MH i2c: E2 08 00 E8 4B 80 0D 03 02 00 00 00 00 AE [09:50:20]Write i2c OK [09:50:20]MH_I2C_Read... [09:50:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:50:20]Read from MH i2c: E2 [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: E2 0B 00 [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: E2 0B 00 E8 4B 00 69 ED 08 3F 45 88 DF 8A 90 00 82 [09:50:20]RAPDU: 69 ED 08 3F 45 88 DF 8A 90 00 [09:50:20]wFMCommunicate OK [09:50:20]SAM_PROTO_SignData done [09:50:20]FM_MakeSignedData done [09:50:20]CreateOFDProtocolMessage [09:50:20]wFMCommunicate request_size=4 [09:50:20]MH_SAM_APDU [09:50:20]CAPDU: 80 11 00 00 [09:50:20]Write to MH i2c: E2 08 00 E9 4B 80 11 00 00 00 00 00 00 AE [09:50:20]Write i2c OK [09:50:20]MH_I2C_Read... [09:50:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:20]Read from MH i2c: E2 [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: E2 17 00 [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: E2 17 00 E9 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 00 [09:50:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:50:20]wFMCommunicate OK [09:50:20]CreateOFDProtocolMessage done [09:50:20]OFDSenderStorePacket 111581 [09:50:20]StoreOFDPacket docnum=111581 [09:50:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EC 96 07 01 7F 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 79 FB 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DD B3 01 00 35 04 06 00 5F 79 19 C7 14 D3 69 ED 08 3F 45 88 DF 8A [09:50:20]CheckFolder [09:50:20]dirname=/storage/ofd_packets [09:50:20]CheckFolder done [09:50:20]ProducePacketName [09:50:20]name=ofd_packets/00111581 [09:50:20]NVStorageSaveData ofd_packets/00111581 [09:50:20]File name is /storage/ofd_packets/00111581 [09:50:20]Write 301 bytes [09:50:20]NVStorageSaveData done [09:50:20]OFDSenderStorePacket done [09:50:20]KKMCreateOFDPacket done [09:50:20]NVStorageSaveData kkm_last_timestamp [09:50:20]File name is /storage/kkm_last_timestamp [09:50:20]Write 4 bytes [09:50:20]NVStorageSaveData done [09:50:20]ExternCall_PrintAddStr [09:50:20]wPrintStart [09:50:20]Write to MH i2c: 01 00 00 EA 4B 35 [09:50:20]Write i2c OK [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: 01 [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: 01 07 00 [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: 01 07 00 EA 4B 00 00 00 00 00 FF 0F 4A [09:50:20]RasterBufferAndPrint [09:50:20]line Счет N : (1)320178 [09:50:20]line ИНН: 02508201610067 [09:50:20]line Контрольно-Кассовый Чек [09:50:20]line ПРОДАЖА [09:50:20]line ТРК (МРК, ГНК) : 11 [09:50:20]line Товар: 2710124130 [09:50:20]line Аи-92-К-5 [09:50:20]line 3.020 * 66.40 [09:50:20]line = 200.53 [09:50:20]line НДС 12% НСП 1% [09:50:20]line > о реализуемом товаре [09:50:20]line ОКРУГЛЕНИЕ: -0.53 [09:50:20]line ИТОГО: 200.00 [09:50:20]line Внесено: 200.00 [09:50:20]line СДАЧА: 0.00 [09:50:20]line НСП 1% : 1.77 [09:50:20]line НДС 12% : 21.29 [09:50:20]line Наличными: 200.00 [09:50:20]line Безнал.: 0.00 [09:50:20]line Место: АЗС № 65 "Партнер Нефть" [09:50:20]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:50:20]line СНО: Общий режим [09:50:20]line Чек 31 20.06.2024 09:50 [09:50:20]line Смена: 389 ФФД: 1.0 [09:50:20]line ЗНМ: 0300000198 [09:50:20]line РНМ: 0000000000092771 [09:50:20]line Версия ККМ: 001 [09:50:20]line ФМ: 0000000000875083 [09:50:20]line ФД: 111581 [09:50:20]line ФПД: 104973728158931 [09:50:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T095049&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111581&fm=104973728158931&tin=02508201610067®Number=0000000000092771&sum=20000 [09:50:20]OFD Sender: Processing packet 111581 [packets to send 38, broken 37] [09:50:20]ProducePacketName [09:50:20]name=ofd_packets/00111581 [09:50:20]OFD Sender: To server: pG, [09:50:20]CommunicateWithHost lk.salyk.kg:30040 [09:50:20]ConnectInit lk.salyk.kg [09:50:20]written 0, free lines is 4095 [09:50:21]Connected sock=10 [09:50:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EC 96 07 01 7F 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 79 FB 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DD B3 01 00 35 04 06 00 5F 79 19 C7 14 D3 69 ED 08 3F 45 88 DF 8A [09:50:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A4 56 47 00 F2 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DD B3 01 00 F4 03 04 00 C7 92 73 66 B6 04 01 00 00 DF 33 13 48 D5 87 9C 51 [09:50:21]CommunicateWithHost err = 0 [09:50:21]CheckOFDResponse [09:50:21]1017 (14) - 77093643461234 [09:50:21]1041 (16) - 0000000000875083 [09:50:21]1040 (4) - 111581 [09:50:21]1012 (4) - 20.06.2024 02:24 [09:50:21]1206 (1) - 0 [09:50:21]OFD Sender: Remove packet 111581 [09:50:21]ProducePacketName [09:50:21]name=ofd_packets/00111581 [09:50:21]NVStorageDeleteData [09:50:21]Write to MH i2c: 01 00 00 15 4C 61 [09:50:21]Write i2c OK [09:50:21]MH_I2C_Read... [09:50:21]Read from MH i2c: 01 [09:50:21]MH_I2C_Read... [09:50:21]Read from MH i2c: 01 07 00 [09:50:21]MH_I2C_Read... [09:50:21]Read from MH i2c: 01 07 00 15 4C 00 00 00 00 00 D8 0C 4C [09:50:21]RasterBufferAndPrint [09:50:21]line [09:50:21]line [09:50:21]line [09:50:21]line [09:50:21]line [09:50:21]written 0, free lines is 3295 [09:50:21]MH_Cut [09:50:21]Write to MH i2c: D1 01 00 1C 4C 01 3A [09:50:21]Write i2c OK [09:50:21]MH_I2C_Read... [09:50:21]Read from MH i2c: D1 [09:50:21]MH_I2C_Read... [09:50:21]Read from MH i2c: D1 01 00 [09:50:21]MH_I2C_Read... [09:50:21]Read from MH i2c: D1 01 00 1C 4C 00 39 [09:50:21]Write to MH i2c: 01 00 00 1D 4C 69 [09:50:21]Write i2c OK [09:50:21]MH_I2C_Read... [09:50:21]OFD Sender: No OFD packet to send [09:50:22]*** Cut start [09:50:22]*** Partial cut [09:50:22]*** CUTSNS_PIN = 1 [09:50:22]*** CUTSNS_PIN = 0 [09:50:22]*** Brake cut motor [09:50:22]Read from MH i2c: 01 [09:50:22]MH_I2C_Read... [09:50:22]*** Stop cut motor [09:50:22]*** Cut end [09:50:22]Read from MH i2c: 01 07 00 [09:50:22]MH_I2C_Read... [09:50:22]Read from MH i2c: 01 07 00 1D 4C 00 00 00 00 00 FF 0F 7E [09:50:22]process_action close_receipt done [09:50:22]requested_data is exist [09:50:22]produce_requested_data [09:50:22]requested_item fm.sn is exist - process it [09:50:22]wFMCommunicate request_size=4 [09:50:22]MH_SAM_APDU [09:50:22]CAPDU: 80 11 00 00 [09:50:22]Write to MH i2c: E2 08 00 1E 4C 80 11 00 00 00 00 00 00 E4 [09:50:22]Write i2c OK [09:50:22]MH_I2C_Read... [09:50:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:22]Read from MH i2c: E2 [09:50:22]MH_I2C_Read... [09:50:22]Read from MH i2c: E2 17 00 [09:50:22]MH_I2C_Read... [09:50:22]Read from MH i2c: E2 17 00 1E 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 36 [09:50:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:50:22]wFMCommunicate OK [09:50:22]requested_item fd.num is exist - process it [09:50:22]SAM_PROTO_GetFieldsCounters [09:50:22]wFMCommunicate request_size=4 [09:50:22]MH_SAM_APDU [09:50:22]CAPDU: 80 13 00 00 [09:50:22]Write to MH i2c: E2 08 00 1F 4C 80 13 00 00 00 00 00 00 E7 [09:50:22]Write i2c OK [09:50:22]MH_I2C_Read... [09:50:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:50:22]Read from MH i2c: E2 [09:50:22]MH_I2C_Read... [09:50:22]Read from MH i2c: E2 62 00 [09:50:22]MH_I2C_Read... [09:50:22]Read from MH i2c: E2 62 00 1F 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DD B3 01 00 0E 04 04 00 85 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 7C [09:50:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DD B3 01 00 0E 04 04 00 85 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 [09:50:22]wFMCommunicate OK [09:50:22]SAM_PROTO_GetFieldsCounters done [09:50:22]requested_item shift.num is exist - process it [09:50:22]requested_item shift.opened is exist - process it [09:50:22]req_shift_opened [09:50:22]FM_GetShiftState [09:50:22]SAM_PROTO_GetShiftState [09:50:22]wFMCommunicate request_size=4 [09:50:22]MH_SAM_APDU [09:50:22]CAPDU: 80 13 01 00 [09:50:22]Write to MH i2c: E2 08 00 20 4C 80 13 01 00 00 00 00 00 E9 [09:50:22]Write i2c OK [09:50:22]MH_I2C_Read... [09:50:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:23]Read from MH i2c: E2 [09:50:23]MH_I2C_Read... [09:50:23]Read from MH i2c: E2 0E 00 [09:50:23]MH_I2C_Read... [09:50:23]Read from MH i2c: E2 0E 00 20 4C 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 64 [09:50:23]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [09:50:23]wFMCommunicate OK [09:50:23]SAM_PROTO_GetShiftState done [09:50:23]FM_GetShiftState done [09:50:23]req_shift_opened done [09:50:23]requested_item shift.open_date is exist - process it [09:50:23]req_shift_open_date [09:50:23]req_shift_open_date done [09:50:23]produce_requested_data done [09:50:23]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111581,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [09:50:23]process_action_free close_receipt [09:50:23]json_value_free [09:50:23]json_value_free done [09:50:23]process_json_proto returns [09:50:23]Send response to host [09:50:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111581,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [09:50:23]free response buf [09:50:23]execute_script done [09:50:23]execute_script returns [09:50:23]free content buf [09:50:23]Sock 9.Close socket [09:50:23]Sock 9.Thread stoped [09:50:26]OFD Sender: No OFD packet to send [09:50:31]OFD Sender: No OFD packet to send [09:50:36]OFD Sender: No OFD packet to send [09:50:41]OFD Sender: No OFD packet to send [09:50:46]OFD Sender: No OFD packet to send [09:50:51]OFD Sender: No OFD packet to send [09:50:56]OFD Sender: No OFD packet to send [09:51:01]OFD Sender: No OFD packet to send [09:51:06]OFD Sender: No OFD packet to send [09:51:11]OFD Sender: No OFD packet to send [09:51:16]OFD Sender: No OFD packet to send [09:51:21]OFD Sender: No OFD packet to send [09:51:26]OFD Sender: No OFD packet to send [09:51:31]OFD Sender: No OFD packet to send [09:51:36]OFD Sender: No OFD packet to send [09:51:41]OFD Sender: No OFD packet to send [09:51:46]OFD Sender: No OFD packet to send [09:51:51]OFD Sender: No OFD packet to send [09:51:56]OFD Sender: No OFD packet to send [09:52:01]OFD Sender: No OFD packet to send [09:52:06]OFD Sender: No OFD packet to send [09:52:11]OFD Sender: No OFD packet to send [09:52:16]OFD Sender: No OFD packet to send [09:52:21]OFD Sender: No OFD packet to send [09:52:26]OFD Sender: No OFD packet to send [09:52:31]OFD Sender: No OFD packet to send [09:52:36]OFD Sender: No OFD packet to send [09:52:41]OFD Sender: No OFD packet to send [09:52:46]OFD Sender: No OFD packet to send [09:52:51]OFD Sender: No OFD packet to send [09:52:56]OFD Sender: No OFD packet to send [09:53:01]OFD Sender: No OFD packet to send [09:53:06]OFD Sender: No OFD packet to send [09:53:11]OFD Sender: No OFD packet to send [09:53:16]OFD Sender: No OFD packet to send [09:53:21]OFD Sender: No OFD packet to send [09:53:26]OFD Sender: No OFD packet to send [09:53:31]OFD Sender: No OFD packet to send [09:53:36]OFD Sender: No OFD packet to send [09:53:41]OFD Sender: No OFD packet to send [09:53:46]OFD Sender: No OFD packet to send [09:53:51]OFD Sender: No OFD packet to send [09:53:56]OFD Sender: No OFD packet to send [09:54:01]OFD Sender: No OFD packet to send [09:54:06]OFD Sender: No OFD packet to send [09:54:11]OFD Sender: No OFD packet to send [09:54:16]OFD Sender: No OFD packet to send [09:54:21]OFD Sender: No OFD packet to send [09:54:26]OFD Sender: No OFD packet to send [09:54:31]OFD Sender: No OFD packet to send [09:54:36]OFD Sender: No OFD packet to send [09:54:41]OFD Sender: No OFD packet to send [09:54:47]OFD Sender: No OFD packet to send [09:54:52]OFD Sender: No OFD packet to send [09:54:57]OFD Sender: No OFD packet to send [09:55:02]OFD Sender: No OFD packet to send [09:55:07]OFD Sender: No OFD packet to send [09:55:12]OFD Sender: No OFD packet to send [09:55:17]OFD Sender: No OFD packet to send [09:55:22]OFD Sender: No OFD packet to send [09:55:27]OFD Sender: No OFD packet to send [09:55:32]OFD Sender: No OFD packet to send [09:55:37]OFD Sender: No OFD packet to send [09:55:42]OFD Sender: No OFD packet to send [09:55:47]OFD Sender: No OFD packet to send [09:55:52]OFD Sender: No OFD packet to send [09:55:57]OFD Sender: No OFD packet to send [09:56:02]OFD Sender: No OFD packet to send [09:56:07]OFD Sender: No OFD packet to send [09:56:12]OFD Sender: No OFD packet to send [09:56:17]OFD Sender: No OFD packet to send [09:56:22]OFD Sender: No OFD packet to send [09:56:27]OFD Sender: No OFD packet to send [09:56:32]OFD Sender: No OFD packet to send [09:56:37]OFD Sender: No OFD packet to send [09:56:42]OFD Sender: No OFD packet to send [09:56:47]OFD Sender: No OFD packet to send [09:56:52]accept exits with 7 [09:56:52]New connection [09:56:52]New thread 3067465060 created [09:56:52]Thread 3067321700 joined [09:56:52]Waiting for new connection... [09:56:52] Sock 7.Parse request [09:56:52]Sock 7.Check first char [09:56:52]Sock 7.First char is OK [09:56:52]request: POST /json_proto HTTP/1.0 [09:56:52]Method: POST [09:56:52]URL: /json_proto [09:56:52]Method is POST - this is cgi request [09:56:52]url: /json_proto [09:56:52]query_string will be loaded in cgi processing [09:56:52]execute_cgi json_proto POST (null) [09:56:52]execute_cgi path=json_proto method=POST [09:56:52]POST find Content-Length [09:56:52]Host: 172.17.59.68:8080 [09:56:52]Content-Length: 679 [09:56:52]Content-Type: application/json [09:56:52] [09:56:52]POST finish read [09:56:52]Found Content-Length = 679 [09:56:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:52]execute_script... [09:56: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)320179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:52]POST & json_proto [09:56:52]process_json_proto [09:56:52]json parsed OK: [09:56:52]protocol is kg_v1.0 [09:56:52]action value=close_receipt [09:56:52]process_action close_receipt [09:56:52]cmd_close_receipt [09:56:52]MH_GetDate [09:56:52]Write to MH i2c: F0 00 00 21 4C 5C [09:56:52]Write i2c OK [09:56:52]MH_I2C_Read... [09:56:52]Read from MH i2c: F0 [09:56:52]MH_I2C_Read... [09:56:52]Read from MH i2c: F0 09 00 [09:56:52]MH_I2C_Read... [09:56:52]Read from MH i2c: F0 09 00 21 4C 00 02 FD 73 66 BC EC 60 65 AA [09:56:52]GetLastDocTimeStamp 1718877049 [09:56:52]current date 1718877442 [09:56:52]FM_GetShiftState [09:56:52]SAM_PROTO_GetShiftState [09:56:52]wFMCommunicate request_size=4 [09:56:52]MH_SAM_APDU [09:56:52]CAPDU: 80 13 01 00 [09:56:52]Write to MH i2c: E2 08 00 22 4C 80 13 01 00 00 00 00 00 EB [09:56:52]Write i2c OK [09:56:52]MH_I2C_Read... [09:56:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:52]Read from MH i2c: E2 [09:56:52]MH_I2C_Read... [09:56:52]Read from MH i2c: E2 0E 00 [09:56:52]MH_I2C_Read... [09:56:52]Read from MH i2c: E2 0E 00 22 4C 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 66 [09:56:52]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [09:56:52]wFMCommunicate OK [09:56:52]SAM_PROTO_GetShiftState done [09:56:52]FM_GetShiftState done [09:56:52]opened in 1718847247 [09:56:52]opened+sec_in_day 1718933647 [09:56:52]quantity*price = 100018 [09:56:52]sum+1 = 100020 [09:56:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 32 20.06.2024 09:57 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111582 ФПД: 255702445075792 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T095722&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111582&fm=255702445075792&tin=02508201610067®Number=0000000000092771&sum=100000 [09:56:53]StoreToDocumentArchive [09:56:53]shift 389 fd 111582 [09:56:53]save to /storage/0389/doc_00111582 [09:56:53]save last doc name /storage/0389/doc_00111582 to /storage/kkm_last_doc_name [09:56:53]save OK [09:56:53]Clear old archive folders... [09:56:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:56:53]tlvbuf is 01019200 [09:56:53]SAM_PROTO_ClearQueue [09:56:53]wFMCommunicate request_size=4 [09:56:53]MH_SAM_APDU [09:56:53]CAPDU: 80 09 00 00 [09:56:53]Write to MH i2c: E2 08 00 2F 4C 80 09 00 00 00 00 00 00 ED [09:56:53]Write i2c OK [09:56:53]MH_I2C_Read... [09:56:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:56:53]Read from MH i2c: E2 [09:56:53]MH_I2C_Read... [09:56:53]Read from MH i2c: E2 03 00 [09:56:53]MH_I2C_Read... [09:56:53]Read from MH i2c: E2 03 00 2F 4C 00 90 00 EF [09:56:53]RAPDU: 90 00 [09:56:53]wFMCommunicate OK [09:56:53]SAM_PROTO_ClearQueue done [09:56:53]KKMCreateOFDPacket [09:56:53]OFDProtocolAddRootSTLVToBuf [09:56:53]FM_MakeSignedData [09:56:53]FM_MakeSignedData [09:56:53]SAM_PROTO_SignData [09:56:53]wFMCommunicate request_size=4 [09:56:53]MH_SAM_APDU [09:56:53]CAPDU: 80 0D 01 02 [09:56:53]Write to MH i2c: E2 08 00 30 4C 80 0D 01 02 00 00 00 00 F5 [09:56:53]Write i2c OK [09:56:53]MH_I2C_Read... [09:56:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:56:53]Read from MH i2c: E2 [09:56:53]MH_I2C_Read... [09:56:53]Read from MH i2c: E2 03 00 [09:56:53]MH_I2C_Read... [09:56:53]Read from MH i2c: E2 03 00 30 4C 00 90 00 F0 [09:56:53]RAPDU: 90 00 [09:56:53]wFMCommunicate OK [09:56:53]wFMCommunicate request_size=255 [09:56:53]MH_SAM_APDU [09:56:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 02 FD 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DE B3 01 00 35 04 06 00 E8 8F 5D 68 [09:56:53]Write to MH i2c: E2 02 01 31 4C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 02 FD 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DE B3 01 00 35 04 06 00 E8 8F 5D 68 00 00 A7 [09:56:53]Write i2c OK [09:56:53]MH_I2C_Read... [09:56:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:53]Read from MH i2c: E2 [09:56:53]MH_I2C_Read... [09:56:53]Read from MH i2c: E2 03 00 [09:56:53]MH_I2C_Read... [09:56:53]Read from MH i2c: E2 03 00 31 4C 00 90 00 F1 [09:56:53]RAPDU: 90 00 [09:56:53]wFMCommunicate OK [09:56:53]wFMCommunicate request_size=7 [09:56:53]MH_SAM_APDU [09:56:53]CAPDU: 80 0D 02 02 02 2D 50 [09:56:53]Write to MH i2c: E2 0A 00 32 4C 80 0D 02 02 02 00 2D 50 00 00 79 [09:56:53]Write i2c OK [09:56:53]MH_I2C_Read... [09:56:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:53]Read from MH i2c: E2 [09:56:53]MH_I2C_Read... [09:56:53]Read from MH i2c: E2 03 00 [09:56:53]MH_I2C_Read... [09:56:53]Read from MH i2c: E2 03 00 32 4C 00 90 00 F2 [09:56:53]RAPDU: 90 00 [09:56:53]wFMCommunicate OK [09:56:53]wFMCommunicate request_size=4 [09:56:53]MH_SAM_APDU [09:56:53]CAPDU: 80 0D 03 02 [09:56:53]Write to MH i2c: E2 08 00 33 4C 80 0D 03 02 00 00 00 00 FA [09:56:53]Write i2c OK [09:56:53]MH_I2C_Read... [09:56:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:56:53]Read from MH i2c: E2 [09:56:53]MH_I2C_Read... [09:56:53]Read from MH i2c: E2 0B 00 [09:56:53]MH_I2C_Read... [09:56:53]Read from MH i2c: E2 0B 00 33 4C 00 B2 E8 0D F3 41 65 81 ED 90 00 A9 [09:56:53]RAPDU: B2 E8 0D F3 41 65 81 ED 90 00 [09:56:53]wFMCommunicate OK [09:56:53]SAM_PROTO_SignData done [09:56:53]FM_MakeSignedData done [09:56:53]CreateOFDProtocolMessage [09:56:53]wFMCommunicate request_size=4 [09:56:53]MH_SAM_APDU [09:56:53]CAPDU: 80 11 00 00 [09:56:53]Write to MH i2c: E2 08 00 34 4C 80 11 00 00 00 00 00 00 FA [09:56:53]Write i2c OK [09:56:53]MH_I2C_Read... [09:56:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:53]Read from MH i2c: E2 [09:56:53]MH_I2C_Read... [09:56:53]Read from MH i2c: E2 17 00 [09:56:53]MH_I2C_Read... [09:56:53]Read from MH i2c: E2 17 00 34 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4C [09:56:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:56:53]wFMCommunicate OK [09:56:53]CreateOFDProtocolMessage done [09:56:53]OFDSenderStorePacket 111582 [09:56:53]StoreOFDPacket docnum=111582 [09:56:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 72 97 04 01 4E D5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 02 FD 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DE B3 01 00 35 04 06 00 E8 8F 5D 68 2D 50 B2 E8 0D F3 41 65 81 ED [09:56:53]CheckFolder [09:56:53]dirname=/storage/ofd_packets [09:56:53]CheckFolder done [09:56:53]ProducePacketName [09:56:53]name=ofd_packets/00111582 [09:56:53]NVStorageSaveData ofd_packets/00111582 [09:56:53]File name is /storage/ofd_packets/00111582 [09:56:53]Write 298 bytes [09:56:53]NVStorageSaveData done [09:56:53]OFDSenderStorePacket done [09:56:53]KKMCreateOFDPacket done [09:56:53]NVStorageSaveData kkm_last_timestamp [09:56:53]File name is /storage/kkm_last_timestamp [09:56:53]Write 4 bytes [09:56:53]NVStorageSaveData done [09:56:53]ExternCall_PrintAddStr [09:56:53]wPrintStart [09:56:53]Write to MH i2c: 01 00 00 35 4C 81 [09:56:53]Write i2c OK [09:56:53]MH_I2C_Read... [09:56:53]Read from MH i2c: 01 [09:56:53]MH_I2C_Read... [09:56:53]Read from MH i2c: 01 07 00 [09:56:53]MH_I2C_Read... [09:56:53]Read from MH i2c: 01 07 00 35 4C 00 00 00 00 00 FF 0F 96 [09:56:53]RasterBufferAndPrint [09:56:53]line Счет N : (1)320179 [09:56:53]line ИНН: 02508201610067 [09:56:53]line Контрольно-Кассовый Чек [09:56:53]line ПРОДАЖА [09:56:53]line ТРК (МРК, ГНК) : 22 [09:56:53]line Товар: 2710194210 [09:56:53]line ДТ-К-5 [09:56:53]line 13.720 * 72.90 [09:56:53]line = 1000.19 [09:56:53]line НДС 12% НСП 1% [09:56:53]line > о реализуемом товаре [09:56:53]line ОКРУГЛЕНИЕ: -0.19 [09:56:53]line ИТОГО: 1000.00 [09:56:53]line Внесено: 1000.00 [09:56:53]line СДАЧА: 0.00 [09:56:53]line НСП 1% : 8.85 [09:56:53]line НДС 12% : 106.21 [09:56:53]line Наличными: 1000.00 [09:56:53]line Безнал.: 0.00 [09:56:53]line Место: АЗС № 65 "Партнер Нефть" [09:56:53]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:56:53]line СНО: Общий режим [09:56:53]line Чек 32 20.06.2024 09:57 [09:56:53]line Смена: 389 ФФД: 1.0 [09:56:53]line ЗНМ: 0300000198 [09:56:53]line РНМ: 0000000000092771 [09:56:53]line Версия ККМ: 001 [09:56:53]line ФМ: 0000000000875083 [09:56:53]line ФД: 111582 [09:56:53]line ФПД: 255702445075792 [09:56:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T095722&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111582&fm=255702445075792&tin=02508201610067®Number=0000000000092771&sum=100000 [09:56:54]OFD Sender: Processing packet 111582 [packets to send 38, broken 37] [09:56:54]ProducePacketName [09:56:54]name=ofd_packets/00111582 [09:56:54]OFD Sender: To server: pG, [09:56:54]CommunicateWithHost lk.salyk.kg:30040 [09:56:54]ConnectInit lk.salyk.kg [09:56:54]written 0, free lines is 4095 [09:56:54]Connected sock=10 [09:56:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 72 97 04 01 4E D5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 02 FD 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DE B3 01 00 35 04 06 00 E8 8F 5D 68 2D 50 B2 E8 0D F3 41 65 81 ED [09:56:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 1E 75 47 00 A6 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DE B3 01 00 F4 03 04 00 50 94 73 66 B6 04 01 00 00 32 BC D3 D9 C3 02 28 D6 [09:56:54]CommunicateWithHost err = 0 [09:56:54]CheckOFDResponse [09:56:54]1017 (14) - 77093643461234 [09:56:54]1041 (16) - 0000000000875083 [09:56:54]1040 (4) - 111582 [09:56:54]1012 (4) - 20.06.2024 02:30 [09:56:54]1206 (1) - 0 [09:56:54]OFD Sender: Remove packet 111582 [09:56:54]ProducePacketName [09:56:54]name=ofd_packets/00111582 [09:56:54]NVStorageDeleteData [09:56:54]Write to MH i2c: 01 00 00 60 4C AC [09:56:54]Write i2c OK [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: 01 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: 01 07 00 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: 01 07 00 60 4C 00 00 00 00 00 D4 0C 93 [09:56:54]RasterBufferAndPrint [09:56:54]line [09:56:54]line [09:56:54]line [09:56:54]line [09:56:54]line [09:56:54]written 0, free lines is 3292 [09:56:54]MH_Cut [09:56:54]Write to MH i2c: D1 01 00 67 4C 01 85 [09:56:54]Write i2c OK [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: D1 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: D1 01 00 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: D1 01 00 67 4C 00 84 [09:56:54]Write to MH i2c: 01 00 00 68 4C B4 [09:56:54]Write i2c OK [09:56:54]MH_I2C_Read... [09:56:54]OFD Sender: No OFD packet to send [09:56:55]*** Cut start [09:56:55]*** Partial cut [09:56:55]*** CUTSNS_PIN = 1 [09:56:55]*** CUTSNS_PIN = 0 [09:56:55]*** Brake cut motor [09:56:55]Read from MH i2c: 01 [09:56:55]MH_I2C_Read... [09:56:55]*** Stop cut motor [09:56:55]*** Cut end [09:56:55]Read from MH i2c: 01 07 00 [09:56:55]MH_I2C_Read... [09:56:55]Read from MH i2c: 01 07 00 68 4C 00 00 00 00 00 FF 0F C9 [09:56:55]process_action close_receipt done [09:56:55]requested_data is exist [09:56:55]produce_requested_data [09:56:55]requested_item fm.sn is exist - process it [09:56:55]wFMCommunicate request_size=4 [09:56:55]MH_SAM_APDU [09:56:55]CAPDU: 80 11 00 00 [09:56:55]Write to MH i2c: E2 08 00 69 4C 80 11 00 00 00 00 00 00 2F [09:56:55]Write i2c OK [09:56:55]MH_I2C_Read... [09:56:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:55]Read from MH i2c: E2 [09:56:55]MH_I2C_Read... [09:56:55]Read from MH i2c: E2 17 00 [09:56:55]MH_I2C_Read... [09:56:55]Read from MH i2c: E2 17 00 69 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 81 [09:56:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:56:55]wFMCommunicate OK [09:56:55]requested_item fd.num is exist - process it [09:56:55]SAM_PROTO_GetFieldsCounters [09:56:55]wFMCommunicate request_size=4 [09:56:55]MH_SAM_APDU [09:56:55]CAPDU: 80 13 00 00 [09:56:55]Write to MH i2c: E2 08 00 6A 4C 80 13 00 00 00 00 00 00 32 [09:56:55]Write i2c OK [09:56:55]MH_I2C_Read... [09:56:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:56:56]Read from MH i2c: E2 [09:56:56]MH_I2C_Read... [09:56:56]Read from MH i2c: E2 62 00 [09:56:56]MH_I2C_Read... [09:56:56]Read from MH i2c: E2 62 00 6A 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DE B3 01 00 0E 04 04 00 85 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 CB [09:56:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DE B3 01 00 0E 04 04 00 85 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:56:56]wFMCommunicate OK [09:56:56]SAM_PROTO_GetFieldsCounters done [09:56:56]requested_item shift.num is exist - process it [09:56:56]requested_item shift.opened is exist - process it [09:56:56]req_shift_opened [09:56:56]FM_GetShiftState [09:56:56]SAM_PROTO_GetShiftState [09:56:56]wFMCommunicate request_size=4 [09:56:56]MH_SAM_APDU [09:56:56]CAPDU: 80 13 01 00 [09:56:56]Write to MH i2c: E2 08 00 6B 4C 80 13 01 00 00 00 00 00 34 [09:56:56]Write i2c OK [09:56:56]MH_I2C_Read... [09:56:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:56]Read from MH i2c: E2 [09:56:56]MH_I2C_Read... [09:56:56]Read from MH i2c: E2 0E 00 [09:56:56]MH_I2C_Read... [09:56:56]Read from MH i2c: E2 0E 00 6B 4C 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 AF [09:56:56]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [09:56:56]wFMCommunicate OK [09:56:56]SAM_PROTO_GetShiftState done [09:56:56]FM_GetShiftState done [09:56:56]req_shift_opened done [09:56:56]requested_item shift.open_date is exist - process it [09:56:56]req_shift_open_date [09:56:56]req_shift_open_date done [09:56:56]produce_requested_data done [09:56:56]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111582,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [09:56:56]process_action_free close_receipt [09:56:56]json_value_free [09:56:56]json_value_free done [09:56:56]process_json_proto returns [09:56:56]Send response to host [09:56:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111582,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [09:56:56]free response buf [09:56:56]execute_script done [09:56:56]execute_script returns [09:56:56]free content buf [09:56:56]Sock 7.Close socket [09:56:56]Sock 7.Thread stoped [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:39]OFD Sender: No OFD packet to send [09:57:44]OFD Sender: No OFD packet to send [09:57:49]OFD Sender: No OFD packet to send [09:57:54]OFD Sender: No OFD packet to send [09:57:59]OFD Sender: No OFD packet to send [09:58:04]OFD Sender: No OFD packet to send [09:58:06]accept exits with 9 [09:58:06]New connection [09:58:06]New thread 3067321700 created [09:58:06]Thread 3067465060 joined [09:58:06]Waiting for new connection... [09:58:06] Sock 9.Parse request [09:58:06]Sock 9.Check first char [09:58:06]Sock 9.First char is OK [09:58:06]request: POST /json_proto HTTP/1.0 [09:58:06]Method: POST [09:58:06]URL: /json_proto [09:58:06]Method is POST - this is cgi request [09:58:06]url: /json_proto [09:58:06]query_string will be loaded in cgi processing [09:58:06]execute_cgi json_proto POST (null) [09:58:06]execute_cgi path=json_proto method=POST [09:58:06]POST find Content-Length [09:58:06]Host: 172.17.59.68:8080 [09:58:06]Content-Length: 805 [09:58:06]Content-Type: application/json [09:58:06] [09:58:06]POST finish read [09:58:06]Found Content-Length = 805 [09:58:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:06]execute_script... [09:58:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:06]POST & json_proto [09:58:06]process_json_proto [09:58:06]json parsed OK: [09:58:06]protocol is kg_v1.0 [09:58:06]action value=close_receipt [09:58:06]process_action close_receipt [09:58:06]cmd_close_receipt [09:58:06]MH_GetDate [09:58:06]Write to MH i2c: F0 00 00 6C 4C A7 [09:58:06]Write i2c OK [09:58:06]MH_I2C_Read... [09:58:06]Read from MH i2c: F0 [09:58:06]MH_I2C_Read... [09:58:06]Read from MH i2c: F0 09 00 [09:58:06]MH_I2C_Read... [09:58:06]Read from MH i2c: F0 09 00 6C 4C 00 4D FD 73 66 BC EC 60 65 40 [09:58:06]GetLastDocTimeStamp 1718877442 [09:58:06]current date 1718877517 [09:58:06]FM_GetShiftState [09:58:06]SAM_PROTO_GetShiftState [09:58:06]wFMCommunicate request_size=4 [09:58:06]MH_SAM_APDU [09:58:06]CAPDU: 80 13 01 00 [09:58:06]Write to MH i2c: E2 08 00 6D 4C 80 13 01 00 00 00 00 00 36 [09:58:06]Write i2c OK [09:58:06]MH_I2C_Read... [09:58:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:07]Read from MH i2c: E2 [09:58:07]MH_I2C_Read... [09:58:07]Read from MH i2c: E2 0E 00 [09:58:07]MH_I2C_Read... [09:58:07]Read from MH i2c: E2 0E 00 6D 4C 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 B1 [09:58:07]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [09:58:07]wFMCommunicate OK [09:58:07]SAM_PROTO_GetShiftState done [09:58:07]FM_GetShiftState done [09:58:07]opened in 1718847247 [09:58:07]opened+sec_in_day 1718933647 [09:58:07]quantity*price = 50065 [09:58:07]sum+1 = 50067 [09:58:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.66 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 0.00 Безнал.: 500.66 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 33 20.06.2024 09:58 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111583 ФПД: 42797165183454 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T095837&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111583&fm=42797165183454&tin=02508201610067®Number=0000000000092771&sum=50066 [09:58:08]StoreToDocumentArchive [09:58:08]shift 389 fd 111583 [09:58:08]save to /storage/0389/doc_00111583 [09:58:08]save last doc name /storage/0389/doc_00111583 to /storage/kkm_last_doc_name [09:58:08]save OK [09:58:08]Clear old archive folders... [09:58:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:58:08]tlvbuf is 01031650 [09:58:08]SAM_PROTO_ClearQueue [09:58:08]wFMCommunicate request_size=4 [09:58:08]MH_SAM_APDU [09:58:08]CAPDU: 80 09 00 00 [09:58:08]Write to MH i2c: E2 08 00 7A 4C 80 09 00 00 00 00 00 00 38 [09:58:08]Write i2c OK [09:58:08]MH_I2C_Read... [09:58:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:08]Read from MH i2c: E2 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: E2 03 00 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: E2 03 00 7A 4C 00 90 00 3A [09:58:08]RAPDU: 90 00 [09:58:08]wFMCommunicate OK [09:58:08]SAM_PROTO_ClearQueue done [09:58:08]KKMCreateOFDPacket [09:58:08]OFDProtocolAddRootSTLVToBuf [09:58:08]FM_MakeSignedData [09:58:08]FM_MakeSignedData [09:58:08]SAM_PROTO_SignData [09:58:08]wFMCommunicate request_size=4 [09:58:08]MH_SAM_APDU [09:58:08]CAPDU: 80 0D 01 02 [09:58:08]Write to MH i2c: E2 08 00 7B 4C 80 0D 01 02 00 00 00 00 40 [09:58:08]Write i2c OK [09:58:08]MH_I2C_Read... [09:58:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:08]Read from MH i2c: E2 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: E2 03 00 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: E2 03 00 7B 4C 00 90 00 3B [09:58:08]RAPDU: 90 00 [09:58:08]wFMCommunicate OK [09:58:08]wFMCommunicate request_size=255 [09:58:08]MH_SAM_APDU [09:58:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 4D FD 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DF B3 01 00 35 04 06 00 26 [09:58:08]Write to MH i2c: E2 02 01 7C 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 4D FD 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DF B3 01 00 35 04 06 00 26 00 00 FB [09:58:08]Write i2c OK [09:58:08]MH_I2C_Read... [09:58:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:08]Read from MH i2c: E2 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: E2 03 00 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: E2 03 00 7C 4C 00 90 00 3C [09:58:08]RAPDU: 90 00 [09:58:08]wFMCommunicate OK [09:58:08]wFMCommunicate request_size=10 [09:58:08]MH_SAM_APDU [09:58:08]CAPDU: 80 0D 02 02 05 EC 7D D4 01 DE [09:58:08]Write to MH i2c: E2 0D 00 7D 4C 80 0D 02 02 05 00 EC 7D D4 01 DE 00 00 69 [09:58:08]Write i2c OK [09:58:08]MH_I2C_Read... [09:58:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:08]Read from MH i2c: E2 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: E2 03 00 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: E2 03 00 7D 4C 00 90 00 3D [09:58:08]RAPDU: 90 00 [09:58:08]wFMCommunicate OK [09:58:08]wFMCommunicate request_size=4 [09:58:08]MH_SAM_APDU [09:58:08]CAPDU: 80 0D 03 02 [09:58:08]Write to MH i2c: E2 08 00 7E 4C 80 0D 03 02 00 00 00 00 45 [09:58:08]Write i2c OK [09:58:08]MH_I2C_Read... [09:58:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:08]Read from MH i2c: E2 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: E2 0B 00 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: E2 0B 00 7E 4C 00 EA 21 7F 3F DD 20 29 A1 90 00 D6 [09:58:08]RAPDU: EA 21 7F 3F DD 20 29 A1 90 00 [09:58:08]wFMCommunicate OK [09:58:08]SAM_PROTO_SignData done [09:58:08]FM_MakeSignedData done [09:58:08]CreateOFDProtocolMessage [09:58:08]wFMCommunicate request_size=4 [09:58:08]MH_SAM_APDU [09:58:08]CAPDU: 80 11 00 00 [09:58:08]Write to MH i2c: E2 08 00 7F 4C 80 11 00 00 00 00 00 00 45 [09:58:08]Write i2c OK [09:58:08]MH_I2C_Read... [09:58:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:08]Read from MH i2c: E2 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: E2 17 00 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: E2 17 00 7F 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 97 [09:58:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:58:08]wFMCommunicate OK [09:58:08]CreateOFDProtocolMessage done [09:58:08]OFDSenderStorePacket 111583 [09:58:08]StoreOFDPacket docnum=111583 [09:58:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BA 21 07 01 77 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 4D FD 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DF B3 01 00 35 04 06 00 26 EC 7D D4 01 DE EA 21 7F 3F DD 20 29 A1 [09:58:08]CheckFolder [09:58:08]dirname=/storage/ofd_packets [09:58:08]CheckFolder done [09:58:08]ProducePacketName [09:58:08]name=ofd_packets/00111583 [09:58:08]NVStorageSaveData ofd_packets/00111583 [09:58:08]File name is /storage/ofd_packets/00111583 [09:58:08]Write 301 bytes [09:58:08]NVStorageSaveData done [09:58:08]OFDSenderStorePacket done [09:58:08]KKMCreateOFDPacket done [09:58:08]NVStorageSaveData kkm_last_timestamp [09:58:08]File name is /storage/kkm_last_timestamp [09:58:08]Write 4 bytes [09:58:08]NVStorageSaveData done [09:58:08]ExternCall_PrintAddStr [09:58:08]wPrintStart [09:58:08]Write to MH i2c: 01 00 00 80 4C CC [09:58:08]Write i2c OK [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: 01 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: 01 07 00 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: 01 07 00 80 4C 00 00 00 00 00 FF 0F E1 [09:58:08]RasterBufferAndPrint [09:58:08]line Счет N : (1)320180 [09:58:08]line ИНН: 02508201610067 [09:58:08]line Контрольно-Кассовый Чек [09:58:08]line ПРОДАЖА [09:58:08]line ТРК (МРК, ГНК) : 11 [09:58:08]line Товар: 2710124130 [09:58:08]line Аи-92-К-5 [09:58:08]line 7.540 * 66.40 [09:58:08]line = 500.66 [09:58:08]line НДС 12% НСП 1% [09:58:08]line > о реализуемом товаре [09:58:08]line ИТОГО: 500.66 [09:58:08]line НСП 1% : 4.43 [09:58:08]line НДС 12% : 53.17 [09:58:08]line Наличными: 0.00 [09:58:08]line Безнал.: 500.66 [09:58:08]line Место: АЗС № 65 "Партнер Нефть" [09:58:08]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:58:08]line СНО: Общий режим [09:58:08]line Чек 33 20.06.2024 09:58 [09:58:08]line Смена: 389 ФФД: 1.0 [09:58:08]line ЗНМ: 0300000198 [09:58:08]line РНМ: 0000000000092771 [09:58:08]line Версия ККМ: 001 [09:58:08]line Платежная система: О! деньги [09:58:08]line ФМ: 0000000000875083 [09:58:08]line ФД: 111583 [09:58:08]line ФПД: 42797165183454 [09:58:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T095837&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111583&fm=42797165183454&tin=02508201610067®Number=0000000000092771&sum=50066 [09:58:09]OFD Sender: Processing packet 111583 [packets to send 38, broken 37] [09:58:09]ProducePacketName [09:58:09]name=ofd_packets/00111583 [09:58:09]OFD Sender: To server: pG, [09:58:09]CommunicateWithHost lk.salyk.kg:30040 [09:58:09]ConnectInit lk.salyk.kg [09:58:09]written 0, free lines is 4095 [09:58:09]Connected sock=10 [09:58:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BA 21 07 01 77 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 4D FD 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DF B3 01 00 35 04 06 00 26 EC 7D D4 01 DE EA 21 7F 3F DD 20 29 A1 [09:58:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 83 87 47 00 D2 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DF B3 01 00 F4 03 04 00 9B 94 73 66 B6 04 01 00 00 50 F7 D3 FE 59 97 95 55 [09:58:09]CommunicateWithHost err = 0 [09:58:09]CheckOFDResponse [09:58:09]1017 (14) - 77093643461234 [09:58:09]1041 (16) - 0000000000875083 [09:58:09]1040 (4) - 111583 [09:58:09]1012 (4) - 20.06.2024 02:31 [09:58:09]1206 (1) - 0 [09:58:09]OFD Sender: Remove packet 111583 [09:58:09]ProducePacketName [09:58:09]name=ofd_packets/00111583 [09:58:09]NVStorageDeleteData [09:58:09]Write to MH i2c: 01 00 00 AA 4C F6 [09:58:09]Write i2c OK [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: 01 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: 01 07 00 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: 01 07 00 AA 4C 00 00 00 00 00 D7 0C E0 [09:58:09]RasterBufferAndPrint [09:58:09]line [09:58:09]line [09:58:09]line [09:58:09]line [09:58:09]line [09:58:09]written 0, free lines is 3293 [09:58:09]MH_Cut [09:58:09]Write to MH i2c: D1 01 00 B1 4C 01 CF [09:58:09]Write i2c OK [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: D1 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: D1 01 00 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: D1 01 00 B1 4C 00 CE [09:58:09]Write to MH i2c: 01 00 00 B2 4C FE [09:58:09]Write i2c OK [09:58:09]MH_I2C_Read... [09:58:09]OFD Sender: No OFD packet to send [09:58:10]*** Cut start [09:58:10]*** Partial cut [09:58:10]*** CUTSNS_PIN = 1 [09:58:10]*** CUTSNS_PIN = 0 [09:58:10]*** Brake cut motor [09:58:10]Read from MH i2c: 01 [09:58:10]MH_I2C_Read... [09:58:10]*** Stop cut motor [09:58:10]*** Cut end [09:58:10]Read from MH i2c: 01 07 00 [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: 01 07 00 B2 4C 00 00 00 00 00 FF 0F 13 [09:58:10]process_action close_receipt done [09:58:10]requested_data is exist [09:58:10]produce_requested_data [09:58:10]requested_item fm.sn is exist - process it [09:58:10]wFMCommunicate request_size=4 [09:58:10]MH_SAM_APDU [09:58:10]CAPDU: 80 11 00 00 [09:58:10]Write to MH i2c: E2 08 00 B3 4C 80 11 00 00 00 00 00 00 79 [09:58:10]Write i2c OK [09:58:10]MH_I2C_Read... [09:58:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:10]Read from MH i2c: E2 [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: E2 17 00 [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: E2 17 00 B3 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CB [09:58:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:58:10]wFMCommunicate OK [09:58:10]requested_item fd.num is exist - process it [09:58:10]SAM_PROTO_GetFieldsCounters [09:58:10]wFMCommunicate request_size=4 [09:58:10]MH_SAM_APDU [09:58:10]CAPDU: 80 13 00 00 [09:58:10]Write to MH i2c: E2 08 00 B4 4C 80 13 00 00 00 00 00 00 7C [09:58:10]Write i2c OK [09:58:10]MH_I2C_Read... [09:58:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:11]Read from MH i2c: E2 [09:58:11]MH_I2C_Read... [09:58:11]Read from MH i2c: E2 62 00 [09:58:11]MH_I2C_Read... [09:58:11]Read from MH i2c: E2 62 00 B4 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DF B3 01 00 0E 04 04 00 85 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 19 [09:58:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DF B3 01 00 0E 04 04 00 85 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:58:11]wFMCommunicate OK [09:58:11]SAM_PROTO_GetFieldsCounters done [09:58:11]requested_item shift.num is exist - process it [09:58:11]requested_item shift.opened is exist - process it [09:58:11]req_shift_opened [09:58:11]FM_GetShiftState [09:58:11]SAM_PROTO_GetShiftState [09:58:11]wFMCommunicate request_size=4 [09:58:11]MH_SAM_APDU [09:58:11]CAPDU: 80 13 01 00 [09:58:11]Write to MH i2c: E2 08 00 B5 4C 80 13 01 00 00 00 00 00 7E [09:58:11]Write i2c OK [09:58:11]MH_I2C_Read... [09:58:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:11]Read from MH i2c: E2 [09:58:11]MH_I2C_Read... [09:58:11]Read from MH i2c: E2 0E 00 [09:58:11]MH_I2C_Read... [09:58:11]Read from MH i2c: E2 0E 00 B5 4C 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 F9 [09:58:11]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [09:58:11]wFMCommunicate OK [09:58:11]SAM_PROTO_GetShiftState done [09:58:11]FM_GetShiftState done [09:58:11]req_shift_opened done [09:58:11]requested_item shift.open_date is exist - process it [09:58:11]req_shift_open_date [09:58:11]req_shift_open_date done [09:58:11]produce_requested_data done [09:58:11]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111583,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [09:58:11]process_action_free close_receipt [09:58:11]json_value_free [09:58:11]json_value_free done [09:58:11]process_json_proto returns [09:58:11]Send response to host [09:58:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111583,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [09:58:11]free response buf [09:58:11]execute_script done [09:58:11]execute_script returns [09:58:11]free content buf [09:58:11]Sock 9.Close socket [09:58:11]Sock 9.Thread stoped [09:58:14]OFD Sender: No OFD packet to send [09:58:19]OFD Sender: No OFD packet to send [09:58:24]OFD Sender: No OFD packet to send [09:58:29]OFD Sender: No OFD packet to send [09:58:34]OFD Sender: No OFD packet to send [09:58:39]OFD Sender: No OFD packet to send [09:58:44]OFD Sender: No OFD packet to send [09:58:49]OFD Sender: No OFD packet to send [09:58:54]OFD Sender: No OFD packet to send [09:58:59]OFD Sender: No OFD packet to send [09:59:04]OFD Sender: No OFD packet to send [09:59:09]OFD Sender: No OFD packet to send [09:59:14]OFD Sender: No OFD packet to send [09:59:19]OFD Sender: No OFD packet to send [09:59:24]OFD Sender: No OFD packet to send [09:59:29]OFD Sender: No OFD packet to send [09:59:34]OFD Sender: No OFD packet to send [09:59:39]OFD Sender: No OFD packet to send [09:59:44]OFD Sender: No OFD packet to send [09:59:49]OFD Sender: No OFD packet to send [09:59:54]OFD Sender: No OFD packet to send [09:59:59]OFD Sender: No OFD packet to send [10:00:04]OFD Sender: No OFD packet to send [10:00:09]OFD Sender: No OFD packet to send [10:00:14]OFD Sender: No OFD packet to send [10:00:19]OFD Sender: No OFD packet to send [10:00:24]OFD Sender: No OFD packet to send [10:00:29]OFD Sender: No OFD packet to send [10:00:30]accept exits with 7 [10:00:30]New connection [10:00:30]New thread 3067465060 created [10:00:30]Thread 3067321700 joined [10:00:30]Waiting for new connection... [10:00:30] Sock 7.Parse request [10:00:30]Sock 7.Check first char [10:00:30]Sock 7.First char is OK [10:00:30]request: POST /json_proto HTTP/1.0 [10:00:30]Method: POST [10:00:30]URL: /json_proto [10:00:30]Method is POST - this is cgi request [10:00:30]url: /json_proto [10:00:30]query_string will be loaded in cgi processing [10:00:30]execute_cgi json_proto POST (null) [10:00:30]execute_cgi path=json_proto method=POST [10:00:30]POST find Content-Length [10:00:30]Host: 172.17.59.68:8080 [10:00:30]Content-Length: 805 [10:00:30]Content-Type: application/json [10:00:30] [10:00:30]POST finish read [10:00:30]Found Content-Length = 805 [10:00:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:30]execute_script... [10:00: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)320181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:30]POST & json_proto [10:00:30]process_json_proto [10:00:30]json parsed OK: [10:00:30]protocol is kg_v1.0 [10:00:30]action value=close_receipt [10:00:30]process_action close_receipt [10:00:30]cmd_close_receipt [10:00:30]MH_GetDate [10:00:30]Write to MH i2c: F0 00 00 B6 4C F1 [10:00:30]Write i2c OK [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: F0 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: F0 09 00 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: F0 09 00 B6 4C 00 DD FD 73 66 BC EC 60 65 1A [10:00:30]GetLastDocTimeStamp 1718877517 [10:00:30]current date 1718877661 [10:00:30]FM_GetShiftState [10:00:30]SAM_PROTO_GetShiftState [10:00:30]wFMCommunicate request_size=4 [10:00:30]MH_SAM_APDU [10:00:30]CAPDU: 80 13 01 00 [10:00:30]Write to MH i2c: E2 08 00 B7 4C 80 13 01 00 00 00 00 00 80 [10:00:30]Write i2c OK [10:00:30]MH_I2C_Read... [10:00:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:30]Read from MH i2c: E2 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: E2 0E 00 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: E2 0E 00 B7 4C 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 FB [10:00:30]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:00:30]wFMCommunicate OK [10:00:30]SAM_PROTO_GetShiftState done [10:00:30]FM_GetShiftState done [10:00:30]opened in 1718847247 [10:00:30]opened+sec_in_day 1718933647 [10:00:30]quantity*price = 40039 [10:00:30]sum+1 = 40040 [10:00:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.39 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 0.00 Безнал.: 400.39 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 34 20.06.2024 10:01 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111584 ФПД: 81357639296765 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T100101&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111584&fm=81357639296765&tin=02508201610067®Number=0000000000092771&sum=40039 [10:00:31]StoreToDocumentArchive [10:00:31]shift 389 fd 111584 [10:00:31]save to /storage/0389/doc_00111584 [10:00:31]save last doc name /storage/0389/doc_00111584 to /storage/kkm_last_doc_name [10:00:31]save OK [10:00:31]Clear old archive folders... [10:00:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:00:31]tlvbuf is 00F000E0 [10:00:31]SAM_PROTO_ClearQueue [10:00:31]wFMCommunicate request_size=4 [10:00:31]MH_SAM_APDU [10:00:31]CAPDU: 80 09 00 00 [10:00:31]Write to MH i2c: E2 08 00 C4 4C 80 09 00 00 00 00 00 00 82 [10:00:31]Write i2c OK [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: E2 [10:00:31]MH_I2C_Read... [10:00:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:32]Read from MH i2c: E2 03 00 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 03 00 C4 4C 00 90 00 84 [10:00:32]RAPDU: 90 00 [10:00:32]wFMCommunicate OK [10:00:32]SAM_PROTO_ClearQueue done [10:00:32]KKMCreateOFDPacket [10:00:32]OFDProtocolAddRootSTLVToBuf [10:00:32]FM_MakeSignedData [10:00:32]FM_MakeSignedData [10:00:32]SAM_PROTO_SignData [10:00:32]wFMCommunicate request_size=4 [10:00:32]MH_SAM_APDU [10:00:32]CAPDU: 80 0D 01 02 [10:00:32]Write to MH i2c: E2 08 00 C5 4C 80 0D 01 02 00 00 00 00 8A [10:00:32]Write i2c OK [10:00:32]MH_I2C_Read... [10:00:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:32]Read from MH i2c: E2 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 03 00 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 03 00 C5 4C 00 90 00 85 [10:00:32]RAPDU: 90 00 [10:00:32]wFMCommunicate OK [10:00:32]wFMCommunicate request_size=255 [10:00:32]MH_SAM_APDU [10:00: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 DD FD 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E0 B3 01 00 35 04 06 00 49 [10:00:32]Write to MH i2c: E2 02 01 C6 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 DD FD 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E0 B3 01 00 35 04 06 00 49 00 00 92 [10:00:32]Write i2c OK [10:00:32]MH_I2C_Read... [10:00:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:32]Read from MH i2c: E2 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 03 00 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 03 00 C6 4C 00 90 00 86 [10:00:32]RAPDU: 90 00 [10:00:32]wFMCommunicate OK [10:00:32]wFMCommunicate request_size=10 [10:00:32]MH_SAM_APDU [10:00:32]CAPDU: 80 0D 02 02 05 FE 8D 30 A6 FD [10:00:32]Write to MH i2c: E2 0D 00 C7 4C 80 0D 02 02 05 00 FE 8D 30 A6 FD 00 00 F5 [10:00:32]Write i2c OK [10:00:32]MH_I2C_Read... [10:00:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:32]Read from MH i2c: E2 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 03 00 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 03 00 C7 4C 00 90 00 87 [10:00:32]RAPDU: 90 00 [10:00:32]wFMCommunicate OK [10:00:32]wFMCommunicate request_size=4 [10:00:32]MH_SAM_APDU [10:00:32]CAPDU: 80 0D 03 02 [10:00:32]Write to MH i2c: E2 08 00 C8 4C 80 0D 03 02 00 00 00 00 8F [10:00:32]Write i2c OK [10:00:32]MH_I2C_Read... [10:00:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:32]Read from MH i2c: E2 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 0B 00 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 0B 00 C8 4C 00 B9 CF 15 01 5E 5D 8C 7F 90 00 F4 [10:00:32]RAPDU: B9 CF 15 01 5E 5D 8C 7F 90 00 [10:00:32]wFMCommunicate OK [10:00:32]SAM_PROTO_SignData done [10:00:32]FM_MakeSignedData done [10:00:32]CreateOFDProtocolMessage [10:00:32]wFMCommunicate request_size=4 [10:00:32]MH_SAM_APDU [10:00:32]CAPDU: 80 11 00 00 [10:00:32]Write to MH i2c: E2 08 00 C9 4C 80 11 00 00 00 00 00 00 8F [10:00:32]Write i2c OK [10:00:32]MH_I2C_Read... [10:00:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:32]Read from MH i2c: E2 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 17 00 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 17 00 C9 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E1 [10:00:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:00:32]wFMCommunicate OK [10:00:32]CreateOFDProtocolMessage done [10:00:32]OFDSenderStorePacket 111584 [10:00:32]StoreOFDPacket docnum=111584 [10:00:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5C 1C 07 01 08 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 DD FD 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E0 B3 01 00 35 04 06 00 49 FE 8D 30 A6 FD B9 CF 15 01 5E 5D 8C 7F [10:00:32]CheckFolder [10:00:32]dirname=/storage/ofd_packets [10:00:32]CheckFolder done [10:00:32]ProducePacketName [10:00:32]name=ofd_packets/00111584 [10:00:32]NVStorageSaveData ofd_packets/00111584 [10:00:32]File name is /storage/ofd_packets/00111584 [10:00:32]Write 301 bytes [10:00:32]NVStorageSaveData done [10:00:32]OFDSenderStorePacket done [10:00:32]KKMCreateOFDPacket done [10:00:32]NVStorageSaveData kkm_last_timestamp [10:00:32]File name is /storage/kkm_last_timestamp [10:00:32]Write 4 bytes [10:00:32]NVStorageSaveData done [10:00:32]ExternCall_PrintAddStr [10:00:32]wPrintStart [10:00:32]Write to MH i2c: 01 00 00 CA 4C 16 [10:00:32]Write i2c OK [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: 01 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: 01 07 00 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: 01 07 00 CA 4C 00 00 00 00 00 FF 0F 2B [10:00:32]RasterBufferAndPrint [10:00:32]line Счет N : (1)320181 [10:00:32]line ИНН: 02508201610067 [10:00:32]line Контрольно-Кассовый Чек [10:00:32]line ПРОДАЖА [10:00:32]line ТРК (МРК, ГНК) : 11 [10:00:32]line Товар: 2710124130 [10:00:32]line Аи-92-К-5 [10:00:32]line 6.030 * 66.40 [10:00:32]line = 400.39 [10:00:32]line НДС 12% НСП 1% [10:00:32]line > о реализуемом товаре [10:00:32]line ИТОГО: 400.39 [10:00:32]line НСП 1% : 3.54 [10:00:32]line НДС 12% : 42.52 [10:00:32]line Наличными: 0.00 [10:00:32]line Безнал.: 400.39 [10:00:32]line Место: АЗС № 65 "Партнер Нефть" [10:00:32]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:00:32]line СНО: Общий режим [10:00:32]line Чек 34 20.06.2024 10:01 [10:00:32]line Смена: 389 ФФД: 1.0 [10:00:32]line ЗНМ: 0300000198 [10:00:32]line РНМ: 0000000000092771 [10:00:32]line Версия ККМ: 001 [10:00:32]line Платежная система: О! деньги [10:00:32]line ФМ: 0000000000875083 [10:00:32]line ФД: 111584 [10:00:32]line ФПД: 81357639296765 [10:00:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T100101&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111584&fm=81357639296765&tin=02508201610067®Number=0000000000092771&sum=40039 [10:00:32]OFD Sender: Processing packet 111584 [packets to send 38, broken 37] [10:00:32]ProducePacketName [10:00:32]name=ofd_packets/00111584 [10:00:32]OFD Sender: To server: pG, [10:00:32]CommunicateWithHost lk.salyk.kg:30040 [10:00:32]ConnectInit lk.salyk.kg [10:00:32]written 0, free lines is 4095 [10:00:32]Connected sock=10 [10:00:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5C 1C 07 01 08 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 DD FD 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E0 B3 01 00 35 04 06 00 49 FE 8D 30 A6 FD B9 CF 15 01 5E 5D 8C 7F [10:00:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 25 D4 47 00 5A BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E0 B3 01 00 F4 03 04 00 2B 95 73 66 B6 04 01 00 00 71 C9 95 6A 0E 91 88 E0 [10:00:33]CommunicateWithHost err = 0 [10:00:33]CheckOFDResponse [10:00:33]1017 (14) - 77093643461234 [10:00:33]1041 (16) - 0000000000875083 [10:00:33]1040 (4) - 111584 [10:00:33]1012 (4) - 20.06.2024 02:34 [10:00:33]1206 (1) - 0 [10:00:33]OFD Sender: Remove packet 111584 [10:00:33]ProducePacketName [10:00:33]name=ofd_packets/00111584 [10:00:33]NVStorageDeleteData [10:00:33]Write to MH i2c: 01 00 00 F4 4C 40 [10:00:33]Write i2c OK [10:00:33]MH_I2C_Read... [10:00:33]Read from MH i2c: 01 [10:00:33]MH_I2C_Read... [10:00:33]Read from MH i2c: 01 07 00 [10:00:33]MH_I2C_Read... [10:00:33]Read from MH i2c: 01 07 00 F4 4C 00 00 00 00 00 DE 0C 31 [10:00:33]RasterBufferAndPrint [10:00:33]line [10:00:33]line [10:00:33]line [10:00:33]line [10:00:33]line [10:00:33]written 0, free lines is 3300 [10:00:33]MH_Cut [10:00:33]Write to MH i2c: D1 01 00 FB 4C 01 19 [10:00:33]Write i2c OK [10:00:33]MH_I2C_Read... [10:00:33]Read from MH i2c: D1 [10:00:33]MH_I2C_Read... [10:00:33]Read from MH i2c: D1 01 00 [10:00:33]MH_I2C_Read... [10:00:33]Read from MH i2c: D1 01 00 FB 4C 00 18 [10:00:33]Write to MH i2c: 01 00 00 FC 4C 48 [10:00:33]Write i2c OK [10:00:33]MH_I2C_Read... [10:00:33]OFD Sender: No OFD packet to send [10:00:34]*** Cut start [10:00:34]*** Partial cut [10:00:34]*** CUTSNS_PIN = 1 [10:00:34]*** CUTSNS_PIN = 0 [10:00:34]*** Brake cut motor [10:00:34]Read from MH i2c: 01 [10:00:34]MH_I2C_Read... [10:00:34]*** Stop cut motor [10:00:34]*** Cut end [10:00:34]Read from MH i2c: 01 07 00 [10:00:34]MH_I2C_Read... [10:00:34]Read from MH i2c: 01 07 00 FC 4C 00 00 00 00 00 FF 0F 5D [10:00:34]process_action close_receipt done [10:00:34]requested_data is exist [10:00:34]produce_requested_data [10:00:34]requested_item fm.sn is exist - process it [10:00:34]wFMCommunicate request_size=4 [10:00:34]MH_SAM_APDU [10:00:34]CAPDU: 80 11 00 00 [10:00:34]Write to MH i2c: E2 08 00 FD 4C 80 11 00 00 00 00 00 00 C3 [10:00:34]Write i2c OK [10:00:34]MH_I2C_Read... [10:00:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:34]Read from MH i2c: E2 [10:00:34]MH_I2C_Read... [10:00:34]Read from MH i2c: E2 17 00 [10:00:34]MH_I2C_Read... [10:00:34]Read from MH i2c: E2 17 00 FD 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 15 [10:00:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:00:34]wFMCommunicate OK [10:00:34]requested_item fd.num is exist - process it [10:00:34]SAM_PROTO_GetFieldsCounters [10:00:34]wFMCommunicate request_size=4 [10:00:34]MH_SAM_APDU [10:00:34]CAPDU: 80 13 00 00 [10:00:34]Write to MH i2c: E2 08 00 FE 4C 80 13 00 00 00 00 00 00 C6 [10:00:34]Write i2c OK [10:00:34]MH_I2C_Read... [10:00:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:34]Read from MH i2c: E2 [10:00:34]MH_I2C_Read... [10:00:34]Read from MH i2c: E2 62 00 [10:00:34]MH_I2C_Read... [10:00:34]Read from MH i2c: E2 62 00 FE 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E0 B3 01 00 0E 04 04 00 85 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 67 [10:00:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E0 B3 01 00 0E 04 04 00 85 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 [10:00:34]wFMCommunicate OK [10:00:34]SAM_PROTO_GetFieldsCounters done [10:00:34]requested_item shift.num is exist - process it [10:00:34]requested_item shift.opened is exist - process it [10:00:34]req_shift_opened [10:00:34]FM_GetShiftState [10:00:34]SAM_PROTO_GetShiftState [10:00:34]wFMCommunicate request_size=4 [10:00:34]MH_SAM_APDU [10:00:34]CAPDU: 80 13 01 00 [10:00:34]Write to MH i2c: E2 08 00 FF 4C 80 13 01 00 00 00 00 00 C8 [10:00:34]Write i2c OK [10:00:34]MH_I2C_Read... [10:00:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:34]Read from MH i2c: E2 [10:00:34]MH_I2C_Read... [10:00:34]Read from MH i2c: E2 0E 00 [10:00:34]MH_I2C_Read... [10:00:34]Read from MH i2c: E2 0E 00 FF 4C 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 43 [10:00:34]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:00:34]wFMCommunicate OK [10:00:34]SAM_PROTO_GetShiftState done [10:00:34]FM_GetShiftState done [10:00:34]req_shift_opened done [10:00:34]requested_item shift.open_date is exist - process it [10:00:34]req_shift_open_date [10:00:34]req_shift_open_date done [10:00:34]produce_requested_data done [10:00:34]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111584,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [10:00:34]process_action_free close_receipt [10:00:34]json_value_free [10:00:34]json_value_free done [10:00:34]process_json_proto returns [10:00:34]Send response to host [10:00:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111584,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [10:00:34]free response buf [10:00:34]execute_script done [10:00:34]execute_script returns [10:00:34]free content buf [10:00:34]Sock 7.Close socket [10:00:34]Sock 7.Thread stoped [10:00:38]OFD Sender: No OFD packet to send [10:00:43]OFD Sender: No OFD packet to send [10:00:48]OFD Sender: No OFD packet to send [10:00:53]OFD Sender: No OFD packet to send [10:00:58]OFD Sender: No OFD packet to send [10:01:03]OFD Sender: No OFD packet to send [10:01:08]OFD Sender: No OFD packet to send [10:01:13]OFD Sender: No OFD packet to send [10:01:18]OFD Sender: No OFD packet to send [10:01:23]OFD Sender: No OFD packet to send [10:01:28]OFD Sender: No OFD packet to send [10:01:33]OFD Sender: No OFD packet to send [10:01:38]OFD Sender: No OFD packet to send [10:01:43]OFD Sender: No OFD packet to send [10:01:48]OFD Sender: No OFD packet to send [10:01:53]OFD Sender: No OFD packet to send [10:01:58]OFD Sender: No OFD packet to send [10:02:03]OFD Sender: No OFD packet to send [10:02:08]OFD Sender: No OFD packet to send [10:02:13]OFD Sender: No OFD packet to send [10:02:18]OFD Sender: No OFD packet to send [10:02:23]OFD Sender: No OFD packet to send [10:02:28]OFD Sender: No OFD packet to send [10:02:33]OFD Sender: No OFD packet to send [10:02:38]OFD Sender: No OFD packet to send [10:02:43]OFD Sender: No OFD packet to send [10:02:48]OFD Sender: No OFD packet to send [10:02:53]OFD Sender: No OFD packet to send [10:02:58]OFD Sender: No OFD packet to send [10:03:03]OFD Sender: No OFD packet to send [10:03:08]OFD Sender: No OFD packet to send [10:03:09]accept exits with 9 [10:03:09]New connection [10:03:09]New thread 3067321700 created [10:03:09]Thread 3067465060 joined [10:03:09]Waiting for new connection... [10:03:09] Sock 9.Parse request [10:03:09]Sock 9.Check first char [10:03:09]Sock 9.First char is OK [10:03:09]request: POST /json_proto HTTP/1.0 [10:03:09]Method: POST [10:03:09]URL: /json_proto [10:03:09]Method is POST - this is cgi request [10:03:09]url: /json_proto [10:03:09]query_string will be loaded in cgi processing [10:03:09]execute_cgi json_proto POST (null) [10:03:09]execute_cgi path=json_proto method=POST [10:03:09]POST find Content-Length [10:03:09]Host: 172.17.59.68:8080 [10:03:09]Content-Length: 677 [10:03:09]Content-Type: application/json [10:03:09] [10:03:09]POST finish read [10:03:09]Found Content-Length = 677 [10:03:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.330, "sum" : 420.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:09]execute_script... [10:03: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)320182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.330, "sum" : 420.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:09]POST & json_proto [10:03:09]process_json_proto [10:03:09]json parsed OK: [10:03:09]protocol is kg_v1.0 [10:03:09]action value=close_receipt [10:03:09]process_action close_receipt [10:03:09]cmd_close_receipt [10:03:09]MH_GetDate [10:03:09]Write to MH i2c: F0 00 00 00 4D 3C [10:03:09]Write i2c OK [10:03:09]MH_I2C_Read... [10:03:09]Read from MH i2c: F0 [10:03:09]MH_I2C_Read... [10:03:09]Read from MH i2c: F0 09 00 [10:03:09]MH_I2C_Read... [10:03:09]Read from MH i2c: F0 09 00 00 4D 00 7C FE 73 66 BC EC 60 65 05 [10:03:09]GetLastDocTimeStamp 1718877661 [10:03:09]current date 1718877820 [10:03:09]FM_GetShiftState [10:03:09]SAM_PROTO_GetShiftState [10:03:09]wFMCommunicate request_size=4 [10:03:09]MH_SAM_APDU [10:03:09]CAPDU: 80 13 01 00 [10:03:09]Write to MH i2c: E2 08 00 01 4D 80 13 01 00 00 00 00 00 CB [10:03:09]Write i2c OK [10:03:09]MH_I2C_Read... [10:03:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:09]Read from MH i2c: E2 [10:03:09]MH_I2C_Read... [10:03:09]Read from MH i2c: E2 0E 00 [10:03:09]MH_I2C_Read... [10:03:09]Read from MH i2c: E2 0E 00 01 4D 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 46 [10:03:09]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:03:09]wFMCommunicate OK [10:03:09]SAM_PROTO_GetShiftState done [10:03:09]FM_GetShiftState done [10:03:09]opened in 1718847247 [10:03:09]opened+sec_in_day 1718933647 [10:03:09]quantity*price = 42031 [10:03:09]sum+1 = 42032 [10:03:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 420.00 Внесено: 420.00 СДАЧА: 0.00 НСП 1% : 3.72 НДС 12% : 44.63 Наличными: 420.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 35 20.06.2024 10:03 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111585 ФПД: 191824657271230 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T100340&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111585&fm=191824657271230&tin=02508201610067®Number=0000000000092771&sum=42000 [10:03:10]StoreToDocumentArchive [10:03:10]shift 389 fd 111585 [10:03:10]save to /storage/0389/doc_00111585 [10:03:10]save last doc name /storage/0389/doc_00111585 to /storage/kkm_last_doc_name [10:03:10]save OK [10:03:10]Clear old archive folders... [10:03:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:03:10]tlvbuf is B6F57400 [10:03:10]SAM_PROTO_ClearQueue [10:03:10]wFMCommunicate request_size=4 [10:03:10]MH_SAM_APDU [10:03:10]CAPDU: 80 09 00 00 [10:03:10]Write to MH i2c: E2 08 00 0E 4D 80 09 00 00 00 00 00 00 CD [10:03:10]Write i2c OK [10:03:10]MH_I2C_Read... [10:03:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:10]Read from MH i2c: E2 [10:03:10]MH_I2C_Read... [10:03:10]Read from MH i2c: E2 03 00 [10:03:10]MH_I2C_Read... [10:03:10]Read from MH i2c: E2 03 00 0E 4D 00 90 00 CF [10:03:10]RAPDU: 90 00 [10:03:10]wFMCommunicate OK [10:03:10]SAM_PROTO_ClearQueue done [10:03:10]KKMCreateOFDPacket [10:03:10]OFDProtocolAddRootSTLVToBuf [10:03:10]FM_MakeSignedData [10:03:10]FM_MakeSignedData [10:03:10]SAM_PROTO_SignData [10:03:10]wFMCommunicate request_size=4 [10:03:10]MH_SAM_APDU [10:03:10]CAPDU: 80 0D 01 02 [10:03:10]Write to MH i2c: E2 08 00 0F 4D 80 0D 01 02 00 00 00 00 D5 [10:03:10]Write i2c OK [10:03:10]MH_I2C_Read... [10:03:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:10]Read from MH i2c: E2 [10:03:10]MH_I2C_Read... [10:03:10]Read from MH i2c: E2 03 00 [10:03:10]MH_I2C_Read... [10:03:10]Read from MH i2c: E2 03 00 0F 4D 00 90 00 D0 [10:03:10]RAPDU: 90 00 [10:03:10]wFMCommunicate OK [10:03:10]wFMCommunicate request_size=255 [10:03:10]MH_SAM_APDU [10:03: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 BA 18 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2F A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 7C FE 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E1 B3 01 00 35 04 06 00 AE [10:03:10]Write to MH i2c: E2 02 01 10 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 18 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2F A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 7C FE 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E1 B3 01 00 35 04 06 00 AE 00 00 29 [10:03:10]Write i2c OK [10:03:10]MH_I2C_Read... [10:03:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:11]Read from MH i2c: E2 [10:03:11]MH_I2C_Read... [10:03:11]Read from MH i2c: E2 03 00 [10:03:11]MH_I2C_Read... [10:03:11]Read from MH i2c: E2 03 00 10 4D 00 90 00 D1 [10:03:11]RAPDU: 90 00 [10:03:11]wFMCommunicate OK [10:03:11]wFMCommunicate request_size=10 [10:03:11]MH_SAM_APDU [10:03:11]CAPDU: 80 0D 02 02 05 76 A8 8E 49 BE [10:03:11]Write to MH i2c: E2 0D 00 11 4D 80 0D 02 02 05 00 76 A8 8E 49 BE 00 00 95 [10:03:11]Write i2c OK [10:03:11]MH_I2C_Read... [10:03:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:11]Read from MH i2c: E2 [10:03:11]MH_I2C_Read... [10:03:11]Read from MH i2c: E2 03 00 [10:03:11]MH_I2C_Read... [10:03:11]Read from MH i2c: E2 03 00 11 4D 00 90 00 D2 [10:03:11]RAPDU: 90 00 [10:03:11]wFMCommunicate OK [10:03:11]wFMCommunicate request_size=4 [10:03:11]MH_SAM_APDU [10:03:11]CAPDU: 80 0D 03 02 [10:03:11]Write to MH i2c: E2 08 00 12 4D 80 0D 03 02 00 00 00 00 DA [10:03:11]Write i2c OK [10:03:11]MH_I2C_Read... [10:03:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:11]Read from MH i2c: E2 [10:03:11]MH_I2C_Read... [10:03:11]Read from MH i2c: E2 0B 00 [10:03:11]MH_I2C_Read... [10:03:11]Read from MH i2c: E2 0B 00 12 4D 00 53 43 D6 74 3F 2A 7C 12 90 00 B2 [10:03:11]RAPDU: 53 43 D6 74 3F 2A 7C 12 90 00 [10:03:11]wFMCommunicate OK [10:03:11]SAM_PROTO_SignData done [10:03:11]FM_MakeSignedData done [10:03:11]CreateOFDProtocolMessage [10:03:11]wFMCommunicate request_size=4 [10:03:11]MH_SAM_APDU [10:03:11]CAPDU: 80 11 00 00 [10:03:11]Write to MH i2c: E2 08 00 13 4D 80 11 00 00 00 00 00 00 DA [10:03:11]Write i2c OK [10:03:11]MH_I2C_Read... [10:03:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:11]Read from MH i2c: E2 [10:03:11]MH_I2C_Read... [10:03:11]Read from MH i2c: E2 17 00 [10:03:11]MH_I2C_Read... [10:03:11]Read from MH i2c: E2 17 00 13 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2C [10:03:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:03:11]wFMCommunicate OK [10:03:11]CreateOFDProtocolMessage done [10:03:11]OFDSenderStorePacket 111585 [10:03:11]StoreOFDPacket docnum=111585 [10:03:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 78 51 07 01 75 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 BA 18 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2F A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 7C FE 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E1 B3 01 00 35 04 06 00 AE 76 A8 8E 49 BE 53 43 D6 74 3F 2A 7C 12 [10:03:11]CheckFolder [10:03:11]dirname=/storage/ofd_packets [10:03:11]CheckFolder done [10:03:11]ProducePacketName [10:03:11]name=ofd_packets/00111585 [10:03:11]NVStorageSaveData ofd_packets/00111585 [10:03:11]File name is /storage/ofd_packets/00111585 [10:03:11]Write 301 bytes [10:03:11]NVStorageSaveData done [10:03:11]OFDSenderStorePacket done [10:03:11]KKMCreateOFDPacket done [10:03:11]NVStorageSaveData kkm_last_timestamp [10:03:11]File name is /storage/kkm_last_timestamp [10:03:11]Write 4 bytes [10:03:11]NVStorageSaveData done [10:03:11]ExternCall_PrintAddStr [10:03:11]wPrintStart [10:03:11]Write to MH i2c: 01 00 00 14 4D 61 [10:03:11]Write i2c OK [10:03:11]MH_I2C_Read... [10:03:11]Read from MH i2c: 01 [10:03:11]MH_I2C_Read... [10:03:11]Read from MH i2c: 01 07 00 [10:03:11]MH_I2C_Read... [10:03:11]Read from MH i2c: 01 07 00 14 4D 00 00 00 00 00 FF 0F 76 [10:03:11]RasterBufferAndPrint [10:03:11]line Счет N : (1)320182 [10:03:11]line ИНН: 02508201610067 [10:03:11]line Контрольно-Кассовый Чек [10:03:11]line ПРОДАЖА [10:03:11]line ТРК (МРК, ГНК) : 11 [10:03:11]line Товар: 2710124130 [10:03:11]line Аи-92-К-5 [10:03:11]line 6.330 * 66.40 [10:03:11]line = 420.31 [10:03:11]line НДС 12% НСП 1% [10:03:11]line > о реализуемом товаре [10:03:11]line ОКРУГЛЕНИЕ: -0.31 [10:03:11]line ИТОГО: 420.00 [10:03:11]line Внесено: 420.00 [10:03:11]line СДАЧА: 0.00 [10:03:11]line НСП 1% : 3.72 [10:03:11]line НДС 12% : 44.63 [10:03:11]line Наличными: 420.00 [10:03:11]line Безнал.: 0.00 [10:03:11]line Место: АЗС № 65 "Партнер Нефть" [10:03:11]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:03:11]line СНО: Общий режим [10:03:11]line Чек 35 20.06.2024 10:03 [10:03:11]line Смена: 389 ФФД: 1.0 [10:03:11]line ЗНМ: 0300000198 [10:03:11]line РНМ: 0000000000092771 [10:03:11]line Версия ККМ: 001 [10:03:11]line ФМ: 0000000000875083 [10:03:11]line ФД: 111585 [10:03:11]line ФПД: 191824657271230 [10:03:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T100340&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111585&fm=191824657271230&tin=02508201610067®Number=0000000000092771&sum=42000 [10:03:11]OFD Sender: Processing packet 111585 [packets to send 38, broken 37] [10:03:11]ProducePacketName [10:03:11]name=ofd_packets/00111585 [10:03:11]OFD Sender: To server: pG, [10:03:11]CommunicateWithHost lk.salyk.kg:30040 [10:03:11]ConnectInit lk.salyk.kg [10:03:11]written 0, free lines is 4095 [10:03:11]Connected sock=10 [10:03:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 78 51 07 01 75 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 BA 18 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2F A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 7C FE 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E1 B3 01 00 35 04 06 00 AE 76 A8 8E 49 BE 53 43 D6 74 3F 2A 7C 12 [10:03:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 4C C5 47 00 AB 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 35 30 38 33 10 04 04 00 E1 B3 01 00 F4 03 04 00 C9 95 73 66 B6 04 01 00 00 8B F4 E2 F9 01 E4 DC D2 [10:03:11]CommunicateWithHost err = 0 [10:03:11]CheckOFDResponse [10:03:11]1017 (14) - 77093643461234 [10:03:11]1041 (16) - 0000000000875083 [10:03:11]1040 (4) - 111585 [10:03:11]1012 (4) - 20.06.2024 02:36 [10:03:11]1206 (1) - 0 [10:03:11]OFD Sender: Remove packet 111585 [10:03:11]ProducePacketName [10:03:11]name=ofd_packets/00111585 [10:03:11]NVStorageDeleteData [10:03:12]Write to MH i2c: 01 00 00 3F 4D 8C [10:03:12]Write i2c OK [10:03:12]MH_I2C_Read... [10:03:12]Read from MH i2c: 01 [10:03:12]MH_I2C_Read... [10:03:12]Read from MH i2c: 01 07 00 [10:03:12]MH_I2C_Read... [10:03:12]Read from MH i2c: 01 07 00 3F 4D 00 00 00 00 00 CE 0C 6D [10:03:12]RasterBufferAndPrint [10:03:12]line [10:03:12]line [10:03:12]line [10:03:12]line [10:03:12]line [10:03:12]written 0, free lines is 3284 [10:03:12]MH_Cut [10:03:12]Write to MH i2c: D1 01 00 46 4D 01 65 [10:03:12]Write i2c OK [10:03:12]MH_I2C_Read... [10:03:12]Read from MH i2c: D1 [10:03:12]MH_I2C_Read... [10:03:12]Read from MH i2c: D1 01 00 [10:03:12]MH_I2C_Read... [10:03:12]Read from MH i2c: D1 01 00 46 4D 00 64 [10:03:12]Write to MH i2c: 01 00 00 47 4D 94 [10:03:12]Write i2c OK [10:03:12]MH_I2C_Read... [10:03:12]OFD Sender: No OFD packet to send [10:03:12]*** Cut start [10:03:12]*** Partial cut [10:03:12]*** CUTSNS_PIN = 1 [10:03:12]*** CUTSNS_PIN = 0 [10:03:13]*** Brake cut motor [10:03:13]Read from MH i2c: 01 [10:03:13]MH_I2C_Read... [10:03:13]*** Stop cut motor [10:03:13]*** Cut end [10:03:13]Read from MH i2c: 01 07 00 [10:03:13]MH_I2C_Read... [10:03:13]Read from MH i2c: 01 07 00 47 4D 00 00 00 00 00 FF 0F A9 [10:03:13]process_action close_receipt done [10:03:13]requested_data is exist [10:03:13]produce_requested_data [10:03:13]requested_item fm.sn is exist - process it [10:03:13]wFMCommunicate request_size=4 [10:03:13]MH_SAM_APDU [10:03:13]CAPDU: 80 11 00 00 [10:03:13]Write to MH i2c: E2 08 00 48 4D 80 11 00 00 00 00 00 00 0F [10:03:13]Write i2c OK [10:03:13]MH_I2C_Read... [10:03:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:13]Read from MH i2c: E2 [10:03:13]MH_I2C_Read... [10:03:13]Read from MH i2c: E2 17 00 [10:03:13]MH_I2C_Read... [10:03:13]Read from MH i2c: E2 17 00 48 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 61 [10:03:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:03:13]wFMCommunicate OK [10:03:13]requested_item fd.num is exist - process it [10:03:13]SAM_PROTO_GetFieldsCounters [10:03:13]wFMCommunicate request_size=4 [10:03:13]MH_SAM_APDU [10:03:13]CAPDU: 80 13 00 00 [10:03:13]Write to MH i2c: E2 08 00 49 4D 80 13 00 00 00 00 00 00 12 [10:03:13]Write i2c OK [10:03:13]MH_I2C_Read... [10:03:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:03:13]Read from MH i2c: E2 [10:03:13]MH_I2C_Read... [10:03:13]Read from MH i2c: E2 62 00 [10:03:13]MH_I2C_Read... [10:03:13]Read from MH i2c: E2 62 00 49 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E1 B3 01 00 0E 04 04 00 85 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 B7 [10:03:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E1 B3 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:03:13]wFMCommunicate OK [10:03:13]SAM_PROTO_GetFieldsCounters done [10:03:13]requested_item shift.num is exist - process it [10:03:13]requested_item shift.opened is exist - process it [10:03:13]req_shift_opened [10:03:13]FM_GetShiftState [10:03:13]SAM_PROTO_GetShiftState [10:03:13]wFMCommunicate request_size=4 [10:03:13]MH_SAM_APDU [10:03:13]CAPDU: 80 13 01 00 [10:03:13]Write to MH i2c: E2 08 00 4A 4D 80 13 01 00 00 00 00 00 14 [10:03:13]Write i2c OK [10:03:13]MH_I2C_Read... [10:03:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:13]Read from MH i2c: E2 [10:03:13]MH_I2C_Read... [10:03:13]Read from MH i2c: E2 0E 00 [10:03:13]MH_I2C_Read... [10:03:13]Read from MH i2c: E2 0E 00 4A 4D 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 8F [10:03:13]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:03:13]wFMCommunicate OK [10:03:13]SAM_PROTO_GetShiftState done [10:03:13]FM_GetShiftState done [10:03:13]req_shift_opened done [10:03:13]requested_item shift.open_date is exist - process it [10:03:13]req_shift_open_date [10:03:13]req_shift_open_date done [10:03:13]produce_requested_data done [10:03:13]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111585,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [10:03:13]process_action_free close_receipt [10:03:13]json_value_free [10:03:13]json_value_free done [10:03:13]process_json_proto returns [10:03:13]Send response to host [10:03:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111585,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [10:03:13]free response buf [10:03:13]execute_script done [10:03:13]execute_script returns [10:03:13]free content buf [10:03:13]Sock 9.Close socket [10:03:13]Sock 9.Thread stoped [10:03:17]OFD Sender: No OFD packet to send [10:03:22]OFD Sender: No OFD packet to send [10:03:27]OFD Sender: No OFD packet to send [10:03:32]OFD Sender: No OFD packet to send [10:03:37]OFD Sender: No OFD packet to send [10:03:42]OFD Sender: No OFD packet to send [10:03:47]OFD Sender: No OFD packet to send [10:03:52]OFD Sender: No OFD packet to send [10:03:57]OFD Sender: No OFD packet to send [10:04:02]OFD Sender: No OFD packet to send [10:04:07]OFD Sender: No OFD packet to send [10:04:12]OFD Sender: No OFD packet to send [10:04:17]OFD Sender: No OFD packet to send [10:04:22]OFD Sender: No OFD packet to send [10:04:27]OFD Sender: No OFD packet to send [10:04:32]OFD Sender: No OFD packet to send [10:04:37]OFD Sender: No OFD packet to send [10:04:42]OFD Sender: No OFD packet to send [10:04:47]OFD Sender: No OFD packet to send [10:04:52]OFD Sender: No OFD packet to send [10:04:57]OFD Sender: No OFD packet to send [10:05:02]OFD Sender: No OFD packet to send [10:05:07]OFD Sender: No OFD packet to send [10:05:12]OFD Sender: No OFD packet to send [10:05:17]OFD Sender: No OFD packet to send [10:05:22]OFD Sender: No OFD packet to send [10:05:27]OFD Sender: No OFD packet to send [10:05:32]OFD Sender: No OFD packet to send [10:05:37]OFD Sender: No OFD packet to send [10:05:42]OFD Sender: No OFD packet to send [10:05:47]OFD Sender: No OFD packet to send [10:05:52]OFD Sender: No OFD packet to send [10:05:57]OFD Sender: No OFD packet to send [10:06:02]OFD Sender: No OFD packet to send [10:06:07]OFD Sender: No OFD packet to send [10:06:12]OFD Sender: No OFD packet to send [10:06:17]OFD Sender: No OFD packet to send [10:06:22]OFD Sender: No OFD packet to send [10:06:27]OFD Sender: No OFD packet to send [10:06:32]OFD Sender: No OFD packet to send [10:06:37]OFD Sender: No OFD packet to send [10:06:42]OFD Sender: No OFD packet to send [10:06:47]OFD Sender: No OFD packet to send [10:06:52]OFD Sender: No OFD packet to send [10:06:57]OFD Sender: No OFD packet to send [10:07:02]OFD Sender: No OFD packet to send [10:07:07]OFD Sender: No OFD packet to send [10:07:12]OFD Sender: No OFD packet to send [10:07:17]OFD Sender: No OFD packet to send [10:07:22]OFD Sender: No OFD packet to send [10:07:27]OFD Sender: No OFD packet to send [10:07:32]OFD Sender: No OFD packet to send [10:07:37]OFD Sender: No OFD packet to send [10:07:42]OFD Sender: No OFD packet to send [10:07:47]OFD Sender: No OFD packet to send [10:07:52]OFD Sender: No OFD packet to send [10:07:57]OFD Sender: No OFD packet to send [10:08:02]OFD Sender: No OFD packet to send [10:08:07]OFD Sender: No OFD packet to send [10:08:12]OFD Sender: No OFD packet to send [10:08:17]OFD Sender: No OFD packet to send [10:08:22]OFD Sender: No OFD packet to send [10:08:27]OFD Sender: No OFD packet to send [10:08:32]OFD Sender: No OFD packet to send [10:08:37]OFD Sender: No OFD packet to send [10:08:42]OFD Sender: No OFD packet to send [10:08:47]OFD Sender: No OFD packet to send [10:08:52]OFD Sender: No OFD packet to send [10:08:57]OFD Sender: No OFD packet to send [10:09:02]OFD Sender: No OFD packet to send [10:09:07]OFD Sender: No OFD packet to send [10:09:12]OFD Sender: No OFD packet to send [10:09:17]OFD Sender: No OFD packet to send [10:09:22]OFD Sender: No OFD packet to send [10:09:27]OFD Sender: No OFD packet to send [10:09:32]OFD Sender: No OFD packet to send [10:09:37]OFD Sender: No OFD packet to send [10:09:42]OFD Sender: No OFD packet to send [10:09:47]OFD Sender: No OFD packet to send [10:09:52]OFD Sender: No OFD packet to send [10:09:57]OFD Sender: No OFD packet to send [10:10:02]OFD Sender: No OFD packet to send [10:10:07]OFD Sender: No OFD packet to send [10:10:12]OFD Sender: No OFD packet to send [10:10:17]OFD Sender: No OFD packet to send [10:10:22]OFD Sender: No OFD packet to send [10:10:27]OFD Sender: No OFD packet to send [10:10:32]OFD Sender: No OFD packet to send [10:10:37]OFD Sender: No OFD packet to send [10:10:42]OFD Sender: No OFD packet to send [10:10:47]OFD Sender: No OFD packet to send [10:10:52]OFD Sender: No OFD packet to send [10:10:57]OFD Sender: No OFD packet to send [10:11:02]OFD Sender: No OFD packet to send [10:11:07]OFD Sender: No OFD packet to send [10:11:12]OFD Sender: No OFD packet to send [10:11:17]OFD Sender: No OFD packet to send [10:11:22]OFD Sender: No OFD packet to send [10:11:27]OFD Sender: No OFD packet to send [10:11:32]OFD Sender: No OFD packet to send [10:11:37]OFD Sender: No OFD packet to send [10:11:42]OFD Sender: No OFD packet to send [10:11:47]OFD Sender: No OFD packet to send [10:11:52]OFD Sender: No OFD packet to send [10:11:57]OFD Sender: No OFD packet to send [10:12:02]OFD Sender: No OFD packet to send [10:12:07]OFD Sender: No OFD packet to send [10:12:12]OFD Sender: No OFD packet to send [10:12:17]OFD Sender: No OFD packet to send [10:12:22]OFD Sender: No OFD packet to send [10:12:27]OFD Sender: No OFD packet to send [10:12:32]OFD Sender: No OFD packet to send [10:12:37]OFD Sender: No OFD packet to send [10:12:42]OFD Sender: No OFD packet to send [10:12:47]OFD Sender: No OFD packet to send [10:12:52]OFD Sender: No OFD packet to send [10:12:57]OFD Sender: No OFD packet to send [10:13:02]OFD Sender: No OFD packet to send [10:13:07]OFD Sender: No OFD packet to send [10:13:12]OFD Sender: No OFD packet to send [10:13:17]OFD Sender: No OFD packet to send [10:13:22]OFD Sender: No OFD packet to send [10:13:27]OFD Sender: No OFD packet to send [10:13:32]OFD Sender: No OFD packet to send [10:13:37]OFD Sender: No OFD packet to send [10:13:42]OFD Sender: No OFD packet to send [10:13:47]OFD Sender: No OFD packet to send [10:13:52]OFD Sender: No OFD packet to send [10:13:57]OFD Sender: No OFD packet to send [10:14:02]OFD Sender: No OFD packet to send [10:14:07]OFD Sender: No OFD packet to send [10:14:12]OFD Sender: No OFD packet to send [10:14:17]OFD Sender: No OFD packet to send [10:14:22]OFD Sender: No OFD packet to send [10:14:27]OFD Sender: No OFD packet to send [10:14:32]OFD Sender: No OFD packet to send [10:14:37]OFD Sender: No OFD packet to send [10:14:42]OFD Sender: No OFD packet to send [10:14:47]OFD Sender: No OFD packet to send [10:14:52]OFD Sender: No OFD packet to send [10:14:57]OFD Sender: No OFD packet to send [10:15:02]OFD Sender: No OFD packet to send [10:15:07]OFD Sender: No OFD packet to send [10:15:12]OFD Sender: No OFD packet to send [10:15:17]OFD Sender: No OFD packet to send [10:15:22]OFD Sender: No OFD packet to send [10:15:27]OFD Sender: No OFD packet to send [10:15:32]OFD Sender: No OFD packet to send [10:15: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:08]OFD Sender: No OFD packet to send [10:20:13]OFD Sender: No OFD packet to send [10:20:18]OFD Sender: No OFD packet to send [10:20:23]OFD Sender: No OFD packet to send [10:20:28]OFD Sender: No OFD packet to send [10:20:33]OFD Sender: No OFD packet to send [10:20:38]OFD Sender: No OFD packet to send [10:20:43]OFD Sender: No OFD packet to send [10:20:48]OFD Sender: No OFD packet to send [10:20:50]accept exits with 7 [10:20:50]New connection [10:20:50]New thread 3067465060 created [10:20:50]Thread 3067321700 joined [10:20:50]Waiting for new connection... [10:20:50] Sock 7.Parse request [10:20:50]Sock 7.Check first char [10:20:50]Sock 7.First char is OK [10:20:50]request: POST /json_proto HTTP/1.0 [10:20:50]Method: POST [10:20:50]URL: /json_proto [10:20:50]Method is POST - this is cgi request [10:20:50]url: /json_proto [10:20:50]query_string will be loaded in cgi processing [10:20:50]execute_cgi json_proto POST (null) [10:20:50]execute_cgi path=json_proto method=POST [10:20:50]POST find Content-Length [10:20:50]Host: 172.17.59.68:8080 [10:20:50]Content-Length: 682 [10:20:50]Content-Type: application/json [10:20:50] [10:20:50]POST finish read [10:20:50]Found Content-Length = 682 [10:20:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:50]execute_script... [10: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)320183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:50]POST & json_proto [10:20:50]process_json_proto [10:20:50]json parsed OK: [10:20:50]protocol is kg_v1.0 [10:20:50]action value=close_receipt [10:20:50]process_action close_receipt [10:20:50]cmd_close_receipt [10:20:50]MH_GetDate [10:20:50]Write to MH i2c: F0 00 00 4B 4D 87 [10:20:50]Write i2c OK [10:20:50]MH_I2C_Read... [10:20:50]Read from MH i2c: F0 [10:20:50]MH_I2C_Read... [10:20:50]Read from MH i2c: F0 09 00 [10:20:50]MH_I2C_Read... [10:20:50]Read from MH i2c: F0 09 00 4B 4D 00 A1 02 74 66 BC EC 60 65 7A [10:20:50]GetLastDocTimeStamp 1718877820 [10:20:50]current date 1718878881 [10:20:50]FM_GetShiftState [10:20:50]SAM_PROTO_GetShiftState [10:20:50]wFMCommunicate request_size=4 [10:20:50]MH_SAM_APDU [10:20:50]CAPDU: 80 13 01 00 [10:20:50]Write to MH i2c: E2 08 00 4C 4D 80 13 01 00 00 00 00 00 16 [10:20:50]Write i2c OK [10:20:50]MH_I2C_Read... [10:20:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:50]Read from MH i2c: E2 [10:20:50]MH_I2C_Read... [10:20:50]Read from MH i2c: E2 0E 00 [10:20:50]MH_I2C_Read... [10:20:50]Read from MH i2c: E2 0E 00 4C 4D 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 91 [10:20:50]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:20:50]wFMCommunicate OK [10:20:50]SAM_PROTO_GetShiftState done [10:20:50]FM_GetShiftState done [10:20:50]opened in 1718847247 [10:20:50]opened+sec_in_day 1718933647 [10:20:50]quantity*price = 100064 [10:20:50]sum+1 = 100066 [10:20:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 36 20.06.2024 10:21 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111586 ФПД: 228849190004225 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T102121&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111586&fm=228849190004225&tin=02508201610067®Number=0000000000092771&sum=100000 [10:20:51]StoreToDocumentArchive [10:20:51]shift 389 fd 111586 [10:20:51]save to /storage/0389/doc_00111586 [10:20:51]save last doc name /storage/0389/doc_00111586 to /storage/kkm_last_doc_name [10:20:51]save OK [10:20:51]Clear old archive folders... [10:20:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:20:51]tlvbuf is 00F0CE90 [10:20:51]SAM_PROTO_ClearQueue [10:20:51]wFMCommunicate request_size=4 [10:20:51]MH_SAM_APDU [10:20:51]CAPDU: 80 09 00 00 [10:20:51]Write to MH i2c: E2 08 00 59 4D 80 09 00 00 00 00 00 00 18 [10:20:51]Write i2c OK [10:20:51]MH_I2C_Read... [10:20:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:51]Read from MH i2c: E2 [10:20:51]MH_I2C_Read... [10:20:51]Read from MH i2c: E2 03 00 [10:20:51]MH_I2C_Read... [10:20:51]Read from MH i2c: E2 03 00 59 4D 00 90 00 1A [10:20:51]RAPDU: 90 00 [10:20:51]wFMCommunicate OK [10:20:51]SAM_PROTO_ClearQueue done [10:20:51]KKMCreateOFDPacket [10:20:51]OFDProtocolAddRootSTLVToBuf [10:20:51]FM_MakeSignedData [10:20:51]FM_MakeSignedData [10:20:51]SAM_PROTO_SignData [10:20:51]wFMCommunicate request_size=4 [10:20:51]MH_SAM_APDU [10:20:51]CAPDU: 80 0D 01 02 [10:20:51]Write to MH i2c: E2 08 00 5A 4D 80 0D 01 02 00 00 00 00 20 [10:20:51]Write i2c OK [10:20:51]MH_I2C_Read... [10:20:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:51]Read from MH i2c: E2 [10:20:51]MH_I2C_Read... [10:20:51]Read from MH i2c: E2 03 00 [10:20:51]MH_I2C_Read... [10:20:51]Read from MH i2c: E2 03 00 5A 4D 00 90 00 1B [10:20:51]RAPDU: 90 00 [10:20:51]wFMCommunicate OK [10:20:51]wFMCommunicate request_size=255 [10:20:51]MH_SAM_APDU [10: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 A1 02 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E2 B3 01 00 35 04 06 00 D0 [10:20:51]Write to MH i2c: E2 02 01 5B 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 A1 02 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E2 B3 01 00 35 04 06 00 D0 00 00 B1 [10:20:51]Write i2c OK [10:20:51]MH_I2C_Read... [10:20:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:52]Read from MH i2c: E2 [10:20:52]MH_I2C_Read... [10:20:52]Read from MH i2c: E2 03 00 [10:20:52]MH_I2C_Read... [10:20:52]Read from MH i2c: E2 03 00 5B 4D 00 90 00 1C [10:20:52]RAPDU: 90 00 [10:20:52]wFMCommunicate OK [10:20:52]wFMCommunicate request_size=10 [10:20:52]MH_SAM_APDU [10:20:52]CAPDU: 80 0D 02 02 05 23 1A AD 66 01 [10:20:52]Write to MH i2c: E2 0D 00 5C 4D 80 0D 02 02 05 00 23 1A AD 66 01 00 00 7E [10:20:52]Write i2c OK [10:20:52]MH_I2C_Read... [10:20:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:52]Read from MH i2c: E2 [10:20:52]MH_I2C_Read... [10:20:52]Read from MH i2c: E2 03 00 [10:20:52]MH_I2C_Read... [10:20:52]Read from MH i2c: E2 03 00 5C 4D 00 90 00 1D [10:20:52]RAPDU: 90 00 [10:20:52]wFMCommunicate OK [10:20:52]wFMCommunicate request_size=4 [10:20:52]MH_SAM_APDU [10:20:52]CAPDU: 80 0D 03 02 [10:20:52]Write to MH i2c: E2 08 00 5D 4D 80 0D 03 02 00 00 00 00 25 [10:20:52]Write i2c OK [10:20:52]MH_I2C_Read... [10:20:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:52]Read from MH i2c: E2 [10:20:52]MH_I2C_Read... [10:20:52]Read from MH i2c: E2 0B 00 [10:20:52]MH_I2C_Read... [10:20:52]Read from MH i2c: E2 0B 00 5D 4D 00 F9 90 07 59 AB 24 B1 93 90 00 22 [10:20:52]RAPDU: F9 90 07 59 AB 24 B1 93 90 00 [10:20:52]wFMCommunicate OK [10:20:52]SAM_PROTO_SignData done [10:20:52]FM_MakeSignedData done [10:20:52]CreateOFDProtocolMessage [10:20:52]wFMCommunicate request_size=4 [10:20:52]MH_SAM_APDU [10:20:52]CAPDU: 80 11 00 00 [10:20:52]Write to MH i2c: E2 08 00 5E 4D 80 11 00 00 00 00 00 00 25 [10:20:52]Write i2c OK [10:20:52]MH_I2C_Read... [10:20:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:52]Read from MH i2c: E2 [10:20:52]MH_I2C_Read... [10:20:52]Read from MH i2c: E2 17 00 [10:20:52]MH_I2C_Read... [10:20:52]Read from MH i2c: E2 17 00 5E 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 77 [10:20:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:20:52]wFMCommunicate OK [10:20:52]CreateOFDProtocolMessage done [10:20:52]OFDSenderStorePacket 111586 [10:20:52]StoreOFDPacket docnum=111586 [10:20:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3D 05 07 01 34 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 A1 02 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E2 B3 01 00 35 04 06 00 D0 23 1A AD 66 01 F9 90 07 59 AB 24 B1 93 [10:20:52]CheckFolder [10:20:52]dirname=/storage/ofd_packets [10:20:52]CheckFolder done [10:20:52]ProducePacketName [10:20:52]name=ofd_packets/00111586 [10:20:52]NVStorageSaveData ofd_packets/00111586 [10:20:52]File name is /storage/ofd_packets/00111586 [10:20:52]Write 301 bytes [10:20:52]NVStorageSaveData done [10:20:52]OFDSenderStorePacket done [10:20:52]KKMCreateOFDPacket done [10:20:52]NVStorageSaveData kkm_last_timestamp [10:20:52]File name is /storage/kkm_last_timestamp [10:20:52]Write 4 bytes [10:20:52]NVStorageSaveData done [10:20:52]ExternCall_PrintAddStr [10:20:52]wPrintStart [10:20:52]Write to MH i2c: 01 00 00 5F 4D AC [10:20:52]Write i2c OK [10:20:52]MH_I2C_Read... [10:20:52]Read from MH i2c: 01 [10:20:52]MH_I2C_Read... [10:20:52]Read from MH i2c: 01 07 00 [10:20:52]MH_I2C_Read... [10:20:52]Read from MH i2c: 01 07 00 5F 4D 00 00 00 00 00 FF 0F C1 [10:20:52]RasterBufferAndPrint [10:20:52]line Счет N : (1)320183 [10:20:52]line ИНН: 02508201610067 [10:20:52]line Контрольно-Кассовый Чек [10:20:52]line ПРОДАЖА [10:20:52]line ТРК (МРК, ГНК) : 11 [10:20:52]line Товар: 2710124130 [10:20:52]line Аи-92-К-5 [10:20:52]line 15.070 * 66.40 [10:20:52]line = 1000.65 [10:20:52]line НДС 12% НСП 1% [10:20:52]line > о реализуемом товаре [10:20:52]line ОКРУГЛЕНИЕ: -0.65 [10:20:52]line ИТОГО: 1000.00 [10:20:52]line Внесено: 1000.00 [10:20:52]line СДАЧА: 0.00 [10:20:52]line НСП 1% : 8.85 [10:20:52]line НДС 12% : 106.26 [10:20:52]line Наличными: 1000.00 [10:20:52]line Безнал.: 0.00 [10:20:52]line Место: АЗС № 65 "Партнер Нефть" [10:20:52]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:20:52]line СНО: Общий режим [10:20:52]line Чек 36 20.06.2024 10:21 [10:20:52]line Смена: 389 ФФД: 1.0 [10:20:52]line ЗНМ: 0300000198 [10:20:52]line РНМ: 0000000000092771 [10:20:52]line Версия ККМ: 001 [10:20:52]line ФМ: 0000000000875083 [10:20:52]line ФД: 111586 [10:20:52]line ФПД: 228849190004225 [10:20:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T102121&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111586&fm=228849190004225&tin=02508201610067®Number=0000000000092771&sum=100000 [10:20:52]OFD Sender: Processing packet 111586 [packets to send 38, broken 37] [10:20:52]ProducePacketName [10:20:52]name=ofd_packets/00111586 [10:20:52]OFD Sender: To server: pG, [10:20:52]CommunicateWithHost lk.salyk.kg:30040 [10:20:52]ConnectInit lk.salyk.kg [10:20:52]written 0, free lines is 4095 [10:20:52]Connected sock=10 [10: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 35 30 38 33 0F 01 00 00 3D 05 07 01 34 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 A1 02 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E2 B3 01 00 35 04 06 00 D0 23 1A AD 66 01 F9 90 07 59 AB 24 B1 93 [10:20:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 57 E2 47 00 15 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 35 30 38 33 10 04 04 00 E2 B3 01 00 F4 03 04 00 EE 99 73 66 B6 04 01 00 00 09 C0 98 D1 F1 8F DF 6F [10:20:52]CommunicateWithHost err = 0 [10:20:52]CheckOFDResponse [10:20:52]1017 (14) - 77093643461234 [10:20:52]1041 (16) - 0000000000875083 [10:20:52]1040 (4) - 111586 [10:20:52]1012 (4) - 20.06.2024 02:54 [10:20:52]1206 (1) - 0 [10:20:52]OFD Sender: Remove packet 111586 [10:20:52]ProducePacketName [10:20:52]name=ofd_packets/00111586 [10:20:52]NVStorageDeleteData [10:20:53]Write to MH i2c: 01 00 00 8A 4D D7 [10:20:53]Write i2c OK [10:20:53]MH_I2C_Read... [10:20:53]Read from MH i2c: 01 [10:20:53]MH_I2C_Read... [10:20:53]Read from MH i2c: 01 07 00 [10:20:53]MH_I2C_Read... [10:20:53]Read from MH i2c: 01 07 00 8A 4D 00 00 00 00 00 C9 0C B3 [10:20:53]RasterBufferAndPrint [10:20:53]line [10:20:53]line [10:20:53]line [10:20:53]line [10:20:53]line [10:20:53]written 0, free lines is 3280 [10:20:53]MH_Cut [10:20:53]Write to MH i2c: D1 01 00 91 4D 01 B0 [10:20:53]Write i2c OK [10:20:53]MH_I2C_Read... [10:20:53]Read from MH i2c: D1 [10:20:53]MH_I2C_Read... [10:20:53]Read from MH i2c: D1 01 00 [10:20:53]MH_I2C_Read... [10:20:53]Read from MH i2c: D1 01 00 91 4D 00 AF [10:20:53]Write to MH i2c: 01 00 00 92 4D DF [10:20:53]Write i2c OK [10:20:53]MH_I2C_Read... [10:20:53]OFD Sender: No OFD packet to send [10:20:53]*** Cut start [10:20:53]*** Partial cut [10:20:53]*** CUTSNS_PIN = 1 [10:20:53]*** CUTSNS_PIN = 0 [10:20:54]*** Brake cut motor [10:20:54]Read from MH i2c: 01 [10:20:54]MH_I2C_Read... [10:20:54]*** Stop cut motor [10:20:54]*** Cut end [10:20:54]Read from MH i2c: 01 07 00 [10:20:54]MH_I2C_Read... [10:20:54]Read from MH i2c: 01 07 00 92 4D 00 00 00 00 00 FF 0F F4 [10:20:54]process_action close_receipt done [10:20:54]requested_data is exist [10:20:54]produce_requested_data [10:20:54]requested_item fm.sn is exist - process it [10:20:54]wFMCommunicate request_size=4 [10:20:54]MH_SAM_APDU [10:20:54]CAPDU: 80 11 00 00 [10:20:54]Write to MH i2c: E2 08 00 93 4D 80 11 00 00 00 00 00 00 5A [10:20:54]Write i2c OK [10:20:54]MH_I2C_Read... [10:20:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:54]Read from MH i2c: E2 [10:20:54]MH_I2C_Read... [10:20:54]Read from MH i2c: E2 17 00 [10:20:54]MH_I2C_Read... [10:20:54]Read from MH i2c: E2 17 00 93 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AC [10:20:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:20:54]wFMCommunicate OK [10:20:54]requested_item fd.num is exist - process it [10:20:54]SAM_PROTO_GetFieldsCounters [10:20:54]wFMCommunicate request_size=4 [10:20:54]MH_SAM_APDU [10:20:54]CAPDU: 80 13 00 00 [10:20:54]Write to MH i2c: E2 08 00 94 4D 80 13 00 00 00 00 00 00 5D [10:20:54]Write i2c OK [10:20:54]MH_I2C_Read... [10:20:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:54]Read from MH i2c: E2 [10:20:54]MH_I2C_Read... [10:20:54]Read from MH i2c: E2 62 00 [10:20:54]MH_I2C_Read... [10:20:54]Read from MH i2c: E2 62 00 94 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E2 B3 01 00 0E 04 04 00 85 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 06 [10: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E2 B3 01 00 0E 04 04 00 85 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 [10:20:54]wFMCommunicate OK [10:20:54]SAM_PROTO_GetFieldsCounters done [10:20:54]requested_item shift.num is exist - process it [10:20:54]requested_item shift.opened is exist - process it [10:20:54]req_shift_opened [10:20:54]FM_GetShiftState [10:20:54]SAM_PROTO_GetShiftState [10:20:54]wFMCommunicate request_size=4 [10:20:54]MH_SAM_APDU [10:20:54]CAPDU: 80 13 01 00 [10:20:54]Write to MH i2c: E2 08 00 95 4D 80 13 01 00 00 00 00 00 5F [10:20:54]Write i2c OK [10:20:54]MH_I2C_Read... [10:20:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:54]Read from MH i2c: E2 [10:20:54]MH_I2C_Read... [10:20:54]Read from MH i2c: E2 0E 00 [10:20:54]MH_I2C_Read... [10:20:54]Read from MH i2c: E2 0E 00 95 4D 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 DA [10:20:54]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:20:54]wFMCommunicate OK [10:20:54]SAM_PROTO_GetShiftState done [10:20:54]FM_GetShiftState done [10:20:54]req_shift_opened done [10:20:54]requested_item shift.open_date is exist - process it [10:20:54]req_shift_open_date [10:20:54]req_shift_open_date done [10:20:54]produce_requested_data done [10:20:54]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111586,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [10:20:54]process_action_free close_receipt [10:20:54]json_value_free [10:20:54]json_value_free done [10:20:54]process_json_proto returns [10:20:54]Send response to host [10:20:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111586,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [10:20:54]free response buf [10:20:54]execute_script done [10:20:54]execute_script returns [10:20:54]free content buf [10:20:54]Sock 7.Close socket [10:20:54]Sock 7.Thread stoped [10:20:58]OFD Sender: No OFD packet to send [10:21:03]OFD Sender: No OFD packet to send [10:21:08]OFD Sender: No OFD packet to send [10:21:13]OFD Sender: No OFD packet to send [10:21:18]OFD Sender: No OFD packet to send [10:21:23]OFD Sender: No OFD packet to send [10:21:28]OFD Sender: No OFD packet to send [10:21:33]OFD Sender: No OFD packet to send [10:21:38]OFD Sender: No OFD packet to send [10:21:43]OFD Sender: No OFD packet to send [10:21:48]OFD Sender: No OFD packet to send [10:21:53]OFD Sender: No OFD packet to send [10:21:58]OFD Sender: No OFD packet to send [10:22:03]OFD Sender: No OFD packet to send [10:22:08]OFD Sender: No OFD packet to send [10:22:13]OFD Sender: No OFD packet to send [10:22:18]OFD Sender: No OFD packet to send [10:22:21]accept exits with 9 [10:22:21]New connection [10:22:21]New thread 3067321700 created [10:22:21]Thread 3067465060 joined [10:22:21]Waiting for new connection... [10:22:21] Sock 9.Parse request [10:22:21]Sock 9.Check first char [10:22:21]Sock 9.First char is OK [10:22:21]request: POST /json_proto HTTP/1.0 [10:22:21]Method: POST [10:22:21]URL: /json_proto [10:22:21]Method is POST - this is cgi request [10:22:21]url: /json_proto [10:22:21]query_string will be loaded in cgi processing [10:22:21]execute_cgi json_proto POST (null) [10:22:21]execute_cgi path=json_proto method=POST [10:22:21]POST find Content-Length [10:22:21]Host: 172.17.59.68:8080 [10:22:21]Content-Length: 674 [10:22:21]Content-Type: application/json [10:22:21] [10:22:21]POST finish read [10:22:21]Found Content-Length = 674 [10:22:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:21]execute_script... [10:22: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)320184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:21]POST & json_proto [10:22:21]process_json_proto [10:22:21]json parsed OK: [10:22:21]protocol is kg_v1.0 [10:22:21]action value=close_receipt [10:22:21]process_action close_receipt [10:22:21]cmd_close_receipt [10:22:21]MH_GetDate [10:22:21]Write to MH i2c: F0 00 00 96 4D D2 [10:22:21]Write i2c OK [10:22:21]MH_I2C_Read... [10:22:21]Read from MH i2c: F0 [10:22:21]MH_I2C_Read... [10:22:21]Read from MH i2c: F0 09 00 [10:22:21]MH_I2C_Read... [10:22:21]Read from MH i2c: F0 09 00 96 4D 00 FB 02 74 66 BC EC 60 65 1F [10:22:21]GetLastDocTimeStamp 1718878881 [10:22:21]current date 1718878971 [10:22:21]FM_GetShiftState [10:22:21]SAM_PROTO_GetShiftState [10:22:21]wFMCommunicate request_size=4 [10:22:21]MH_SAM_APDU [10:22:21]CAPDU: 80 13 01 00 [10:22:21]Write to MH i2c: E2 08 00 97 4D 80 13 01 00 00 00 00 00 61 [10:22:21]Write i2c OK [10:22:21]MH_I2C_Read... [10:22:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:21]Read from MH i2c: E2 [10:22:21]MH_I2C_Read... [10:22:21]Read from MH i2c: E2 0E 00 [10:22:21]MH_I2C_Read... [10:22:21]Read from MH i2c: E2 0E 00 97 4D 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 DC [10:22:21]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:22:21]wFMCommunicate OK [10:22:21]SAM_PROTO_GetShiftState done [10:22:21]FM_GetShiftState done [10:22:21]opened in 1718847247 [10:22:21]opened+sec_in_day 1718933647 [10:22:21]quantity*price = 50009 [10:22:21]sum+1 = 50010 [10:22:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 37 20.06.2024 10:22 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111587 ФПД: 118391633255959 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T102252&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111587&fm=118391633255959&tin=02508201610067®Number=0000000000092771&sum=50000 [10:22:22]StoreToDocumentArchive [10:22:22]shift 389 fd 111587 [10:22:22]save to /storage/0389/doc_00111587 [10:22:22]save last doc name /storage/0389/doc_00111587 to /storage/kkm_last_doc_name [10:22:22]save OK [10:22:22]Clear old archive folders... [10:22:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:22:22]tlvbuf is 00F00720 [10:22:22]SAM_PROTO_ClearQueue [10:22:22]wFMCommunicate request_size=4 [10:22:22]MH_SAM_APDU [10:22:22]CAPDU: 80 09 00 00 [10:22:22]Write to MH i2c: E2 08 00 A4 4D 80 09 00 00 00 00 00 00 63 [10:22:22]Write i2c OK [10:22:22]MH_I2C_Read... [10:22:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:22]Read from MH i2c: E2 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: E2 03 00 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: E2 03 00 A4 4D 00 90 00 65 [10:22:22]RAPDU: 90 00 [10:22:22]wFMCommunicate OK [10:22:22]SAM_PROTO_ClearQueue done [10:22:22]KKMCreateOFDPacket [10:22:22]OFDProtocolAddRootSTLVToBuf [10:22:22]FM_MakeSignedData [10:22:22]FM_MakeSignedData [10:22:22]SAM_PROTO_SignData [10:22:22]wFMCommunicate request_size=4 [10:22:22]MH_SAM_APDU [10:22:22]CAPDU: 80 0D 01 02 [10:22:22]Write to MH i2c: E2 08 00 A5 4D 80 0D 01 02 00 00 00 00 6B [10:22:22]Write i2c OK [10:22:22]MH_I2C_Read... [10:22:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:22]Read from MH i2c: E2 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: E2 03 00 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: E2 03 00 A5 4D 00 90 00 66 [10:22:22]RAPDU: 90 00 [10:22:22]wFMCommunicate OK [10:22:22]wFMCommunicate request_size=255 [10:22:22]MH_SAM_APDU [10:22:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 FC 02 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E3 B3 01 00 35 04 06 00 6B AD 33 3E [10:22:22]Write to MH i2c: E2 02 01 A6 4D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 FC 02 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E3 B3 01 00 35 04 06 00 6B AD 33 3E 00 00 B8 [10:22:22]Write i2c OK [10:22:22]MH_I2C_Read... [10:22:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:22]Read from MH i2c: E2 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: E2 03 00 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: E2 03 00 A6 4D 00 90 00 67 [10:22:22]RAPDU: 90 00 [10:22:22]wFMCommunicate OK [10:22:22]wFMCommunicate request_size=7 [10:22:22]MH_SAM_APDU [10:22:22]CAPDU: 80 0D 02 02 02 9E 17 [10:22:22]Write to MH i2c: E2 0A 00 A7 4D 80 0D 02 02 02 00 9E 17 00 00 27 [10:22:22]Write i2c OK [10:22:22]MH_I2C_Read... [10:22:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:22]Read from MH i2c: E2 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: E2 03 00 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: E2 03 00 A7 4D 00 90 00 68 [10:22:22]RAPDU: 90 00 [10:22:22]wFMCommunicate OK [10:22:22]wFMCommunicate request_size=4 [10:22:22]MH_SAM_APDU [10:22:22]CAPDU: 80 0D 03 02 [10:22:22]Write to MH i2c: E2 08 00 A8 4D 80 0D 03 02 00 00 00 00 70 [10:22:22]Write i2c OK [10:22:22]MH_I2C_Read... [10:22:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:22]Read from MH i2c: E2 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: E2 0B 00 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: E2 0B 00 A8 4D 00 26 A8 8B 64 61 D1 29 D5 90 00 5E [10:22:22]RAPDU: 26 A8 8B 64 61 D1 29 D5 90 00 [10:22:22]wFMCommunicate OK [10:22:22]SAM_PROTO_SignData done [10:22:22]FM_MakeSignedData done [10:22:22]CreateOFDProtocolMessage [10:22:22]wFMCommunicate request_size=4 [10:22:22]MH_SAM_APDU [10:22:22]CAPDU: 80 11 00 00 [10:22:22]Write to MH i2c: E2 08 00 A9 4D 80 11 00 00 00 00 00 00 70 [10:22:22]Write i2c OK [10:22:22]MH_I2C_Read... [10:22:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:22]Read from MH i2c: E2 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: E2 17 00 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: E2 17 00 A9 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C2 [10:22:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:22:22]wFMCommunicate OK [10:22:22]CreateOFDProtocolMessage done [10:22:22]OFDSenderStorePacket 111587 [10:22:22]StoreOFDPacket docnum=111587 [10:22:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 9B 44 04 01 A6 EA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 FC 02 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E3 B3 01 00 35 04 06 00 6B AD 33 3E 9E 17 26 A8 8B 64 61 D1 29 D5 [10:22:22]CheckFolder [10:22:22]dirname=/storage/ofd_packets [10:22:22]CheckFolder done [10:22:22]ProducePacketName [10:22:22]name=ofd_packets/00111587 [10:22:22]NVStorageSaveData ofd_packets/00111587 [10:22:22]File name is /storage/ofd_packets/00111587 [10:22:22]Write 298 bytes [10:22:22]NVStorageSaveData done [10:22:22]OFDSenderStorePacket done [10:22:22]KKMCreateOFDPacket done [10:22:22]NVStorageSaveData kkm_last_timestamp [10:22:22]File name is /storage/kkm_last_timestamp [10:22:22]Write 4 bytes [10:22:22]NVStorageSaveData done [10:22:22]ExternCall_PrintAddStr [10:22:22]wPrintStart [10:22:22]Write to MH i2c: 01 00 00 AA 4D F7 [10:22:22]Write i2c OK [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: 01 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: 01 07 00 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: 01 07 00 AA 4D 00 00 00 00 00 FF 0F 0C [10:22:22]RasterBufferAndPrint [10:22:22]line Счет N : (1)320184 [10:22:22]line ИНН: 02508201610067 [10:22:22]line Контрольно-Кассовый Чек [10:22:22]line ПРОДАЖА [10:22:22]line ТРК (МРК, ГНК) : 22 [10:22:22]line Товар: 2710194210 [10:22:22]line ДТ-К-5 [10:22:22]line 6.860 * 72.90 [10:22:22]line = 500.09 [10:22:22]line НДС 12% НСП 1% [10:22:22]line > о реализуемом товаре [10:22:22]line ОКРУГЛЕНИЕ: -0.09 [10:22:22]line ИТОГО: 500.00 [10:22:22]line Внесено: 500.00 [10:22:22]line СДАЧА: 0.00 [10:22:22]line НСП 1% : 4.43 [10:22:22]line НДС 12% : 53.11 [10:22:22]line Наличными: 500.00 [10:22:22]line Безнал.: 0.00 [10:22:22]line Место: АЗС № 65 "Партнер Нефть" [10:22:22]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:22:22]line СНО: Общий режим [10:22:22]line Чек 37 20.06.2024 10:22 [10:22:22]line Смена: 389 ФФД: 1.0 [10:22:22]line ЗНМ: 0300000198 [10:22:22]line РНМ: 0000000000092771 [10:22:22]line Версия ККМ: 001 [10:22:22]line ФМ: 0000000000875083 [10:22:22]line ФД: 111587 [10:22:22]line ФПД: 118391633255959 [10:22:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T102252&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111587&fm=118391633255959&tin=02508201610067®Number=0000000000092771&sum=50000 [10:22:23]OFD Sender: Processing packet 111587 [packets to send 38, broken 37] [10:22:23]ProducePacketName [10:22:23]name=ofd_packets/00111587 [10:22:23]OFD Sender: To server: pG, [10:22:23]CommunicateWithHost lk.salyk.kg:30040 [10:22:23]ConnectInit lk.salyk.kg [10:22:23]written 0, free lines is 4095 [10:22:23]Connected sock=10 [10:22:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 9B 44 04 01 A6 EA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 FC 02 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E3 B3 01 00 35 04 06 00 6B AD 33 3E 9E 17 26 A8 8B 64 61 D1 29 D5 [10:22:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 56 1A 47 00 FE 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 35 30 38 33 10 04 04 00 E3 B3 01 00 F4 03 04 00 49 9A 73 66 B6 04 01 00 00 D0 53 67 04 87 BF EA 33 [10:22:23]CommunicateWithHost err = 0 [10:22:23]CheckOFDResponse [10:22:23]1017 (14) - 77093643461234 [10:22:23]1041 (16) - 0000000000875083 [10:22:23]1040 (4) - 111587 [10:22:23]1012 (4) - 20.06.2024 02:56 [10:22:23]1206 (1) - 0 [10:22:23]OFD Sender: Remove packet 111587 [10:22:23]ProducePacketName [10:22:23]name=ofd_packets/00111587 [10:22:23]NVStorageDeleteData [10:22:23]Write to MH i2c: 01 00 00 D5 4D 22 [10:22:23]Write i2c OK [10:22:23]MH_I2C_Read... [10:22:23]Read from MH i2c: 01 [10:22:23]MH_I2C_Read... [10:22:23]Read from MH i2c: 01 07 00 [10:22:23]MH_I2C_Read... [10:22:23]Read from MH i2c: 01 07 00 D5 4D 00 00 00 00 00 C1 0C F6 [10:22:23]RasterBufferAndPrint [10:22:23]line [10:22:23]line [10:22:23]line [10:22:23]line [10:22:23]line [10:22:23]written 0, free lines is 3271 [10:22:23]MH_Cut [10:22:23]Write to MH i2c: D1 01 00 DC 4D 01 FB [10:22:23]Write i2c OK [10:22:23]MH_I2C_Read... [10:22:23]Read from MH i2c: D1 [10:22:23]MH_I2C_Read... [10:22:23]Read from MH i2c: D1 01 00 [10:22:23]MH_I2C_Read... [10:22:23]Read from MH i2c: D1 01 00 DC 4D 00 FA [10:22:23]Write to MH i2c: 01 00 00 DD 4D 2A [10:22:23]Write i2c OK [10:22:23]MH_I2C_Read... [10:22:23]OFD Sender: No OFD packet to send [10:22:24]*** Cut start [10:22:24]*** Partial cut [10:22:24]*** CUTSNS_PIN = 1 [10:22:24]*** CUTSNS_PIN = 0 [10:22:24]*** Brake cut motor [10:22:24]Read from MH i2c: 01 [10:22:24]MH_I2C_Read... [10:22:24]*** Stop cut motor [10:22:24]*** Cut end [10:22:24]Read from MH i2c: 01 07 00 [10:22:24]MH_I2C_Read... [10:22:24]Read from MH i2c: 01 07 00 DD 4D 00 00 00 00 00 FF 0F 3F [10:22:24]process_action close_receipt done [10:22:24]requested_data is exist [10:22:24]produce_requested_data [10:22:24]requested_item fm.sn is exist - process it [10:22:24]wFMCommunicate request_size=4 [10:22:24]MH_SAM_APDU [10:22:24]CAPDU: 80 11 00 00 [10:22:24]Write to MH i2c: E2 08 00 DE 4D 80 11 00 00 00 00 00 00 A5 [10:22:24]Write i2c OK [10:22:24]MH_I2C_Read... [10:22:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:24]Read from MH i2c: E2 [10:22:24]MH_I2C_Read... [10:22:24]Read from MH i2c: E2 17 00 [10:22:24]MH_I2C_Read... [10:22:24]Read from MH i2c: E2 17 00 DE 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F7 [10:22:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:22:24]wFMCommunicate OK [10:22:24]requested_item fd.num is exist - process it [10:22:24]SAM_PROTO_GetFieldsCounters [10:22:24]wFMCommunicate request_size=4 [10:22:24]MH_SAM_APDU [10:22:24]CAPDU: 80 13 00 00 [10:22:24]Write to MH i2c: E2 08 00 DF 4D 80 13 00 00 00 00 00 00 A8 [10:22:24]Write i2c OK [10:22:24]MH_I2C_Read... [10:22:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:25]Read from MH i2c: E2 [10:22:25]MH_I2C_Read... [10:22:25]Read from MH i2c: E2 62 00 [10:22:25]MH_I2C_Read... [10:22:25]Read from MH i2c: E2 62 00 DF 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E3 B3 01 00 0E 04 04 00 85 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 55 [10:22:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E3 B3 01 00 0E 04 04 00 85 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 [10:22:25]wFMCommunicate OK [10:22:25]SAM_PROTO_GetFieldsCounters done [10:22:25]requested_item shift.num is exist - process it [10:22:25]requested_item shift.opened is exist - process it [10:22:25]req_shift_opened [10:22:25]FM_GetShiftState [10:22:25]SAM_PROTO_GetShiftState [10:22:25]wFMCommunicate request_size=4 [10:22:25]MH_SAM_APDU [10:22:25]CAPDU: 80 13 01 00 [10:22:25]Write to MH i2c: E2 08 00 E0 4D 80 13 01 00 00 00 00 00 AA [10:22:25]Write i2c OK [10:22:25]MH_I2C_Read... [10:22:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:25]Read from MH i2c: E2 [10:22:25]MH_I2C_Read... [10:22:25]Read from MH i2c: E2 0E 00 [10:22:25]MH_I2C_Read... [10:22:25]Read from MH i2c: E2 0E 00 E0 4D 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 25 [10:22:25]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:22:25]wFMCommunicate OK [10:22:25]SAM_PROTO_GetShiftState done [10:22:25]FM_GetShiftState done [10:22:25]req_shift_opened done [10:22:25]requested_item shift.open_date is exist - process it [10:22:25]req_shift_open_date [10:22:25]req_shift_open_date done [10:22:25]produce_requested_data done [10:22:25]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111587,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [10:22:25]process_action_free close_receipt [10:22:25]json_value_free [10:22:25]json_value_free done [10:22:25]process_json_proto returns [10:22:25]Send response to host [10:22:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111587,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [10:22:25]free response buf [10:22:25]execute_script done [10:22:25]execute_script returns [10:22:25]free content buf [10:22:25]Sock 9.Close socket [10:22:25]Sock 9.Thread stoped [10:22:28]OFD Sender: No OFD packet to send [10:22:33]OFD Sender: No OFD packet to send [10:22:38]OFD Sender: No OFD packet to send [10:22:43]OFD Sender: No OFD packet to send [10:22:48]OFD Sender: No OFD packet to send [10:22:53]OFD Sender: No OFD packet to send [10:22:58]OFD Sender: No OFD packet to send [10:23:03]OFD Sender: No OFD packet to send [10:23:08]OFD Sender: No OFD packet to send [10:23:13]OFD Sender: No OFD packet to send [10:23:18]OFD Sender: No OFD packet to send [10:23:23]OFD Sender: No OFD packet to send [10:23:28]OFD Sender: No OFD packet to send [10:23:33]OFD Sender: No OFD packet to send [10:23:38]OFD Sender: No OFD packet to send [10:23:43]OFD Sender: No OFD packet to send [10:23:48]OFD Sender: No OFD packet to send [10:23:53]OFD Sender: No OFD packet to send [10:23:58]OFD Sender: No OFD packet to send [10:24:03]OFD Sender: No OFD packet to send [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:28]OFD Sender: No OFD packet to send [10:24:33]OFD Sender: No OFD packet to send [10:24:38]OFD Sender: No OFD packet to send [10:24:43]OFD Sender: No OFD packet to send [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:19]OFD Sender: No OFD packet to send [10:25:24]OFD Sender: No OFD packet to send [10:25:29]OFD Sender: No OFD packet to send [10:25:34]OFD Sender: No OFD packet to send [10:25:39]OFD Sender: No OFD packet to send [10:25:44]OFD Sender: No OFD packet to send [10:25:49]OFD Sender: No OFD packet to send [10:25:54]OFD Sender: No OFD packet to send [10:25:59]OFD Sender: No OFD packet to send [10:26:03]accept exits with 7 [10:26:03]New connection [10:26:03]New thread 3067465060 created [10:26:03]Thread 3067321700 joined [10:26:03]Waiting for new connection... [10:26:03] Sock 7.Parse request [10:26:03]Sock 7.Check first char [10:26:03]Sock 7.First char is OK [10:26:03]request: POST /json_proto HTTP/1.0 [10:26:03]Method: POST [10:26:03]URL: /json_proto [10:26:03]Method is POST - this is cgi request [10:26:03]url: /json_proto [10:26:03]query_string will be loaded in cgi processing [10:26:03]execute_cgi json_proto POST (null) [10:26:03]execute_cgi path=json_proto method=POST [10:26:03]POST find Content-Length [10:26:03]Host: 172.17.59.68:8080 [10:26:03]Content-Length: 677 [10:26:03]Content-Type: application/json [10:26:03] [10:26:03]POST finish read [10:26:03]Found Content-Length = 677 [10:26:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:03]execute_script... [10:26: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)320185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:03]POST & json_proto [10:26:03]process_json_proto [10:26:03]json parsed OK: [10:26:03]protocol is kg_v1.0 [10:26:03]action value=close_receipt [10:26:03]process_action close_receipt [10:26:03]cmd_close_receipt [10:26:03]MH_GetDate [10:26:03]Write to MH i2c: F0 00 00 E1 4D 1D [10:26:03]Write i2c OK [10:26:03]MH_I2C_Read... [10:26:03]Read from MH i2c: F0 [10:26:03]MH_I2C_Read... [10:26:03]Read from MH i2c: F0 09 00 [10:26:03]MH_I2C_Read... [10:26:03]Read from MH i2c: F0 09 00 E1 4D 00 DA 03 74 66 BC EC 60 65 4A [10:26:03]GetLastDocTimeStamp 1718878972 [10:26:03]current date 1718879194 [10:26:03]FM_GetShiftState [10:26:03]SAM_PROTO_GetShiftState [10:26:03]wFMCommunicate request_size=4 [10:26:03]MH_SAM_APDU [10:26:03]CAPDU: 80 13 01 00 [10:26:03]Write to MH i2c: E2 08 00 E2 4D 80 13 01 00 00 00 00 00 AC [10:26:03]Write i2c OK [10:26:03]MH_I2C_Read... [10:26:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:03]Read from MH i2c: E2 [10:26:03]MH_I2C_Read... [10:26:03]Read from MH i2c: E2 0E 00 [10:26:03]MH_I2C_Read... [10:26:03]Read from MH i2c: E2 0E 00 E2 4D 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 27 [10:26:03]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:26:03]wFMCommunicate OK [10:26:03]SAM_PROTO_GetShiftState done [10:26:03]FM_GetShiftState done [10:26:03]opened in 1718847247 [10:26:03]opened+sec_in_day 1718933647 [10:26:03]quantity*price = 50065 [10:26:03]sum+1 = 50067 [10:26:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 38 20.06.2024 10:26 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111588 ФПД: 68308922521502 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T102634&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111588&fm=68308922521502&tin=02508201610067®Number=0000000000092771&sum=50000 [10:26:04]StoreToDocumentArchive [10:26:04]shift 389 fd 111588 [10:26:04]save to /storage/0389/doc_00111588 [10:26:04]save last doc name /storage/0389/doc_00111588 to /storage/kkm_last_doc_name [10:26:04]save OK [10:26:04]Clear old archive folders... [10:26:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:26:04]tlvbuf is 0101D290 [10:26:04]SAM_PROTO_ClearQueue [10:26:04]wFMCommunicate request_size=4 [10:26:04]MH_SAM_APDU [10:26:04]CAPDU: 80 09 00 00 [10:26:04]Write to MH i2c: E2 08 00 EF 4D 80 09 00 00 00 00 00 00 AE [10:26:04]Write i2c OK [10:26:04]MH_I2C_Read... [10:26:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:04]Read from MH i2c: E2 [10:26:04]MH_I2C_Read... [10:26:04]Read from MH i2c: E2 03 00 [10:26:04]MH_I2C_Read... [10:26:04]Read from MH i2c: E2 03 00 EF 4D 00 90 00 B0 [10:26:04]RAPDU: 90 00 [10:26:04]wFMCommunicate OK [10:26:04]SAM_PROTO_ClearQueue done [10:26:04]KKMCreateOFDPacket [10:26:04]OFDProtocolAddRootSTLVToBuf [10:26:04]FM_MakeSignedData [10:26:04]FM_MakeSignedData [10:26:04]SAM_PROTO_SignData [10:26:04]wFMCommunicate request_size=4 [10:26:04]MH_SAM_APDU [10:26:04]CAPDU: 80 0D 01 02 [10:26:04]Write to MH i2c: E2 08 00 F0 4D 80 0D 01 02 00 00 00 00 B6 [10:26:04]Write i2c OK [10:26:04]MH_I2C_Read... [10:26:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:04]Read from MH i2c: E2 [10:26:04]MH_I2C_Read... [10:26:04]Read from MH i2c: E2 03 00 [10:26:04]MH_I2C_Read... [10:26:04]Read from MH i2c: E2 03 00 F0 4D 00 90 00 B1 [10:26:04]RAPDU: 90 00 [10:26:04]wFMCommunicate OK [10:26:04]wFMCommunicate request_size=255 [10:26:04]MH_SAM_APDU [10:26:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 DA 03 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E4 B3 01 00 35 04 06 00 3E [10:26:04]Write to MH i2c: E2 02 01 F1 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 DA 03 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E4 B3 01 00 35 04 06 00 3E 00 00 A3 [10:26:04]Write i2c OK [10:26:04]MH_I2C_Read... [10:26:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:04]Read from MH i2c: E2 [10:26:04]MH_I2C_Read... [10:26:04]Read from MH i2c: E2 03 00 [10:26:04]MH_I2C_Read... [10:26:04]Read from MH i2c: E2 03 00 F1 4D 00 90 00 B2 [10:26:04]RAPDU: 90 00 [10:26:04]wFMCommunicate OK [10:26:04]wFMCommunicate request_size=10 [10:26:04]MH_SAM_APDU [10:26:04]CAPDU: 80 0D 02 02 05 20 69 0F D7 9E [10:26:04]Write to MH i2c: E2 0D 00 F2 4D 80 0D 02 02 05 00 20 69 0F D7 9E 00 00 D0 [10:26:04]Write i2c OK [10:26:04]MH_I2C_Read... [10:26:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:04]Read from MH i2c: E2 [10:26:04]MH_I2C_Read... [10:26:04]Read from MH i2c: E2 03 00 [10:26:04]MH_I2C_Read... [10:26:04]Read from MH i2c: E2 03 00 F2 4D 00 90 00 B3 [10:26:04]RAPDU: 90 00 [10:26:04]wFMCommunicate OK [10:26:04]wFMCommunicate request_size=4 [10:26:04]MH_SAM_APDU [10:26:04]CAPDU: 80 0D 03 02 [10:26:04]Write to MH i2c: E2 08 00 F3 4D 80 0D 03 02 00 00 00 00 BB [10:26:04]Write i2c OK [10:26:04]MH_I2C_Read... [10:26:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:04]Read from MH i2c: E2 [10:26:04]MH_I2C_Read... [10:26:04]Read from MH i2c: E2 0B 00 [10:26:04]MH_I2C_Read... [10:26:04]Read from MH i2c: E2 0B 00 F3 4D 00 57 33 F8 5B 62 11 F6 58 90 00 5A [10:26:04]RAPDU: 57 33 F8 5B 62 11 F6 58 90 00 [10:26:04]wFMCommunicate OK [10:26:04]SAM_PROTO_SignData done [10:26:04]FM_MakeSignedData done [10:26:04]CreateOFDProtocolMessage [10:26:04]wFMCommunicate request_size=4 [10:26:04]MH_SAM_APDU [10:26:04]CAPDU: 80 11 00 00 [10:26:04]Write to MH i2c: E2 08 00 F4 4D 80 11 00 00 00 00 00 00 BB [10:26:04]Write i2c OK [10:26:04]MH_I2C_Read... [10:26:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:04]Read from MH i2c: E2 [10:26:04]MH_I2C_Read... [10:26:04]Read from MH i2c: E2 17 00 [10:26:04]MH_I2C_Read... [10:26:04]Read from MH i2c: E2 17 00 F4 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0D [10:26:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:26:04]wFMCommunicate OK [10:26:04]CreateOFDProtocolMessage done [10:26:04]OFDSenderStorePacket 111588 [10:26:04]StoreOFDPacket docnum=111588 [10:26:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 40 8B 07 01 70 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 DA 03 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E4 B3 01 00 35 04 06 00 3E 20 69 0F D7 9E 57 33 F8 5B 62 11 F6 58 [10:26:04]CheckFolder [10:26:04]dirname=/storage/ofd_packets [10:26:04]CheckFolder done [10:26:04]ProducePacketName [10:26:04]name=ofd_packets/00111588 [10:26:04]NVStorageSaveData ofd_packets/00111588 [10:26:04]File name is /storage/ofd_packets/00111588 [10:26:04]Write 301 bytes [10:26:04]NVStorageSaveData done [10:26:04]OFDSenderStorePacket done [10:26:04]KKMCreateOFDPacket done [10:26:04]NVStorageSaveData kkm_last_timestamp [10:26:04]File name is /storage/kkm_last_timestamp [10:26:04]Write 4 bytes [10:26:04]NVStorageSaveData done [10:26:04]ExternCall_PrintAddStr [10:26:04]wPrintStart [10:26:04]Write to MH i2c: 01 00 00 F5 4D 42 [10:26:04]Write i2c OK [10:26:04]MH_I2C_Read... [10:26:04]Read from MH i2c: 01 [10:26:04]MH_I2C_Read... [10:26:04]Read from MH i2c: 01 07 00 [10:26:04]MH_I2C_Read... [10:26:04]Read from MH i2c: 01 07 00 F5 4D 00 00 00 00 00 FF 0F 57 [10:26:04]RasterBufferAndPrint [10:26:04]line Счет N : (1)320185 [10:26:04]line ИНН: 02508201610067 [10:26:04]line Контрольно-Кассовый Чек [10:26:04]line ПРОДАЖА [10:26:04]line ТРК (МРК, ГНК) : 11 [10:26:04]line Товар: 2710124130 [10:26:04]line Аи-92-К-5 [10:26:04]line 7.540 * 66.40 [10:26:04]line = 500.66 [10:26:04]line НДС 12% НСП 1% [10:26:04]line > о реализуемом товаре [10:26:04]line ОКРУГЛЕНИЕ: -0.66 [10:26:04]line ИТОГО: 500.00 [10:26:04]line Внесено: 500.00 [10:26:04]line СДАЧА: 0.00 [10:26:04]line НСП 1% : 4.43 [10:26:04]line НДС 12% : 53.17 [10:26:04]line Наличными: 500.00 [10:26:04]line Безнал.: 0.00 [10:26:04]line Место: АЗС № 65 "Партнер Нефть" [10:26:04]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:26:04]line СНО: Общий режим [10:26:04]line Чек 38 20.06.2024 10:26 [10:26:04]line Смена: 389 ФФД: 1.0 [10:26:04]line ЗНМ: 0300000198 [10:26:04]line РНМ: 0000000000092771 [10:26:04]line Версия ККМ: 001 [10:26:04]line ФМ: 0000000000875083 [10:26:04]line ФД: 111588 [10:26:04]line ФПД: 68308922521502 [10:26:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T102634&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111588&fm=68308922521502&tin=02508201610067®Number=0000000000092771&sum=50000 [10:26:05]OFD Sender: Processing packet 111588 [packets to send 38, broken 37] [10:26:05]ProducePacketName [10:26:05]name=ofd_packets/00111588 [10:26:05]OFD Sender: To server: pG, [10:26:05]CommunicateWithHost lk.salyk.kg:30040 [10:26:05]ConnectInit lk.salyk.kg [10:26:05]written 0, free lines is 4095 [10:26:05]Connected sock=10 [10:26:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 40 8B 07 01 70 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 DA 03 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E4 B3 01 00 35 04 06 00 3E 20 69 0F D7 9E 57 33 F8 5B 62 11 F6 58 [10:26:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 AF 64 47 00 C5 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 35 30 38 33 10 04 04 00 E4 B3 01 00 F4 03 04 00 27 9B 73 66 B6 04 01 00 00 52 84 FB FC 49 DA 34 AE [10:26:05]CommunicateWithHost err = 0 [10:26:05]CheckOFDResponse [10:26:05]1017 (14) - 77093643461234 [10:26:05]1041 (16) - 0000000000875083 [10:26:05]1040 (4) - 111588 [10:26:05]1012 (4) - 20.06.2024 02:59 [10:26:05]1206 (1) - 0 [10:26:05]OFD Sender: Remove packet 111588 [10:26:05]ProducePacketName [10:26:05]name=ofd_packets/00111588 [10:26:05]NVStorageDeleteData [10:26:05]Write to MH i2c: 01 00 00 20 4E 6E [10:26:05]Write i2c OK [10:26:05]MH_I2C_Read... [10:26:05]Read from MH i2c: 01 [10:26:05]MH_I2C_Read... [10:26:05]Read from MH i2c: 01 07 00 [10:26:05]MH_I2C_Read... [10:26:05]Read from MH i2c: 01 07 00 20 4E 00 00 00 00 00 CD 0C 4E [10:26:05]RasterBufferAndPrint [10:26:05]line [10:26:05]line [10:26:05]line [10:26:05]line [10:26:05]line [10:26:05]written 0, free lines is 3283 [10:26:05]MH_Cut [10:26:05]Write to MH i2c: D1 01 00 27 4E 01 47 [10:26:05]Write i2c OK [10:26:05]MH_I2C_Read... [10:26:05]Read from MH i2c: D1 [10:26:05]MH_I2C_Read... [10:26:05]Read from MH i2c: D1 01 00 [10:26:05]MH_I2C_Read... [10:26:05]Read from MH i2c: D1 01 00 27 4E 00 46 [10:26:05]Write to MH i2c: 01 00 00 28 4E 76 [10:26:05]Write i2c OK [10:26:05]MH_I2C_Read... [10:26:05]OFD Sender: No OFD packet to send [10:26:06]*** Cut start [10:26:06]*** Partial cut [10:26:06]*** CUTSNS_PIN = 1 [10:26:06]*** CUTSNS_PIN = 0 [10:26:06]*** Brake cut motor [10:26:07]Read from MH i2c: 01 [10:26:07]MH_I2C_Read... [10:26:07]*** Stop cut motor [10:26:07]*** Cut end [10:26:07]Read from MH i2c: 01 07 00 [10:26:07]MH_I2C_Read... [10:26:07]Read from MH i2c: 01 07 00 28 4E 00 00 00 00 00 FF 0F 8B [10:26:07]process_action close_receipt done [10:26:07]requested_data is exist [10:26:07]produce_requested_data [10:26:07]requested_item fm.sn is exist - process it [10:26:07]wFMCommunicate request_size=4 [10:26:07]MH_SAM_APDU [10:26:07]CAPDU: 80 11 00 00 [10:26:07]Write to MH i2c: E2 08 00 29 4E 80 11 00 00 00 00 00 00 F1 [10:26:07]Write i2c OK [10:26:07]MH_I2C_Read... [10:26:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:07]Read from MH i2c: E2 [10:26:07]MH_I2C_Read... [10:26:07]Read from MH i2c: E2 17 00 [10:26:07]MH_I2C_Read... [10:26:07]Read from MH i2c: E2 17 00 29 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 43 [10:26:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:26:07]wFMCommunicate OK [10:26:07]requested_item fd.num is exist - process it [10:26:07]SAM_PROTO_GetFieldsCounters [10:26:07]wFMCommunicate request_size=4 [10:26:07]MH_SAM_APDU [10:26:07]CAPDU: 80 13 00 00 [10:26:07]Write to MH i2c: E2 08 00 2A 4E 80 13 00 00 00 00 00 00 F4 [10:26:07]Write i2c OK [10:26:07]MH_I2C_Read... [10:26:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:07]Read from MH i2c: E2 [10:26:07]MH_I2C_Read... [10:26:07]Read from MH i2c: E2 62 00 [10:26:07]MH_I2C_Read... [10:26:07]Read from MH i2c: E2 62 00 2A 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E4 B3 01 00 0E 04 04 00 85 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 A5 [10:26:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E4 B3 01 00 0E 04 04 00 85 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 [10:26:07]wFMCommunicate OK [10:26:07]SAM_PROTO_GetFieldsCounters done [10:26:07]requested_item shift.num is exist - process it [10:26:07]requested_item shift.opened is exist - process it [10:26:07]req_shift_opened [10:26:07]FM_GetShiftState [10:26:07]SAM_PROTO_GetShiftState [10:26:07]wFMCommunicate request_size=4 [10:26:07]MH_SAM_APDU [10:26:07]CAPDU: 80 13 01 00 [10:26:07]Write to MH i2c: E2 08 00 2B 4E 80 13 01 00 00 00 00 00 F6 [10:26:07]Write i2c OK [10:26:07]MH_I2C_Read... [10:26:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:07]Read from MH i2c: E2 [10:26:07]MH_I2C_Read... [10:26:07]Read from MH i2c: E2 0E 00 [10:26:07]MH_I2C_Read... [10:26:07]Read from MH i2c: E2 0E 00 2B 4E 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 71 [10:26:07]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:26:07]wFMCommunicate OK [10:26:07]SAM_PROTO_GetShiftState done [10:26:07]FM_GetShiftState done [10:26:07]req_shift_opened done [10:26:07]requested_item shift.open_date is exist - process it [10:26:07]req_shift_open_date [10:26:07]req_shift_open_date done [10:26:07]produce_requested_data done [10:26:07]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111588,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [10:26:07]process_action_free close_receipt [10:26:07]json_value_free [10:26:07]json_value_free done [10:26:07]process_json_proto returns [10:26:07]Send response to host [10:26:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111588,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [10:26:07]free response buf [10:26:07]execute_script done [10:26:07]execute_script returns [10:26:07]free content buf [10:26:07]Sock 7.Close socket [10:26:07]Sock 7.Thread stoped [10:26:10]OFD Sender: No OFD packet to send [10:26:15]OFD Sender: No OFD packet to send [10:26:20]OFD Sender: No OFD packet to send [10:26:26]OFD Sender: No OFD packet to send [10:26:31]OFD Sender: No OFD packet to send [10:26:36]OFD Sender: No OFD packet to send [10:26:41]OFD Sender: No OFD packet to send [10:26:46]OFD Sender: No OFD packet to send [10:26:51]OFD Sender: No OFD packet to send [10:26:56]OFD Sender: No OFD packet to send [10:27:01]OFD Sender: No OFD packet to send [10:27:06]OFD Sender: No OFD packet to send [10:27:11]OFD Sender: No OFD packet to send [10:27:16]OFD Sender: No OFD packet to send [10:27:21]OFD Sender: No OFD packet to send [10:27:26]OFD Sender: No OFD packet to send [10:27:31]OFD Sender: No OFD packet to send [10:27:36]OFD Sender: No OFD packet to send [10:27:37]accept exits with 9 [10:27:37]New connection [10:27:37]New thread 3067321700 created [10:27:37]Thread 3067465060 joined [10:27:37]Waiting for new connection... [10:27:37] Sock 9.Parse request [10:27:37]Sock 9.Check first char [10:27:37]Sock 9.First char is OK [10:27:37]request: POST /json_proto HTTP/1.0 [10:27:37]Method: POST [10:27:37]URL: /json_proto [10:27:37]Method is POST - this is cgi request [10:27:37]url: /json_proto [10:27:37]query_string will be loaded in cgi processing [10:27:37]execute_cgi json_proto POST (null) [10:27:37]execute_cgi path=json_proto method=POST [10:27:37]POST find Content-Length [10:27:37]Host: 172.17.59.68:8080 [10:27:37]Content-Length: 682 [10:27:37]Content-Type: application/json [10:27:37] [10:27:37]POST finish read [10:27:37]Found Content-Length = 682 [10:27:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:37]execute_script... [10:27: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)320186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:37]POST & json_proto [10:27:37]process_json_proto [10:27:37]json parsed OK: [10:27:37]protocol is kg_v1.0 [10:27:37]action value=close_receipt [10:27:37]process_action close_receipt [10:27:37]cmd_close_receipt [10:27:37]MH_GetDate [10:27:37]Write to MH i2c: F0 00 00 2C 4E 69 [10:27:37]Write i2c OK [10:27:37]MH_I2C_Read... [10:27:37]Read from MH i2c: F0 [10:27:37]MH_I2C_Read... [10:27:37]Read from MH i2c: F0 09 00 [10:27:37]MH_I2C_Read... [10:27:37]Read from MH i2c: F0 09 00 2C 4E 00 38 04 74 66 BC EC 60 65 F5 [10:27:37]GetLastDocTimeStamp 1718879194 [10:27:37]current date 1718879288 [10:27:37]FM_GetShiftState [10:27:37]SAM_PROTO_GetShiftState [10:27:37]wFMCommunicate request_size=4 [10:27:37]MH_SAM_APDU [10:27:37]CAPDU: 80 13 01 00 [10:27:37]Write to MH i2c: E2 08 00 2D 4E 80 13 01 00 00 00 00 00 F8 [10:27:37]Write i2c OK [10:27:37]MH_I2C_Read... [10:27:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:37]Read from MH i2c: E2 [10:27:37]MH_I2C_Read... [10:27:37]Read from MH i2c: E2 0E 00 [10:27:37]MH_I2C_Read... [10:27:37]Read from MH i2c: E2 0E 00 2D 4E 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 73 [10:27:37]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:27:37]wFMCommunicate OK [10:27:37]SAM_PROTO_GetShiftState done [10:27:37]FM_GetShiftState done [10:27:37]opened in 1718847247 [10:27:37]opened+sec_in_day 1718933647 [10:27:37]quantity*price = 100064 [10:27:37]sum+1 = 100066 [10:27:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 39 20.06.2024 10:28 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111589 ФПД: 166299860079434 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T102808&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111589&fm=166299860079434&tin=02508201610067®Number=0000000000092771&sum=100000 [10:27:38]StoreToDocumentArchive [10:27:38]shift 389 fd 111589 [10:27:38]save to /storage/0389/doc_00111589 [10:27:38]save last doc name /storage/0389/doc_00111589 to /storage/kkm_last_doc_name [10:27:38]save OK [10:27:38]Clear old archive folders... [10:27:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:27:38]tlvbuf is 00EC1740 [10:27:38]SAM_PROTO_ClearQueue [10:27:38]wFMCommunicate request_size=4 [10:27:38]MH_SAM_APDU [10:27:38]CAPDU: 80 09 00 00 [10:27:38]Write to MH i2c: E2 08 00 3A 4E 80 09 00 00 00 00 00 00 FA [10:27:38]Write i2c OK [10:27:38]MH_I2C_Read... [10:27:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:38]Read from MH i2c: E2 [10:27:38]MH_I2C_Read... [10:27:38]Read from MH i2c: E2 03 00 [10:27:38]MH_I2C_Read... [10:27:38]Read from MH i2c: E2 03 00 3A 4E 00 90 00 FC [10:27:38]RAPDU: 90 00 [10:27:38]wFMCommunicate OK [10:27:38]SAM_PROTO_ClearQueue done [10:27:38]KKMCreateOFDPacket [10:27:38]OFDProtocolAddRootSTLVToBuf [10:27:38]FM_MakeSignedData [10:27:38]FM_MakeSignedData [10:27:38]SAM_PROTO_SignData [10:27:38]wFMCommunicate request_size=4 [10:27:38]MH_SAM_APDU [10:27:38]CAPDU: 80 0D 01 02 [10:27:38]Write to MH i2c: E2 08 00 3B 4E 80 0D 01 02 00 00 00 00 02 [10:27:38]Write i2c OK [10:27:38]MH_I2C_Read... [10:27:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:38]Read from MH i2c: E2 [10:27:38]MH_I2C_Read... [10:27:38]Read from MH i2c: E2 03 00 [10:27:38]MH_I2C_Read... [10:27:38]Read from MH i2c: E2 03 00 3B 4E 00 90 00 FD [10:27:38]RAPDU: 90 00 [10:27:38]wFMCommunicate OK [10:27:38]wFMCommunicate request_size=255 [10:27:38]MH_SAM_APDU [10:27: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 38 04 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E5 B3 01 00 35 04 06 00 97 [10:27:38]Write to MH i2c: E2 02 01 3C 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 38 04 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E5 B3 01 00 35 04 06 00 97 00 00 F9 [10:27:38]Write i2c OK [10:27:38]MH_I2C_Read... [10:27:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:38]Read from MH i2c: E2 [10:27:38]MH_I2C_Read... [10:27:38]Read from MH i2c: E2 03 00 [10:27:38]MH_I2C_Read... [10:27:38]Read from MH i2c: E2 03 00 3C 4E 00 90 00 FE [10:27:38]RAPDU: 90 00 [10:27:38]wFMCommunicate OK [10:27:38]wFMCommunicate request_size=10 [10:27:38]MH_SAM_APDU [10:27:38]CAPDU: 80 0D 02 02 05 3F B4 16 13 4A [10:27:38]Write to MH i2c: E2 0D 00 3D 4E 80 0D 02 02 05 00 3F B4 16 13 4A 00 00 75 [10:27:38]Write i2c OK [10:27:38]MH_I2C_Read... [10:27:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:38]Read from MH i2c: E2 [10:27:38]MH_I2C_Read... [10:27:38]Read from MH i2c: E2 03 00 [10:27:38]MH_I2C_Read... [10:27:38]Read from MH i2c: E2 03 00 3D 4E 00 90 00 FF [10:27:38]RAPDU: 90 00 [10:27:38]wFMCommunicate OK [10:27:38]wFMCommunicate request_size=4 [10:27:38]MH_SAM_APDU [10:27:38]CAPDU: 80 0D 03 02 [10:27:38]Write to MH i2c: E2 08 00 3E 4E 80 0D 03 02 00 00 00 00 07 [10:27:38]Write i2c OK [10:27:38]MH_I2C_Read... [10:27:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:38]Read from MH i2c: E2 [10:27:38]MH_I2C_Read... [10:27:38]Read from MH i2c: E2 0B 00 [10:27:38]MH_I2C_Read... [10:27:38]Read from MH i2c: E2 0B 00 3E 4E 00 AE BE F8 99 ED A0 F1 E0 90 00 63 [10:27:38]RAPDU: AE BE F8 99 ED A0 F1 E0 90 00 [10:27:38]wFMCommunicate OK [10:27:38]SAM_PROTO_SignData done [10:27:38]FM_MakeSignedData done [10:27:38]CreateOFDProtocolMessage [10:27:38]wFMCommunicate request_size=4 [10:27:38]MH_SAM_APDU [10:27:38]CAPDU: 80 11 00 00 [10:27:38]Write to MH i2c: E2 08 00 3F 4E 80 11 00 00 00 00 00 00 07 [10:27:38]Write i2c OK [10:27:38]MH_I2C_Read... [10:27:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:38]Read from MH i2c: E2 [10:27:38]MH_I2C_Read... [10:27:38]Read from MH i2c: E2 17 00 [10:27:38]MH_I2C_Read... [10:27:38]Read from MH i2c: E2 17 00 3F 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 59 [10:27:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:27:38]wFMCommunicate OK [10:27:38]CreateOFDProtocolMessage done [10:27:38]OFDSenderStorePacket 111589 [10:27:38]StoreOFDPacket docnum=111589 [10:27:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 79 78 07 01 95 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 38 04 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E5 B3 01 00 35 04 06 00 97 3F B4 16 13 4A AE BE F8 99 ED A0 F1 E0 [10:27:38]CheckFolder [10:27:38]dirname=/storage/ofd_packets [10:27:38]CheckFolder done [10:27:38]ProducePacketName [10:27:38]name=ofd_packets/00111589 [10:27:38]NVStorageSaveData ofd_packets/00111589 [10:27:38]File name is /storage/ofd_packets/00111589 [10:27:38]Write 301 bytes [10:27:38]NVStorageSaveData done [10:27:38]OFDSenderStorePacket done [10:27:38]KKMCreateOFDPacket done [10:27:38]NVStorageSaveData kkm_last_timestamp [10:27:38]File name is /storage/kkm_last_timestamp [10:27:38]Write 4 bytes [10:27:38]NVStorageSaveData done [10:27:38]ExternCall_PrintAddStr [10:27:38]wPrintStart [10:27:38]Write to MH i2c: 01 00 00 40 4E 8E [10:27:38]Write i2c OK [10:27:38]MH_I2C_Read... [10:27:38]Read from MH i2c: 01 [10:27:38]MH_I2C_Read... [10:27:38]Read from MH i2c: 01 07 00 [10:27:38]MH_I2C_Read... [10:27:38]Read from MH i2c: 01 07 00 40 4E 00 00 00 00 00 FF 0F A3 [10:27:38]RasterBufferAndPrint [10:27:38]line Счет N : (1)320186 [10:27:38]line ИНН: 02508201610067 [10:27:38]line Контрольно-Кассовый Чек [10:27:38]line ПРОДАЖА [10:27:38]line ТРК (МРК, ГНК) : 11 [10:27:38]line Товар: 2710124130 [10:27:38]line Аи-92-К-5 [10:27:38]line 15.070 * 66.40 [10:27:38]line = 1000.65 [10:27:38]line НДС 12% НСП 1% [10:27:38]line > о реализуемом товаре [10:27:38]line ОКРУГЛЕНИЕ: -0.65 [10:27:38]line ИТОГО: 1000.00 [10:27:38]line Внесено: 1000.00 [10:27:38]line СДАЧА: 0.00 [10:27:38]line НСП 1% : 8.85 [10:27:38]line НДС 12% : 106.26 [10:27:38]line Наличными: 1000.00 [10:27:38]line Безнал.: 0.00 [10:27:38]line Место: АЗС № 65 "Партнер Нефть" [10:27:38]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:27:38]line СНО: Общий режим [10:27:38]line Чек 39 20.06.2024 10:28 [10:27:38]line Смена: 389 ФФД: 1.0 [10:27:38]line ЗНМ: 0300000198 [10:27:38]line РНМ: 0000000000092771 [10:27:38]line Версия ККМ: 001 [10:27:38]line ФМ: 0000000000875083 [10:27:38]line ФД: 111589 [10:27:38]line ФПД: 166299860079434 [10:27:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T102808&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111589&fm=166299860079434&tin=02508201610067®Number=0000000000092771&sum=100000 [10:27:39]OFD Sender: Processing packet 111589 [packets to send 38, broken 37] [10:27:39]ProducePacketName [10:27:39]name=ofd_packets/00111589 [10:27:39]OFD Sender: To server: pG, [10:27:39]CommunicateWithHost lk.salyk.kg:30040 [10:27:39]ConnectInit lk.salyk.kg [10:27:39]written 0, free lines is 4095 [10:27:39]Connected sock=10 [10:27:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 79 78 07 01 95 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 38 04 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E5 B3 01 00 35 04 06 00 97 3F B4 16 13 4A AE BE F8 99 ED A0 F1 E0 [10:27:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 BD EA 47 00 69 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E5 B3 01 00 F4 03 04 00 85 9B 73 66 B6 04 01 00 00 D6 92 CA 2F 12 ED 33 93 [10:27:39]CommunicateWithHost err = 0 [10:27:39]CheckOFDResponse [10:27:39]1017 (14) - 77093643461234 [10:27:39]1041 (16) - 0000000000875083 [10:27:39]1040 (4) - 111589 [10:27:39]1012 (4) - 20.06.2024 03:01 [10:27:39]1206 (1) - 0 [10:27:39]OFD Sender: Remove packet 111589 [10:27:39]ProducePacketName [10:27:39]name=ofd_packets/00111589 [10:27:39]NVStorageDeleteData [10:27:39]Write to MH i2c: 01 00 00 6B 4E B9 [10:27:39]Write i2c OK [10:27:39]MH_I2C_Read... [10:27:39]Read from MH i2c: 01 [10:27:39]MH_I2C_Read... [10:27:39]Read from MH i2c: 01 07 00 [10:27:39]MH_I2C_Read... [10:27:39]Read from MH i2c: 01 07 00 6B 4E 00 00 00 00 00 DD 0C A9 [10:27:39]RasterBufferAndPrint [10:27:39]line [10:27:39]line [10:27:39]line [10:27:39]line [10:27:39]line [10:27:39]written 0, free lines is 3300 [10:27:39]MH_Cut [10:27:39]Write to MH i2c: D1 01 00 72 4E 01 92 [10:27:39]Write i2c OK [10:27:39]MH_I2C_Read... [10:27:39]Read from MH i2c: D1 [10:27:39]MH_I2C_Read... [10:27:39]Read from MH i2c: D1 01 00 [10:27:39]MH_I2C_Read... [10:27:39]Read from MH i2c: D1 01 00 72 4E 00 91 [10:27:39]Write to MH i2c: 01 00 00 73 4E C1 [10:27:39]Write i2c OK [10:27:39]MH_I2C_Read... [10:27:40]OFD Sender: No OFD packet to send [10:27:40]*** Cut start [10:27:40]*** Partial cut [10:27:40]*** CUTSNS_PIN = 1 [10:27:40]*** CUTSNS_PIN = 0 [10:27:40]*** Brake cut motor [10:27:41]Read from MH i2c: 01 [10:27:41]MH_I2C_Read... [10:27:41]*** Stop cut motor [10:27:41]*** Cut end [10:27:41]Read from MH i2c: 01 07 00 [10:27:41]MH_I2C_Read... [10:27:41]Read from MH i2c: 01 07 00 73 4E 00 00 00 00 00 FF 0F D6 [10:27:41]process_action close_receipt done [10:27:41]requested_data is exist [10:27:41]produce_requested_data [10:27:41]requested_item fm.sn is exist - process it [10:27:41]wFMCommunicate request_size=4 [10:27:41]MH_SAM_APDU [10:27:41]CAPDU: 80 11 00 00 [10:27:41]Write to MH i2c: E2 08 00 74 4E 80 11 00 00 00 00 00 00 3C [10:27:41]Write i2c OK [10:27:41]MH_I2C_Read... [10:27:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:41]Read from MH i2c: E2 [10:27:41]MH_I2C_Read... [10:27:41]Read from MH i2c: E2 17 00 [10:27:41]MH_I2C_Read... [10:27:41]Read from MH i2c: E2 17 00 74 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8E [10:27:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:27:41]wFMCommunicate OK [10:27:41]requested_item fd.num is exist - process it [10:27:41]SAM_PROTO_GetFieldsCounters [10:27:41]wFMCommunicate request_size=4 [10:27:41]MH_SAM_APDU [10:27:41]CAPDU: 80 13 00 00 [10:27:41]Write to MH i2c: E2 08 00 75 4E 80 13 00 00 00 00 00 00 3F [10:27:41]Write i2c OK [10:27:41]MH_I2C_Read... [10:27:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:41]Read from MH i2c: E2 [10:27:41]MH_I2C_Read... [10:27:41]Read from MH i2c: E2 62 00 [10:27:41]MH_I2C_Read... [10:27:41]Read from MH i2c: E2 62 00 75 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E5 B3 01 00 0E 04 04 00 85 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 F4 [10:27:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E5 B3 01 00 0E 04 04 00 85 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 [10:27:41]wFMCommunicate OK [10:27:41]SAM_PROTO_GetFieldsCounters done [10:27:41]requested_item shift.num is exist - process it [10:27:41]requested_item shift.opened is exist - process it [10:27:41]req_shift_opened [10:27:41]FM_GetShiftState [10:27:41]SAM_PROTO_GetShiftState [10:27:41]wFMCommunicate request_size=4 [10:27:41]MH_SAM_APDU [10:27:41]CAPDU: 80 13 01 00 [10:27:41]Write to MH i2c: E2 08 00 76 4E 80 13 01 00 00 00 00 00 41 [10:27:41]Write i2c OK [10:27:41]MH_I2C_Read... [10:27:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:41]Read from MH i2c: E2 [10:27:41]MH_I2C_Read... [10:27:41]Read from MH i2c: E2 0E 00 [10:27:41]MH_I2C_Read... [10:27:41]Read from MH i2c: E2 0E 00 76 4E 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 BC [10:27:41]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:27:41]wFMCommunicate OK [10:27:41]SAM_PROTO_GetShiftState done [10:27:41]FM_GetShiftState done [10:27:41]req_shift_opened done [10:27:41]requested_item shift.open_date is exist - process it [10:27:41]req_shift_open_date [10:27:41]req_shift_open_date done [10:27:41]produce_requested_data done [10:27:41]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111589,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [10:27:41]process_action_free close_receipt [10:27:41]json_value_free [10:27:41]json_value_free done [10:27:41]process_json_proto returns [10:27:41]Send response to host [10:27:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111589,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [10:27:41]free response buf [10:27:41]execute_script done [10:27:41]execute_script returns [10:27:41]free content buf [10:27:41]Sock 9.Close socket [10:27:41]Sock 9.Thread stoped [10:27:45]OFD Sender: No OFD packet to send [10:27:50]OFD Sender: No OFD packet to send [10:27:55]OFD Sender: No OFD packet to send [10:28:00]OFD Sender: No OFD packet to send [10:28:05]OFD Sender: No OFD packet to send [10:28:10]OFD Sender: No OFD packet to send [10:28:15]OFD Sender: No OFD packet to send [10:28:20]OFD Sender: No OFD packet to send [10:28:25]OFD Sender: No OFD packet to send [10:28:30]OFD Sender: No OFD packet to send [10:28:35]OFD Sender: No OFD packet to send [10:28:38]accept exits with 7 [10:28:38]New connection [10:28:38]New thread 3067465060 created [10:28:38]Thread 3067321700 joined [10:28:38]Waiting for new connection... [10:28:38] Sock 7.Parse request [10:28:38]Sock 7.Check first char [10:28:38]Sock 7.First char is OK [10:28:38]request: POST /json_proto HTTP/1.0 [10:28:38]Method: POST [10:28:38]URL: /json_proto [10:28:38]Method is POST - this is cgi request [10:28:38]url: /json_proto [10:28:38]query_string will be loaded in cgi processing [10:28:38]execute_cgi json_proto POST (null) [10:28:38]execute_cgi path=json_proto method=POST [10:28:38]POST find Content-Length [10:28:38]Host: 172.17.59.68:8080 [10:28:38]Content-Length: 805 [10:28:38]Content-Type: application/json [10:28:38] [10:28:38]POST finish read [10:28:38]Found Content-Length = 805 [10:28:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:38]execute_script... [10:28: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)320187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:38]POST & json_proto [10:28:38]process_json_proto [10:28:38]json parsed OK: [10:28:38]protocol is kg_v1.0 [10:28:38]action value=close_receipt [10:28:38]process_action close_receipt [10:28:38]cmd_close_receipt [10:28:38]MH_GetDate [10:28:38]Write to MH i2c: F0 00 00 77 4E B4 [10:28:38]Write i2c OK [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: F0 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: F0 09 00 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: F0 09 00 77 4E 00 75 04 74 66 BC EC 60 65 7D [10:28:38]GetLastDocTimeStamp 1718879288 [10:28:38]current date 1718879349 [10:28:38]FM_GetShiftState [10:28:38]SAM_PROTO_GetShiftState [10:28:38]wFMCommunicate request_size=4 [10:28:38]MH_SAM_APDU [10:28:38]CAPDU: 80 13 01 00 [10:28:38]Write to MH i2c: E2 08 00 78 4E 80 13 01 00 00 00 00 00 43 [10:28:38]Write i2c OK [10:28:38]MH_I2C_Read... [10:28:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:38]Read from MH i2c: E2 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: E2 0E 00 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: E2 0E 00 78 4E 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 BE [10:28:38]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:28:38]wFMCommunicate OK [10:28:38]SAM_PROTO_GetShiftState done [10:28:38]FM_GetShiftState done [10:28:38]opened in 1718847247 [10:28:38]opened+sec_in_day 1718933647 [10:28:38]quantity*price = 60025 [10:28:38]sum+1 = 60027 [10:28:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.26 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 0.00 Безнал.: 600.26 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 40 20.06.2024 10:29 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111590 ФПД: 29279298424963 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T102909&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111590&fm=29279298424963&tin=02508201610067®Number=0000000000092771&sum=60026 [10:28:39]StoreToDocumentArchive [10:28:39]shift 389 fd 111590 [10:28:39]save to /storage/0389/doc_00111590 [10:28:39]save last doc name /storage/0389/doc_00111590 to /storage/kkm_last_doc_name [10:28:39]save OK [10:28:39]Clear old archive folders... [10:28:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:28:39]tlvbuf is B6FD5230 [10:28:39]SAM_PROTO_ClearQueue [10:28:39]wFMCommunicate request_size=4 [10:28:39]MH_SAM_APDU [10:28:39]CAPDU: 80 09 00 00 [10:28:39]Write to MH i2c: E2 08 00 85 4E 80 09 00 00 00 00 00 00 45 [10:28:39]Write i2c OK [10:28:39]MH_I2C_Read... [10:28:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:40]Read from MH i2c: E2 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 03 00 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 03 00 85 4E 00 90 00 47 [10:28:40]RAPDU: 90 00 [10:28:40]wFMCommunicate OK [10:28:40]SAM_PROTO_ClearQueue done [10:28:40]KKMCreateOFDPacket [10:28:40]OFDProtocolAddRootSTLVToBuf [10:28:40]FM_MakeSignedData [10:28:40]FM_MakeSignedData [10:28:40]SAM_PROTO_SignData [10:28:40]wFMCommunicate request_size=4 [10:28:40]MH_SAM_APDU [10:28:40]CAPDU: 80 0D 01 02 [10:28:40]Write to MH i2c: E2 08 00 86 4E 80 0D 01 02 00 00 00 00 4D [10:28:40]Write i2c OK [10:28:40]MH_I2C_Read... [10:28:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:40]Read from MH i2c: E2 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 03 00 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 03 00 86 4E 00 90 00 48 [10:28:40]RAPDU: 90 00 [10:28:40]wFMCommunicate OK [10:28:40]wFMCommunicate request_size=255 [10:28:40]MH_SAM_APDU [10:28: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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 75 04 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E6 B3 01 00 35 04 06 00 1A [10:28:40]Write to MH i2c: E2 02 01 87 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 75 04 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E6 B3 01 00 35 04 06 00 1A 00 00 C7 [10:28:40]Write i2c OK [10:28:40]MH_I2C_Read... [10:28:40]OFD Sender: No OFD packet to send [10:28:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:40]Read from MH i2c: E2 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 03 00 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 03 00 87 4E 00 90 00 49 [10:28:40]RAPDU: 90 00 [10:28:40]wFMCommunicate OK [10:28:40]wFMCommunicate request_size=10 [10:28:40]MH_SAM_APDU [10:28:40]CAPDU: 80 0D 02 02 05 A1 1E 2E 90 83 [10:28:40]Write to MH i2c: E2 0D 00 88 4E 80 0D 02 02 05 00 A1 1E 2E 90 83 00 00 5A [10:28:40]Write i2c OK [10:28:40]MH_I2C_Read... [10:28:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:40]Read from MH i2c: E2 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 03 00 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 03 00 88 4E 00 90 00 4A [10:28:40]RAPDU: 90 00 [10:28:40]wFMCommunicate OK [10:28:40]wFMCommunicate request_size=4 [10:28:40]MH_SAM_APDU [10:28:40]CAPDU: 80 0D 03 02 [10:28:40]Write to MH i2c: E2 08 00 89 4E 80 0D 03 02 00 00 00 00 52 [10:28:40]Write i2c OK [10:28:40]MH_I2C_Read... [10:28:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:40]Read from MH i2c: E2 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 0B 00 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 0B 00 89 4E 00 A4 69 53 3D AF E8 A2 27 90 00 50 [10:28:40]RAPDU: A4 69 53 3D AF E8 A2 27 90 00 [10:28:40]wFMCommunicate OK [10:28:40]SAM_PROTO_SignData done [10:28:40]FM_MakeSignedData done [10:28:40]CreateOFDProtocolMessage [10:28:40]wFMCommunicate request_size=4 [10:28:40]MH_SAM_APDU [10:28:40]CAPDU: 80 11 00 00 [10:28:40]Write to MH i2c: E2 08 00 8A 4E 80 11 00 00 00 00 00 00 52 [10:28:40]Write i2c OK [10:28:40]MH_I2C_Read... [10:28:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:40]Read from MH i2c: E2 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 17 00 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 17 00 8A 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A4 [10:28:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:28:40]wFMCommunicate OK [10:28:40]CreateOFDProtocolMessage done [10:28:40]OFDSenderStorePacket 111590 [10:28:40]StoreOFDPacket docnum=111590 [10:28:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DD 9E 07 01 72 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 75 04 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E6 B3 01 00 35 04 06 00 1A A1 1E 2E 90 83 A4 69 53 3D AF E8 A2 27 [10:28:40]CheckFolder [10:28:40]dirname=/storage/ofd_packets [10:28:40]CheckFolder done [10:28:40]ProducePacketName [10:28:40]name=ofd_packets/00111590 [10:28:40]NVStorageSaveData ofd_packets/00111590 [10:28:40]File name is /storage/ofd_packets/00111590 [10:28:40]Write 301 bytes [10:28:40]NVStorageSaveData done [10:28:40]OFDSenderStorePacket done [10:28:40]KKMCreateOFDPacket done [10:28:40]NVStorageSaveData kkm_last_timestamp [10:28:40]File name is /storage/kkm_last_timestamp [10:28:40]Write 4 bytes [10:28:40]NVStorageSaveData done [10:28:40]ExternCall_PrintAddStr [10:28:40]wPrintStart [10:28:40]Write to MH i2c: 01 00 00 8B 4E D9 [10:28:40]Write i2c OK [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: 01 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: 01 07 00 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: 01 07 00 8B 4E 00 00 00 00 00 FF 0F EE [10:28:40]RasterBufferAndPrint [10:28:40]line Счет N : (1)320187 [10:28:40]line ИНН: 02508201610067 [10:28:40]line Контрольно-Кассовый Чек [10:28:40]line ПРОДАЖА [10:28:40]line ТРК (МРК, ГНК) : 11 [10:28:40]line Товар: 2710124130 [10:28:40]line Аи-92-К-5 [10:28:40]line 9.040 * 66.40 [10:28:40]line = 600.26 [10:28:40]line НДС 12% НСП 1% [10:28:40]line > о реализуемом товаре [10:28:40]line ИТОГО: 600.26 [10:28:40]line НСП 1% : 5.31 [10:28:40]line НДС 12% : 63.74 [10:28:40]line Наличными: 0.00 [10:28:40]line Безнал.: 600.26 [10:28:40]line Место: АЗС № 65 "Партнер Нефть" [10:28:40]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:28:40]line СНО: Общий режим [10:28:40]line Чек 40 20.06.2024 10:29 [10:28:40]line Смена: 389 ФФД: 1.0 [10:28:40]line ЗНМ: 0300000198 [10:28:40]line РНМ: 0000000000092771 [10:28:40]line Версия ККМ: 001 [10:28:40]line Платежная система: О! деньги [10:28:40]line ФМ: 0000000000875083 [10:28:40]line ФД: 111590 [10:28:40]line ФПД: 29279298424963 [10:28:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T102909&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111590&fm=29279298424963&tin=02508201610067®Number=0000000000092771&sum=60026 [10:28:40]OFD Sender: Processing packet 111590 [packets to send 38, broken 37] [10:28:40]ProducePacketName [10:28:40]name=ofd_packets/00111590 [10:28:40]OFD Sender: To server: pG, [10:28:40]CommunicateWithHost lk.salyk.kg:30040 [10:28:40]ConnectInit lk.salyk.kg [10:28:40]written 0, free lines is 4095 [10:28:40]Connected sock=10 [10:28:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DD 9E 07 01 72 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 75 04 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E6 B3 01 00 35 04 06 00 1A A1 1E 2E 90 83 A4 69 53 3D AF E8 A2 27 [10:28:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 DE EC 47 00 BB 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E6 B3 01 00 F4 03 04 00 C3 9B 73 66 B6 04 01 00 00 19 EC 9B E2 59 B8 22 0F [10:28:41]CommunicateWithHost err = 0 [10:28:41]CheckOFDResponse [10:28:41]1017 (14) - 77093643461234 [10:28:41]1041 (16) - 0000000000875083 [10:28:41]1040 (4) - 111590 [10:28:41]1012 (4) - 20.06.2024 03:02 [10:28:41]1206 (1) - 0 [10:28:41]OFD Sender: Remove packet 111590 [10:28:41]ProducePacketName [10:28:41]name=ofd_packets/00111590 [10:28:41]NVStorageDeleteData [10:28:41]Write to MH i2c: 01 00 00 B5 4E 03 [10:28:41]Write i2c OK [10:28:41]MH_I2C_Read... [10:28:41]Read from MH i2c: 01 [10:28:41]MH_I2C_Read... [10:28:41]Read from MH i2c: 01 07 00 [10:28:41]MH_I2C_Read... [10:28:41]Read from MH i2c: 01 07 00 B5 4E 00 00 00 00 00 DF 0C F5 [10:28:41]RasterBufferAndPrint [10:28:41]line [10:28:41]line [10:28:41]line [10:28:41]line [10:28:41]line [10:28:41]written 0, free lines is 3302 [10:28:41]MH_Cut [10:28:41]Write to MH i2c: D1 01 00 BC 4E 01 DC [10:28:41]Write i2c OK [10:28:41]MH_I2C_Read... [10:28:41]Read from MH i2c: D1 [10:28:41]MH_I2C_Read... [10:28:41]Read from MH i2c: D1 01 00 [10:28:41]MH_I2C_Read... [10:28:41]Read from MH i2c: D1 01 00 BC 4E 00 DB [10:28:41]Write to MH i2c: 01 00 00 BD 4E 0B [10:28:41]Write i2c OK [10:28:41]MH_I2C_Read... [10:28:41]OFD Sender: No OFD packet to send [10:28:42]*** Cut start [10:28:42]*** Partial cut [10:28:42]*** CUTSNS_PIN = 1 [10:28:42]*** CUTSNS_PIN = 0 [10:28:42]*** Brake cut motor [10:28:42]Read from MH i2c: 01 [10:28:42]MH_I2C_Read... [10:28:42]*** Stop cut motor [10:28:42]*** Cut end [10:28:42]Read from MH i2c: 01 07 00 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: 01 07 00 BD 4E 00 00 00 00 00 FF 0F 20 [10:28:42]process_action close_receipt done [10:28:42]requested_data is exist [10:28:42]produce_requested_data [10:28:42]requested_item fm.sn is exist - process it [10:28:42]wFMCommunicate request_size=4 [10:28:42]MH_SAM_APDU [10:28:42]CAPDU: 80 11 00 00 [10:28:42]Write to MH i2c: E2 08 00 BE 4E 80 11 00 00 00 00 00 00 86 [10:28:42]Write i2c OK [10:28:42]MH_I2C_Read... [10:28:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:42]Read from MH i2c: E2 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 17 00 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 17 00 BE 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D8 [10:28:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:28:42]wFMCommunicate OK [10:28:42]requested_item fd.num is exist - process it [10:28:42]SAM_PROTO_GetFieldsCounters [10:28:42]wFMCommunicate request_size=4 [10:28:42]MH_SAM_APDU [10:28:42]CAPDU: 80 13 00 00 [10:28:42]Write to MH i2c: E2 08 00 BF 4E 80 13 00 00 00 00 00 00 89 [10:28:42]Write i2c OK [10:28:42]MH_I2C_Read... [10:28:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:42]Read from MH i2c: E2 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 62 00 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 62 00 BF 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E6 B3 01 00 0E 04 04 00 85 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 42 [10:28:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E6 B3 01 00 0E 04 04 00 85 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 [10:28:42]wFMCommunicate OK [10:28:42]SAM_PROTO_GetFieldsCounters done [10:28:42]requested_item shift.num is exist - process it [10:28:42]requested_item shift.opened is exist - process it [10:28:42]req_shift_opened [10:28:42]FM_GetShiftState [10:28:42]SAM_PROTO_GetShiftState [10:28:42]wFMCommunicate request_size=4 [10:28:42]MH_SAM_APDU [10:28:42]CAPDU: 80 13 01 00 [10:28:42]Write to MH i2c: E2 08 00 C0 4E 80 13 01 00 00 00 00 00 8B [10:28:42]Write i2c OK [10:28:42]MH_I2C_Read... [10:28:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:42]Read from MH i2c: E2 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 0E 00 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 0E 00 C0 4E 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 06 [10:28:42]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:28:42]wFMCommunicate OK [10:28:42]SAM_PROTO_GetShiftState done [10:28:42]FM_GetShiftState done [10:28:42]req_shift_opened done [10:28:42]requested_item shift.open_date is exist - process it [10:28:42]req_shift_open_date [10:28:42]req_shift_open_date done [10:28:42]produce_requested_data done [10:28:42]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111590,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [10:28:42]process_action_free close_receipt [10:28:42]json_value_free [10:28:42]json_value_free done [10:28:42]process_json_proto returns [10:28:42]Send response to host [10:28:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111590,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [10:28:42]free response buf [10:28:42]execute_script done [10:28:42]execute_script returns [10:28:42]free content buf [10:28:42]Sock 7.Close socket [10:28:42]Sock 7.Thread stoped [10:28:46]OFD Sender: No OFD packet to send [10:28:51]OFD Sender: No OFD packet to send [10:28:56]OFD Sender: No OFD packet to send [10:29:01]OFD Sender: No OFD packet to send [10:29:06]OFD Sender: No OFD packet to send [10:29:11]OFD Sender: No OFD packet to send [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:36]OFD Sender: No OFD packet to send [10:29:41]OFD Sender: No OFD packet to send [10:29:46]OFD Sender: No OFD packet to send [10:29:51]OFD Sender: No OFD packet to send [10:29:56]OFD Sender: No OFD packet to send [10:30:01]OFD Sender: No OFD packet to send [10:30:06]OFD Sender: No OFD packet to send [10:30:09]accept exits with 9 [10:30:09]New connection [10:30:09]New thread 3067321700 created [10:30:09]Thread 3067465060 joined [10:30:09]Waiting for new connection... [10:30:09] Sock 9.Parse request [10:30:09]Sock 9.Check first char [10:30:09]Sock 9.First char is OK [10:30:09]request: POST /json_proto HTTP/1.0 [10:30:09]Method: POST [10:30:09]URL: /json_proto [10:30:09]Method is POST - this is cgi request [10:30:09]url: /json_proto [10:30:09]query_string will be loaded in cgi processing [10:30:09]execute_cgi json_proto POST (null) [10:30:09]execute_cgi path=json_proto method=POST [10:30:09]POST find Content-Length [10:30:09]Host: 172.17.59.68:8080 [10:30:09]Content-Length: 677 [10:30:09]Content-Type: application/json [10:30:09] [10:30:09]POST finish read [10:30:09]Found Content-Length = 677 [10:30:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:09]execute_script... [10:30: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)320188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:09]POST & json_proto [10:30:09]process_json_proto [10:30:09]json parsed OK: [10:30:09]protocol is kg_v1.0 [10:30:09]action value=close_receipt [10:30:09]process_action close_receipt [10:30:09]cmd_close_receipt [10:30:09]MH_GetDate [10:30:09]Write to MH i2c: F0 00 00 C1 4E FE [10:30:09]Write i2c OK [10:30:09]MH_I2C_Read... [10:30:09]Read from MH i2c: F0 [10:30:09]MH_I2C_Read... [10:30:09]Read from MH i2c: F0 09 00 [10:30:09]MH_I2C_Read... [10:30:09]Read from MH i2c: F0 09 00 C1 4E 00 D0 04 74 66 BC EC 60 65 22 [10:30:09]GetLastDocTimeStamp 1718879349 [10:30:09]current date 1718879440 [10:30:09]FM_GetShiftState [10:30:09]SAM_PROTO_GetShiftState [10:30:09]wFMCommunicate request_size=4 [10:30:09]MH_SAM_APDU [10:30:09]CAPDU: 80 13 01 00 [10:30:09]Write to MH i2c: E2 08 00 C2 4E 80 13 01 00 00 00 00 00 8D [10:30:09]Write i2c OK [10:30:09]MH_I2C_Read... [10:30:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:09]Read from MH i2c: E2 [10:30:09]MH_I2C_Read... [10:30:09]Read from MH i2c: E2 0E 00 [10:30:09]MH_I2C_Read... [10:30:09]Read from MH i2c: E2 0E 00 C2 4E 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 08 [10:30:09]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:30:09]wFMCommunicate OK [10:30:09]SAM_PROTO_GetShiftState done [10:30:09]FM_GetShiftState done [10:30:09]opened in 1718847247 [10:30:09]opened+sec_in_day 1718933647 [10:30:09]quantity*price = 50065 [10:30:09]sum+1 = 50067 [10:30:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 41 20.06.2024 10:30 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111591 ФПД: 30936882162544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T103040&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111591&fm=30936882162544&tin=02508201610067®Number=0000000000092771&sum=50000 [10:30:10]StoreToDocumentArchive [10:30:10]shift 389 fd 111591 [10:30:10]save to /storage/0389/doc_00111591 [10:30:10]save last doc name /storage/0389/doc_00111591 to /storage/kkm_last_doc_name [10:30:10]save OK [10:30:10]Clear old archive folders... [10:30:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:30:10]tlvbuf is 01019380 [10:30:10]SAM_PROTO_ClearQueue [10:30:10]wFMCommunicate request_size=4 [10:30:10]MH_SAM_APDU [10:30:10]CAPDU: 80 09 00 00 [10:30:10]Write to MH i2c: E2 08 00 CF 4E 80 09 00 00 00 00 00 00 8F [10:30:10]Write i2c OK [10:30:10]MH_I2C_Read... [10:30:10]Read from MH i2c: E2 [10:30:10]MH_I2C_Read... [10:30:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:10]Read from MH i2c: E2 03 00 [10:30:10]MH_I2C_Read... [10:30:10]Read from MH i2c: E2 03 00 CF 4E 00 90 00 91 [10:30:10]RAPDU: 90 00 [10:30:10]wFMCommunicate OK [10:30:10]SAM_PROTO_ClearQueue done [10:30:10]KKMCreateOFDPacket [10:30:10]OFDProtocolAddRootSTLVToBuf [10:30:10]FM_MakeSignedData [10:30:10]FM_MakeSignedData [10:30:10]SAM_PROTO_SignData [10:30:10]wFMCommunicate request_size=4 [10:30:10]MH_SAM_APDU [10:30:10]CAPDU: 80 0D 01 02 [10:30:10]Write to MH i2c: E2 08 00 D0 4E 80 0D 01 02 00 00 00 00 97 [10:30:10]Write i2c OK [10:30:10]MH_I2C_Read... [10:30:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:10]Read from MH i2c: E2 [10:30:10]MH_I2C_Read... [10:30:10]Read from MH i2c: E2 03 00 [10:30:10]MH_I2C_Read... [10:30:10]Read from MH i2c: E2 03 00 D0 4E 00 90 00 92 [10:30:10]RAPDU: 90 00 [10:30:10]wFMCommunicate OK [10:30:10]wFMCommunicate request_size=255 [10:30:10]MH_SAM_APDU [10:30: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 D0 04 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E7 B3 01 00 35 04 06 00 1C [10:30:10]Write to MH i2c: E2 02 01 D1 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 D0 04 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E7 B3 01 00 35 04 06 00 1C 00 00 5F [10:30:10]Write i2c OK [10:30:10]MH_I2C_Read... [10:30:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:11]Read from MH i2c: E2 [10:30:11]MH_I2C_Read... [10:30:11]Read from MH i2c: E2 03 00 [10:30:11]MH_I2C_Read... [10:30:11]Read from MH i2c: E2 03 00 D1 4E 00 90 00 93 [10:30:11]RAPDU: 90 00 [10:30:11]wFMCommunicate OK [10:30:11]wFMCommunicate request_size=10 [10:30:11]MH_SAM_APDU [10:30:11]CAPDU: 80 0D 02 02 05 23 0D DF 2B 70 [10:30:11]Write to MH i2c: E2 0D 00 D2 4E 80 0D 02 02 05 00 23 0D DF 2B 70 00 00 4E [10:30:11]Write i2c OK [10:30:11]MH_I2C_Read... [10:30:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:11]Read from MH i2c: E2 [10:30:11]MH_I2C_Read... [10:30:11]Read from MH i2c: E2 03 00 [10:30:11]MH_I2C_Read... [10:30:11]Read from MH i2c: E2 03 00 D2 4E 00 90 00 94 [10:30:11]RAPDU: 90 00 [10:30:11]wFMCommunicate OK [10:30:11]wFMCommunicate request_size=4 [10:30:11]MH_SAM_APDU [10:30:11]CAPDU: 80 0D 03 02 [10:30:11]Write to MH i2c: E2 08 00 D3 4E 80 0D 03 02 00 00 00 00 9C [10:30:11]Write i2c OK [10:30:11]MH_I2C_Read... [10:30:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:11]Read from MH i2c: E2 [10:30:11]MH_I2C_Read... [10:30:11]Read from MH i2c: E2 0B 00 [10:30:11]MH_I2C_Read... [10:30:11]Read from MH i2c: E2 0B 00 D3 4E 00 72 3F E7 31 9B 5C 0C 59 90 00 C2 [10:30:11]RAPDU: 72 3F E7 31 9B 5C 0C 59 90 00 [10:30:11]wFMCommunicate OK [10:30:11]SAM_PROTO_SignData done [10:30:11]FM_MakeSignedData done [10:30:11]CreateOFDProtocolMessage [10:30:11]wFMCommunicate request_size=4 [10:30:11]MH_SAM_APDU [10:30:11]CAPDU: 80 11 00 00 [10:30:11]Write to MH i2c: E2 08 00 D4 4E 80 11 00 00 00 00 00 00 9C [10:30:11]Write i2c OK [10:30:11]MH_I2C_Read... [10:30:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:11]Read from MH i2c: E2 [10:30:11]MH_I2C_Read... [10:30:11]Read from MH i2c: E2 17 00 [10:30:11]MH_I2C_Read... [10:30:11]Read from MH i2c: E2 17 00 D4 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EE [10:30:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:30:11]wFMCommunicate OK [10:30:11]CreateOFDProtocolMessage done [10:30:11]OFDSenderStorePacket 111591 [10:30:11]StoreOFDPacket docnum=111591 [10:30:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B4 6E 07 01 E1 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 D0 04 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E7 B3 01 00 35 04 06 00 1C 23 0D DF 2B 70 72 3F E7 31 9B 5C 0C 59 [10:30:11]CheckFolder [10:30:11]dirname=/storage/ofd_packets [10:30:11]CheckFolder done [10:30:11]ProducePacketName [10:30:11]name=ofd_packets/00111591 [10:30:11]NVStorageSaveData ofd_packets/00111591 [10:30:11]File name is /storage/ofd_packets/00111591 [10:30:11]Write 301 bytes [10:30:11]NVStorageSaveData done [10:30:11]OFDSenderStorePacket done [10:30:11]KKMCreateOFDPacket done [10:30:11]NVStorageSaveData kkm_last_timestamp [10:30:11]File name is /storage/kkm_last_timestamp [10:30:11]Write 4 bytes [10:30:11]NVStorageSaveData done [10:30:11]ExternCall_PrintAddStr [10:30:11]wPrintStart [10:30:11]Write to MH i2c: 01 00 00 D5 4E 23 [10:30:11]Write i2c OK [10:30:11]MH_I2C_Read... [10:30:11]Read from MH i2c: 01 [10:30:11]MH_I2C_Read... [10:30:11]Read from MH i2c: 01 07 00 [10:30:11]MH_I2C_Read... [10:30:11]Read from MH i2c: 01 07 00 D5 4E 00 00 00 00 00 FF 0F 38 [10:30:11]RasterBufferAndPrint [10:30:11]line Счет N : (1)320188 [10:30:11]line ИНН: 02508201610067 [10:30:11]line Контрольно-Кассовый Чек [10:30:11]line ПРОДАЖА [10:30:11]line ТРК (МРК, ГНК) : 11 [10:30:11]line Товар: 2710124130 [10:30:11]line Аи-92-К-5 [10:30:11]line 7.540 * 66.40 [10:30:11]line = 500.66 [10:30:11]line НДС 12% НСП 1% [10:30:11]line > о реализуемом товаре [10:30:11]line ОКРУГЛЕНИЕ: -0.66 [10:30:11]line ИТОГО: 500.00 [10:30:11]line Внесено: 500.00 [10:30:11]line СДАЧА: 0.00 [10:30:11]line НСП 1% : 4.43 [10:30:11]line НДС 12% : 53.17 [10:30:11]line Наличными: 500.00 [10:30:11]line Безнал.: 0.00 [10:30:11]line Место: АЗС № 65 "Партнер Нефть" [10:30:11]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:30:11]line СНО: Общий режим [10:30:11]line Чек 41 20.06.2024 10:30 [10:30:11]line Смена: 389 ФФД: 1.0 [10:30:11]line ЗНМ: 0300000198 [10:30:11]line РНМ: 0000000000092771 [10:30:11]line Версия ККМ: 001 [10:30:11]line ФМ: 0000000000875083 [10:30:11]line ФД: 111591 [10:30:11]line ФПД: 30936882162544 [10:30:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T103040&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111591&fm=30936882162544&tin=02508201610067®Number=0000000000092771&sum=50000 [10:30:11]OFD Sender: Processing packet 111591 [packets to send 38, broken 37] [10:30:11]ProducePacketName [10:30:11]name=ofd_packets/00111591 [10:30:11]OFD Sender: To server: pG, [10:30:11]CommunicateWithHost lk.salyk.kg:30040 [10:30:11]ConnectInit lk.salyk.kg [10:30:11]written 0, free lines is 4095 [10:30:11]Connected sock=10 [10:30:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B4 6E 07 01 E1 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 D0 04 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E7 B3 01 00 35 04 06 00 1C 23 0D DF 2B 70 72 3F E7 31 9B 5C 0C 59 [10:30:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 84 C8 47 00 A5 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E7 B3 01 00 F4 03 04 00 1E 9C 73 66 B6 04 01 00 00 39 4F A7 2B 44 A3 14 03 [10:30:12]CommunicateWithHost err = 0 [10:30:12]CheckOFDResponse [10:30:12]1017 (14) - 77093643461234 [10:30:12]1041 (16) - 0000000000875083 [10:30:12]1040 (4) - 111591 [10:30:12]1012 (4) - 20.06.2024 03:03 [10:30:12]1206 (1) - 0 [10:30:12]OFD Sender: Remove packet 111591 [10:30:12]ProducePacketName [10:30:12]name=ofd_packets/00111591 [10:30:12]NVStorageDeleteData [10:30:12]Write to MH i2c: 01 00 00 00 4F 4F [10:30:12]Write i2c OK [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: 01 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: 01 07 00 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: 01 07 00 00 4F 00 00 00 00 00 C6 0C 28 [10:30:12]RasterBufferAndPrint [10:30:12]line [10:30:12]line [10:30:12]line [10:30:12]line [10:30:12]line [10:30:12]written 0, free lines is 3276 [10:30:12]MH_Cut [10:30:12]Write to MH i2c: D1 01 00 07 4F 01 28 [10:30:12]Write i2c OK [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: D1 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: D1 01 00 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: D1 01 00 07 4F 00 27 [10:30:12]Write to MH i2c: 01 00 00 08 4F 57 [10:30:12]Write i2c OK [10:30:12]MH_I2C_Read... [10:30:12]OFD Sender: No OFD packet to send [10:30:12]*** Cut start [10:30:12]*** Partial cut [10:30:12]*** CUTSNS_PIN = 1 [10:30:13]*** CUTSNS_PIN = 0 [10:30:13]*** Brake cut motor [10:30:13]Read from MH i2c: 01 [10:30:13]MH_I2C_Read... [10:30:13]*** Stop cut motor [10:30:13]*** Cut end [10:30:13]Read from MH i2c: 01 07 00 [10:30:13]MH_I2C_Read... [10:30:13]Read from MH i2c: 01 07 00 08 4F 00 00 00 00 00 FF 0F 6C [10:30:13]process_action close_receipt done [10:30:13]requested_data is exist [10:30:13]produce_requested_data [10:30:13]requested_item fm.sn is exist - process it [10:30:13]wFMCommunicate request_size=4 [10:30:13]MH_SAM_APDU [10:30:13]CAPDU: 80 11 00 00 [10:30:13]Write to MH i2c: E2 08 00 09 4F 80 11 00 00 00 00 00 00 D2 [10:30:13]Write i2c OK [10:30:13]MH_I2C_Read... [10:30:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:13]Read from MH i2c: E2 [10:30:13]MH_I2C_Read... [10:30:13]Read from MH i2c: E2 17 00 [10:30:13]MH_I2C_Read... [10:30:13]Read from MH i2c: E2 17 00 09 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 24 [10:30:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:30:13]wFMCommunicate OK [10:30:13]requested_item fd.num is exist - process it [10:30:13]SAM_PROTO_GetFieldsCounters [10:30:13]wFMCommunicate request_size=4 [10:30:13]MH_SAM_APDU [10:30:13]CAPDU: 80 13 00 00 [10:30:13]Write to MH i2c: E2 08 00 0A 4F 80 13 00 00 00 00 00 00 D5 [10:30:13]Write i2c OK [10:30:13]MH_I2C_Read... [10:30:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:13]Read from MH i2c: E2 [10:30:13]MH_I2C_Read... [10:30:13]Read from MH i2c: E2 62 00 [10:30:13]MH_I2C_Read... [10:30:13]Read from MH i2c: E2 62 00 0A 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E7 B3 01 00 0E 04 04 00 85 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 92 [10:30:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E7 B3 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:30:13]wFMCommunicate OK [10:30:13]SAM_PROTO_GetFieldsCounters done [10:30:13]requested_item shift.num is exist - process it [10:30:13]requested_item shift.opened is exist - process it [10:30:13]req_shift_opened [10:30:13]FM_GetShiftState [10:30:13]SAM_PROTO_GetShiftState [10:30:13]wFMCommunicate request_size=4 [10:30:13]MH_SAM_APDU [10:30:13]CAPDU: 80 13 01 00 [10:30:13]Write to MH i2c: E2 08 00 0B 4F 80 13 01 00 00 00 00 00 D7 [10:30:13]Write i2c OK [10:30:13]MH_I2C_Read... [10:30:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:13]Read from MH i2c: E2 [10:30:13]MH_I2C_Read... [10:30:13]Read from MH i2c: E2 0E 00 [10:30:13]MH_I2C_Read... [10:30:13]Read from MH i2c: E2 0E 00 0B 4F 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 52 [10:30:13]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:30:13]wFMCommunicate OK [10:30:13]SAM_PROTO_GetShiftState done [10:30:13]FM_GetShiftState done [10:30:13]req_shift_opened done [10:30:13]requested_item shift.open_date is exist - process it [10:30:13]req_shift_open_date [10:30:13]req_shift_open_date done [10:30:13]produce_requested_data done [10:30:13]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111591,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [10:30:13]process_action_free close_receipt [10:30:13]json_value_free [10:30:13]json_value_free done [10:30:13]process_json_proto returns [10:30:13]Send response to host [10:30:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111591,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [10:30:13]free response buf [10:30:13]execute_script done [10:30:13]execute_script returns [10:30:13]free content buf [10:30:13]Sock 9.Close socket [10:30:13]Sock 9.Thread stoped [10:30:17]OFD Sender: No OFD packet to send [10:30:22]OFD Sender: No OFD packet to send [10:30:27]OFD Sender: No OFD packet to send [10:30:32]OFD Sender: No OFD packet to send [10:30:37]OFD Sender: No OFD packet to send [10:30:42]OFD Sender: No OFD packet to send [10:30:47]OFD Sender: No OFD packet to send [10:30:52]OFD Sender: No OFD packet to send [10:30:57]OFD Sender: No OFD packet to send [10:31:02]OFD Sender: No OFD packet to send [10:31:07]OFD Sender: No OFD packet to send [10:31:12]OFD Sender: No OFD packet to send [10:31:17]OFD Sender: No OFD packet to send [10:31:22]OFD Sender: No OFD packet to send [10:31:27]OFD Sender: No OFD packet to send [10:31:32]OFD Sender: No OFD packet to send [10:31:37]OFD Sender: No OFD packet to send [10:31:42]OFD Sender: No OFD packet to send [10:31:47]OFD Sender: No OFD packet to send [10:31:52]OFD Sender: No OFD packet to send [10:31:57]OFD Sender: No OFD packet to send [10:32:02]OFD Sender: No OFD packet to send [10:32:07]OFD Sender: No OFD packet to send [10:32:11]accept exits with 7 [10:32:11]New connection [10:32:11]New thread 3067465060 created [10:32:11]Thread 3067321700 joined [10:32:11]Waiting for new connection... [10:32:11] Sock 7.Parse request [10:32:11]Sock 7.Check first char [10:32:11]Sock 7.First char is OK [10:32:11]request: POST /json_proto HTTP/1.0 [10:32:11]Method: POST [10:32:11]URL: /json_proto [10:32:11]Method is POST - this is cgi request [10:32:11]url: /json_proto [10:32:11]query_string will be loaded in cgi processing [10:32:11]execute_cgi json_proto POST (null) [10:32:11]execute_cgi path=json_proto method=POST [10:32:11]POST find Content-Length [10:32:11]Host: 172.17.59.68:8080 [10:32:11]Content-Length: 679 [10:32:11]Content-Type: application/json [10:32:11] [10:32:11]POST finish read [10:32:11]Found Content-Length = 679 [10:32:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 20.580, "sum" : 1500.28, "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:32:11]execute_script... [10: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)320189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 20.580, "sum" : 1500.28, "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:32:11]POST & json_proto [10:32:11]process_json_proto [10:32:11]json parsed OK: [10:32:11]protocol is kg_v1.0 [10:32:11]action value=close_receipt [10:32:11]process_action close_receipt [10:32:11]cmd_close_receipt [10:32:11]MH_GetDate [10:32:11]Write to MH i2c: F0 00 00 0C 4F 4A [10:32:11]Write i2c OK [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: F0 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: F0 09 00 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: F0 09 00 0C 4F 00 4A 05 74 66 BC EC 60 65 E9 [10:32:11]GetLastDocTimeStamp 1718879440 [10:32:11]current date 1718879562 [10:32:11]FM_GetShiftState [10:32:11]SAM_PROTO_GetShiftState [10:32:11]wFMCommunicate request_size=4 [10:32:11]MH_SAM_APDU [10:32:11]CAPDU: 80 13 01 00 [10:32:11]Write to MH i2c: E2 08 00 0D 4F 80 13 01 00 00 00 00 00 D9 [10:32:11]Write i2c OK [10:32:11]MH_I2C_Read... [10:32:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:11]Read from MH i2c: E2 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: E2 0E 00 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: E2 0E 00 0D 4F 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 54 [10:32:11]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:32:11]wFMCommunicate OK [10:32:11]SAM_PROTO_GetShiftState done [10:32:11]FM_GetShiftState done [10:32:11]opened in 1718847247 [10:32:11]opened+sec_in_day 1718933647 [10:32:11]quantity*price = 150028 [10:32:11]sum+1 = 150029 [10:32:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 42 20.06.2024 10:32 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111592 ФПД: 177134223233604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T103242&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111592&fm=177134223233604&tin=02508201610067®Number=0000000000092771&sum=150000 [10:32:12]StoreToDocumentArchive [10:32:12]shift 389 fd 111592 [10:32:12]save to /storage/0389/doc_00111592 [10:32:12]save last doc name /storage/0389/doc_00111592 to /storage/kkm_last_doc_name [10:32:12]save OK [10:32:12]Clear old archive folders... [10:32:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:32:12]tlvbuf is 00F50070 [10:32:12]SAM_PROTO_ClearQueue [10:32:12]wFMCommunicate request_size=4 [10:32:12]MH_SAM_APDU [10:32:12]CAPDU: 80 09 00 00 [10:32:12]Write to MH i2c: E2 08 00 1A 4F 80 09 00 00 00 00 00 00 DB [10:32:12]Write i2c OK [10:32:12]MH_I2C_Read... [10:32:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:12]Read from MH i2c: E2 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 03 00 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 03 00 1A 4F 00 90 00 DD [10:32:12]RAPDU: 90 00 [10:32:12]wFMCommunicate OK [10:32:12]SAM_PROTO_ClearQueue done [10:32:12]KKMCreateOFDPacket [10:32:12]OFDProtocolAddRootSTLVToBuf [10:32:12]FM_MakeSignedData [10:32:12]FM_MakeSignedData [10:32:12]SAM_PROTO_SignData [10:32:12]wFMCommunicate request_size=4 [10:32:12]MH_SAM_APDU [10:32:12]CAPDU: 80 0D 01 02 [10:32:12]Write to MH i2c: E2 08 00 1B 4F 80 0D 01 02 00 00 00 00 E3 [10:32:12]Write i2c OK [10:32:12]MH_I2C_Read... [10:32:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:12]Read from MH i2c: E2 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 03 00 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 03 00 1B 4F 00 90 00 DE [10:32:12]RAPDU: 90 00 [10:32:12]wFMCommunicate OK [10:32:12]wFMCommunicate request_size=255 [10:32:12]MH_SAM_APDU [10:32:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 3C 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 2A 00 00 00 F4 03 04 00 4A 05 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E8 B3 01 00 35 04 06 00 A1 1A 46 74 [10:32:12]Write to MH i2c: E2 02 01 1C 4F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 3C 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 2A 00 00 00 F4 03 04 00 4A 05 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E8 B3 01 00 35 04 06 00 A1 1A 46 74 00 00 F1 [10:32:12]Write i2c OK [10:32:12]MH_I2C_Read... [10:32:12]OFD Sender: No OFD packet to send [10:32:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:12]Read from MH i2c: E2 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 03 00 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 03 00 1C 4F 00 90 00 DF [10:32:12]RAPDU: 90 00 [10:32:12]wFMCommunicate OK [10:32:12]wFMCommunicate request_size=7 [10:32:12]MH_SAM_APDU [10:32:12]CAPDU: 80 0D 02 02 02 12 44 [10:32:12]Write to MH i2c: E2 0A 00 1D 4F 80 0D 02 02 02 00 12 44 00 00 40 [10:32:12]Write i2c OK [10:32:12]MH_I2C_Read... [10:32:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:12]Read from MH i2c: E2 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 03 00 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 03 00 1D 4F 00 90 00 E0 [10:32:12]RAPDU: 90 00 [10:32:12]wFMCommunicate OK [10:32:12]wFMCommunicate request_size=4 [10:32:12]MH_SAM_APDU [10:32:12]CAPDU: 80 0D 03 02 [10:32:12]Write to MH i2c: E2 08 00 1E 4F 80 0D 03 02 00 00 00 00 E8 [10:32:12]Write i2c OK [10:32:12]MH_I2C_Read... [10:32:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:12]Read from MH i2c: E2 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 0B 00 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 0B 00 1E 4F 00 F6 AB 45 61 95 DA 1F 20 90 00 DE [10:32:12]RAPDU: F6 AB 45 61 95 DA 1F 20 90 00 [10:32:12]wFMCommunicate OK [10:32:12]SAM_PROTO_SignData done [10:32:12]FM_MakeSignedData done [10:32:12]CreateOFDProtocolMessage [10:32:12]wFMCommunicate request_size=4 [10:32:12]MH_SAM_APDU [10:32:12]CAPDU: 80 11 00 00 [10:32:12]Write to MH i2c: E2 08 00 1F 4F 80 11 00 00 00 00 00 00 E8 [10:32:12]Write i2c OK [10:32:12]MH_I2C_Read... [10:32:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:12]Read from MH i2c: E2 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 17 00 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 17 00 1F 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3A [10:32:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:32:12]wFMCommunicate OK [10:32:12]CreateOFDProtocolMessage done [10:32:12]OFDSenderStorePacket 111592 [10:32:12]StoreOFDPacket docnum=111592 [10:32:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 EC 77 04 01 4B 9A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 3C 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 2A 00 00 00 F4 03 04 00 4A 05 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E8 B3 01 00 35 04 06 00 A1 1A 46 74 12 44 F6 AB 45 61 95 DA 1F 20 [10:32:12]CheckFolder [10:32:12]dirname=/storage/ofd_packets [10:32:12]CheckFolder done [10:32:12]ProducePacketName [10:32:12]name=ofd_packets/00111592 [10:32:12]NVStorageSaveData ofd_packets/00111592 [10:32:12]File name is /storage/ofd_packets/00111592 [10:32:12]Write 298 bytes [10:32:12]NVStorageSaveData done [10:32:12]OFDSenderStorePacket done [10:32:12]KKMCreateOFDPacket done [10:32:12]NVStorageSaveData kkm_last_timestamp [10:32:12]File name is /storage/kkm_last_timestamp [10:32:12]Write 4 bytes [10:32:12]NVStorageSaveData done [10:32:12]ExternCall_PrintAddStr [10:32:12]wPrintStart [10:32:12]Write to MH i2c: 01 00 00 20 4F 6F [10:32:12]Write i2c OK [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: 01 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: 01 07 00 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: 01 07 00 20 4F 00 00 00 00 00 FF 0F 84 [10:32:12]RasterBufferAndPrint [10:32:12]line Счет N : (1)320189 [10:32:12]line ИНН: 02508201610067 [10:32:12]line Контрольно-Кассовый Чек [10:32:12]line ПРОДАЖА [10:32:12]line ТРК (МРК, ГНК) : 22 [10:32:12]line Товар: 2710194210 [10:32:12]line ДТ-К-5 [10:32:12]line 20.580 * 72.90 [10:32:12]line = 1500.28 [10:32:12]line НДС 12% НСП 1% [10:32:12]line > о реализуемом товаре [10:32:12]line ОКРУГЛЕНИЕ: -0.28 [10:32:12]line ИТОГО: 1500.00 [10:32:12]line Внесено: 1500.00 [10:32:12]line СДАЧА: 0.00 [10:32:12]line НСП 1% : 13.28 [10:32:12]line НДС 12% : 159.32 [10:32:12]line Наличными: 1500.00 [10:32:12]line Безнал.: 0.00 [10:32:12]line Место: АЗС № 65 "Партнер Нефть" [10:32:12]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:32:12]line СНО: Общий режим [10:32:12]line Чек 42 20.06.2024 10:32 [10:32:12]line Смена: 389 ФФД: 1.0 [10:32:12]line ЗНМ: 0300000198 [10:32:12]line РНМ: 0000000000092771 [10:32:12]line Версия ККМ: 001 [10:32:12]line ФМ: 0000000000875083 [10:32:12]line ФД: 111592 [10:32:12]line ФПД: 177134223233604 [10:32:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T103242&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111592&fm=177134223233604&tin=02508201610067®Number=0000000000092771&sum=150000 [10:32:13]OFD Sender: Processing packet 111592 [packets to send 38, broken 37] [10:32:13]ProducePacketName [10:32:13]name=ofd_packets/00111592 [10:32:13]OFD Sender: To server: pG, [10:32:13]CommunicateWithHost lk.salyk.kg:30040 [10:32:13]ConnectInit lk.salyk.kg [10:32:13]written 0, free lines is 4095 [10:32:13]Connected sock=10 [10: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 35 30 38 33 0C 01 00 00 EC 77 04 01 4B 9A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 3C 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 2A 00 00 00 F4 03 04 00 4A 05 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E8 B3 01 00 35 04 06 00 A1 1A 46 74 12 44 F6 AB 45 61 95 DA 1F 20 [10:32:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 30 A7 47 00 49 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E8 B3 01 00 F4 03 04 00 97 9C 73 66 B6 04 01 00 00 60 44 76 2C 7D 69 BA CD [10:32:13]CommunicateWithHost err = 0 [10:32:13]CheckOFDResponse [10:32:13]1017 (14) - 77093643461234 [10:32:13]1041 (16) - 0000000000875083 [10:32:13]1040 (4) - 111592 [10:32:13]1012 (4) - 20.06.2024 03:05 [10:32:13]1206 (1) - 0 [10:32:13]OFD Sender: Remove packet 111592 [10:32:13]ProducePacketName [10:32:13]name=ofd_packets/00111592 [10:32:13]NVStorageDeleteData [10:32:13]Write to MH i2c: 01 00 00 4B 4F 9A [10:32:13]Write i2c OK [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: 01 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: 01 07 00 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: 01 07 00 4B 4F 00 00 00 00 00 D6 0C 83 [10:32:13]RasterBufferAndPrint [10:32:13]line [10:32:13]line [10:32:13]line [10:32:13]line [10:32:13]line [10:32:13]written 0, free lines is 3293 [10:32:13]MH_Cut [10:32:13]Write to MH i2c: D1 01 00 52 4F 01 73 [10:32:13]Write i2c OK [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: D1 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: D1 01 00 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: D1 01 00 52 4F 00 72 [10:32:13]Write to MH i2c: 01 00 00 53 4F A2 [10:32:13]Write i2c OK [10:32:13]MH_I2C_Read... [10:32:14]OFD Sender: No OFD packet to send [10:32:14]*** Cut start [10:32:14]*** Partial cut [10:32:14]*** CUTSNS_PIN = 1 [10:32:14]*** CUTSNS_PIN = 0 [10:32:14]*** Brake cut motor [10:32:15]Read from MH i2c: 01 [10:32:15]MH_I2C_Read... [10:32:15]*** Stop cut motor [10:32:15]*** Cut end [10:32:15]Read from MH i2c: 01 07 00 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: 01 07 00 53 4F 00 00 00 00 00 FF 0F B7 [10:32:15]process_action close_receipt done [10:32:15]requested_data is exist [10:32:15]produce_requested_data [10:32:15]requested_item fm.sn is exist - process it [10:32:15]wFMCommunicate request_size=4 [10:32:15]MH_SAM_APDU [10:32:15]CAPDU: 80 11 00 00 [10:32:15]Write to MH i2c: E2 08 00 54 4F 80 11 00 00 00 00 00 00 1D [10:32:15]Write i2c OK [10:32:15]MH_I2C_Read... [10:32:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:15]Read from MH i2c: E2 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: E2 17 00 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: E2 17 00 54 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6F [10:32:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:32:15]wFMCommunicate OK [10:32:15]requested_item fd.num is exist - process it [10:32:15]SAM_PROTO_GetFieldsCounters [10:32:15]wFMCommunicate request_size=4 [10:32:15]MH_SAM_APDU [10:32:15]CAPDU: 80 13 00 00 [10:32:15]Write to MH i2c: E2 08 00 55 4F 80 13 00 00 00 00 00 00 20 [10:32:15]Write i2c OK [10:32:15]MH_I2C_Read... [10:32:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:15]Read from MH i2c: E2 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: E2 62 00 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: E2 62 00 55 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E8 B3 01 00 0E 04 04 00 85 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 E1 [10: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E8 B3 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:15]wFMCommunicate OK [10:32:15]SAM_PROTO_GetFieldsCounters done [10:32:15]requested_item shift.num is exist - process it [10:32:15]requested_item shift.opened is exist - process it [10:32:15]req_shift_opened [10:32:15]FM_GetShiftState [10:32:15]SAM_PROTO_GetShiftState [10:32:15]wFMCommunicate request_size=4 [10:32:15]MH_SAM_APDU [10:32:15]CAPDU: 80 13 01 00 [10:32:15]Write to MH i2c: E2 08 00 56 4F 80 13 01 00 00 00 00 00 22 [10:32:15]Write i2c OK [10:32:15]MH_I2C_Read... [10:32:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:15]Read from MH i2c: E2 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: E2 0E 00 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: E2 0E 00 56 4F 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 9D [10:32:15]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:32:15]wFMCommunicate OK [10:32:15]SAM_PROTO_GetShiftState done [10:32:15]FM_GetShiftState done [10:32:15]req_shift_opened done [10:32:15]requested_item shift.open_date is exist - process it [10:32:15]req_shift_open_date [10:32:15]req_shift_open_date done [10:32:15]produce_requested_data done [10:32:15]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111592,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [10:32:15]process_action_free close_receipt [10:32:15]json_value_free [10:32:15]json_value_free done [10:32:15]process_json_proto returns [10:32:15]Send response to host [10:32:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111592,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [10:32:15]free response buf [10:32:15]execute_script done [10:32:15]execute_script returns [10:32:15]free content buf [10:32:15]Sock 7.Close socket [10:32:15]Sock 7.Thread stoped [10:32:19]OFD Sender: No OFD packet to send [10:32:24]OFD Sender: No OFD packet to send [10:32:29]OFD Sender: No OFD packet to send [10:32:34]OFD Sender: No OFD packet to send [10:32:39]OFD Sender: No OFD packet to send [10:32:44]OFD Sender: No OFD packet to send [10:32:49]OFD Sender: No OFD packet to send [10:32:54]OFD Sender: No OFD packet to send [10:32:59]OFD Sender: No OFD packet to send [10:33:04]OFD Sender: No OFD packet to send [10:33:09]OFD Sender: No OFD packet to send [10:33:14]OFD Sender: No OFD packet to send [10:33:19]OFD Sender: No OFD packet to send [10:33:24]OFD Sender: No OFD packet to send [10:33:29]OFD Sender: No OFD packet to send [10:33:34]OFD Sender: No OFD packet to send [10:33:39]OFD Sender: No OFD packet to send [10:33:44]OFD Sender: No OFD packet to send [10:33:49]OFD Sender: No OFD packet to send [10:33:54]OFD Sender: No OFD packet to send [10:33:59]OFD Sender: No OFD packet to send [10:34:04]OFD Sender: No OFD packet to send [10:34:09]OFD Sender: No OFD packet to send [10:34:14]OFD Sender: No OFD packet to send [10:34:19]OFD Sender: No OFD packet to send [10:34:24]OFD Sender: No OFD packet to send [10:34:29]OFD Sender: No OFD packet to send [10:34:34]OFD Sender: No OFD packet to send [10:34:39]OFD Sender: No OFD packet to send [10:34:44]OFD Sender: No OFD packet to send [10:34:49]OFD Sender: No OFD packet to send [10:34:54]OFD Sender: No OFD packet to send [10:34:59]OFD Sender: No OFD packet to send [10:35:04]OFD Sender: No OFD packet to send [10:35:09]OFD Sender: No OFD packet to send [10:35:14]OFD Sender: No OFD packet to send [10:35:17]accept exits with 9 [10:35:17]New connection [10:35:17]New thread 3067321700 created [10:35:17]Thread 3067465060 joined [10:35:17]Waiting for new connection... [10:35:17] Sock 9.Parse request [10:35:17]Sock 9.Check first char [10:35:17]Sock 9.First char is OK [10:35:17]request: POST /json_proto HTTP/1.0 [10:35:17]Method: POST [10:35:17]URL: /json_proto [10:35:17]Method is POST - this is cgi request [10:35:17]url: /json_proto [10:35:17]query_string will be loaded in cgi processing [10:35:17]execute_cgi json_proto POST (null) [10:35:17]execute_cgi path=json_proto method=POST [10:35:17]POST find Content-Length [10:35:17]Host: 172.17.59.68:8080 [10:35:17]Content-Length: 678 [10:35:17]Content-Type: application/json [10:35:17] [10:35:17]POST finish read [10:35:17]Found Content-Length = 678 [10:35:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:17]execute_script... [10:35: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)320190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:17]POST & json_proto [10:35:17]process_json_proto [10:35:17]json parsed OK: [10:35:17]protocol is kg_v1.0 [10:35:17]action value=close_receipt [10:35:17]process_action close_receipt [10:35:17]cmd_close_receipt [10:35:17]MH_GetDate [10:35:17]Write to MH i2c: F0 00 00 57 4F 95 [10:35:17]Write i2c OK [10:35:17]MH_I2C_Read... [10:35:17]Read from MH i2c: F0 [10:35:17]MH_I2C_Read... [10:35:17]Read from MH i2c: F0 09 00 [10:35:17]MH_I2C_Read... [10:35:17]Read from MH i2c: F0 09 00 57 4F 00 04 06 74 66 BC EC 60 65 EF [10:35:17]GetLastDocTimeStamp 1718879562 [10:35:17]current date 1718879748 [10:35:17]FM_GetShiftState [10:35:17]SAM_PROTO_GetShiftState [10:35:17]wFMCommunicate request_size=4 [10:35:17]MH_SAM_APDU [10:35:17]CAPDU: 80 13 01 00 [10:35:17]Write to MH i2c: E2 08 00 58 4F 80 13 01 00 00 00 00 00 24 [10:35:17]Write i2c OK [10:35:17]MH_I2C_Read... [10:35:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:17]Read from MH i2c: E2 [10:35:17]MH_I2C_Read... [10:35:17]Read from MH i2c: E2 0E 00 [10:35:17]MH_I2C_Read... [10:35:17]Read from MH i2c: E2 0E 00 58 4F 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 9F [10:35:17]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:35:17]wFMCommunicate OK [10:35:17]SAM_PROTO_GetShiftState done [10:35:17]FM_GetShiftState done [10:35:17]opened in 1718847247 [10:35:17]opened+sec_in_day 1718933647 [10:35:17]quantity*price = 70052 [10:35:17]sum+1 = 70053 [10:35:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 43 20.06.2024 10:35 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111593 ФПД: 65798736625266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T103548&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111593&fm=65798736625266&tin=02508201610067®Number=0000000000092771&sum=70000 [10:35:18]StoreToDocumentArchive [10:35:18]shift 389 fd 111593 [10:35:18]save to /storage/0389/doc_00111593 [10:35:18]save last doc name /storage/0389/doc_00111593 to /storage/kkm_last_doc_name [10:35:18]save OK [10:35:18]Clear old archive folders... [10:35:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:35:18]tlvbuf is 00F50020 [10:35:18]SAM_PROTO_ClearQueue [10:35:18]wFMCommunicate request_size=4 [10:35:18]MH_SAM_APDU [10:35:18]CAPDU: 80 09 00 00 [10:35:18]Write to MH i2c: E2 08 00 65 4F 80 09 00 00 00 00 00 00 26 [10:35:18]Write i2c OK [10:35:18]MH_I2C_Read... [10:35:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:18]Read from MH i2c: E2 [10:35:18]MH_I2C_Read... [10:35:18]Read from MH i2c: E2 03 00 [10:35:18]MH_I2C_Read... [10:35:18]Read from MH i2c: E2 03 00 65 4F 00 90 00 28 [10:35:18]RAPDU: 90 00 [10:35:18]wFMCommunicate OK [10:35:18]SAM_PROTO_ClearQueue done [10:35:18]KKMCreateOFDPacket [10:35:18]OFDProtocolAddRootSTLVToBuf [10:35:18]FM_MakeSignedData [10:35:18]FM_MakeSignedData [10:35:18]SAM_PROTO_SignData [10:35:18]wFMCommunicate request_size=4 [10:35:18]MH_SAM_APDU [10:35:18]CAPDU: 80 0D 01 02 [10:35:18]Write to MH i2c: E2 08 00 66 4F 80 0D 01 02 00 00 00 00 2E [10:35:18]Write i2c OK [10:35:18]MH_I2C_Read... [10:35:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:18]Read from MH i2c: E2 [10:35:18]MH_I2C_Read... [10:35:18]Read from MH i2c: E2 03 00 [10:35:18]MH_I2C_Read... [10:35:18]Read from MH i2c: E2 03 00 66 4F 00 90 00 29 [10:35:18]RAPDU: 90 00 [10:35:18]wFMCommunicate OK [10:35:18]wFMCommunicate request_size=255 [10:35:18]MH_SAM_APDU [10:35: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 04 06 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E9 B3 01 00 35 04 06 00 3B [10:35:18]Write to MH i2c: E2 02 01 67 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 04 06 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E9 B3 01 00 35 04 06 00 3B 00 00 61 [10:35:18]Write i2c OK [10:35:18]MH_I2C_Read... [10:35:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:18]Read from MH i2c: E2 [10:35:18]MH_I2C_Read... [10:35:18]Read from MH i2c: E2 03 00 [10:35:18]MH_I2C_Read... [10:35:18]Read from MH i2c: E2 03 00 67 4F 00 90 00 2A [10:35:18]RAPDU: 90 00 [10:35:18]wFMCommunicate OK [10:35:18]wFMCommunicate request_size=10 [10:35:18]MH_SAM_APDU [10:35:18]CAPDU: 80 0D 02 02 05 D7 F6 52 BE 72 [10:35:18]Write to MH i2c: E2 0D 00 68 4F 80 0D 02 02 05 00 D7 F6 52 BE 72 00 00 8A [10:35:18]Write i2c OK [10:35:18]MH_I2C_Read... [10:35:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:18]Read from MH i2c: E2 [10:35:18]MH_I2C_Read... [10:35:18]Read from MH i2c: E2 03 00 [10:35:18]MH_I2C_Read... [10:35:18]Read from MH i2c: E2 03 00 68 4F 00 90 00 2B [10:35:18]RAPDU: 90 00 [10:35:18]wFMCommunicate OK [10:35:18]wFMCommunicate request_size=4 [10:35:18]MH_SAM_APDU [10:35:18]CAPDU: 80 0D 03 02 [10:35:18]Write to MH i2c: E2 08 00 69 4F 80 0D 03 02 00 00 00 00 33 [10:35:18]Write i2c OK [10:35:18]MH_I2C_Read... [10:35:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:18]Read from MH i2c: E2 [10:35:18]MH_I2C_Read... [10:35:18]Read from MH i2c: E2 0B 00 [10:35:18]MH_I2C_Read... [10:35:18]Read from MH i2c: E2 0B 00 69 4F 00 EA 50 7F CB B4 52 67 1B 90 00 40 [10:35:18]RAPDU: EA 50 7F CB B4 52 67 1B 90 00 [10:35:18]wFMCommunicate OK [10:35:18]SAM_PROTO_SignData done [10:35:18]FM_MakeSignedData done [10:35:18]CreateOFDProtocolMessage [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 6A 4F 80 11 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 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 6A 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 85 [10:35:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:35:18]wFMCommunicate OK [10:35:18]CreateOFDProtocolMessage done [10:35:18]OFDSenderStorePacket 111593 [10:35:18]StoreOFDPacket docnum=111593 [10:35:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 93 61 07 01 9A 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 04 06 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E9 B3 01 00 35 04 06 00 3B D7 F6 52 BE 72 EA 50 7F CB B4 52 67 1B [10:35:18]CheckFolder [10:35:18]dirname=/storage/ofd_packets [10:35:18]CheckFolder done [10:35:18]ProducePacketName [10:35:18]name=ofd_packets/00111593 [10:35:18]NVStorageSaveData ofd_packets/00111593 [10:35:18]File name is /storage/ofd_packets/00111593 [10:35:18]Write 301 bytes [10:35:18]NVStorageSaveData done [10:35:18]OFDSenderStorePacket done [10:35:18]KKMCreateOFDPacket done [10:35:18]NVStorageSaveData kkm_last_timestamp [10:35:18]File name is /storage/kkm_last_timestamp [10:35:18]Write 4 bytes [10:35:18]NVStorageSaveData done [10:35:18]ExternCall_PrintAddStr [10:35:18]wPrintStart [10:35:18]Write to MH i2c: 01 00 00 6B 4F BA [10:35:18]Write i2c OK [10:35:18]MH_I2C_Read... [10:35:18]Read from MH i2c: 01 [10:35:18]MH_I2C_Read... [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 6B 4F 00 00 00 00 00 FF 0F CF [10:35:18]RasterBufferAndPrint [10:35:18]line Счет N : (1)320190 [10:35:18]line ИНН: 02508201610067 [10:35:18]line Контрольно-Кассовый Чек [10:35:18]line ПРОДАЖА [10:35:18]line ТРК (МРК, ГНК) : 11 [10:35:18]line Товар: 2710124130 [10:35:18]line Аи-92-К-5 [10:35:18]line 10.550 * 66.40 [10:35:18]line = 700.52 [10:35:18]line НДС 12% НСП 1% [10:35:18]line > о реализуемом товаре [10:35:18]line ОКРУГЛЕНИЕ: -0.52 [10:35:18]line ИТОГО: 700.00 [10:35:18]line Внесено: 700.00 [10:35:18]line СДАЧА: 0.00 [10:35:18]line НСП 1% : 6.20 [10:35:18]line НДС 12% : 74.39 [10:35:18]line Наличными: 700.00 [10:35:18]line Безнал.: 0.00 [10:35:18]line Место: АЗС № 65 "Партнер Нефть" [10:35:18]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:35:18]line СНО: Общий режим [10:35:18]line Чек 43 20.06.2024 10:35 [10:35:18]line Смена: 389 ФФД: 1.0 [10:35:18]line ЗНМ: 0300000198 [10:35:18]line РНМ: 0000000000092771 [10:35:18]line Версия ККМ: 001 [10:35:18]line ФМ: 0000000000875083 [10:35:18]line ФД: 111593 [10:35:18]line ФПД: 65798736625266 [10:35:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T103548&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111593&fm=65798736625266&tin=02508201610067®Number=0000000000092771&sum=70000 [10:35:19]OFD Sender: Processing packet 111593 [packets to send 38, broken 37] [10:35:19]ProducePacketName [10:35:19]name=ofd_packets/00111593 [10:35:19]OFD Sender: To server: pG, [10:35:19]CommunicateWithHost lk.salyk.kg:30040 [10:35:19]ConnectInit lk.salyk.kg [10:35:19]written 0, free lines is 4095 [10:35:19]Connected sock=11 [10:35:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 93 61 07 01 9A 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 04 06 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E9 B3 01 00 35 04 06 00 3B D7 F6 52 BE 72 EA 50 7F CB B4 52 67 1B [10:35:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 63 15 47 00 C6 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E9 B3 01 00 F4 03 04 00 51 9D 73 66 B6 04 01 00 00 5A E3 70 18 B6 E1 E9 FF [10:35:19]CommunicateWithHost err = 0 [10:35:19]CheckOFDResponse [10:35:19]1017 (14) - 77093643461234 [10:35:19]1041 (16) - 0000000000875083 [10:35:19]1040 (4) - 111593 [10:35:19]1012 (4) - 20.06.2024 03:09 [10:35:19]1206 (1) - 0 [10:35:19]OFD Sender: Remove packet 111593 [10:35:19]ProducePacketName [10:35:19]name=ofd_packets/00111593 [10:35:19]NVStorageDeleteData [10:35:19]Write to MH i2c: 01 00 00 96 4F E5 [10:35:19]Write i2c OK [10:35:19]MH_I2C_Read... [10:35:19]Read from MH i2c: 01 [10:35:19]MH_I2C_Read... [10:35:19]Read from MH i2c: 01 07 00 [10:35:19]MH_I2C_Read... [10:35:19]Read from MH i2c: 01 07 00 96 4F 00 00 00 00 00 C6 0C BE [10:35:19]RasterBufferAndPrint [10:35:19]line [10:35:19]line [10:35:19]line [10:35:19]line [10:35:19]line [10:35:19]written 0, free lines is 3276 [10:35:19]MH_Cut [10:35:19]Write to MH i2c: D1 01 00 9D 4F 01 BE [10:35:19]Write i2c OK [10:35:19]MH_I2C_Read... [10:35:19]Read from MH i2c: D1 [10:35:19]MH_I2C_Read... [10:35:19]Read from MH i2c: D1 01 00 [10:35:19]MH_I2C_Read... [10:35:19]Read from MH i2c: D1 01 00 9D 4F 00 BD [10:35:19]Write to MH i2c: 01 00 00 9E 4F ED [10:35:19]Write i2c OK [10:35:19]MH_I2C_Read... [10:35:20]OFD Sender: No OFD packet to send [10:35:20]*** Cut start [10:35:20]*** Partial cut [10:35:20]*** CUTSNS_PIN = 1 [10:35:20]*** CUTSNS_PIN = 0 [10:35:20]*** Brake cut motor [10:35:20]Read from MH i2c: 01 [10:35:20]MH_I2C_Read... [10:35:21]*** Stop cut motor [10:35:21]*** Cut end [10:35:21]Read from MH i2c: 01 07 00 [10:35:21]MH_I2C_Read... [10:35:21]Read from MH i2c: 01 07 00 9E 4F 00 00 00 00 00 FF 0F 02 [10:35:21]process_action close_receipt done [10:35:21]requested_data is exist [10:35:21]produce_requested_data [10:35:21]requested_item fm.sn is exist - process it [10:35:21]wFMCommunicate request_size=4 [10:35:21]MH_SAM_APDU [10:35:21]CAPDU: 80 11 00 00 [10:35:21]Write to MH i2c: E2 08 00 9F 4F 80 11 00 00 00 00 00 00 68 [10:35:21]Write i2c OK [10:35:21]MH_I2C_Read... [10:35:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:21]Read from MH i2c: E2 [10:35:21]MH_I2C_Read... [10:35:21]Read from MH i2c: E2 17 00 [10:35:21]MH_I2C_Read... [10:35:21]Read from MH i2c: E2 17 00 9F 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BA [10:35:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:35:21]wFMCommunicate OK [10:35:21]requested_item fd.num is exist - process it [10:35:21]SAM_PROTO_GetFieldsCounters [10:35:21]wFMCommunicate request_size=4 [10:35:21]MH_SAM_APDU [10:35:21]CAPDU: 80 13 00 00 [10:35:21]Write to MH i2c: E2 08 00 A0 4F 80 13 00 00 00 00 00 00 6B [10:35:21]Write i2c OK [10:35:21]MH_I2C_Read... [10:35:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:21]Read from MH i2c: E2 [10:35:21]MH_I2C_Read... [10:35:21]Read from MH i2c: E2 62 00 [10:35:21]MH_I2C_Read... [10:35:21]Read from MH i2c: E2 62 00 A0 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E9 B3 01 00 0E 04 04 00 85 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 30 [10:35:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E9 B3 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:35:21]wFMCommunicate OK [10:35:21]SAM_PROTO_GetFieldsCounters done [10:35:21]requested_item shift.num is exist - process it [10:35:21]requested_item shift.opened is exist - process it [10:35:21]req_shift_opened [10:35:21]FM_GetShiftState [10:35:21]SAM_PROTO_GetShiftState [10:35:21]wFMCommunicate request_size=4 [10:35:21]MH_SAM_APDU [10:35:21]CAPDU: 80 13 01 00 [10:35:21]Write to MH i2c: E2 08 00 A1 4F 80 13 01 00 00 00 00 00 6D [10:35:21]Write i2c OK [10:35:21]MH_I2C_Read... [10:35:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:21]Read from MH i2c: E2 [10:35:21]MH_I2C_Read... [10:35:21]Read from MH i2c: E2 0E 00 [10:35:21]MH_I2C_Read... [10:35:21]Read from MH i2c: E2 0E 00 A1 4F 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 E8 [10:35:21]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:35:21]wFMCommunicate OK [10:35:21]SAM_PROTO_GetShiftState done [10:35:21]FM_GetShiftState done [10:35:21]req_shift_opened done [10:35:21]requested_item shift.open_date is exist - process it [10:35:21]req_shift_open_date [10:35:21]req_shift_open_date done [10:35:21]produce_requested_data done [10:35:21]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111593,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [10:35:21]process_action_free close_receipt [10:35:21]json_value_free [10:35:21]json_value_free done [10:35:21]process_json_proto returns [10:35:21]Send response to host [10:35:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111593,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [10:35:21]free response buf [10:35:21]execute_script done [10:35:21]execute_script returns [10:35:21]free content buf [10:35:21]Sock 9.Close socket [10:35:21]Sock 9.Thread stoped [10:35:25]OFD Sender: No OFD packet to send [10:35:30]OFD Sender: No OFD packet to send [10:35:35]OFD Sender: No OFD packet to send [10:35:40]OFD Sender: No OFD packet to send [10:35:45]OFD Sender: No OFD packet to send [10:35:50]OFD Sender: No OFD packet to send [10:35:55]OFD Sender: No OFD packet to send [10:36:00]OFD Sender: No OFD packet to send [10:36:05]OFD Sender: No OFD packet to send [10:36:10]OFD Sender: No OFD packet to send [10:36:15]OFD Sender: No OFD packet to send [10:36:20]OFD Sender: No OFD packet to send [10:36:25]OFD Sender: No OFD packet to send [10:36:30]OFD Sender: No OFD packet to send [10:36:35]OFD Sender: No OFD packet to send [10:36:40]OFD Sender: No OFD packet to send [10:36:45]OFD Sender: No OFD packet to send [10:36:50]OFD Sender: No OFD packet to send [10:36:55]OFD Sender: No OFD packet to send [10:37:00]OFD Sender: No OFD packet to send [10:37:05]OFD Sender: No OFD packet to send [10:37:10]OFD Sender: No OFD packet to send [10:37:15]OFD Sender: No OFD packet to send [10:37:20]OFD Sender: No OFD packet to send [10:37:25]OFD Sender: No OFD packet to send [10:37:30]OFD Sender: No OFD packet to send [10:37:35]OFD Sender: No OFD packet to send [10:37:40]OFD Sender: No OFD packet to send [10:37:45]OFD Sender: No OFD packet to send [10:37:49]accept exits with 7 [10:37:49]New connection [10:37:49]New thread 3067465060 created [10:37:49]Thread 3067321700 joined [10:37:49]Waiting for new connection... [10:37:49] Sock 7.Parse request [10:37:49]Sock 7.Check first char [10:37:49]Sock 7.First char is OK [10:37:49]request: POST /json_proto HTTP/1.0 [10:37:49]Method: POST [10:37:49]URL: /json_proto [10:37:49]Method is POST - this is cgi request [10:37:49]url: /json_proto [10:37:49]query_string will be loaded in cgi processing [10:37:49]execute_cgi json_proto POST (null) [10:37:49]execute_cgi path=json_proto method=POST [10:37:49]POST find Content-Length [10:37:49]Host: 172.17.59.68:8080 [10:37:49]Content-Length: 802 [10:37:49]Content-Type: application/json [10:37:49] [10:37:49]POST finish read [10:37:49]Found Content-Length = 802 [10:37:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 8.240, "sum" : 600.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:49]execute_script... [10:37: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)320191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 8.240, "sum" : 600.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:49]POST & json_proto [10:37:49]process_json_proto [10:37:49]json parsed OK: [10:37:49]protocol is kg_v1.0 [10:37:49]action value=close_receipt [10:37:49]process_action close_receipt [10:37:49]cmd_close_receipt [10:37:49]MH_GetDate [10:37:49]Write to MH i2c: F0 00 00 A2 4F E0 [10:37:49]Write i2c OK [10:37:49]MH_I2C_Read... [10:37:49]Read from MH i2c: F0 [10:37:49]MH_I2C_Read... [10:37:49]Read from MH i2c: F0 09 00 [10:37:49]MH_I2C_Read... [10:37:49]Read from MH i2c: F0 09 00 A2 4F 00 9C 06 74 66 BC EC 60 65 D2 [10:37:49]GetLastDocTimeStamp 1718879748 [10:37:49]current date 1718879900 [10:37:49]FM_GetShiftState [10:37:49]SAM_PROTO_GetShiftState [10:37:49]wFMCommunicate request_size=4 [10:37:49]MH_SAM_APDU [10:37:49]CAPDU: 80 13 01 00 [10:37:49]Write to MH i2c: E2 08 00 A3 4F 80 13 01 00 00 00 00 00 6F [10:37:49]Write i2c OK [10:37:49]MH_I2C_Read... [10:37:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:49]Read from MH i2c: E2 [10:37:49]MH_I2C_Read... [10:37:49]Read from MH i2c: E2 0E 00 [10:37:49]MH_I2C_Read... [10:37:49]Read from MH i2c: E2 0E 00 A3 4F 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 EA [10:37:49]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:37:49]wFMCommunicate OK [10:37:49]SAM_PROTO_GetShiftState done [10:37:49]FM_GetShiftState done [10:37:49]opened in 1718847247 [10:37:49]opened+sec_in_day 1718933647 [10:37:49]quantity*price = 60069 [10:37:49]sum+1 = 60071 [10:37:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.70 НСП 1% : 5.32 НДС 12% : 63.79 Наличными: 0.00 Безнал.: 600.70 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 44 20.06.2024 10:38 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111594 ФПД: 13879654216940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T103820&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111594&fm=13879654216940&tin=02508201610067®Number=0000000000092771&sum=60070 [10:37:50]StoreToDocumentArchive [10:37:50]shift 389 fd 111594 [10:37:50]save to /storage/0389/doc_00111594 [10:37:50]save last doc name /storage/0389/doc_00111594 to /storage/kkm_last_doc_name [10:37:50]save OK [10:37:50]Clear old archive folders... [10:37:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:37:50]tlvbuf is 01031650 [10:37:50]SAM_PROTO_ClearQueue [10:37:50]wFMCommunicate request_size=4 [10:37:50]MH_SAM_APDU [10:37:50]CAPDU: 80 09 00 00 [10:37:50]Write to MH i2c: E2 08 00 B0 4F 80 09 00 00 00 00 00 00 71 [10:37:50]Write i2c OK [10:37:50]MH_I2C_Read... [10:37:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:50]Read from MH i2c: E2 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 03 00 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 03 00 B0 4F 00 90 00 73 [10:37:50]RAPDU: 90 00 [10:37:50]wFMCommunicate OK [10:37:50]SAM_PROTO_ClearQueue done [10:37:50]KKMCreateOFDPacket [10:37:50]OFDProtocolAddRootSTLVToBuf [10:37:50]FM_MakeSignedData [10:37:50]FM_MakeSignedData [10:37:50]SAM_PROTO_SignData [10:37:50]wFMCommunicate request_size=4 [10:37:50]MH_SAM_APDU [10:37:50]CAPDU: 80 0D 01 02 [10:37:50]Write to MH i2c: E2 08 00 B1 4F 80 0D 01 02 00 00 00 00 79 [10:37:50]Write i2c OK [10:37:50]MH_I2C_Read... [10:37:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:50]Read from MH i2c: E2 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 03 00 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 03 00 B1 4F 00 90 00 74 [10:37:50]RAPDU: 90 00 [10:37:50]wFMCommunicate OK [10:37:50]wFMCommunicate request_size=255 [10:37:50]MH_SAM_APDU [10:37:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A6 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A6 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 9C 06 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EA B3 01 00 35 04 06 00 0C 9F 9B DB [10:37:50]Write to MH i2c: E2 02 01 B2 4F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A6 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A6 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 9C 06 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EA B3 01 00 35 04 06 00 0C 9F 9B DB 00 00 72 [10:37:50]Write i2c OK [10:37:50]MH_I2C_Read... [10:37:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:50]Read from MH i2c: E2 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 03 00 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 03 00 B2 4F 00 90 00 75 [10:37:50]RAPDU: 90 00 [10:37:50]wFMCommunicate OK [10:37:50]wFMCommunicate request_size=7 [10:37:50]MH_SAM_APDU [10:37:50]CAPDU: 80 0D 02 02 02 F4 EC [10:37:50]Write to MH i2c: E2 0A 00 B3 4F 80 0D 02 02 02 00 F4 EC 00 00 60 [10:37:50]Write i2c OK [10:37:50]MH_I2C_Read... [10:37:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:50]Read from MH i2c: E2 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 03 00 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 03 00 B3 4F 00 90 00 76 [10:37:50]RAPDU: 90 00 [10:37:50]wFMCommunicate OK [10:37:50]wFMCommunicate request_size=4 [10:37:50]MH_SAM_APDU [10:37:50]CAPDU: 80 0D 03 02 [10:37:50]Write to MH i2c: E2 08 00 B4 4F 80 0D 03 02 00 00 00 00 7E [10:37:50]Write i2c OK [10:37:50]MH_I2C_Read... [10:37:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:50]Read from MH i2c: E2 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 0B 00 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 0B 00 B4 4F 00 9D 8B 41 97 26 54 26 8C 90 00 AB [10:37:50]RAPDU: 9D 8B 41 97 26 54 26 8C 90 00 [10:37:50]wFMCommunicate OK [10:37:50]SAM_PROTO_SignData done [10:37:50]FM_MakeSignedData done [10:37:50]CreateOFDProtocolMessage [10:37:50]wFMCommunicate request_size=4 [10:37:50]MH_SAM_APDU [10:37:50]CAPDU: 80 11 00 00 [10:37:50]Write to MH i2c: E2 08 00 B5 4F 80 11 00 00 00 00 00 00 7E [10:37:50]Write i2c OK [10:37:50]MH_I2C_Read... [10:37:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:50]Read from MH i2c: E2 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 17 00 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 17 00 B5 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D0 [10:37:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:37:50]wFMCommunicate OK [10:37:50]CreateOFDProtocolMessage done [10:37:50]OFDSenderStorePacket 111594 [10:37:50]StoreOFDPacket docnum=111594 [10:37:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 77 F1 04 01 F5 E5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A6 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A6 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 9C 06 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EA B3 01 00 35 04 06 00 0C 9F 9B DB F4 EC 9D 8B 41 97 26 54 26 8C [10:37:50]CheckFolder [10:37:50]dirname=/storage/ofd_packets [10:37:50]CheckFolder done [10:37:50]ProducePacketName [10:37:50]name=ofd_packets/00111594 [10:37:50]NVStorageSaveData ofd_packets/00111594 [10:37:50]File name is /storage/ofd_packets/00111594 [10:37:50]Write 298 bytes [10:37:50]NVStorageSaveData done [10:37:50]OFDSenderStorePacket done [10:37:50]KKMCreateOFDPacket done [10:37:50]NVStorageSaveData kkm_last_timestamp [10:37:50]File name is /storage/kkm_last_timestamp [10:37:50]Write 4 bytes [10:37:50]NVStorageSaveData done [10:37:50]ExternCall_PrintAddStr [10:37:50]wPrintStart [10:37:50]Write to MH i2c: 01 00 00 B6 4F 05 [10:37:50]Write i2c OK [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: 01 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: 01 07 00 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: 01 07 00 B6 4F 00 00 00 00 00 FF 0F 1A [10:37:50]RasterBufferAndPrint [10:37:50]line Счет N : (1)320191 [10:37:50]line ИНН: 02508201610067 [10:37:50]line Контрольно-Кассовый Чек [10:37:50]line ПРОДАЖА [10:37:50]line ТРК (МРК, ГНК) : 22 [10:37:50]line Товар: 2710194210 [10:37:50]line ДТ-К-5 [10:37:50]line 8.240 * 72.90 [10:37:50]line = 600.70 [10:37:50]line НДС 12% НСП 1% [10:37:50]line > о реализуемом товаре [10:37:50]line ИТОГО: 600.70 [10:37:50]line НСП 1% : 5.32 [10:37:50]line НДС 12% : 63.79 [10:37:50]line Наличными: 0.00 [10:37:50]line Безнал.: 600.70 [10:37:50]line Место: АЗС № 65 "Партнер Нефть" [10:37:50]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:37:50]line СНО: Общий режим [10:37:50]line Чек 44 20.06.2024 10:38 [10:37:50]line Смена: 389 ФФД: 1.0 [10:37:50]line ЗНМ: 0300000198 [10:37:50]line РНМ: 0000000000092771 [10:37:50]line Версия ККМ: 001 [10:37:50]line Платежная система: О! деньги [10:37:50]line ФМ: 0000000000875083 [10:37:50]line ФД: 111594 [10:37:50]line ФПД: 13879654216940 [10:37:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T103820&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111594&fm=13879654216940&tin=02508201610067®Number=0000000000092771&sum=60070 [10:37:51]OFD Sender: Processing packet 111594 [packets to send 38, broken 37] [10:37:51]ProducePacketName [10:37:51]name=ofd_packets/00111594 [10:37:51]OFD Sender: To server: pG, [10:37:51]CommunicateWithHost lk.salyk.kg:30040 [10:37:51]ConnectInit lk.salyk.kg [10:37:51]written 0, free lines is 4095 [10:37:51]Connected sock=10 [10:37:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 77 F1 04 01 F5 E5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A6 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A6 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 9C 06 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EA B3 01 00 35 04 06 00 0C 9F 9B DB F4 EC 9D 8B 41 97 26 54 26 8C [10:37:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 1E 49 47 00 F2 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 35 30 38 33 10 04 04 00 EA B3 01 00 F4 03 04 00 E9 9D 73 66 B6 04 01 00 00 34 FA 70 73 24 EA 53 3D [10:37:51]CommunicateWithHost err = 0 [10:37:51]CheckOFDResponse [10:37:51]1017 (14) - 77093643461234 [10:37:51]1041 (16) - 0000000000875083 [10:37:51]1040 (4) - 111594 [10:37:51]1012 (4) - 20.06.2024 03:11 [10:37:51]1206 (1) - 0 [10:37:51]OFD Sender: Remove packet 111594 [10:37:51]ProducePacketName [10:37:51]name=ofd_packets/00111594 [10:37:51]NVStorageDeleteData [10:37:51]Write to MH i2c: 01 00 00 E0 4F 2F [10:37:51]Write i2c OK [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: 01 [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: 01 07 00 [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: 01 07 00 E0 4F 00 00 00 00 00 DE 0C 20 [10:37:51]RasterBufferAndPrint [10:37:51]line [10:37:51]line [10:37:51]line [10:37:51]line [10:37:51]line [10:37:51]written 0, free lines is 3303 [10:37:51]MH_Cut [10:37:51]Write to MH i2c: D1 01 00 E7 4F 01 08 [10:37:51]Write i2c OK [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: D1 [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: D1 01 00 [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: D1 01 00 E7 4F 00 07 [10:37:51]Write to MH i2c: 01 00 00 E8 4F 37 [10:37:51]Write i2c OK [10:37:51]MH_I2C_Read... [10:37:51]OFD Sender: No OFD packet to send [10:37:52]*** Cut start [10:37:52]*** Partial cut [10:37:52]*** CUTSNS_PIN = 1 [10:37:52]*** CUTSNS_PIN = 0 [10:37:52]*** Brake cut motor [10:37:52]Read from MH i2c: 01 [10:37:53]MH_I2C_Read... [10:37:53]*** Stop cut motor [10:37:53]*** Cut end [10:37:53]Read from MH i2c: 01 07 00 [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: 01 07 00 E8 4F 00 00 00 00 00 FF 0F 4C [10:37:53]process_action close_receipt done [10:37:53]requested_data is exist [10:37:53]produce_requested_data [10:37:53]requested_item fm.sn is exist - process it [10:37:53]wFMCommunicate request_size=4 [10:37:53]MH_SAM_APDU [10:37:53]CAPDU: 80 11 00 00 [10:37:53]Write to MH i2c: E2 08 00 E9 4F 80 11 00 00 00 00 00 00 B2 [10:37:53]Write i2c OK [10:37:53]MH_I2C_Read... [10:37:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:53]Read from MH i2c: E2 [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: E2 17 00 [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: E2 17 00 E9 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 04 [10:37:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:37:53]wFMCommunicate OK [10:37:53]requested_item fd.num is exist - process it [10:37:53]SAM_PROTO_GetFieldsCounters [10:37:53]wFMCommunicate request_size=4 [10:37:53]MH_SAM_APDU [10:37:53]CAPDU: 80 13 00 00 [10:37:53]Write to MH i2c: E2 08 00 EA 4F 80 13 00 00 00 00 00 00 B5 [10:37:53]Write i2c OK [10:37:53]MH_I2C_Read... [10:37:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:53]Read from MH i2c: E2 [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: E2 62 00 [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: E2 62 00 EA 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EA B3 01 00 0E 04 04 00 85 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 7E [10:37:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EA B3 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:37:53]wFMCommunicate OK [10:37:53]SAM_PROTO_GetFieldsCounters done [10:37:53]requested_item shift.num is exist - process it [10:37:53]requested_item shift.opened is exist - process it [10:37:53]req_shift_opened [10:37:53]FM_GetShiftState [10:37:53]SAM_PROTO_GetShiftState [10:37:53]wFMCommunicate request_size=4 [10:37:53]MH_SAM_APDU [10:37:53]CAPDU: 80 13 01 00 [10:37:53]Write to MH i2c: E2 08 00 EB 4F 80 13 01 00 00 00 00 00 B7 [10:37:53]Write i2c OK [10:37:53]MH_I2C_Read... [10:37:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:53]Read from MH i2c: E2 [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: E2 0E 00 [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: E2 0E 00 EB 4F 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 32 [10:37:53]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:37:53]wFMCommunicate OK [10:37:53]SAM_PROTO_GetShiftState done [10:37:53]FM_GetShiftState done [10:37:53]req_shift_opened done [10:37:53]requested_item shift.open_date is exist - process it [10:37:53]req_shift_open_date [10:37:53]req_shift_open_date done [10:37:53]produce_requested_data done [10:37:53]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111594,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [10:37:53]process_action_free close_receipt [10:37:53]json_value_free [10:37:53]json_value_free done [10:37:53]process_json_proto returns [10:37:53]Send response to host [10:37:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111594,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [10:37:53]free response buf [10:37:53]execute_script done [10:37:53]execute_script returns [10:37:53]free content buf [10:37:53]Sock 7.Close socket [10:37:53]Sock 7.Thread stoped [10:37:56]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:38:59]accept exits with 9 [10:38:59]New connection [10:38:59]New thread 3067321700 created [10:38:59]Thread 3067465060 joined [10:38:59]Waiting for new connection... [10:38:59] Sock 9.Parse request [10:38:59]Sock 9.Check first char [10:38:59]Sock 9.First char is OK [10:38:59]request: POST /json_proto HTTP/1.0 [10:38:59]Method: POST [10:38:59]URL: /json_proto [10:38:59]Method is POST - this is cgi request [10:38:59]url: /json_proto [10:38:59]query_string will be loaded in cgi processing [10:38:59]execute_cgi json_proto POST (null) [10:38:59]execute_cgi path=json_proto method=POST [10:38:59]POST find Content-Length [10:38:59]Host: 172.17.59.68:8080 [10:38:59]Content-Length: 808 [10:38:59]Content-Type: application/json [10:38:59] [10:38:59]POST finish read [10:38:59]Found Content-Length = 808 [10:38:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:59]execute_script... [10:38: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)320192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:59]POST & json_proto [10:38:59]process_json_proto [10:38:59]json parsed OK: [10:38:59]protocol is kg_v1.0 [10:38:59]action value=close_receipt [10:38:59]process_action close_receipt [10:38:59]cmd_close_receipt [10:38:59]MH_GetDate [10:38:59]Write to MH i2c: F0 00 00 EC 4F 2A [10:38:59]Write i2c OK [10:38:59]MH_I2C_Read... [10:38:59]Read from MH i2c: F0 [10:38:59]MH_I2C_Read... [10:38:59]Read from MH i2c: F0 09 00 [10:38:59]MH_I2C_Read... [10:38:59]Read from MH i2c: F0 09 00 EC 4F 00 E2 06 74 66 BC EC 60 65 62 [10:38:59]GetLastDocTimeStamp 1718879900 [10:38:59]current date 1718879970 [10:38:59]FM_GetShiftState [10:38:59]SAM_PROTO_GetShiftState [10:38:59]wFMCommunicate request_size=4 [10:38:59]MH_SAM_APDU [10:38:59]CAPDU: 80 13 01 00 [10:38:59]Write to MH i2c: E2 08 00 ED 4F 80 13 01 00 00 00 00 00 B9 [10:38:59]Write i2c OK [10:38:59]MH_I2C_Read... [10:38:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:59]Read from MH i2c: E2 [10:38:59]MH_I2C_Read... [10:38:59]Read from MH i2c: E2 0E 00 [10:38:59]MH_I2C_Read... [10:38:59]Read from MH i2c: E2 0E 00 ED 4F 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 34 [10:38:59]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:38:59]wFMCommunicate OK [10:38:59]SAM_PROTO_GetShiftState done [10:38:59]FM_GetShiftState done [10:38:59]opened in 1718847247 [10:38:59]opened+sec_in_day 1718933647 [10:38:59]quantity*price = 100064 [10:38:59]sum+1 = 100066 [10:38:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.65 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.65 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 45 20.06.2024 10:39 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111595 ФПД: 186693957857543 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T103930&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111595&fm=186693957857543&tin=02508201610067®Number=0000000000092771&sum=100065 [10:39:00]StoreToDocumentArchive [10:39:00]shift 389 fd 111595 [10:39:00]save to /storage/0389/doc_00111595 [10:39:00]save last doc name /storage/0389/doc_00111595 to /storage/kkm_last_doc_name [10:39:00]save OK [10:39:00]Clear old archive folders... [10:39:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:39:00]tlvbuf is B6FD2010 [10:39:00]SAM_PROTO_ClearQueue [10:39:00]wFMCommunicate request_size=4 [10:39:00]MH_SAM_APDU [10:39:00]CAPDU: 80 09 00 00 [10:39:00]Write to MH i2c: E2 08 00 FA 4F 80 09 00 00 00 00 00 00 BB [10:39:00]Write i2c OK [10:39:00]MH_I2C_Read... [10:39:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:00]Read from MH i2c: E2 [10:39:00]MH_I2C_Read... [10:39:00]Read from MH i2c: E2 03 00 [10:39:00]MH_I2C_Read... [10:39:00]Read from MH i2c: E2 03 00 FA 4F 00 90 00 BD [10:39:00]RAPDU: 90 00 [10:39:00]wFMCommunicate OK [10:39:00]SAM_PROTO_ClearQueue done [10:39:00]KKMCreateOFDPacket [10:39:00]OFDProtocolAddRootSTLVToBuf [10:39:00]FM_MakeSignedData [10:39:00]FM_MakeSignedData [10:39:00]SAM_PROTO_SignData [10:39:00]wFMCommunicate request_size=4 [10:39:00]MH_SAM_APDU [10:39:00]CAPDU: 80 0D 01 02 [10:39:00]Write to MH i2c: E2 08 00 FB 4F 80 0D 01 02 00 00 00 00 C3 [10:39:00]Write i2c OK [10:39:00]MH_I2C_Read... [10:39:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:00]Read from MH i2c: E2 [10:39:00]MH_I2C_Read... [10:39:00]Read from MH i2c: E2 03 00 [10:39:00]MH_I2C_Read... [10:39:00]Read from MH i2c: E2 03 00 FB 4F 00 90 00 BE [10:39:00]RAPDU: 90 00 [10:39:00]wFMCommunicate OK [10:39:00]wFMCommunicate request_size=255 [10:39:00]MH_SAM_APDU [10:39:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 E2 06 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EB B3 01 00 35 04 06 00 A9 [10:39:00]Write to MH i2c: E2 02 01 FC 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 E2 06 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EB B3 01 00 35 04 06 00 A9 00 00 06 [10:39:00]Write i2c OK [10:39:00]MH_I2C_Read... [10:39:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:00]Read from MH i2c: E2 [10:39:00]MH_I2C_Read... [10:39:00]Read from MH i2c: E2 03 00 [10:39:00]MH_I2C_Read... [10:39:00]Read from MH i2c: E2 03 00 FC 4F 00 90 00 BF [10:39:00]RAPDU: 90 00 [10:39:00]wFMCommunicate OK [10:39:00]wFMCommunicate request_size=10 [10:39:00]MH_SAM_APDU [10:39:00]CAPDU: 80 0D 02 02 05 CC 13 0A 31 07 [10:39:00]Write to MH i2c: E2 0D 00 FD 4F 80 0D 02 02 05 00 CC 13 0A 31 07 00 00 F1 [10:39:00]Write i2c OK [10:39:00]MH_I2C_Read... [10:39:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:00]Read from MH i2c: E2 [10:39:00]MH_I2C_Read... [10:39:00]Read from MH i2c: E2 03 00 [10:39:00]MH_I2C_Read... [10:39:00]Read from MH i2c: E2 03 00 FD 4F 00 90 00 C0 [10:39:00]RAPDU: 90 00 [10:39:00]wFMCommunicate OK [10:39:00]wFMCommunicate request_size=4 [10:39:00]MH_SAM_APDU [10:39:00]CAPDU: 80 0D 03 02 [10:39:00]Write to MH i2c: E2 08 00 FE 4F 80 0D 03 02 00 00 00 00 C8 [10:39:00]Write i2c OK [10:39:00]MH_I2C_Read... [10:39:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:00]Read from MH i2c: E2 [10:39:00]MH_I2C_Read... [10:39:00]Read from MH i2c: E2 0B 00 [10:39:00]MH_I2C_Read... [10:39:00]Read from MH i2c: E2 0B 00 FE 4F 00 C3 C8 00 DF A5 F0 CF 87 90 00 1E [10:39:00]RAPDU: C3 C8 00 DF A5 F0 CF 87 90 00 [10:39:00]wFMCommunicate OK [10:39:00]SAM_PROTO_SignData done [10:39:00]FM_MakeSignedData done [10:39:00]CreateOFDProtocolMessage [10:39:00]wFMCommunicate request_size=4 [10:39:00]MH_SAM_APDU [10:39:00]CAPDU: 80 11 00 00 [10:39:00]Write to MH i2c: E2 08 00 FF 4F 80 11 00 00 00 00 00 00 C8 [10:39:00]Write i2c OK [10:39:00]MH_I2C_Read... [10:39:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:00]Read from MH i2c: E2 [10:39:00]MH_I2C_Read... [10:39:00]Read from MH i2c: E2 17 00 [10:39:00]MH_I2C_Read... [10:39:00]Read from MH i2c: E2 17 00 FF 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1A [10:39:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:39:00]wFMCommunicate OK [10:39:00]CreateOFDProtocolMessage done [10:39:00]OFDSenderStorePacket 111595 [10:39:00]StoreOFDPacket docnum=111595 [10:39:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 29 47 07 01 42 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 E2 06 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EB B3 01 00 35 04 06 00 A9 CC 13 0A 31 07 C3 C8 00 DF A5 F0 CF 87 [10:39:00]CheckFolder [10:39:00]dirname=/storage/ofd_packets [10:39:00]CheckFolder done [10:39:00]ProducePacketName [10:39:00]name=ofd_packets/00111595 [10:39:00]NVStorageSaveData ofd_packets/00111595 [10:39:00]File name is /storage/ofd_packets/00111595 [10:39:00]Write 301 bytes [10:39:00]NVStorageSaveData done [10:39:00]OFDSenderStorePacket done [10:39:00]KKMCreateOFDPacket done [10:39:00]NVStorageSaveData kkm_last_timestamp [10:39:00]File name is /storage/kkm_last_timestamp [10:39:00]Write 4 bytes [10:39:00]NVStorageSaveData done [10:39:00]ExternCall_PrintAddStr [10:39:00]wPrintStart [10:39:00]Write to MH i2c: 01 00 00 00 50 50 [10:39:00]Write i2c OK [10:39:00]MH_I2C_Read... [10:39:00]Read from MH i2c: 01 [10:39:00]MH_I2C_Read... [10:39:00]Read from MH i2c: 01 07 00 [10:39:00]MH_I2C_Read... [10:39:00]Read from MH i2c: 01 07 00 00 50 00 00 00 00 00 FF 0F 65 [10:39:00]RasterBufferAndPrint [10:39:00]line Счет N : (1)320192 [10:39:00]line ИНН: 02508201610067 [10:39:00]line Контрольно-Кассовый Чек [10:39:00]line ПРОДАЖА [10:39:00]line ТРК (МРК, ГНК) : 11 [10:39:00]line Товар: 2710124130 [10:39:00]line Аи-92-К-5 [10:39:00]line 15.070 * 66.40 [10:39:00]line = 1000.65 [10:39:00]line НДС 12% НСП 1% [10:39:00]line > о реализуемом товаре [10:39:00]line ИТОГО: 1000.65 [10:39:00]line НСП 1% : 8.85 [10:39:00]line НДС 12% : 106.26 [10:39:00]line Наличными: 0.00 [10:39:00]line Безнал.: 1000.65 [10:39:00]line Место: АЗС № 65 "Партнер Нефть" [10:39:00]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:39:00]line СНО: Общий режим [10:39:00]line Чек 45 20.06.2024 10:39 [10:39:00]line Смена: 389 ФФД: 1.0 [10:39:00]line ЗНМ: 0300000198 [10:39:00]line РНМ: 0000000000092771 [10:39:00]line Версия ККМ: 001 [10:39:00]line Платежная система: О! деньги [10:39:00]line ФМ: 0000000000875083 [10:39:00]line ФД: 111595 [10:39:00]line ФПД: 186693957857543 [10:39:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T103930&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111595&fm=186693957857543&tin=02508201610067®Number=0000000000092771&sum=100065 [10:39:01]written 0, free lines is 4095 [10:39:01]OFD Sender: Processing packet 111595 [packets to send 38, broken 37] [10:39:01]ProducePacketName [10:39:01]name=ofd_packets/00111595 [10:39:01]OFD Sender: To server: pG, [10:39:01]CommunicateWithHost lk.salyk.kg:30040 [10:39:01]ConnectInit lk.salyk.kg [10:39:01]Connected sock=11 [10:39:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 29 47 07 01 42 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 E2 06 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EB B3 01 00 35 04 06 00 A9 CC 13 0A 31 07 C3 C8 00 DF A5 F0 CF 87 [10:39:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 4F 99 47 00 E6 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EB B3 01 00 F4 03 04 00 2F 9E 73 66 B6 04 01 00 00 0E A0 FD AA 2F ED FB 69 [10:39:01]CommunicateWithHost err = 0 [10:39:01]CheckOFDResponse [10:39:01]1017 (14) - 77093643461234 [10:39:01]1041 (16) - 0000000000875083 [10:39:01]1040 (4) - 111595 [10:39:01]1012 (4) - 20.06.2024 03:12 [10:39:01]1206 (1) - 0 [10:39:01]OFD Sender: Remove packet 111595 [10:39:01]ProducePacketName [10:39:01]name=ofd_packets/00111595 [10:39:01]NVStorageDeleteData [10:39:01]Write to MH i2c: 01 00 00 2A 50 7A [10:39:01]Write i2c OK [10:39:01]MH_I2C_Read... [10:39:01]Read from MH i2c: 01 [10:39:01]MH_I2C_Read... [10:39:01]Read from MH i2c: 01 07 00 [10:39:01]MH_I2C_Read... [10:39:01]Read from MH i2c: 01 07 00 2A 50 00 00 00 00 00 E0 0C 6D [10:39:01]RasterBufferAndPrint [10:39:01]line [10:39:01]line [10:39:01]line [10:39:01]line [10:39:01]line [10:39:01]written 0, free lines is 3302 [10:39:01]MH_Cut [10:39:01]Write to MH i2c: D1 01 00 31 50 01 53 [10:39:01]Write i2c OK [10:39:01]MH_I2C_Read... [10:39:01]Read from MH i2c: D1 [10:39:01]MH_I2C_Read... [10:39:01]Read from MH i2c: D1 01 00 [10:39:01]MH_I2C_Read... [10:39:01]Read from MH i2c: D1 01 00 31 50 00 52 [10:39:01]Write to MH i2c: 01 00 00 32 50 82 [10:39:01]Write i2c OK [10:39:01]MH_I2C_Read... [10:39:01]OFD Sender: No OFD packet to send [10:39:02]*** Cut start [10:39:02]*** Partial cut [10:39:02]*** CUTSNS_PIN = 1 [10:39:02]*** CUTSNS_PIN = 0 [10:39:02]*** Brake cut motor [10:39:02]Read from MH i2c: 01 [10:39:02]MH_I2C_Read... [10:39:02]*** Stop cut motor [10:39:02]*** Cut end [10:39:02]Read from MH i2c: 01 07 00 [10:39:02]MH_I2C_Read... [10:39:02]Read from MH i2c: 01 07 00 32 50 00 00 00 00 00 FF 0F 97 [10:39:02]process_action close_receipt done [10:39:02]requested_data is exist [10:39:02]produce_requested_data [10:39:02]requested_item fm.sn is exist - process it [10:39:02]wFMCommunicate request_size=4 [10:39:02]MH_SAM_APDU [10:39:02]CAPDU: 80 11 00 00 [10:39:02]Write to MH i2c: E2 08 00 33 50 80 11 00 00 00 00 00 00 FD [10:39:02]Write i2c OK [10:39:02]MH_I2C_Read... [10:39:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:03]Read from MH i2c: E2 [10:39:03]MH_I2C_Read... [10:39:03]Read from MH i2c: E2 17 00 [10:39:03]MH_I2C_Read... [10:39:03]Read from MH i2c: E2 17 00 33 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4F [10:39:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:39:03]wFMCommunicate OK [10:39:03]requested_item fd.num is exist - process it [10:39:03]SAM_PROTO_GetFieldsCounters [10:39:03]wFMCommunicate request_size=4 [10:39:03]MH_SAM_APDU [10:39:03]CAPDU: 80 13 00 00 [10:39:03]Write to MH i2c: E2 08 00 34 50 80 13 00 00 00 00 00 00 00 [10:39:03]Write i2c OK [10:39:03]MH_I2C_Read... [10:39:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:03]Read from MH i2c: E2 [10:39:03]MH_I2C_Read... [10:39:03]Read from MH i2c: E2 62 00 [10:39:03]MH_I2C_Read... [10:39:03]Read from MH i2c: E2 62 00 34 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EB B3 01 00 0E 04 04 00 85 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 CD [10:39:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EB B3 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:39:03]wFMCommunicate OK [10:39:03]SAM_PROTO_GetFieldsCounters done [10:39:03]requested_item shift.num is exist - process it [10:39:03]requested_item shift.opened is exist - process it [10:39:03]req_shift_opened [10:39:03]FM_GetShiftState [10:39:03]SAM_PROTO_GetShiftState [10:39:03]wFMCommunicate request_size=4 [10:39:03]MH_SAM_APDU [10:39:03]CAPDU: 80 13 01 00 [10:39:03]Write to MH i2c: E2 08 00 35 50 80 13 01 00 00 00 00 00 02 [10:39:03]Write i2c OK [10:39:03]MH_I2C_Read... [10:39:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:03]Read from MH i2c: E2 [10:39:03]MH_I2C_Read... [10:39:03]Read from MH i2c: E2 0E 00 [10:39:03]MH_I2C_Read... [10:39:03]Read from MH i2c: E2 0E 00 35 50 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 7D [10:39:03]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:39:03]wFMCommunicate OK [10:39:03]SAM_PROTO_GetShiftState done [10:39:03]FM_GetShiftState done [10:39:03]req_shift_opened done [10:39:03]requested_item shift.open_date is exist - process it [10:39:03]req_shift_open_date [10:39:03]req_shift_open_date done [10:39:03]produce_requested_data done [10:39:03]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111595,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [10:39:03]process_action_free close_receipt [10:39:03]json_value_free [10:39:03]json_value_free done [10:39:03]process_json_proto returns [10:39:03]Send response to host [10:39:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111595,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [10:39:03]free response buf [10:39:03]execute_script done [10:39:03]execute_script returns [10:39:03]free content buf [10:39:03]Sock 9.Close socket [10:39:03]Sock 9.Thread stoped [10:39:06]OFD Sender: No OFD packet to send [10:39:11]OFD Sender: No OFD packet to send [10:39:16]OFD Sender: No OFD packet to send [10:39:21]OFD Sender: No OFD packet to send [10:39:26]OFD Sender: No OFD packet to send [10:39:31]OFD Sender: No OFD packet to send [10:39:36]OFD Sender: No OFD packet to send [10:39:41]OFD Sender: No OFD packet to send [10:39:46]OFD Sender: No OFD packet to send [10:39:51]OFD Sender: No OFD packet to send [10:39:54]accept exits with 7 [10:39:54]New connection [10:39:54]New thread 3067465060 created [10:39:54]Thread 3067321700 joined [10:39:54]Waiting for new connection... [10:39:54] Sock 7.Parse request [10:39:54]Sock 7.Check first char [10:39:54]Sock 7.First char is OK [10:39:54]request: POST /json_proto HTTP/1.0 [10:39:54]Method: POST [10:39:54]URL: /json_proto [10:39:54]Method is POST - this is cgi request [10:39:54]url: /json_proto [10:39:54]query_string will be loaded in cgi processing [10:39:54]execute_cgi json_proto POST (null) [10:39:54]execute_cgi path=json_proto method=POST [10:39:54]POST find Content-Length [10:39:54]Host: 172.17.59.68:8080 [10:39:54]Content-Length: 677 [10:39:54]Content-Type: application/json [10:39:54] [10:39:54]POST finish read [10:39:54]Found Content-Length = 677 [10:39:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:54]execute_script... [10:39: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)320193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:54]POST & json_proto [10:39:54]process_json_proto [10:39:54]json parsed OK: [10:39:54]protocol is kg_v1.0 [10:39:54]action value=close_receipt [10:39:54]process_action close_receipt [10:39:54]cmd_close_receipt [10:39:54]MH_GetDate [10:39:54]Write to MH i2c: F0 00 00 36 50 75 [10:39:54]Write i2c OK [10:39:54]MH_I2C_Read... [10:39:54]Read from MH i2c: F0 [10:39:54]MH_I2C_Read... [10:39:54]Read from MH i2c: F0 09 00 [10:39:54]MH_I2C_Read... [10:39:54]Read from MH i2c: F0 09 00 36 50 00 1A 07 74 66 BC EC 60 65 E6 [10:39:54]GetLastDocTimeStamp 1718879970 [10:39:54]current date 1718880026 [10:39:54]FM_GetShiftState [10:39:54]SAM_PROTO_GetShiftState [10:39:54]wFMCommunicate request_size=4 [10:39:54]MH_SAM_APDU [10:39:54]CAPDU: 80 13 01 00 [10:39:54]Write to MH i2c: E2 08 00 37 50 80 13 01 00 00 00 00 00 04 [10:39:54]Write i2c OK [10:39:54]MH_I2C_Read... [10:39:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:54]Read from MH i2c: E2 [10:39:54]MH_I2C_Read... [10:39:54]Read from MH i2c: E2 0E 00 [10:39:54]MH_I2C_Read... [10:39:54]Read from MH i2c: E2 0E 00 37 50 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 7F [10:39:54]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:39:54]wFMCommunicate OK [10:39:54]SAM_PROTO_GetShiftState done [10:39:54]FM_GetShiftState done [10:39:54]opened in 1718847247 [10:39:54]opened+sec_in_day 1718933647 [10:39:54]quantity*price = 40039 [10:39:54]sum+1 = 40040 [10:39:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 46 20.06.2024 10:40 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111596 ФПД: 192748522423587 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T104026&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111596&fm=192748522423587&tin=02508201610067®Number=0000000000092771&sum=40000 [10:39:55]StoreToDocumentArchive [10:39:55]shift 389 fd 111596 [10:39:55]save to /storage/0389/doc_00111596 [10:39:55]save last doc name /storage/0389/doc_00111596 to /storage/kkm_last_doc_name [10:39:55]save OK [10:39:55]Clear old archive folders... [10:39:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:39:55]tlvbuf is 00F1E3D0 [10:39:55]SAM_PROTO_ClearQueue [10:39:55]wFMCommunicate request_size=4 [10:39:55]MH_SAM_APDU [10:39:55]CAPDU: 80 09 00 00 [10:39:55]Write to MH i2c: E2 08 00 44 50 80 09 00 00 00 00 00 00 06 [10:39:55]Write i2c OK [10:39:55]MH_I2C_Read... [10:39:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:55]Read from MH i2c: E2 [10:39:55]MH_I2C_Read... [10:39:55]Read from MH i2c: E2 03 00 [10:39:55]MH_I2C_Read... [10:39:55]Read from MH i2c: E2 03 00 44 50 00 90 00 08 [10:39:55]RAPDU: 90 00 [10:39:55]wFMCommunicate OK [10:39:55]SAM_PROTO_ClearQueue done [10:39:55]KKMCreateOFDPacket [10:39:55]OFDProtocolAddRootSTLVToBuf [10:39:55]FM_MakeSignedData [10:39:55]FM_MakeSignedData [10:39:55]SAM_PROTO_SignData [10:39:55]wFMCommunicate request_size=4 [10:39:55]MH_SAM_APDU [10:39:55]CAPDU: 80 0D 01 02 [10:39:55]Write to MH i2c: E2 08 00 45 50 80 0D 01 02 00 00 00 00 0E [10:39:55]Write i2c OK [10:39:55]MH_I2C_Read... [10:39:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:56]Read from MH i2c: E2 [10:39:56]MH_I2C_Read... [10:39:56]Read from MH i2c: E2 03 00 [10:39:56]MH_I2C_Read... [10:39:56]Read from MH i2c: E2 03 00 45 50 00 90 00 09 [10:39:56]RAPDU: 90 00 [10:39:56]wFMCommunicate OK [10:39:56]wFMCommunicate request_size=255 [10:39:56]MH_SAM_APDU [10:39: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 1A 07 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EC B3 01 00 35 04 06 00 AF [10:39:56]Write to MH i2c: E2 02 01 46 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 1A 07 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EC B3 01 00 35 04 06 00 AF 00 00 8E [10:39:56]Write i2c OK [10:39:56]MH_I2C_Read... [10:39:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:56]Read from MH i2c: E2 [10:39:56]MH_I2C_Read... [10:39:56]Read from MH i2c: E2 03 00 [10:39:56]MH_I2C_Read... [10:39:56]Read from MH i2c: E2 03 00 46 50 00 90 00 0A [10:39:56]RAPDU: 90 00 [10:39:56]wFMCommunicate OK [10:39:56]wFMCommunicate request_size=10 [10:39:56]MH_SAM_APDU [10:39:56]CAPDU: 80 0D 02 02 05 4D C3 35 C5 23 [10:39:56]Write to MH i2c: E2 0D 00 47 50 80 0D 02 02 05 00 4D C3 35 C5 23 00 00 48 [10:39:56]Write i2c OK [10:39:56]MH_I2C_Read... [10:39:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:56]Read from MH i2c: E2 [10:39:56]MH_I2C_Read... [10:39:56]Read from MH i2c: E2 03 00 [10:39:56]MH_I2C_Read... [10:39:56]Read from MH i2c: E2 03 00 47 50 00 90 00 0B [10:39:56]RAPDU: 90 00 [10:39:56]wFMCommunicate OK [10:39:56]wFMCommunicate request_size=4 [10:39:56]MH_SAM_APDU [10:39:56]CAPDU: 80 0D 03 02 [10:39:56]Write to MH i2c: E2 08 00 48 50 80 0D 03 02 00 00 00 00 13 [10:39:56]Write i2c OK [10:39:56]MH_I2C_Read... [10:39:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:56]Read from MH i2c: E2 [10:39:56]MH_I2C_Read... [10:39:56]Read from MH i2c: E2 0B 00 [10:39:56]MH_I2C_Read... [10:39:56]Read from MH i2c: E2 0B 00 48 50 00 1E 8F 31 A7 76 66 83 E5 90 00 DD [10:39:56]RAPDU: 1E 8F 31 A7 76 66 83 E5 90 00 [10:39:56]wFMCommunicate OK [10:39:56]SAM_PROTO_SignData done [10:39:56]FM_MakeSignedData done [10:39:56]CreateOFDProtocolMessage [10:39:56]wFMCommunicate request_size=4 [10:39:56]MH_SAM_APDU [10:39:56]CAPDU: 80 11 00 00 [10:39:56]Write to MH i2c: E2 08 00 49 50 80 11 00 00 00 00 00 00 13 [10:39:56]Write i2c OK [10:39:56]MH_I2C_Read... [10:39:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:56]Read from MH i2c: E2 [10:39:56]MH_I2C_Read... [10:39:56]Read from MH i2c: E2 17 00 [10:39:56]MH_I2C_Read... [10:39:56]Read from MH i2c: E2 17 00 49 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 65 [10:39:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:39:56]wFMCommunicate OK [10:39:56]CreateOFDProtocolMessage done [10:39:56]OFDSenderStorePacket 111596 [10:39:56]StoreOFDPacket docnum=111596 [10:39:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A7 5C 07 01 C4 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 1A 07 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EC B3 01 00 35 04 06 00 AF 4D C3 35 C5 23 1E 8F 31 A7 76 66 83 E5 [10:39:56]CheckFolder [10:39:56]dirname=/storage/ofd_packets [10:39:56]CheckFolder done [10:39:56]ProducePacketName [10:39:56]name=ofd_packets/00111596 [10:39:56]NVStorageSaveData ofd_packets/00111596 [10:39:56]File name is /storage/ofd_packets/00111596 [10:39:56]Write 301 bytes [10:39:56]NVStorageSaveData done [10:39:56]OFDSenderStorePacket done [10:39:56]KKMCreateOFDPacket done [10:39:56]NVStorageSaveData kkm_last_timestamp [10:39:56]File name is /storage/kkm_last_timestamp [10:39:56]Write 4 bytes [10:39:56]NVStorageSaveData done [10:39:56]ExternCall_PrintAddStr [10:39:56]wPrintStart [10:39:56]Write to MH i2c: 01 00 00 4A 50 9A [10:39:56]Write i2c OK [10:39:56]MH_I2C_Read... [10:39:56]Read from MH i2c: 01 [10:39:56]MH_I2C_Read... [10:39:56]Read from MH i2c: 01 07 00 [10:39:56]MH_I2C_Read... [10:39:56]Read from MH i2c: 01 07 00 4A 50 00 00 00 00 00 FF 0F AF [10:39:56]RasterBufferAndPrint [10:39:56]line Счет N : (1)320193 [10:39:56]line ИНН: 02508201610067 [10:39:56]line Контрольно-Кассовый Чек [10:39:56]line ПРОДАЖА [10:39:56]line ТРК (МРК, ГНК) : 11 [10:39:56]line Товар: 2710124130 [10:39:56]line Аи-92-К-5 [10:39:56]line 6.030 * 66.40 [10:39:56]line = 400.39 [10:39:56]line НДС 12% НСП 1% [10:39:56]line > о реализуемом товаре [10:39:56]line ОКРУГЛЕНИЕ: -0.39 [10:39:56]line ИТОГО: 400.00 [10:39:56]line Внесено: 400.00 [10:39:56]line СДАЧА: 0.00 [10:39:56]line НСП 1% : 3.54 [10:39:56]line НДС 12% : 42.52 [10:39:56]line Наличными: 400.00 [10:39:56]line Безнал.: 0.00 [10:39:56]line Место: АЗС № 65 "Партнер Нефть" [10:39:56]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:39:56]line СНО: Общий режим [10:39:56]line Чек 46 20.06.2024 10:40 [10:39:56]line Смена: 389 ФФД: 1.0 [10:39:56]line ЗНМ: 0300000198 [10:39:56]line РНМ: 0000000000092771 [10:39:56]line Версия ККМ: 001 [10:39:56]line ФМ: 0000000000875083 [10:39:56]line ФД: 111596 [10:39:56]line ФПД: 192748522423587 [10:39:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T104026&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111596&fm=192748522423587&tin=02508201610067®Number=0000000000092771&sum=40000 [10:39:56]OFD Sender: Processing packet 111596 [packets to send 38, broken 37] [10:39:56]ProducePacketName [10:39:56]name=ofd_packets/00111596 [10:39:56]OFD Sender: To server: pG, [10:39:56]CommunicateWithHost lk.salyk.kg:30040 [10:39:56]ConnectInit lk.salyk.kg [10:39:56]written 0, free lines is 4095 [10:39:56]Connected sock=10 [10:39:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A7 5C 07 01 C4 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 1A 07 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EC B3 01 00 35 04 06 00 AF 4D C3 35 C5 23 1E 8F 31 A7 76 66 83 E5 [10:39:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D8 40 47 00 C6 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 35 30 38 33 10 04 04 00 EC B3 01 00 F4 03 04 00 67 9E 73 66 B6 04 01 00 00 14 7B 89 41 79 4C A4 97 [10:39:57]CommunicateWithHost err = 0 [10:39:57]CheckOFDResponse [10:39:57]1017 (14) - 77093643461234 [10:39:57]1041 (16) - 0000000000875083 [10:39:57]1040 (4) - 111596 [10:39:57]1012 (4) - 20.06.2024 03:13 [10:39:57]1206 (1) - 0 [10:39:57]OFD Sender: Remove packet 111596 [10:39:57]ProducePacketName [10:39:57]name=ofd_packets/00111596 [10:39:57]NVStorageDeleteData [10:39:57]Write to MH i2c: 01 00 00 75 50 C5 [10:39:57]Write i2c OK [10:39:57]MH_I2C_Read... [10:39:57]Read from MH i2c: 01 [10:39:57]MH_I2C_Read... [10:39:57]Read from MH i2c: 01 07 00 [10:39:57]MH_I2C_Read... [10:39:57]Read from MH i2c: 01 07 00 75 50 00 00 00 00 00 CE 0C A6 [10:39:57]RasterBufferAndPrint [10:39:57]line [10:39:57]line [10:39:57]line [10:39:57]line [10:39:57]line [10:39:57]written 0, free lines is 3288 [10:39:57]MH_Cut [10:39:57]Write to MH i2c: D1 01 00 7C 50 01 9E [10:39:57]Write i2c OK [10:39:57]MH_I2C_Read... [10:39:57]Read from MH i2c: D1 [10:39:57]MH_I2C_Read... [10:39:57]Read from MH i2c: D1 01 00 [10:39:57]MH_I2C_Read... [10:39:57]Read from MH i2c: D1 01 00 7C 50 00 9D [10:39:57]Write to MH i2c: 01 00 00 7D 50 CD [10:39:57]Write i2c OK [10:39:57]MH_I2C_Read... [10:39:57]OFD Sender: No OFD packet to send [10:39:58]*** Cut start [10:39:58]*** Partial cut [10:39:58]*** CUTSNS_PIN = 1 [10:39:58]*** CUTSNS_PIN = 0 [10:39:58]*** Brake cut motor [10:39:58]Read from MH i2c: 01 [10:39:58]MH_I2C_Read... [10:39:58]*** Stop cut motor [10:39:58]*** Cut end [10:39:58]Read from MH i2c: 01 07 00 [10:39:58]MH_I2C_Read... [10:39:58]Read from MH i2c: 01 07 00 7D 50 00 00 00 00 00 FF 0F E2 [10:39:58]process_action close_receipt done [10:39:58]requested_data is exist [10:39:58]produce_requested_data [10:39:58]requested_item fm.sn is exist - process it [10:39:58]wFMCommunicate request_size=4 [10:39:58]MH_SAM_APDU [10:39:58]CAPDU: 80 11 00 00 [10:39:58]Write to MH i2c: E2 08 00 7E 50 80 11 00 00 00 00 00 00 48 [10:39:58]Write i2c OK [10:39:58]MH_I2C_Read... [10:39:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:58]Read from MH i2c: E2 [10:39:58]MH_I2C_Read... [10:39:58]Read from MH i2c: E2 17 00 [10:39:58]MH_I2C_Read... [10:39:58]Read from MH i2c: E2 17 00 7E 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9A [10:39:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:39:58]wFMCommunicate OK [10:39:58]requested_item fd.num is exist - process it [10:39:58]SAM_PROTO_GetFieldsCounters [10:39:58]wFMCommunicate request_size=4 [10:39:58]MH_SAM_APDU [10:39:58]CAPDU: 80 13 00 00 [10:39:58]Write to MH i2c: E2 08 00 7F 50 80 13 00 00 00 00 00 00 4B [10:39:58]Write i2c OK [10:39:58]MH_I2C_Read... [10:39:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:58]Read from MH i2c: E2 [10:39:58]MH_I2C_Read... [10:39:58]Read from MH i2c: E2 62 00 [10:39:58]MH_I2C_Read... [10:39:58]Read from MH i2c: E2 62 00 7F 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EC B3 01 00 0E 04 04 00 85 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 1C [10:39:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EC B3 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:39:58]wFMCommunicate OK [10:39:58]SAM_PROTO_GetFieldsCounters done [10:39:58]requested_item shift.num is exist - process it [10:39:58]requested_item shift.opened is exist - process it [10:39:58]req_shift_opened [10:39:58]FM_GetShiftState [10:39:58]SAM_PROTO_GetShiftState [10:39:58]wFMCommunicate request_size=4 [10:39:58]MH_SAM_APDU [10:39:58]CAPDU: 80 13 01 00 [10:39:58]Write to MH i2c: E2 08 00 80 50 80 13 01 00 00 00 00 00 4D [10:39:58]Write i2c OK [10:39:58]MH_I2C_Read... [10:39:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:58]Read from MH i2c: E2 [10:39:58]MH_I2C_Read... [10:39:58]Read from MH i2c: E2 0E 00 [10:39:58]MH_I2C_Read... [10:39:58]Read from MH i2c: E2 0E 00 80 50 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 C8 [10:39:58]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:39:58]wFMCommunicate OK [10:39:58]SAM_PROTO_GetShiftState done [10:39:58]FM_GetShiftState done [10:39:58]req_shift_opened done [10:39:58]requested_item shift.open_date is exist - process it [10:39:58]req_shift_open_date [10:39:58]req_shift_open_date done [10:39:58]produce_requested_data done [10:39:58]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111596,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [10:39:58]process_action_free close_receipt [10:39:58]json_value_free [10:39:58]json_value_free done [10:39:58]process_json_proto returns [10:39:58]Send response to host [10:39:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111596,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [10:39:58]free response buf [10:39:58]execute_script done [10:39:58]execute_script returns [10:39:58]free content buf [10:39:58]Sock 7.Close socket [10:39:58]Sock 7.Thread stoped [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]OFD Sender: No OFD packet to send [10:40:22]OFD Sender: No OFD packet to send [10:40:27]OFD Sender: No OFD packet to send [10:40:32]OFD Sender: No OFD packet to send [10:40:37]OFD Sender: No OFD packet to send [10:40:42]accept exits with 9 [10:40:42]New connection [10:40:42]New thread 3067321700 created [10:40:42]Thread 3067465060 joined [10:40:42]Waiting for new connection... [10:40:42] Sock 9.Parse request [10:40:42]Sock 9.Check first char [10:40:42]Sock 9.First char is OK [10:40:42]request: POST /json_proto HTTP/1.0 [10:40:42]Method: POST [10:40:42]URL: /json_proto [10:40:42]Method is POST - this is cgi request [10:40:42]url: /json_proto [10:40:42]query_string will be loaded in cgi processing [10:40:42]execute_cgi json_proto POST (null) [10:40:42]execute_cgi path=json_proto method=POST [10:40:42]POST find Content-Length [10:40:42]Host: 172.17.59.68:8080 [10:40:42]Content-Length: 677 [10:40:42]Content-Type: application/json [10:40:42] [10:40:42]POST finish read [10:40:42]Found Content-Length = 677 [10:40:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:42]execute_script... [10:40: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)320194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:42]POST & json_proto [10:40:42]process_json_proto [10:40:42]json parsed OK: [10:40:42]protocol is kg_v1.0 [10:40:42]action value=close_receipt [10:40:42]process_action close_receipt [10:40:42]cmd_close_receipt [10:40:42]MH_GetDate [10:40:42]Write to MH i2c: F0 00 00 81 50 C0 [10:40:42]Write i2c OK [10:40:42]MH_I2C_Read... [10:40:42]Read from MH i2c: F0 [10:40:42]MH_I2C_Read... [10:40:42]Read from MH i2c: F0 09 00 [10:40:42]MH_I2C_Read... [10:40:42]Read from MH i2c: F0 09 00 81 50 00 49 07 74 66 BC EC 60 65 60 [10:40:42]GetLastDocTimeStamp 1718880026 [10:40:42]current date 1718880073 [10:40:42]FM_GetShiftState [10:40:42]SAM_PROTO_GetShiftState [10:40:42]wFMCommunicate request_size=4 [10:40:42]MH_SAM_APDU [10:40:42]CAPDU: 80 13 01 00 [10:40:42]Write to MH i2c: E2 08 00 82 50 80 13 01 00 00 00 00 00 4F [10:40:42]Write i2c OK [10:40:42]MH_I2C_Read... [10:40:42]OFD Sender: No OFD packet to send [10:40:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:42]Read from MH i2c: E2 [10:40:42]MH_I2C_Read... [10:40:42]Read from MH i2c: E2 0E 00 [10:40:42]MH_I2C_Read... [10:40:42]Read from MH i2c: E2 0E 00 82 50 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 CA [10:40:42]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:40:42]wFMCommunicate OK [10:40:42]SAM_PROTO_GetShiftState done [10:40:42]FM_GetShiftState done [10:40:42]opened in 1718847247 [10:40:42]opened+sec_in_day 1718933647 [10:40:42]quantity*price = 60025 [10:40:42]sum+1 = 60027 [10:40:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 47 20.06.2024 10:41 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111597 ФПД: 155649241547152 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T104114&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111597&fm=155649241547152&tin=02508201610067®Number=0000000000092771&sum=60000 [10:40:43]StoreToDocumentArchive [10:40:43]shift 389 fd 111597 [10:40:43]save to /storage/0389/doc_00111597 [10:40:43]save last doc name /storage/0389/doc_00111597 to /storage/kkm_last_doc_name [10:40:43]save OK [10:40:43]Clear old archive folders... [10:40:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:40:43]tlvbuf is 00F1E3D0 [10:40:43]SAM_PROTO_ClearQueue [10:40:43]wFMCommunicate request_size=4 [10:40:43]MH_SAM_APDU [10:40:43]CAPDU: 80 09 00 00 [10:40:43]Write to MH i2c: E2 08 00 8F 50 80 09 00 00 00 00 00 00 51 [10:40:43]Write i2c OK [10:40:43]MH_I2C_Read... [10:40:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:43]Read from MH i2c: E2 [10:40:43]MH_I2C_Read... [10:40:43]Read from MH i2c: E2 03 00 [10:40:43]MH_I2C_Read... [10:40:43]Read from MH i2c: E2 03 00 8F 50 00 90 00 53 [10:40:43]RAPDU: 90 00 [10:40:43]wFMCommunicate OK [10:40:43]SAM_PROTO_ClearQueue done [10:40:43]KKMCreateOFDPacket [10:40:43]OFDProtocolAddRootSTLVToBuf [10:40:43]FM_MakeSignedData [10:40:43]FM_MakeSignedData [10:40:43]SAM_PROTO_SignData [10:40:43]wFMCommunicate request_size=4 [10:40:43]MH_SAM_APDU [10:40:43]CAPDU: 80 0D 01 02 [10:40:43]Write to MH i2c: E2 08 00 90 50 80 0D 01 02 00 00 00 00 59 [10:40:43]Write i2c OK [10:40:43]MH_I2C_Read... [10:40:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:43]Read from MH i2c: E2 [10:40:43]MH_I2C_Read... [10:40:43]Read from MH i2c: E2 03 00 [10:40:43]MH_I2C_Read... [10:40:43]Read from MH i2c: E2 03 00 90 50 00 90 00 54 [10:40:43]RAPDU: 90 00 [10:40:43]wFMCommunicate OK [10:40:43]wFMCommunicate request_size=255 [10:40:43]MH_SAM_APDU [10:40: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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 4A 07 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 ED B3 01 00 35 04 06 00 8D [10:40:43]Write to MH i2c: E2 02 01 91 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 4A 07 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 ED B3 01 00 35 04 06 00 8D 00 00 F8 [10:40:43]Write i2c OK [10:40:43]MH_I2C_Read... [10:40:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:44]Read from MH i2c: E2 [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: E2 03 00 [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: E2 03 00 91 50 00 90 00 55 [10:40:44]RAPDU: 90 00 [10:40:44]wFMCommunicate OK [10:40:44]wFMCommunicate request_size=10 [10:40:44]MH_SAM_APDU [10:40:44]CAPDU: 80 0D 02 02 05 8F E9 C0 81 90 [10:40:44]Write to MH i2c: E2 0D 00 92 50 80 0D 02 02 05 00 8F E9 C0 81 90 00 00 AF [10:40:44]Write i2c OK [10:40:44]MH_I2C_Read... [10:40:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:44]Read from MH i2c: E2 [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: E2 03 00 [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: E2 03 00 92 50 00 90 00 56 [10:40:44]RAPDU: 90 00 [10:40:44]wFMCommunicate OK [10:40:44]wFMCommunicate request_size=4 [10:40:44]MH_SAM_APDU [10:40:44]CAPDU: 80 0D 03 02 [10:40:44]Write to MH i2c: E2 08 00 93 50 80 0D 03 02 00 00 00 00 5E [10:40:44]Write i2c OK [10:40:44]MH_I2C_Read... [10:40:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:44]Read from MH i2c: E2 [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: E2 0B 00 [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: E2 0B 00 93 50 00 9C 5E 70 EE B6 92 79 EC 90 00 64 [10:40:44]RAPDU: 9C 5E 70 EE B6 92 79 EC 90 00 [10:40:44]wFMCommunicate OK [10:40:44]SAM_PROTO_SignData done [10:40:44]FM_MakeSignedData done [10:40:44]CreateOFDProtocolMessage [10:40:44]wFMCommunicate request_size=4 [10:40:44]MH_SAM_APDU [10:40:44]CAPDU: 80 11 00 00 [10:40:44]Write to MH i2c: E2 08 00 94 50 80 11 00 00 00 00 00 00 5E [10:40:44]Write i2c OK [10:40:44]MH_I2C_Read... [10:40:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:44]Read from MH i2c: E2 [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: E2 17 00 [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: E2 17 00 94 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B0 [10:40:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:40:44]wFMCommunicate OK [10:40:44]CreateOFDProtocolMessage done [10:40:44]OFDSenderStorePacket 111597 [10:40:44]StoreOFDPacket docnum=111597 [10:40:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AA D0 07 01 05 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 4A 07 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 ED B3 01 00 35 04 06 00 8D 8F E9 C0 81 90 9C 5E 70 EE B6 92 79 EC [10:40:44]CheckFolder [10:40:44]dirname=/storage/ofd_packets [10:40:44]CheckFolder done [10:40:44]ProducePacketName [10:40:44]name=ofd_packets/00111597 [10:40:44]NVStorageSaveData ofd_packets/00111597 [10:40:44]File name is /storage/ofd_packets/00111597 [10:40:44]Write 301 bytes [10:40:44]NVStorageSaveData done [10:40:44]OFDSenderStorePacket done [10:40:44]KKMCreateOFDPacket done [10:40:44]NVStorageSaveData kkm_last_timestamp [10:40:44]File name is /storage/kkm_last_timestamp [10:40:44]Write 4 bytes [10:40:44]NVStorageSaveData done [10:40:44]ExternCall_PrintAddStr [10:40:44]wPrintStart [10:40:44]Write to MH i2c: 01 00 00 95 50 E5 [10:40:44]Write i2c OK [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: 01 [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: 01 07 00 [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: 01 07 00 95 50 00 00 00 00 00 FF 0F FA [10:40:44]RasterBufferAndPrint [10:40:44]line Счет N : (1)320194 [10:40:44]line ИНН: 02508201610067 [10:40:44]line Контрольно-Кассовый Чек [10:40:44]line ПРОДАЖА [10:40:44]line ТРК (МРК, ГНК) : 11 [10:40:44]line Товар: 2710124130 [10:40:44]line Аи-92-К-5 [10:40:44]line 9.040 * 66.40 [10:40:44]line = 600.26 [10:40:44]line НДС 12% НСП 1% [10:40:44]line > о реализуемом товаре [10:40:44]line ОКРУГЛЕНИЕ: -0.26 [10:40:44]line ИТОГО: 600.00 [10:40:44]line Внесено: 600.00 [10:40:44]line СДАЧА: 0.00 [10:40:44]line НСП 1% : 5.31 [10:40:44]line НДС 12% : 63.74 [10:40:44]line Наличными: 600.00 [10:40:44]line Безнал.: 0.00 [10:40:44]line Место: АЗС № 65 "Партнер Нефть" [10:40:44]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:40:44]line СНО: Общий режим [10:40:44]line Чек 47 20.06.2024 10:41 [10:40:44]line Смена: 389 ФФД: 1.0 [10:40:44]line ЗНМ: 0300000198 [10:40:44]line РНМ: 0000000000092771 [10:40:44]line Версия ККМ: 001 [10:40:44]line ФМ: 0000000000875083 [10:40:44]line ФД: 111597 [10:40:44]line ФПД: 155649241547152 [10:40:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T104114&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111597&fm=155649241547152&tin=02508201610067®Number=0000000000092771&sum=60000 [10:40:44]OFD Sender: Processing packet 111597 [packets to send 38, broken 37] [10:40:44]ProducePacketName [10:40:44]name=ofd_packets/00111597 [10:40:44]OFD Sender: To server: pG, [10:40:44]CommunicateWithHost lk.salyk.kg:30040 [10:40:44]ConnectInit lk.salyk.kg [10:40:44]written 0, free lines is 4095 [10:40:44]Connected sock=10 [10:40:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AA D0 07 01 05 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 4A 07 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 ED B3 01 00 35 04 06 00 8D 8F E9 C0 81 90 9C 5E 70 EE B6 92 79 EC [10:40:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 33 0E 47 00 A1 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 ED B3 01 00 F4 03 04 00 97 9E 73 66 B6 04 01 00 00 88 2D 4F 57 F7 E4 96 9D [10:40:44]CommunicateWithHost err = 0 [10:40:44]CheckOFDResponse [10:40:44]1017 (14) - 77093643461234 [10:40:44]1041 (16) - 0000000000875083 [10:40:44]1040 (4) - 111597 [10:40:44]1012 (4) - 20.06.2024 03:14 [10:40:44]1206 (1) - 0 [10:40:44]OFD Sender: Remove packet 111597 [10:40:44]ProducePacketName [10:40:44]name=ofd_packets/00111597 [10:40:44]NVStorageDeleteData [10:40:45]Write to MH i2c: 01 00 00 C0 50 10 [10:40:45]Write i2c OK [10:40:45]MH_I2C_Read... [10:40:45]Read from MH i2c: 01 [10:40:45]MH_I2C_Read... [10:40:45]Read from MH i2c: 01 07 00 [10:40:45]MH_I2C_Read... [10:40:45]Read from MH i2c: 01 07 00 C0 50 00 00 00 00 00 CD 0C F0 [10:40:45]RasterBufferAndPrint [10:40:45]line [10:40:45]line [10:40:45]line [10:40:45]line [10:40:45]line [10:40:45]written 0, free lines is 3284 [10:40:45]MH_Cut [10:40:45]Write to MH i2c: D1 01 00 C7 50 01 E9 [10:40:45]Write i2c OK [10:40:45]MH_I2C_Read... [10:40:45]Read from MH i2c: D1 [10:40:45]MH_I2C_Read... [10:40:45]Read from MH i2c: D1 01 00 [10:40:45]MH_I2C_Read... [10:40:45]Read from MH i2c: D1 01 00 C7 50 00 E8 [10:40:45]Write to MH i2c: 01 00 00 C8 50 18 [10:40:45]Write i2c OK [10:40:45]MH_I2C_Read... [10:40:45]OFD Sender: No OFD packet to send [10:40:45]*** Cut start [10:40:45]*** Partial cut [10:40:45]*** CUTSNS_PIN = 1 [10:40:45]*** CUTSNS_PIN = 0 [10:40:46]*** Brake cut motor [10:40:46]Read from MH i2c: 01 [10:40:46]MH_I2C_Read... [10:40:46]*** Stop cut motor [10:40:46]*** Cut end [10:40:46]Read from MH i2c: 01 07 00 [10:40:46]MH_I2C_Read... [10:40:46]Read from MH i2c: 01 07 00 C8 50 00 00 00 00 00 FF 0F 2D [10:40:46]process_action close_receipt done [10:40:46]requested_data is exist [10:40:46]produce_requested_data [10:40:46]requested_item fm.sn is exist - process it [10:40:46]wFMCommunicate request_size=4 [10:40:46]MH_SAM_APDU [10:40:46]CAPDU: 80 11 00 00 [10:40:46]Write to MH i2c: E2 08 00 C9 50 80 11 00 00 00 00 00 00 93 [10:40:46]Write i2c OK [10:40:46]MH_I2C_Read... [10:40:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:46]Read from MH i2c: E2 [10:40:46]MH_I2C_Read... [10:40:46]Read from MH i2c: E2 17 00 [10:40:46]MH_I2C_Read... [10:40:46]Read from MH i2c: E2 17 00 C9 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E5 [10:40:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:40:46]wFMCommunicate OK [10:40:46]requested_item fd.num is exist - process it [10:40:46]SAM_PROTO_GetFieldsCounters [10:40:46]wFMCommunicate request_size=4 [10:40:46]MH_SAM_APDU [10:40:46]CAPDU: 80 13 00 00 [10:40:46]Write to MH i2c: E2 08 00 CA 50 80 13 00 00 00 00 00 00 96 [10:40:46]Write i2c OK [10:40:46]MH_I2C_Read... [10:40:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:46]Read from MH i2c: E2 [10:40:46]MH_I2C_Read... [10:40:46]Read from MH i2c: E2 62 00 [10:40:46]MH_I2C_Read... [10:40:46]Read from MH i2c: E2 62 00 CA 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 ED B3 01 00 0E 04 04 00 85 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 6B [10:40:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 ED B3 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:40:46]wFMCommunicate OK [10:40:46]SAM_PROTO_GetFieldsCounters done [10:40:46]requested_item shift.num is exist - process it [10:40:46]requested_item shift.opened is exist - process it [10:40:46]req_shift_opened [10:40:46]FM_GetShiftState [10:40:46]SAM_PROTO_GetShiftState [10:40:46]wFMCommunicate request_size=4 [10:40:46]MH_SAM_APDU [10:40:46]CAPDU: 80 13 01 00 [10:40:46]Write to MH i2c: E2 08 00 CB 50 80 13 01 00 00 00 00 00 98 [10:40:46]Write i2c OK [10:40:46]MH_I2C_Read... [10:40:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:46]Read from MH i2c: E2 [10:40:46]MH_I2C_Read... [10:40:46]Read from MH i2c: E2 0E 00 [10:40:46]MH_I2C_Read... [10:40:46]Read from MH i2c: E2 0E 00 CB 50 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 13 [10:40:46]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:40:46]wFMCommunicate OK [10:40:46]SAM_PROTO_GetShiftState done [10:40:46]FM_GetShiftState done [10:40:46]req_shift_opened done [10:40:46]requested_item shift.open_date is exist - process it [10:40:46]req_shift_open_date [10:40:46]req_shift_open_date done [10:40:46]produce_requested_data done [10:40:46]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111597,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [10:40:46]process_action_free close_receipt [10:40:46]json_value_free [10:40:46]json_value_free done [10:40:46]process_json_proto returns [10:40:46]Send response to host [10:40:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111597,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [10:40:46]free response buf [10:40:46]execute_script done [10:40:46]execute_script returns [10:40:46]free content buf [10:40:46]Sock 9.Close socket [10:40:46]Sock 9.Thread stoped [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:16]accept exits with 7 [10:42:16]New connection [10:42:16]New thread 3067465060 created [10:42:16]Thread 3067321700 joined [10:42:16]Waiting for new connection... [10:42:16] Sock 7.Parse request [10:42:16]Sock 7.Check first char [10:42:16]Sock 7.First char is OK [10:42:16]request: POST /json_proto HTTP/1.0 [10:42:16]Method: POST [10:42:16]URL: /json_proto [10:42:16]Method is POST - this is cgi request [10:42:16]url: /json_proto [10:42:16]query_string will be loaded in cgi processing [10:42:16]execute_cgi json_proto POST (null) [10:42:16]execute_cgi path=json_proto method=POST [10:42:16]POST find Content-Length [10:42:16]Host: 172.17.59.68:8080 [10:42:16]Content-Length: 682 [10:42:16]Content-Type: application/json [10:42:16] [10:42:16]POST finish read [10:42:16]Found Content-Length = 682 [10:42:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:16]execute_script... [10:42: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)320195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:16]POST & json_proto [10:42:16]process_json_proto [10:42:16]json parsed OK: [10:42:16]protocol is kg_v1.0 [10:42:16]action value=close_receipt [10:42:16]process_action close_receipt [10:42:16]cmd_close_receipt [10:42:16]MH_GetDate [10:42:16]Write to MH i2c: F0 00 00 CC 50 0B [10:42:16]Write i2c OK [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: F0 [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: F0 09 00 [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: F0 09 00 CC 50 00 A7 07 74 66 BC EC 60 65 09 [10:42:16]GetLastDocTimeStamp 1718880074 [10:42:16]current date 1718880167 [10:42:16]FM_GetShiftState [10:42:16]SAM_PROTO_GetShiftState [10:42:16]wFMCommunicate request_size=4 [10:42:16]MH_SAM_APDU [10:42:16]CAPDU: 80 13 01 00 [10:42:16]Write to MH i2c: E2 08 00 CD 50 80 13 01 00 00 00 00 00 9A [10:42:16]Write i2c OK [10:42:16]MH_I2C_Read... [10:42:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:16]Read from MH i2c: E2 [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: E2 0E 00 [10:42:16]MH_I2C_Read... [10:42:16]Read from MH i2c: E2 0E 00 CD 50 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 15 [10:42:16]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:42:16]wFMCommunicate OK [10:42:16]SAM_PROTO_GetShiftState done [10:42:16]FM_GetShiftState done [10:42:16]opened in 1718847247 [10:42:16]opened+sec_in_day 1718933647 [10:42:16]quantity*price = 100064 [10:42:16]sum+1 = 100066 [10:42:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 48 20.06.2024 10:42 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111598 ФПД: 239582876787130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T104247&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111598&fm=239582876787130&tin=02508201610067®Number=0000000000092771&sum=100000 [10:42:17]StoreToDocumentArchive [10:42:17]shift 389 fd 111598 [10:42:17]save to /storage/0389/doc_00111598 [10:42:17]save last doc name /storage/0389/doc_00111598 to /storage/kkm_last_doc_name [10:42:17]save OK [10:42:17]Clear old archive folders... [10:42:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:42:17]tlvbuf is 00F3C1D0 [10:42:17]SAM_PROTO_ClearQueue [10:42:17]wFMCommunicate request_size=4 [10:42:17]MH_SAM_APDU [10:42:17]CAPDU: 80 09 00 00 [10:42:17]Write to MH i2c: E2 08 00 DA 50 80 09 00 00 00 00 00 00 9C [10:42:17]Write i2c OK [10:42:17]MH_I2C_Read... [10:42:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:17]Read from MH i2c: E2 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: E2 03 00 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: E2 03 00 DA 50 00 90 00 9E [10:42:17]RAPDU: 90 00 [10:42:17]wFMCommunicate OK [10:42:17]SAM_PROTO_ClearQueue done [10:42:17]KKMCreateOFDPacket [10:42:17]OFDProtocolAddRootSTLVToBuf [10:42:17]FM_MakeSignedData [10:42:17]FM_MakeSignedData [10:42:17]SAM_PROTO_SignData [10:42:17]wFMCommunicate request_size=4 [10:42:17]MH_SAM_APDU [10:42:17]CAPDU: 80 0D 01 02 [10:42:17]Write to MH i2c: E2 08 00 DB 50 80 0D 01 02 00 00 00 00 A4 [10:42:17]Write i2c OK [10:42:17]MH_I2C_Read... [10:42:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:17]Read from MH i2c: E2 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: E2 03 00 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: E2 03 00 DB 50 00 90 00 9F [10:42:17]RAPDU: 90 00 [10:42:17]wFMCommunicate OK [10:42:17]wFMCommunicate request_size=255 [10:42:17]MH_SAM_APDU [10:42:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 A7 07 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EE B3 01 00 35 04 06 00 D9 [10:42:17]Write to MH i2c: E2 02 01 DC 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 A7 07 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EE B3 01 00 35 04 06 00 D9 00 00 61 [10:42:17]Write i2c OK [10:42:17]MH_I2C_Read... [10:42:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:17]Read from MH i2c: E2 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: E2 03 00 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: E2 03 00 DC 50 00 90 00 A0 [10:42:17]RAPDU: 90 00 [10:42:17]wFMCommunicate OK [10:42:17]wFMCommunicate request_size=10 [10:42:17]MH_SAM_APDU [10:42:17]CAPDU: 80 0D 02 02 05 E6 3C 43 E1 BA [10:42:17]Write to MH i2c: E2 0D 00 DD 50 80 0D 02 02 05 00 E6 3C 43 E1 BA 00 00 B1 [10:42:17]Write i2c OK [10:42:17]MH_I2C_Read... [10:42:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:17]Read from MH i2c: E2 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: E2 03 00 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: E2 03 00 DD 50 00 90 00 A1 [10:42:17]RAPDU: 90 00 [10:42:17]wFMCommunicate OK [10:42:17]wFMCommunicate request_size=4 [10:42:17]MH_SAM_APDU [10:42:17]CAPDU: 80 0D 03 02 [10:42:17]Write to MH i2c: E2 08 00 DE 50 80 0D 03 02 00 00 00 00 A9 [10:42:17]Write i2c OK [10:42:17]MH_I2C_Read... [10:42:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:17]Read from MH i2c: E2 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: E2 0B 00 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: E2 0B 00 DE 50 00 B3 C9 EE B4 D1 A5 6B 93 90 00 3C [10:42:17]RAPDU: B3 C9 EE B4 D1 A5 6B 93 90 00 [10:42:17]wFMCommunicate OK [10:42:17]SAM_PROTO_SignData done [10:42:17]FM_MakeSignedData done [10:42:17]CreateOFDProtocolMessage [10:42:17]wFMCommunicate request_size=4 [10:42:17]MH_SAM_APDU [10:42:17]CAPDU: 80 11 00 00 [10:42:17]Write to MH i2c: E2 08 00 DF 50 80 11 00 00 00 00 00 00 A9 [10:42:17]Write i2c OK [10:42:17]MH_I2C_Read... [10:42:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:17]Read from MH i2c: E2 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: E2 17 00 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: E2 17 00 DF 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FB [10:42:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:42:17]wFMCommunicate OK [10:42:17]CreateOFDProtocolMessage done [10:42:17]OFDSenderStorePacket 111598 [10:42:17]StoreOFDPacket docnum=111598 [10:42:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 37 EE 07 01 C3 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 A7 07 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EE B3 01 00 35 04 06 00 D9 E6 3C 43 E1 BA B3 C9 EE B4 D1 A5 6B 93 [10:42:17]CheckFolder [10:42:17]dirname=/storage/ofd_packets [10:42:17]CheckFolder done [10:42:17]ProducePacketName [10:42:17]name=ofd_packets/00111598 [10:42:17]NVStorageSaveData ofd_packets/00111598 [10:42:17]File name is /storage/ofd_packets/00111598 [10:42:17]Write 301 bytes [10:42:17]NVStorageSaveData done [10:42:17]OFDSenderStorePacket done [10:42:17]KKMCreateOFDPacket done [10:42:17]NVStorageSaveData kkm_last_timestamp [10:42:17]File name is /storage/kkm_last_timestamp [10:42:17]Write 4 bytes [10:42:17]NVStorageSaveData done [10:42:17]ExternCall_PrintAddStr [10:42:17]wPrintStart [10:42:17]Write to MH i2c: 01 00 00 E0 50 30 [10:42:17]Write i2c OK [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: 01 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: 01 07 00 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: 01 07 00 E0 50 00 00 00 00 00 FF 0F 45 [10:42:17]RasterBufferAndPrint [10:42:17]line Счет N : (1)320195 [10:42:17]line ИНН: 02508201610067 [10:42:17]line Контрольно-Кассовый Чек [10:42:17]line ПРОДАЖА [10:42:17]line ТРК (МРК, ГНК) : 11 [10:42:17]line Товар: 2710124130 [10:42:17]line Аи-92-К-5 [10:42:17]line 15.070 * 66.40 [10:42:17]line = 1000.65 [10:42:17]line НДС 12% НСП 1% [10:42:17]line > о реализуемом товаре [10:42:17]line ОКРУГЛЕНИЕ: -0.65 [10:42:17]line ИТОГО: 1000.00 [10:42:17]line Внесено: 1000.00 [10:42:17]line СДАЧА: 0.00 [10:42:17]line НСП 1% : 8.85 [10:42:17]line НДС 12% : 106.26 [10:42:17]line Наличными: 1000.00 [10:42:17]line Безнал.: 0.00 [10:42:17]line Место: АЗС № 65 "Партнер Нефть" [10:42:17]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:42:17]line СНО: Общий режим [10:42:17]line Чек 48 20.06.2024 10:42 [10:42:17]line Смена: 389 ФФД: 1.0 [10:42:17]line ЗНМ: 0300000198 [10:42:17]line РНМ: 0000000000092771 [10:42:17]line Версия ККМ: 001 [10:42:17]line ФМ: 0000000000875083 [10:42:17]line ФД: 111598 [10:42:17]line ФПД: 239582876787130 [10:42:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T104247&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111598&fm=239582876787130&tin=02508201610067®Number=0000000000092771&sum=100000 [10:42:18]OFD Sender: Processing packet 111598 [packets to send 38, broken 37] [10:42:18]ProducePacketName [10:42:18]name=ofd_packets/00111598 [10:42:18]OFD Sender: To server: pG, [10:42:18]CommunicateWithHost lk.salyk.kg:30040 [10:42:18]ConnectInit lk.salyk.kg [10:42:18]written 0, free lines is 4095 [10:42:18]Connected sock=9 [10:42:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 37 EE 07 01 C3 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 A7 07 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EE B3 01 00 35 04 06 00 D9 E6 3C 43 E1 BA B3 C9 EE B4 D1 A5 6B 93 [10:42:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D7 A8 47 00 7C 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EE B3 01 00 F4 03 04 00 F4 9E 73 66 B6 04 01 00 00 3C B2 9C 77 22 D5 9E 73 [10:42:18]CommunicateWithHost err = 0 [10:42:18]CheckOFDResponse [10:42:18]1017 (14) - 77093643461234 [10:42:18]1041 (16) - 0000000000875083 [10:42:18]1040 (4) - 111598 [10:42:18]1012 (4) - 20.06.2024 03:16 [10:42:18]1206 (1) - 0 [10:42:18]OFD Sender: Remove packet 111598 [10:42:18]ProducePacketName [10:42:18]name=ofd_packets/00111598 [10:42:18]NVStorageDeleteData [10:42:18]Write to MH i2c: 01 00 00 0B 51 5C [10:42:18]Write i2c OK [10:42:18]MH_I2C_Read... [10:42:18]Read from MH i2c: 01 [10:42:18]MH_I2C_Read... [10:42:18]Read from MH i2c: 01 07 00 [10:42:18]MH_I2C_Read... [10:42:18]Read from MH i2c: 01 07 00 0B 51 00 00 00 00 00 CB 0C 3A [10:42:18]RasterBufferAndPrint [10:42:18]line [10:42:18]line [10:42:18]line [10:42:18]line [10:42:18]line [10:42:18]written 0, free lines is 3281 [10:42:18]MH_Cut [10:42:18]Write to MH i2c: D1 01 00 12 51 01 35 [10:42:18]Write i2c OK [10:42:18]MH_I2C_Read... [10:42:18]Read from MH i2c: D1 [10:42:18]MH_I2C_Read... [10:42:18]Read from MH i2c: D1 01 00 [10:42:18]MH_I2C_Read... [10:42:18]Read from MH i2c: D1 01 00 12 51 00 34 [10:42:18]Write to MH i2c: 01 00 00 13 51 64 [10:42:18]Write i2c OK [10:42:18]MH_I2C_Read... [10:42:18]OFD Sender: No OFD packet to send [10:42:19]*** Cut start [10:42:19]*** Partial cut [10:42:19]*** CUTSNS_PIN = 1 [10:42:19]*** CUTSNS_PIN = 0 [10:42:19]*** Brake cut motor [10:42:19]Read from MH i2c: 01 [10:42:19]MH_I2C_Read... [10:42:19]*** Stop cut motor [10:42:19]*** Cut end [10:42:19]Read from MH i2c: 01 07 00 [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: 01 07 00 13 51 00 00 00 00 00 FF 0F 79 [10:42:19]process_action close_receipt done [10:42:19]requested_data is exist [10:42:19]produce_requested_data [10:42:19]requested_item fm.sn is exist - process it [10:42:19]wFMCommunicate request_size=4 [10:42:19]MH_SAM_APDU [10:42:19]CAPDU: 80 11 00 00 [10:42:19]Write to MH i2c: E2 08 00 14 51 80 11 00 00 00 00 00 00 DF [10:42:19]Write i2c OK [10:42:19]MH_I2C_Read... [10:42:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:19]Read from MH i2c: E2 [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: E2 17 00 [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: E2 17 00 14 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 31 [10:42:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:42:19]wFMCommunicate OK [10:42:19]requested_item fd.num is exist - process it [10:42:19]SAM_PROTO_GetFieldsCounters [10:42:19]wFMCommunicate request_size=4 [10:42:19]MH_SAM_APDU [10:42:19]CAPDU: 80 13 00 00 [10:42:19]Write to MH i2c: E2 08 00 15 51 80 13 00 00 00 00 00 00 E2 [10:42:19]Write i2c OK [10:42:19]MH_I2C_Read... [10:42:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:20]Read from MH i2c: E2 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 62 00 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 62 00 15 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EE B3 01 00 0E 04 04 00 85 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 BB [10:42:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EE B3 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:42:20]wFMCommunicate OK [10:42:20]SAM_PROTO_GetFieldsCounters done [10:42:20]requested_item shift.num is exist - process it [10:42:20]requested_item shift.opened is exist - process it [10:42:20]req_shift_opened [10:42:20]FM_GetShiftState [10:42:20]SAM_PROTO_GetShiftState [10:42:20]wFMCommunicate request_size=4 [10:42:20]MH_SAM_APDU [10:42:20]CAPDU: 80 13 01 00 [10:42:20]Write to MH i2c: E2 08 00 16 51 80 13 01 00 00 00 00 00 E4 [10:42:20]Write i2c OK [10:42:20]MH_I2C_Read... [10:42:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:20]Read from MH i2c: E2 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 0E 00 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 0E 00 16 51 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 5F [10:42:20]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:42:20]wFMCommunicate OK [10:42:20]SAM_PROTO_GetShiftState done [10:42:20]FM_GetShiftState done [10:42:20]req_shift_opened done [10:42:20]requested_item shift.open_date is exist - process it [10:42:20]req_shift_open_date [10:42:20]req_shift_open_date done [10:42:20]produce_requested_data done [10:42:20]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111598,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [10:42:20]process_action_free close_receipt [10:42:20]json_value_free [10:42:20]json_value_free done [10:42:20]process_json_proto returns [10:42:20]Send response to host [10:42:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111598,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [10:42:20]free response buf [10:42:20]execute_script done [10:42:20]execute_script returns [10:42:20]free content buf [10:42:20]Sock 7.Close socket [10:42:20]Sock 7.Thread stoped [10:42:23]OFD Sender: No OFD packet to send [10:42:28]OFD Sender: No OFD packet to send [10:42:33]OFD Sender: No OFD packet to send [10:42:38]OFD Sender: No OFD packet to send [10:42:43]OFD Sender: No OFD packet to send [10:42:48]OFD Sender: No OFD packet to send [10:42:53]OFD Sender: No OFD packet to send [10:42:58]OFD Sender: No OFD packet to send [10:43:03]OFD Sender: No OFD packet to send [10:43:08]OFD Sender: No OFD packet to send [10:43:13]OFD Sender: No OFD packet to send [10:43:18]OFD Sender: No OFD packet to send [10:43:23]OFD Sender: No OFD packet to send [10:43:28]OFD Sender: No OFD packet to send [10:43:33]OFD Sender: No OFD packet to send [10:43:38]OFD Sender: No OFD packet to send [10:43:43]OFD Sender: No OFD packet to send [10:43:48]OFD Sender: No OFD packet to send [10:43:53]OFD Sender: No OFD packet to send [10:43:58]OFD Sender: No OFD packet to send [10:44:03]OFD Sender: No OFD packet to send [10:44:08]OFD Sender: No OFD packet to send [10:44:13]OFD Sender: No OFD packet to send [10:44:18]OFD Sender: No OFD packet to send [10:44:23]OFD Sender: No OFD packet to send [10:44:28]OFD Sender: No OFD packet to send [10:44:33]OFD Sender: No OFD packet to send [10:44:38]OFD Sender: No OFD packet to send [10:44:44]OFD Sender: No OFD packet to send [10:44:49]OFD Sender: No OFD packet to send [10:44:54]OFD Sender: No OFD packet to send [10:44:59]OFD Sender: No OFD packet to send [10:45:04]OFD Sender: No OFD packet to send [10:45:09]OFD Sender: No OFD packet to send [10:45:14]OFD Sender: No OFD packet to send [10:45:19]OFD Sender: No OFD packet to send [10:45:24]OFD Sender: No OFD packet to send [10:45:29]OFD Sender: No OFD packet to send [10:45:34]OFD Sender: No OFD packet to send [10:45:39]OFD Sender: No OFD packet to send [10:45:44]OFD Sender: No OFD packet to send [10:45:49]OFD Sender: No OFD packet to send [10:45:54]OFD Sender: No OFD packet to send [10:45:59]OFD Sender: No OFD packet to send [10:46:04]OFD Sender: No OFD packet to send [10:46:09]OFD Sender: No OFD packet to send [10:46:14]OFD Sender: No OFD packet to send [10:46:19]OFD Sender: No OFD packet to send [10:46:24]OFD Sender: No OFD packet to send [10:46:29]OFD Sender: No OFD packet to send [10:46:34]OFD Sender: No OFD packet to send [10:46:39]OFD Sender: No OFD packet to send [10:46:42]accept exits with 10 [10:46:42]New connection [10:46:42]New thread 3067321700 created [10:46:42]Thread 3067465060 joined [10:46:42]Waiting for new connection... [10:46:42] Sock 10.Parse request [10:46:42]Sock 10.Check first char [10:46:42]Sock 10.First char is OK [10:46:42]request: POST /json_proto HTTP/1.0 [10:46:42]Method: POST [10:46:42]URL: /json_proto [10:46:42]Method is POST - this is cgi request [10:46:42]url: /json_proto [10:46:42]query_string will be loaded in cgi processing [10:46:42]execute_cgi json_proto POST (null) [10:46:42]execute_cgi path=json_proto method=POST [10:46:42]POST find Content-Length [10:46:42]Host: 172.17.59.68:8080 [10:46:42]Content-Length: 674 [10:46:42]Content-Type: application/json [10:46:42] [10:46:42]POST finish read [10:46:42]Found Content-Length = 674 [10:46:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 5.490, "sum" : 400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:42]execute_script... [10:46: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)320196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 5.490, "sum" : 400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:42]POST & json_proto [10:46:42]process_json_proto [10:46:42]json parsed OK: [10:46:42]protocol is kg_v1.0 [10:46:42]action value=close_receipt [10:46:42]process_action close_receipt [10:46:42]cmd_close_receipt [10:46:42]MH_GetDate [10:46:42]Write to MH i2c: F0 00 00 17 51 57 [10:46:42]Write i2c OK [10:46:42]MH_I2C_Read... [10:46:42]Read from MH i2c: F0 [10:46:42]MH_I2C_Read... [10:46:42]Read from MH i2c: F0 09 00 [10:46:42]MH_I2C_Read... [10:46:42]Read from MH i2c: F0 09 00 17 51 00 B2 08 74 66 BC EC 60 65 61 [10:46:42]GetLastDocTimeStamp 1718880167 [10:46:42]current date 1718880434 [10:46:42]FM_GetShiftState [10:46:42]SAM_PROTO_GetShiftState [10:46:42]wFMCommunicate request_size=4 [10:46:42]MH_SAM_APDU [10:46:42]CAPDU: 80 13 01 00 [10:46:42]Write to MH i2c: E2 08 00 18 51 80 13 01 00 00 00 00 00 E6 [10:46:42]Write i2c OK [10:46:42]MH_I2C_Read... [10:46:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:42]Read from MH i2c: E2 [10:46:42]MH_I2C_Read... [10:46:42]Read from MH i2c: E2 0E 00 [10:46:42]MH_I2C_Read... [10:46:42]Read from MH i2c: E2 0E 00 18 51 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 61 [10:46:42]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:46:42]wFMCommunicate OK [10:46:42]SAM_PROTO_GetShiftState done [10:46:42]FM_GetShiftState done [10:46:42]opened in 1718847247 [10:46:42]opened+sec_in_day 1718933647 [10:46:42]quantity*price = 40022 [10:46:42]sum+1 = 40023 [10:46:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.50 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 49 20.06.2024 10:47 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111599 ФПД: 165950427544985 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T104714&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111599&fm=165950427544985&tin=02508201610067®Number=0000000000092771&sum=40000 [10:46:44]StoreToDocumentArchive [10:46:44]shift 389 fd 111599 [10:46:44]save to /storage/0389/doc_00111599 [10:46:44]save last doc name /storage/0389/doc_00111599 to /storage/kkm_last_doc_name [10:46:44]save OK [10:46:44]Clear old archive folders... [10:46:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:46:44]tlvbuf is B6E25150 [10:46:44]SAM_PROTO_ClearQueue [10:46:44]wFMCommunicate request_size=4 [10:46:44]MH_SAM_APDU [10:46:44]CAPDU: 80 09 00 00 [10:46:44]Write to MH i2c: E2 08 00 25 51 80 09 00 00 00 00 00 00 E8 [10:46:44]Write i2c OK [10:46:44]MH_I2C_Read... [10:46:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:44]OFD Sender: No OFD packet to send [10:46:44]Read from MH i2c: E2 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 03 00 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 03 00 25 51 00 90 00 EA [10:46:44]RAPDU: 90 00 [10:46:44]wFMCommunicate OK [10:46:44]SAM_PROTO_ClearQueue done [10:46:44]KKMCreateOFDPacket [10:46:44]OFDProtocolAddRootSTLVToBuf [10:46:44]FM_MakeSignedData [10:46:44]FM_MakeSignedData [10:46:44]SAM_PROTO_SignData [10:46:44]wFMCommunicate request_size=4 [10:46:44]MH_SAM_APDU [10:46:44]CAPDU: 80 0D 01 02 [10:46:44]Write to MH i2c: E2 08 00 26 51 80 0D 01 02 00 00 00 00 F0 [10:46:44]Write i2c OK [10:46:44]MH_I2C_Read... [10:46:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:44]Read from MH i2c: E2 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 03 00 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 03 00 26 51 00 90 00 EB [10:46:44]RAPDU: 90 00 [10:46:44]wFMCommunicate OK [10:46:44]wFMCommunicate request_size=255 [10:46:44]MH_SAM_APDU [10:46:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 B2 08 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EF B3 01 00 35 04 06 00 96 EE 58 48 [10:46:44]Write to MH i2c: E2 02 01 27 51 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 B2 08 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EF B3 01 00 35 04 06 00 96 EE 58 48 00 00 33 [10:46:44]Write i2c OK [10:46:44]MH_I2C_Read... [10:46:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:44]Read from MH i2c: E2 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 03 00 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 03 00 27 51 00 90 00 EC [10:46:44]RAPDU: 90 00 [10:46:44]wFMCommunicate OK [10:46:44]wFMCommunicate request_size=7 [10:46:44]MH_SAM_APDU [10:46:44]CAPDU: 80 0D 02 02 02 BD 99 [10:46:44]Write to MH i2c: E2 0A 00 28 51 80 0D 02 02 02 00 BD 99 00 00 4D [10:46:44]Write i2c OK [10:46:44]MH_I2C_Read... [10:46:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:44]Read from MH i2c: E2 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 03 00 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 03 00 28 51 00 90 00 ED [10:46:44]RAPDU: 90 00 [10:46:44]wFMCommunicate OK [10:46:44]wFMCommunicate request_size=4 [10:46:44]MH_SAM_APDU [10:46:44]CAPDU: 80 0D 03 02 [10:46:44]Write to MH i2c: E2 08 00 29 51 80 0D 03 02 00 00 00 00 F5 [10:46:44]Write i2c OK [10:46:44]MH_I2C_Read... [10:46:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:44]Read from MH i2c: E2 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 0B 00 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 0B 00 29 51 00 0B 3A CD 9D EC FC 2E 96 90 00 51 [10:46:44]RAPDU: 0B 3A CD 9D EC FC 2E 96 90 00 [10:46:44]wFMCommunicate OK [10:46:44]SAM_PROTO_SignData done [10:46:44]FM_MakeSignedData done [10:46:44]CreateOFDProtocolMessage [10:46:44]wFMCommunicate request_size=4 [10:46:44]MH_SAM_APDU [10:46:44]CAPDU: 80 11 00 00 [10:46:44]Write to MH i2c: E2 08 00 2A 51 80 11 00 00 00 00 00 00 F5 [10:46:44]Write i2c OK [10:46:44]MH_I2C_Read... [10:46:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:44]Read from MH i2c: E2 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 17 00 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 17 00 2A 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 47 [10:46:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:46:44]wFMCommunicate OK [10:46:44]CreateOFDProtocolMessage done [10:46:44]OFDSenderStorePacket 111599 [10:46:44]StoreOFDPacket docnum=111599 [10:46:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 F9 54 04 01 F5 CB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 B2 08 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EF B3 01 00 35 04 06 00 96 EE 58 48 BD 99 0B 3A CD 9D EC FC 2E 96 [10:46:44]CheckFolder [10:46:44]dirname=/storage/ofd_packets [10:46:44]CheckFolder done [10:46:44]ProducePacketName [10:46:44]name=ofd_packets/00111599 [10:46:44]NVStorageSaveData ofd_packets/00111599 [10:46:44]File name is /storage/ofd_packets/00111599 [10:46:44]Write 298 bytes [10:46:44]NVStorageSaveData done [10:46:44]OFDSenderStorePacket done [10:46:44]KKMCreateOFDPacket done [10:46:44]NVStorageSaveData kkm_last_timestamp [10:46:44]File name is /storage/kkm_last_timestamp [10:46:44]Write 4 bytes [10:46:44]NVStorageSaveData done [10:46:44]ExternCall_PrintAddStr [10:46:44]wPrintStart [10:46:44]Write to MH i2c: 01 00 00 2B 51 7C [10:46:44]Write i2c OK [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: 01 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: 01 07 00 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: 01 07 00 2B 51 00 00 00 00 00 FF 0F 91 [10:46:44]RasterBufferAndPrint [10:46:44]line Счет N : (1)320196 [10:46:44]line ИНН: 02508201610067 [10:46:44]line Контрольно-Кассовый Чек [10:46:44]line ПРОДАЖА [10:46:44]line ТРК (МРК, ГНК) : 22 [10:46:44]line Товар: 2710194210 [10:46:44]line ДТ-К-5 [10:46:44]line 5.490 * 72.90 [10:46:44]line = 400.22 [10:46:44]line НДС 12% НСП 1% [10:46:44]line > о реализуемом товаре [10:46:44]line ОКРУГЛЕНИЕ: -0.22 [10:46:44]line ИТОГО: 400.00 [10:46:44]line Внесено: 400.00 [10:46:44]line СДАЧА: 0.00 [10:46:44]line НСП 1% : 3.54 [10:46:44]line НДС 12% : 42.50 [10:46:44]line Наличными: 400.00 [10:46:44]line Безнал.: 0.00 [10:46:44]line Место: АЗС № 65 "Партнер Нефть" [10:46:44]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:46:44]line СНО: Общий режим [10:46:44]line Чек 49 20.06.2024 10:47 [10:46:44]line Смена: 389 ФФД: 1.0 [10:46:44]line ЗНМ: 0300000198 [10:46:44]line РНМ: 0000000000092771 [10:46:44]line Версия ККМ: 001 [10:46:44]line ФМ: 0000000000875083 [10:46:44]line ФД: 111599 [10:46:44]line ФПД: 165950427544985 [10:46:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T104714&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111599&fm=165950427544985&tin=02508201610067®Number=0000000000092771&sum=40000 [10:46:44]OFD Sender: Processing packet 111599 [packets to send 38, broken 37] [10:46:44]ProducePacketName [10:46:44]name=ofd_packets/00111599 [10:46:44]OFD Sender: To server: pG, [10:46:44]CommunicateWithHost lk.salyk.kg:30040 [10:46:44]ConnectInit lk.salyk.kg [10:46:44]written 0, free lines is 4095 [10:46:45]Connected sock=9 [10: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 35 30 38 33 0C 01 00 00 F9 54 04 01 F5 CB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 B2 08 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EF B3 01 00 35 04 06 00 96 EE 58 48 BD 99 0B 3A CD 9D EC FC 2E 96 [10:46:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 CC AB 47 00 C5 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EF B3 01 00 F4 03 04 00 FF 9F 73 66 B6 04 01 00 00 3C C4 88 D2 F6 A9 1F E5 [10:46:45]CommunicateWithHost err = 0 [10:46:45]CheckOFDResponse [10:46:45]1017 (14) - 77093643461234 [10:46:45]1041 (16) - 0000000000875083 [10:46:45]1040 (4) - 111599 [10:46:45]1012 (4) - 20.06.2024 03:20 [10:46:45]1206 (1) - 0 [10:46:45]OFD Sender: Remove packet 111599 [10:46:45]ProducePacketName [10:46:45]name=ofd_packets/00111599 [10:46:45]NVStorageDeleteData [10:46:45]Write to MH i2c: 01 00 00 56 51 A7 [10:46:45]Write i2c OK [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: 01 [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: 01 07 00 [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: 01 07 00 56 51 00 00 00 00 00 C2 0C 7C [10:46:45]RasterBufferAndPrint [10:46:45]line [10:46:45]line [10:46:45]line [10:46:45]line [10:46:45]line [10:46:45]written 0, free lines is 3275 [10:46:45]MH_Cut [10:46:45]Write to MH i2c: D1 01 00 5D 51 01 80 [10:46:45]Write i2c OK [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: D1 [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: D1 01 00 [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: D1 01 00 5D 51 00 7F [10:46:45]Write to MH i2c: 01 00 00 5E 51 AF [10:46:45]Write i2c OK [10:46:45]MH_I2C_Read... [10:46:45]OFD Sender: No OFD packet to send [10:46:46]*** Cut start [10:46:46]*** Partial cut [10:46:46]*** CUTSNS_PIN = 1 [10:46:46]*** CUTSNS_PIN = 0 [10:46:46]*** Brake cut motor [10:46:46]Read from MH i2c: 01 [10:46:46]MH_I2C_Read... [10:46:46]*** Stop cut motor [10:46:46]*** Cut end [10:46:46]Read from MH i2c: 01 07 00 [10:46:46]MH_I2C_Read... [10:46:46]Read from MH i2c: 01 07 00 5E 51 00 00 00 00 00 FF 0F C4 [10:46:46]process_action close_receipt done [10:46:46]requested_data is exist [10:46:46]produce_requested_data [10:46:46]requested_item fm.sn is exist - process it [10:46:46]wFMCommunicate request_size=4 [10:46:46]MH_SAM_APDU [10:46:46]CAPDU: 80 11 00 00 [10:46:46]Write to MH i2c: E2 08 00 5F 51 80 11 00 00 00 00 00 00 2A [10:46:46]Write i2c OK [10:46:46]MH_I2C_Read... [10:46:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:46]Read from MH i2c: E2 [10:46:46]MH_I2C_Read... [10:46:46]Read from MH i2c: E2 17 00 [10:46:46]MH_I2C_Read... [10:46:46]Read from MH i2c: E2 17 00 5F 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7C [10:46:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:46:46]wFMCommunicate OK [10:46:46]requested_item fd.num is exist - process it [10:46:46]SAM_PROTO_GetFieldsCounters [10:46:46]wFMCommunicate request_size=4 [10:46:46]MH_SAM_APDU [10:46:46]CAPDU: 80 13 00 00 [10:46:46]Write to MH i2c: E2 08 00 60 51 80 13 00 00 00 00 00 00 2D [10:46:46]Write i2c OK [10:46:46]MH_I2C_Read... [10:46:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:46]Read from MH i2c: E2 [10:46:46]MH_I2C_Read... [10:46:46]Read from MH i2c: E2 62 00 [10:46:46]MH_I2C_Read... [10:46:46]Read from MH i2c: E2 62 00 60 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EF B3 01 00 0E 04 04 00 85 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 0A [10:46:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EF B3 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:46:46]wFMCommunicate OK [10:46:46]SAM_PROTO_GetFieldsCounters done [10:46:46]requested_item shift.num is exist - process it [10:46:46]requested_item shift.opened is exist - process it [10:46:46]req_shift_opened [10:46:46]FM_GetShiftState [10:46:46]SAM_PROTO_GetShiftState [10:46:46]wFMCommunicate request_size=4 [10:46:46]MH_SAM_APDU [10:46:46]CAPDU: 80 13 01 00 [10:46:46]Write to MH i2c: E2 08 00 61 51 80 13 01 00 00 00 00 00 2F [10:46:46]Write i2c OK [10:46:46]MH_I2C_Read... [10:46:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:47]Read from MH i2c: E2 [10:46:47]MH_I2C_Read... [10:46:47]Read from MH i2c: E2 0E 00 [10:46:47]MH_I2C_Read... [10:46:47]Read from MH i2c: E2 0E 00 61 51 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 AA [10:46:47]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:46:47]wFMCommunicate OK [10:46:47]SAM_PROTO_GetShiftState done [10:46:47]FM_GetShiftState done [10:46:47]req_shift_opened done [10:46:47]requested_item shift.open_date is exist - process it [10:46:47]req_shift_open_date [10:46:47]req_shift_open_date done [10:46:47]produce_requested_data done [10:46:47]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111599,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [10:46:47]process_action_free close_receipt [10:46:47]json_value_free [10:46:47]json_value_free done [10:46:47]process_json_proto returns [10:46:47]Send response to host [10:46:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111599,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [10:46:47]free response buf [10:46:47]execute_script done [10:46:47]execute_script returns [10:46:47]free content buf [10:46:47]Sock 10.Close socket [10:46:47]Sock 10.Thread stoped [10:46:50]OFD Sender: No OFD packet to send [10:46:55]OFD Sender: No OFD packet to send [10:47:00]OFD Sender: No OFD packet to send [10:47:01]accept exits with 7 [10:47:01]New connection [10:47:01]New thread 3067465060 created [10:47:01]Thread 3067321700 joined [10:47:01]Waiting for new connection... [10:47:01] Sock 7.Parse request [10:47:01]Sock 7.Check first char [10:47:01]Sock 7.First char is OK [10:47:01]request: POST /json_proto HTTP/1.0 [10:47:01]Method: POST [10:47:01]URL: /json_proto [10:47:01]Method is POST - this is cgi request [10:47:01]url: /json_proto [10:47:01]query_string will be loaded in cgi processing [10:47:01]execute_cgi json_proto POST (null) [10:47:01]execute_cgi path=json_proto method=POST [10:47:01]POST find Content-Length [10:47:01]Host: 172.17.59.68:8080 [10:47:01]Content-Length: 677 [10:47:01]Content-Type: application/json [10:47:01] [10:47:01]POST finish read [10:47:01]Found Content-Length = 677 [10:47:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:01]execute_script... [10:47: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)320197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:01]POST & json_proto [10:47:01]process_json_proto [10:47:01]json parsed OK: [10:47:01]protocol is kg_v1.0 [10:47:01]action value=close_receipt [10:47:01]process_action close_receipt [10:47:01]cmd_close_receipt [10:47:01]MH_GetDate [10:47:01]Write to MH i2c: F0 00 00 62 51 A2 [10:47:01]Write i2c OK [10:47:01]MH_I2C_Read... [10:47:01]Read from MH i2c: F0 [10:47:01]MH_I2C_Read... [10:47:01]Read from MH i2c: F0 09 00 [10:47:01]MH_I2C_Read... [10:47:01]Read from MH i2c: F0 09 00 62 51 00 C5 08 74 66 BC EC 60 65 BF [10:47:01]GetLastDocTimeStamp 1718880434 [10:47:01]current date 1718880453 [10:47:01]FM_GetShiftState [10:47:01]SAM_PROTO_GetShiftState [10:47:01]wFMCommunicate request_size=4 [10:47:01]MH_SAM_APDU [10:47:01]CAPDU: 80 13 01 00 [10:47:01]Write to MH i2c: E2 08 00 63 51 80 13 01 00 00 00 00 00 31 [10:47:01]Write i2c OK [10:47:01]MH_I2C_Read... [10:47:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:01]Read from MH i2c: E2 [10:47:01]MH_I2C_Read... [10:47:01]Read from MH i2c: E2 0E 00 [10:47:01]MH_I2C_Read... [10:47:01]Read from MH i2c: E2 0E 00 63 51 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 AC [10:47:01]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:47:01]wFMCommunicate OK [10:47:01]SAM_PROTO_GetShiftState done [10:47:01]FM_GetShiftState done [10:47:01]opened in 1718847247 [10:47:01]opened+sec_in_day 1718933647 [10:47:01]quantity*price = 50065 [10:47:01]sum+1 = 50067 [10:47:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 50 20.06.2024 10:47 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111600 ФПД: 208399737033904 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T104733&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111600&fm=208399737033904&tin=02508201610067®Number=0000000000092771&sum=50000 [10:47:02]StoreToDocumentArchive [10:47:02]shift 389 fd 111600 [10:47:02]save to /storage/0389/doc_00111600 [10:47:02]save last doc name /storage/0389/doc_00111600 to /storage/kkm_last_doc_name [10:47:02]save OK [10:47:02]Clear old archive folders... [10:47:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:47:02]tlvbuf is 00F005F0 [10:47:02]SAM_PROTO_ClearQueue [10:47:02]wFMCommunicate request_size=4 [10:47:02]MH_SAM_APDU [10:47:02]CAPDU: 80 09 00 00 [10:47:02]Write to MH i2c: E2 08 00 70 51 80 09 00 00 00 00 00 00 33 [10:47:02]Write i2c OK [10:47:02]MH_I2C_Read... [10:47:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:03]Read from MH i2c: E2 [10:47:03]MH_I2C_Read... [10:47:03]Read from MH i2c: E2 03 00 [10:47:03]MH_I2C_Read... [10:47:03]Read from MH i2c: E2 03 00 70 51 00 90 00 35 [10:47:03]RAPDU: 90 00 [10:47:03]wFMCommunicate OK [10:47:03]SAM_PROTO_ClearQueue done [10:47:03]KKMCreateOFDPacket [10:47:03]OFDProtocolAddRootSTLVToBuf [10:47:03]FM_MakeSignedData [10:47:03]FM_MakeSignedData [10:47:03]SAM_PROTO_SignData [10:47:03]wFMCommunicate request_size=4 [10:47:03]MH_SAM_APDU [10:47:03]CAPDU: 80 0D 01 02 [10:47:03]Write to MH i2c: E2 08 00 71 51 80 0D 01 02 00 00 00 00 3B [10:47:03]Write i2c OK [10:47:03]MH_I2C_Read... [10:47:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:03]Read from MH i2c: E2 [10:47:03]MH_I2C_Read... [10:47:03]Read from MH i2c: E2 03 00 [10:47:03]MH_I2C_Read... [10:47:03]Read from MH i2c: E2 03 00 71 51 00 90 00 36 [10:47:03]RAPDU: 90 00 [10:47:03]wFMCommunicate OK [10:47:03]wFMCommunicate request_size=255 [10:47:03]MH_SAM_APDU [10:47: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 C5 08 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F0 B3 01 00 35 04 06 00 BD [10:47:03]Write to MH i2c: E2 02 01 72 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 C5 08 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F0 B3 01 00 35 04 06 00 BD 00 00 AF [10:47:03]Write i2c OK [10:47:03]MH_I2C_Read... [10:47:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:03]Read from MH i2c: E2 [10:47:03]MH_I2C_Read... [10:47:03]Read from MH i2c: E2 03 00 [10:47:03]MH_I2C_Read... [10:47:03]Read from MH i2c: E2 03 00 72 51 00 90 00 37 [10:47:03]RAPDU: 90 00 [10:47:03]wFMCommunicate OK [10:47:03]wFMCommunicate request_size=10 [10:47:03]MH_SAM_APDU [10:47:03]CAPDU: 80 0D 02 02 05 89 D8 4C 14 B0 [10:47:03]Write to MH i2c: E2 0D 00 73 51 80 0D 02 02 05 00 89 D8 4C 14 B0 00 00 B9 [10:47:03]Write i2c OK [10:47:03]MH_I2C_Read... [10:47:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:03]Read from MH i2c: E2 [10:47:03]MH_I2C_Read... [10:47:03]Read from MH i2c: E2 03 00 [10:47:03]MH_I2C_Read... [10:47:03]Read from MH i2c: E2 03 00 73 51 00 90 00 38 [10:47:03]RAPDU: 90 00 [10:47:03]wFMCommunicate OK [10:47:03]wFMCommunicate request_size=4 [10:47:03]MH_SAM_APDU [10:47:03]CAPDU: 80 0D 03 02 [10:47:03]Write to MH i2c: E2 08 00 74 51 80 0D 03 02 00 00 00 00 40 [10:47:03]Write i2c OK [10:47:03]MH_I2C_Read... [10:47:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:03]Read from MH i2c: E2 [10:47:03]MH_I2C_Read... [10:47:03]Read from MH i2c: E2 0B 00 [10:47:03]MH_I2C_Read... [10:47:03]Read from MH i2c: E2 0B 00 74 51 00 BC 7F 41 18 23 2A 38 AA 90 00 04 [10:47:03]RAPDU: BC 7F 41 18 23 2A 38 AA 90 00 [10:47:03]wFMCommunicate OK [10:47:03]SAM_PROTO_SignData done [10:47:03]FM_MakeSignedData done [10:47:03]CreateOFDProtocolMessage [10:47:03]wFMCommunicate request_size=4 [10:47:03]MH_SAM_APDU [10:47:03]CAPDU: 80 11 00 00 [10:47:03]Write to MH i2c: E2 08 00 75 51 80 11 00 00 00 00 00 00 40 [10:47:03]Write i2c OK [10:47:03]MH_I2C_Read... [10:47:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:03]Read from MH i2c: E2 [10:47:03]MH_I2C_Read... [10:47:03]Read from MH i2c: E2 17 00 [10:47:03]MH_I2C_Read... [10:47:03]Read from MH i2c: E2 17 00 75 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 92 [10:47:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:47:03]wFMCommunicate OK [10:47:03]CreateOFDProtocolMessage done [10:47:03]OFDSenderStorePacket 111600 [10:47:03]StoreOFDPacket docnum=111600 [10:47:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 6D 2B 07 01 BA 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 C5 08 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F0 B3 01 00 35 04 06 00 BD 89 D8 4C 14 B0 BC 7F 41 18 23 2A 38 AA [10:47:03]CheckFolder [10:47:03]dirname=/storage/ofd_packets [10:47:03]CheckFolder done [10:47:03]ProducePacketName [10:47:03]name=ofd_packets/00111600 [10:47:03]NVStorageSaveData ofd_packets/00111600 [10:47:03]File name is /storage/ofd_packets/00111600 [10:47:03]Write 301 bytes [10:47:03]NVStorageSaveData done [10:47:03]OFDSenderStorePacket done [10:47:03]KKMCreateOFDPacket done [10:47:03]NVStorageSaveData kkm_last_timestamp [10:47:03]File name is /storage/kkm_last_timestamp [10:47:03]Write 4 bytes [10:47:03]NVStorageSaveData done [10:47:03]ExternCall_PrintAddStr [10:47:03]wPrintStart [10:47:03]Write to MH i2c: 01 00 00 76 51 C7 [10:47:03]OFD Sender: Processing packet 111600 [packets to send 38, broken 37] [10:47:03]ProducePacketName [10:47:03]name=ofd_packets/00111600 [10:47:03]OFD Sender: To server: pG, [10:47:03]CommunicateWithHost lk.salyk.kg:30040 [10:47:03]ConnectInit lk.salyk.kg [10:47:03]Write i2c OK [10:47:03]MH_I2C_Read... [10:47:03]Read from MH i2c: 01 [10:47:03]MH_I2C_Read... [10:47:03]Read from MH i2c: 01 07 00 [10:47:03]MH_I2C_Read... [10:47:03]Read from MH i2c: 01 07 00 76 51 00 00 00 00 00 FF 0F DC [10:47:03]RasterBufferAndPrint [10:47:03]line Счет N : (1)320197 [10:47:03]line ИНН: 02508201610067 [10:47:03]line Контрольно-Кассовый Чек [10:47:03]line ПРОДАЖА [10:47:03]line ТРК (МРК, ГНК) : 11 [10:47:03]line Товар: 2710124130 [10:47:03]line Аи-92-К-5 [10:47:03]line 7.540 * 66.40 [10:47:03]line = 500.66 [10:47:03]line НДС 12% НСП 1% [10:47:03]line > о реализуемом товаре [10:47:03]line ОКРУГЛЕНИЕ: -0.66 [10:47:03]line ИТОГО: 500.00 [10:47:03]line Внесено: 500.00 [10:47:03]line СДАЧА: 0.00 [10:47:03]line НСП 1% : 4.43 [10:47:03]line НДС 12% : 53.17 [10:47:03]line Наличными: 500.00 [10:47:03]line Безнал.: 0.00 [10:47:03]line Место: АЗС № 65 "Партнер Нефть" [10:47:03]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:47:03]line СНО: Общий режим [10:47:03]line Чек 50 20.06.2024 10:47 [10:47:03]line Смена: 389 ФФД: 1.0 [10:47:03]line ЗНМ: 0300000198 [10:47:03]line РНМ: 0000000000092771 [10:47:03]line Версия ККМ: 001 [10:47:03]line ФМ: 0000000000875083 [10:47:03]line ФД: 111600 [10:47:03]line ФПД: 208399737033904 [10:47:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T104733&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111600&fm=208399737033904&tin=02508201610067®Number=0000000000092771&sum=50000 [10:47:03]Connected sock=10 [10:47:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 6D 2B 07 01 BA 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 C5 08 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F0 B3 01 00 35 04 06 00 BD 89 D8 4C 14 B0 BC 7F 41 18 23 2A 38 AA [10:47:03]written 0, free lines is 4095 [10:47:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 84 3E 47 00 B2 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F0 B3 01 00 F4 03 04 00 12 A0 73 66 B6 04 01 00 00 F8 C6 EF 06 B0 54 94 AB [10:47:04]CommunicateWithHost err = 0 [10:47:04]CheckOFDResponse [10:47:04]1017 (14) - 77093643461234 [10:47:04]1041 (16) - 0000000000875083 [10:47:04]1040 (4) - 111600 [10:47:04]1012 (4) - 20.06.2024 03:20 [10:47:04]1206 (1) - 0 [10:47:04]OFD Sender: Remove packet 111600 [10:47:04]ProducePacketName [10:47:04]name=ofd_packets/00111600 [10:47:04]NVStorageDeleteData [10:47:04]Write to MH i2c: 01 00 00 A1 51 F2 [10:47:04]Write i2c OK [10:47:04]MH_I2C_Read... [10:47:04]Read from MH i2c: 01 [10:47:04]MH_I2C_Read... [10:47:04]Read from MH i2c: 01 07 00 [10:47:04]MH_I2C_Read... [10:47:04]Read from MH i2c: 01 07 00 A1 51 00 00 00 00 00 C5 0C CA [10:47:04]RasterBufferAndPrint [10:47:04]line [10:47:04]line [10:47:04]line [10:47:04]line [10:47:04]line [10:47:04]written 0, free lines is 3275 [10:47:04]MH_Cut [10:47:04]Write to MH i2c: D1 01 00 A8 51 01 CB [10:47:04]Write i2c OK [10:47:04]MH_I2C_Read... [10:47:04]Read from MH i2c: D1 [10:47:04]MH_I2C_Read... [10:47:04]Read from MH i2c: D1 01 00 [10:47:04]MH_I2C_Read... [10:47:04]Read from MH i2c: D1 01 00 A8 51 00 CA [10:47:04]Write to MH i2c: 01 00 00 A9 51 FA [10:47:04]Write i2c OK [10:47:04]MH_I2C_Read... [10:47:04]OFD Sender: No OFD packet to send [10:47:05]*** Cut start [10:47:05]*** Partial cut [10:47:05]*** CUTSNS_PIN = 1 [10:47:05]*** CUTSNS_PIN = 0 [10:47:05]*** Brake cut motor [10:47:05]Read from MH i2c: *** Stop cut motor [10:47:05]*** Cut end [10:47:05]01 [10:47:05]MH_I2C_Read... [10:47:05]Read from MH i2c: 01 07 00 [10:47:05]MH_I2C_Read... [10:47:05]Read from MH i2c: 01 07 00 A9 51 00 00 00 00 00 FF 0F 0F [10:47:05]process_action close_receipt done [10:47:05]requested_data is exist [10:47:05]produce_requested_data [10:47:05]requested_item fm.sn is exist - process it [10:47:05]wFMCommunicate request_size=4 [10:47:05]MH_SAM_APDU [10:47:05]CAPDU: 80 11 00 00 [10:47:05]Write to MH i2c: E2 08 00 AA 51 80 11 00 00 00 00 00 00 75 [10:47:05]Write i2c OK [10:47:05]MH_I2C_Read... [10:47:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:05]Read from MH i2c: E2 [10:47:05]MH_I2C_Read... [10:47:05]Read from MH i2c: E2 17 00 [10:47:05]MH_I2C_Read... [10:47:05]Read from MH i2c: E2 17 00 AA 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C7 [10:47:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:47:05]wFMCommunicate OK [10:47:05]requested_item fd.num is exist - process it [10:47:05]SAM_PROTO_GetFieldsCounters [10:47:05]wFMCommunicate request_size=4 [10:47:05]MH_SAM_APDU [10:47:05]CAPDU: 80 13 00 00 [10:47:05]Write to MH i2c: E2 08 00 AB 51 80 13 00 00 00 00 00 00 78 [10:47:05]Write i2c OK [10:47:05]MH_I2C_Read... [10:47:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:05]Read from MH i2c: E2 [10:47:05]MH_I2C_Read... [10:47:05]Read from MH i2c: E2 62 00 [10:47:05]MH_I2C_Read... [10:47:05]Read from MH i2c: E2 62 00 AB 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F0 B3 01 00 0E 04 04 00 85 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 59 [10:47:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F0 B3 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:47:05]wFMCommunicate OK [10:47:05]SAM_PROTO_GetFieldsCounters done [10:47:05]requested_item shift.num is exist - process it [10:47:05]requested_item shift.opened is exist - process it [10:47:05]req_shift_opened [10:47:05]FM_GetShiftState [10:47:05]SAM_PROTO_GetShiftState [10:47:05]wFMCommunicate request_size=4 [10:47:05]MH_SAM_APDU [10:47:05]CAPDU: 80 13 01 00 [10:47:05]Write to MH i2c: E2 08 00 AC 51 80 13 01 00 00 00 00 00 7A [10:47:05]Write i2c OK [10:47:05]MH_I2C_Read... [10:47:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:05]Read from MH i2c: E2 [10:47:05]MH_I2C_Read... [10:47:05]Read from MH i2c: E2 0E 00 [10:47:05]MH_I2C_Read... [10:47:05]Read from MH i2c: E2 0E 00 AC 51 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 F5 [10:47:05]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:47:05]wFMCommunicate OK [10:47:05]SAM_PROTO_GetShiftState done [10:47:05]FM_GetShiftState done [10:47:05]req_shift_opened done [10:47:05]requested_item shift.open_date is exist - process it [10:47:05]req_shift_open_date [10:47:05]req_shift_open_date done [10:47:05]produce_requested_data done [10:47:05]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111600,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [10:47:05]process_action_free close_receipt [10:47:05]json_value_free [10:47:05]json_value_free done [10:47:05]process_json_proto returns [10:47:05]Send response to host [10:47:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111600,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [10:47:05]free response buf [10:47:05]execute_script done [10:47:05]execute_script returns [10:47:05]free content buf [10:47:05]Sock 7.Close socket [10:47:05]Sock 7.Thread stoped [10:47:09]OFD Sender: No OFD packet to send [10:47:14]OFD Sender: No OFD packet to send [10:47:19]OFD Sender: No OFD packet to send [10:47:24]OFD Sender: No OFD packet to send [10:47:29]OFD Sender: No OFD packet to send [10:47:34]OFD Sender: No OFD packet to send [10:47:39]OFD Sender: No OFD packet to send [10:47:44]OFD Sender: No OFD packet to send [10:47:49]OFD Sender: No OFD packet to send [10:47:54]OFD Sender: No OFD packet to send [10:47:59]OFD Sender: No OFD packet to send [10:48:04]OFD Sender: No OFD packet to send [10:48:09]OFD Sender: No OFD packet to send [10:48:14]OFD Sender: No OFD packet to send [10:48:19]OFD Sender: No OFD packet to send [10:48:24]OFD Sender: No OFD packet to send [10:48:29]OFD Sender: No OFD packet to send [10:48:34]OFD Sender: No OFD packet to send [10:48:39]OFD Sender: No OFD packet to send [10:48:44]OFD Sender: No OFD packet to send [10:48:49]OFD Sender: No OFD packet to send [10:48:54]OFD Sender: No OFD packet to send [10:48:59]OFD Sender: No OFD packet to send [10:49:04]OFD Sender: No OFD packet to send [10:49:09]OFD Sender: No OFD packet to send [10:49:14]OFD Sender: No OFD packet to send [10:49:19]OFD Sender: No OFD packet to send [10:49:24]OFD Sender: No OFD packet to send [10:49:29]OFD Sender: No OFD packet to send [10:49:34]OFD Sender: No OFD packet to send [10:49:39]OFD Sender: No OFD packet to send [10:49:44]OFD Sender: No OFD packet to send [10:49:49]OFD Sender: No OFD packet to send [10:49:54]OFD Sender: No OFD packet to send [10:49:59]OFD Sender: No OFD packet to send [10:50:04]OFD Sender: No OFD packet to send [10:50:09]OFD Sender: No OFD packet to send [10:50:14]OFD Sender: No OFD packet to send [10:50:19]OFD Sender: No OFD packet to send [10:50:24]OFD Sender: No OFD packet to send [10:50:29]OFD Sender: No OFD packet to send [10:50:34]OFD Sender: No OFD packet to send [10:50:39]OFD Sender: No OFD packet to send [10:50:44]OFD Sender: No OFD packet to send [10:50:49]OFD Sender: No OFD packet to send [10:50:54]OFD Sender: No OFD packet to send [10:50:59]OFD Sender: No OFD packet to send [10:51:04]OFD Sender: No OFD packet to send [10:51:09]OFD Sender: No OFD packet to send [10:51:14]OFD Sender: No OFD packet to send [10:51:19]OFD Sender: No OFD packet to send [10:51:24]OFD Sender: No OFD packet to send [10:51:29]OFD Sender: No OFD packet to send [10:51:34]OFD Sender: No OFD packet to send [10:51:39]OFD Sender: No OFD packet to send [10:51:44]OFD Sender: No OFD packet to send [10:51:49]OFD Sender: No OFD packet to send [10:51:54]OFD Sender: No OFD packet to send [10:51:59]OFD Sender: No OFD packet to send [10:52:04]OFD Sender: No OFD packet to send [10:52:09]OFD Sender: No OFD packet to send [10:52:14]OFD Sender: No OFD packet to send [10:52:19]OFD Sender: No OFD packet to send [10:52:24]OFD Sender: No OFD packet to send [10:52:29]OFD Sender: No OFD packet to send [10:52:34]OFD Sender: No OFD packet to send [10:52:39]OFD Sender: No OFD packet to send [10:52:44]OFD Sender: No OFD packet to send [10:52:49]OFD Sender: No OFD packet to send [10:52:54]OFD Sender: No OFD packet to send [10:52:59]OFD Sender: No OFD packet to send [10:53:04]OFD Sender: No OFD packet to send [10:53:09]accept exits with 9 [10:53:09]New connection [10:53:09]New thread 3067321700 created [10:53:09]Thread 3067465060 joined [10:53:09]Waiting for new connection... [10:53:09] Sock 9.Parse request [10:53:09]Sock 9.Check first char [10:53:09]Sock 9.First char is OK [10:53:09]request: POST /json_proto HTTP/1.0 [10:53:09]Method: POST [10:53:09]URL: /json_proto [10:53:09]Method is POST - this is cgi request [10:53:09]url: /json_proto [10:53:09]query_string will be loaded in cgi processing [10:53:09]execute_cgi json_proto POST (null) [10:53:09]execute_cgi path=json_proto method=POST [10:53:09]POST find Content-Length [10:53:09]Host: 172.17.59.68:8080 [10:53:09]Content-Length: 678 [10:53:09]Content-Type: application/json [10:53:09] [10:53:09]POST finish read [10:53:09]Found Content-Length = 678 [10:53:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.050, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:09]execute_script... [10:53: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)320198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.050, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:09]POST & json_proto [10:53:09]process_json_proto [10:53:09]json parsed OK: [10:53:09]protocol is kg_v1.0 [10:53:09]action value=close_receipt [10:53:09]process_action close_receipt [10:53:09]cmd_close_receipt [10:53:09]MH_GetDate [10:53:09]Write to MH i2c: F0 00 00 AD 51 ED [10:53:09]Write i2c OK [10:53:09]MH_I2C_Read... [10:53:09]Read from MH i2c: F0 [10:53:09]MH_I2C_Read... [10:53:09]Read from MH i2c: F0 09 00 [10:53:09]MH_I2C_Read... [10:53:09]Read from MH i2c: F0 09 00 AD 51 00 35 0A 74 66 BC EC 60 65 7C [10:53:09]GetLastDocTimeStamp 1718880453 [10:53:09]current date 1718880821 [10:53:09]FM_GetShiftState [10:53:09]SAM_PROTO_GetShiftState [10:53:09]wFMCommunicate request_size=4 [10:53:09]MH_SAM_APDU [10:53:09]CAPDU: 80 13 01 00 [10:53:09]Write to MH i2c: E2 08 00 AE 51 80 13 01 00 00 00 00 00 7C [10:53:09]Write i2c OK [10:53:09]MH_I2C_Read... [10:53:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:09]Read from MH i2c: E2 [10:53:09]MH_I2C_Read... [10:53:09]Read from MH i2c: E2 0E 00 [10:53:09]MH_I2C_Read... [10:53:09]Read from MH i2c: E2 0E 00 AE 51 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 F7 [10:53:09]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:53:09]wFMCommunicate OK [10:53:09]SAM_PROTO_GetShiftState done [10:53:09]FM_GetShiftState done [10:53:09]opened in 1718847247 [10:53:09]opened+sec_in_day 1718933647 [10:53:09]quantity*price = 80012 [10:53:09]sum+1 = 80013 [10:53:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 51 20.06.2024 10:53 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111601 ФПД: 267428328532094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T105341&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111601&fm=267428328532094&tin=02508201610067®Number=0000000000092771&sum=80000 [10:53:10]StoreToDocumentArchive [10:53:10]shift 389 fd 111601 [10:53:10]save to /storage/0389/doc_00111601 [10:53:10]save last doc name /storage/0389/doc_00111601 to /storage/kkm_last_doc_name [10:53:10]save OK [10:53:10]Clear old archive folders... [10:53:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:53:10]tlvbuf is 00F3B940 [10:53:10]SAM_PROTO_ClearQueue [10:53:10]wFMCommunicate request_size=4 [10:53:10]MH_SAM_APDU [10:53:10]CAPDU: 80 09 00 00 [10:53:10]Write to MH i2c: E2 08 00 BB 51 80 09 00 00 00 00 00 00 7E [10:53:10]Write i2c OK [10:53:10]MH_I2C_Read... [10:53:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:10]Read from MH i2c: E2 [10:53:10]MH_I2C_Read... [10:53:10]Read from MH i2c: E2 03 00 [10:53:10]MH_I2C_Read... [10:53:10]Read from MH i2c: E2 03 00 BB 51 00 90 00 80 [10:53:10]RAPDU: 90 00 [10:53:10]wFMCommunicate OK [10:53:10]SAM_PROTO_ClearQueue done [10:53:10]KKMCreateOFDPacket [10:53:10]OFDProtocolAddRootSTLVToBuf [10:53:10]FM_MakeSignedData [10:53:10]FM_MakeSignedData [10:53:10]SAM_PROTO_SignData [10:53:10]wFMCommunicate request_size=4 [10:53:10]MH_SAM_APDU [10:53:10]CAPDU: 80 0D 01 02 [10:53:10]Write to MH i2c: E2 08 00 BC 51 80 0D 01 02 00 00 00 00 86 [10:53:10]Write i2c OK [10:53:10]MH_I2C_Read... [10:53:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:11]Read from MH i2c: E2 [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: E2 03 00 [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: E2 03 00 BC 51 00 90 00 81 [10:53:11]RAPDU: 90 00 [10:53:11]wFMCommunicate OK [10:53:11]wFMCommunicate request_size=255 [10:53:11]MH_SAM_APDU [10:53: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 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 35 0A 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F1 B3 01 00 35 04 06 00 F3 [10:53:11]Write to MH i2c: E2 02 01 BD 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 35 0A 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F1 B3 01 00 35 04 06 00 F3 00 00 93 [10:53:11]Write i2c OK [10:53:11]MH_I2C_Read... [10:53:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:11]Read from MH i2c: E2 [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: E2 03 00 [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: E2 03 00 BD 51 00 90 00 82 [10:53:11]RAPDU: 90 00 [10:53:11]wFMCommunicate OK [10:53:11]wFMCommunicate request_size=10 [10:53:11]MH_SAM_APDU [10:53:11]CAPDU: 80 0D 02 02 05 39 82 86 68 7E [10:53:11]Write to MH i2c: E2 0D 00 BE 51 80 0D 02 02 05 00 39 82 86 68 7E 00 00 BA [10:53:11]Write i2c OK [10:53:11]MH_I2C_Read... [10:53:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:11]Read from MH i2c: E2 [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: E2 03 00 [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: E2 03 00 BE 51 00 90 00 83 [10:53:11]RAPDU: 90 00 [10:53:11]wFMCommunicate OK [10:53:11]wFMCommunicate request_size=4 [10:53:11]MH_SAM_APDU [10:53:11]CAPDU: 80 0D 03 02 [10:53:11]Write to MH i2c: E2 08 00 BF 51 80 0D 03 02 00 00 00 00 8B [10:53:11]Write i2c OK [10:53:11]MH_I2C_Read... [10:53:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:53:11]Read from MH i2c: E2 [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: E2 0B 00 [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: E2 0B 00 BF 51 00 0E 0C 9B 01 AC DF 1F 11 90 00 FD [10:53:11]RAPDU: 0E 0C 9B 01 AC DF 1F 11 90 00 [10:53:11]wFMCommunicate OK [10:53:11]SAM_PROTO_SignData done [10:53:11]FM_MakeSignedData done [10:53:11]CreateOFDProtocolMessage [10:53:11]wFMCommunicate request_size=4 [10:53:11]MH_SAM_APDU [10:53:11]CAPDU: 80 11 00 00 [10:53:11]Write to MH i2c: E2 08 00 C0 51 80 11 00 00 00 00 00 00 8B [10:53:11]Write i2c OK [10:53:11]MH_I2C_Read... [10:53:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:11]Read from MH i2c: E2 [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: E2 17 00 [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: E2 17 00 C0 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DD [10:53:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:53:11]wFMCommunicate OK [10:53:11]CreateOFDProtocolMessage done [10:53:11]OFDSenderStorePacket 111601 [10:53:11]StoreOFDPacket docnum=111601 [10:53:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D4 80 07 01 9C 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 35 0A 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F1 B3 01 00 35 04 06 00 F3 39 82 86 68 7E 0E 0C 9B 01 AC DF 1F 11 [10:53:11]CheckFolder [10:53:11]dirname=/storage/ofd_packets [10:53:11]CheckFolder done [10:53:11]ProducePacketName [10:53:11]name=ofd_packets/00111601 [10:53:11]NVStorageSaveData ofd_packets/00111601 [10:53:11]File name is /storage/ofd_packets/00111601 [10:53:11]Write 301 bytes [10:53:11]NVStorageSaveData done [10:53:11]OFDSenderStorePacket done [10:53:11]KKMCreateOFDPacket done [10:53:11]NVStorageSaveData kkm_last_timestamp [10:53:11]File name is /storage/kkm_last_timestamp [10:53:11]Write 4 bytes [10:53:11]NVStorageSaveData done [10:53:11]ExternCall_PrintAddStr [10:53:11]wPrintStart [10:53:11]Write to MH i2c: 01 00 00 C1 51 12 [10:53:11]Write i2c OK [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: 01 [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: 01 07 00 [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: 01 07 00 C1 51 00 00 00 00 00 FF 0F 27 [10:53:11]RasterBufferAndPrint [10:53:11]line Счет N : (1)320198 [10:53:11]line ИНН: 02508201610067 [10:53:11]line Контрольно-Кассовый Чек [10:53:11]line ПРОДАЖА [10:53:11]line ТРК (МРК, ГНК) : 11 [10:53:11]line Товар: 2710124130 [10:53:11]line Аи-92-К-5 [10:53:11]line 12.050 * 66.40 [10:53:11]line = 800.12 [10:53:11]line НДС 12% НСП 1% [10:53:11]line > о реализуемом товаре [10:53:11]line ОКРУГЛЕНИЕ: -0.12 [10:53:11]line ИТОГО: 800.00 [10:53:11]line Внесено: 800.00 [10:53:11]line СДАЧА: 0.00 [10:53:11]line НСП 1% : 7.08 [10:53:11]line НДС 12% : 84.97 [10:53:11]line Наличными: 800.00 [10:53:11]line Безнал.: 0.00 [10:53:11]line Место: АЗС № 65 "Партнер Нефть" [10:53:11]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:53:11]line СНО: Общий режим [10:53:11]line Чек 51 20.06.2024 10:53 [10:53:11]line Смена: 389 ФФД: 1.0 [10:53:11]line ЗНМ: 0300000198 [10:53:11]line РНМ: 0000000000092771 [10:53:11]line Версия ККМ: 001 [10:53:11]line ФМ: 0000000000875083 [10:53:11]line ФД: 111601 [10:53:11]line ФПД: 267428328532094 [10:53:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T105341&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111601&fm=267428328532094&tin=02508201610067®Number=0000000000092771&sum=80000 [10:53:11]written 0, free lines is 4095 [10:53:11]OFD Sender: Processing packet 111601 [packets to send 38, broken 37] [10:53:11]ProducePacketName [10:53:11]name=ofd_packets/00111601 [10:53:11]OFD Sender: To server: pG, [10:53:11]CommunicateWithHost lk.salyk.kg:30040 [10:53:11]ConnectInit lk.salyk.kg [10:53:11]Connected sock=10 [10:53:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D4 80 07 01 9C 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 35 0A 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F1 B3 01 00 35 04 06 00 F3 39 82 86 68 7E 0E 0C 9B 01 AC DF 1F 11 [10:53:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 23 E2 47 00 D0 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F1 B3 01 00 F4 03 04 00 81 A1 73 66 B6 04 01 00 00 A3 71 CF 2F 26 E2 6D 8F [10:53:11]CommunicateWithHost err = 0 [10:53:11]CheckOFDResponse [10:53:11]1017 (14) - 77093643461234 [10:53:11]1041 (16) - 0000000000875083 [10:53:11]1040 (4) - 111601 [10:53:11]1012 (4) - 20.06.2024 03:26 [10:53:11]1206 (1) - 0 [10:53:11]OFD Sender: Remove packet 111601 [10:53:11]ProducePacketName [10:53:11]name=ofd_packets/00111601 [10:53:11]NVStorageDeleteData [10:53:11]Write to MH i2c: 01 00 00 EC 51 3D [10:53:11]Write i2c OK [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: 01 [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: 01 07 00 [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: 01 07 00 EC 51 00 00 00 00 00 E0 0C 30 [10:53:11]RasterBufferAndPrint [10:53:11]line [10:53:11]line [10:53:11]line [10:53:11]line [10:53:11]line [10:53:11]written 0, free lines is 3302 [10:53:11]MH_Cut [10:53:11]Write to MH i2c: D1 01 00 F3 51 01 16 [10:53:11]Write i2c OK [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: D1 [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: D1 01 00 [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: D1 01 00 F3 51 00 15 [10:53:11]Write to MH i2c: 01 00 00 F4 51 45 [10:53:11]Write i2c OK [10:53:11]MH_I2C_Read... [10:53:12]OFD Sender: No OFD packet to send [10:53:12]*** Cut start [10:53:12]*** Partial cut [10:53:12]*** CUTSNS_PIN = 1 [10:53:12]*** CUTSNS_PIN = 0 [10:53:12]*** Brake cut motor [10:53:13]Read from MH i2c: 01 [10:53:13]MH_I2C_Read... [10:53:13]*** Stop cut motor [10:53:13]*** Cut end [10:53:13]Read from MH i2c: 01 07 00 [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: 01 07 00 F4 51 00 00 00 00 00 FF 0F 5A [10:53:13]process_action close_receipt done [10:53:13]requested_data is exist [10:53:13]produce_requested_data [10:53:13]requested_item fm.sn is exist - process it [10:53:13]wFMCommunicate request_size=4 [10:53:13]MH_SAM_APDU [10:53:13]CAPDU: 80 11 00 00 [10:53:13]Write to MH i2c: E2 08 00 F5 51 80 11 00 00 00 00 00 00 C0 [10:53:13]Write i2c OK [10:53:13]MH_I2C_Read... [10:53:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:13]Read from MH i2c: E2 [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: E2 17 00 [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: E2 17 00 F5 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 12 [10:53:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:53:13]wFMCommunicate OK [10:53:13]requested_item fd.num is exist - process it [10:53:13]SAM_PROTO_GetFieldsCounters [10:53:13]wFMCommunicate request_size=4 [10:53:13]MH_SAM_APDU [10:53:13]CAPDU: 80 13 00 00 [10:53:13]Write to MH i2c: E2 08 00 F6 51 80 13 00 00 00 00 00 00 C3 [10:53:13]Write i2c OK [10:53:13]MH_I2C_Read... [10:53:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:13]Read from MH i2c: E2 [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: E2 62 00 [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: E2 62 00 F6 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F1 B3 01 00 0E 04 04 00 85 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 A8 [10:53:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F1 B3 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:53:13]wFMCommunicate OK [10:53:13]SAM_PROTO_GetFieldsCounters done [10:53:13]requested_item shift.num is exist - process it [10:53:13]requested_item shift.opened is exist - process it [10:53:13]req_shift_opened [10:53:13]FM_GetShiftState [10:53:13]SAM_PROTO_GetShiftState [10:53:13]wFMCommunicate request_size=4 [10:53:13]MH_SAM_APDU [10:53:13]CAPDU: 80 13 01 00 [10:53:13]Write to MH i2c: E2 08 00 F7 51 80 13 01 00 00 00 00 00 C5 [10:53:13]Write i2c OK [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: E2 [10:53:13]MH_I2C_Read... [10:53:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:13]Read from MH i2c: E2 0E 00 [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: E2 0E 00 F7 51 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 40 [10:53:13]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:53:13]wFMCommunicate OK [10:53:13]SAM_PROTO_GetShiftState done [10:53:13]FM_GetShiftState done [10:53:13]req_shift_opened done [10:53:13]requested_item shift.open_date is exist - process it [10:53:13]req_shift_open_date [10:53:13]req_shift_open_date done [10:53:13]produce_requested_data done [10:53:13]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111601,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [10:53:13]process_action_free close_receipt [10:53:13]json_value_free [10:53:13]json_value_free done [10:53:13]process_json_proto returns [10:53:13]Send response to host [10:53:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111601,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [10:53:13]free response buf [10:53:13]execute_script done [10:53:13]execute_script returns [10:53:13]free content buf [10:53:13]Sock 9.Close socket [10:53:13]Sock 9.Thread stoped [10:53:17]OFD Sender: No OFD packet to send [10:53:22]OFD Sender: No OFD packet to send [10:53:27]OFD Sender: No OFD packet to send [10:53:32]OFD Sender: No OFD packet to send [10:53:37]OFD Sender: No OFD packet to send [10:53:42]OFD Sender: No OFD packet to send [10:53:47]OFD Sender: No OFD packet to send [10:53:52]OFD Sender: No OFD packet to send [10:53:57]OFD Sender: No OFD packet to send [10:54:02]OFD Sender: No OFD packet to send [10:54:07]OFD Sender: No OFD packet to send [10:54:12]OFD Sender: No OFD packet to send [10:54:17]OFD Sender: No OFD packet to send [10:54:22]OFD Sender: No OFD packet to send [10:54:27]OFD Sender: No OFD packet to send [10:54:32]OFD Sender: No OFD packet to send [10:54:35]accept exits with 7 [10:54:35]New connection [10:54:35]New thread 3067465060 created [10:54:35]Thread 3067321700 joined [10:54:35]Waiting for new connection... [10:54:35] Sock 7.Parse request [10:54:35]Sock 7.Check first char [10:54:35]Sock 7.First char is OK [10:54:35]request: POST /json_proto HTTP/1.0 [10:54:35]Method: POST [10:54:35]URL: /json_proto [10:54:35]Method is POST - this is cgi request [10:54:35]url: /json_proto [10:54:35]query_string will be loaded in cgi processing [10:54:35]execute_cgi json_proto POST (null) [10:54:35]execute_cgi path=json_proto method=POST [10:54:35]POST find Content-Length [10:54:35]Host: 172.17.59.68:8080 [10:54:35]Content-Length: 677 [10:54:35]Content-Type: application/json [10:54:35] [10:54:35]POST finish read [10:54:35]Found Content-Length = 677 [10:54:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:35]execute_script... [10:54: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)320199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:35]POST & json_proto [10:54:35]process_json_proto [10:54:35]json parsed OK: [10:54:35]protocol is kg_v1.0 [10:54:35]action value=close_receipt [10:54:35]process_action close_receipt [10:54:35]cmd_close_receipt [10:54:35]MH_GetDate [10:54:35]Write to MH i2c: F0 00 00 F8 51 38 [10:54:35]Write i2c OK [10:54:35]MH_I2C_Read... [10:54:35]Read from MH i2c: F0 [10:54:35]MH_I2C_Read... [10:54:35]Read from MH i2c: F0 09 00 [10:54:35]MH_I2C_Read... [10:54:35]Read from MH i2c: F0 09 00 F8 51 00 8B 0A 74 66 BC EC 60 65 1D [10:54:35]GetLastDocTimeStamp 1718880821 [10:54:35]current date 1718880907 [10:54:35]FM_GetShiftState [10:54:35]SAM_PROTO_GetShiftState [10:54:35]wFMCommunicate request_size=4 [10:54:35]MH_SAM_APDU [10:54:35]CAPDU: 80 13 01 00 [10:54:35]Write to MH i2c: E2 08 00 F9 51 80 13 01 00 00 00 00 00 C7 [10:54:35]Write i2c OK [10:54:35]MH_I2C_Read... [10:54:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:35]Read from MH i2c: E2 [10:54:35]MH_I2C_Read... [10:54:35]Read from MH i2c: E2 0E 00 [10:54:35]MH_I2C_Read... [10:54:35]Read from MH i2c: E2 0E 00 F9 51 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 42 [10:54:35]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:54:35]wFMCommunicate OK [10:54:35]SAM_PROTO_GetShiftState done [10:54:35]FM_GetShiftState done [10:54:35]opened in 1718847247 [10:54:35]opened+sec_in_day 1718933647 [10:54:35]quantity*price = 30012 [10:54:35]sum+1 = 30014 [10:54:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 52 20.06.2024 10:55 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111602 ФПД: 171875304846257 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T105507&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111602&fm=171875304846257&tin=02508201610067®Number=0000000000092771&sum=30000 [10:54:36]StoreToDocumentArchive [10:54:36]shift 389 fd 111602 [10:54:36]save to /storage/0389/doc_00111602 [10:54:36]save last doc name /storage/0389/doc_00111602 to /storage/kkm_last_doc_name [10:54:36]save OK [10:54:36]Clear old archive folders... [10:54:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:54:36]tlvbuf is 00F3C480 [10:54:36]SAM_PROTO_ClearQueue [10:54:36]wFMCommunicate request_size=4 [10:54:36]MH_SAM_APDU [10:54:36]CAPDU: 80 09 00 00 [10:54:36]Write to MH i2c: E2 08 00 06 52 80 09 00 00 00 00 00 00 CA [10:54:36]Write i2c OK [10:54:36]MH_I2C_Read... [10:54:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:36]Read from MH i2c: E2 [10:54:36]MH_I2C_Read... [10:54:36]Read from MH i2c: E2 03 00 [10:54:36]MH_I2C_Read... [10:54:36]Read from MH i2c: E2 03 00 06 52 00 90 00 CC [10:54:36]RAPDU: 90 00 [10:54:36]wFMCommunicate OK [10:54:36]SAM_PROTO_ClearQueue done [10:54:36]KKMCreateOFDPacket [10:54:36]OFDProtocolAddRootSTLVToBuf [10:54:36]FM_MakeSignedData [10:54:36]FM_MakeSignedData [10:54:36]SAM_PROTO_SignData [10:54:36]wFMCommunicate request_size=4 [10:54:36]MH_SAM_APDU [10:54:36]CAPDU: 80 0D 01 02 [10:54:36]Write to MH i2c: E2 08 00 07 52 80 0D 01 02 00 00 00 00 D2 [10:54:36]Write i2c OK [10:54:36]MH_I2C_Read... [10:54:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:36]Read from MH i2c: E2 [10:54:36]MH_I2C_Read... [10:54:36]Read from MH i2c: E2 03 00 [10:54:36]MH_I2C_Read... [10:54:36]Read from MH i2c: E2 03 00 07 52 00 90 00 CD [10:54:36]RAPDU: 90 00 [10:54:36]wFMCommunicate OK [10:54:36]wFMCommunicate request_size=255 [10:54:36]MH_SAM_APDU [10:54:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 8B 0A 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F2 B3 01 00 35 04 06 00 9C [10:54:36]Write to MH i2c: E2 02 01 08 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 8B 0A 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F2 B3 01 00 35 04 06 00 9C 00 00 8F [10:54:36]Write i2c OK [10:54:36]MH_I2C_Read... [10:54:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:37]Read from MH i2c: E2 [10:54:37]MH_I2C_Read... [10:54:37]Read from MH i2c: E2 03 00 [10:54:37]MH_I2C_Read... [10:54:37]Read from MH i2c: E2 03 00 08 52 00 90 00 CE [10:54:37]RAPDU: 90 00 [10:54:37]wFMCommunicate OK [10:54:37]wFMCommunicate request_size=10 [10:54:37]MH_SAM_APDU [10:54:37]CAPDU: 80 0D 02 02 05 51 D6 7D B3 B1 [10:54:37]Write to MH i2c: E2 0D 00 09 52 80 0D 02 02 05 00 51 D6 7D B3 B1 00 00 E7 [10:54:37]Write i2c OK [10:54:37]MH_I2C_Read... [10:54:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:37]Read from MH i2c: E2 [10:54:37]MH_I2C_Read... [10:54:37]Read from MH i2c: E2 03 00 [10:54:37]MH_I2C_Read... [10:54:37]Read from MH i2c: E2 03 00 09 52 00 90 00 CF [10:54:37]RAPDU: 90 00 [10:54:37]wFMCommunicate OK [10:54:37]wFMCommunicate request_size=4 [10:54:37]MH_SAM_APDU [10:54:37]CAPDU: 80 0D 03 02 [10:54:37]Write to MH i2c: E2 08 00 0A 52 80 0D 03 02 00 00 00 00 D7 [10:54:37]Write i2c OK [10:54:37]MH_I2C_Read... [10:54:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:37]Read from MH i2c: E2 [10:54:37]MH_I2C_Read... [10:54:37]Read from MH i2c: E2 0B 00 [10:54:37]MH_I2C_Read... [10:54:37]Read from MH i2c: E2 0B 00 0A 52 00 BB 98 B8 87 8E CA 68 93 90 00 BD [10:54:37]RAPDU: BB 98 B8 87 8E CA 68 93 90 00 [10:54:37]wFMCommunicate OK [10:54:37]SAM_PROTO_SignData done [10:54:37]FM_MakeSignedData done [10:54:37]CreateOFDProtocolMessage [10:54:37]wFMCommunicate request_size=4 [10:54:37]MH_SAM_APDU [10:54:37]CAPDU: 80 11 00 00 [10:54:37]Write to MH i2c: E2 08 00 0B 52 80 11 00 00 00 00 00 00 D7 [10:54:37]Write i2c OK [10:54:37]MH_I2C_Read... [10:54:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:37]Read from MH i2c: E2 [10:54:37]MH_I2C_Read... [10:54:37]Read from MH i2c: E2 17 00 [10:54:37]MH_I2C_Read... [10:54:37]Read from MH i2c: E2 17 00 0B 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 29 [10:54:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:54:37]wFMCommunicate OK [10:54:37]CreateOFDProtocolMessage done [10:54:37]OFDSenderStorePacket 111602 [10:54:37]StoreOFDPacket docnum=111602 [10:54:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A2 87 07 01 C3 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 8B 0A 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F2 B3 01 00 35 04 06 00 9C 51 D6 7D B3 B1 BB 98 B8 87 8E CA 68 93 [10:54:37]CheckFolder [10:54:37]dirname=/storage/ofd_packets [10:54:37]CheckFolder done [10:54:37]ProducePacketName [10:54:37]name=ofd_packets/00111602 [10:54:37]NVStorageSaveData ofd_packets/00111602 [10:54:37]File name is /storage/ofd_packets/00111602 [10:54:37]Write 301 bytes [10:54:37]NVStorageSaveData done [10:54:37]OFDSenderStorePacket done [10:54:37]KKMCreateOFDPacket done [10:54:37]NVStorageSaveData kkm_last_timestamp [10:54:37]File name is /storage/kkm_last_timestamp [10:54:37]Write 4 bytes [10:54:37]NVStorageSaveData done [10:54:37]ExternCall_PrintAddStr [10:54:37]wPrintStart [10:54:37]Write to MH i2c: 01 00 00 0C 52 5E [10:54:37]Write i2c OK [10:54:37]MH_I2C_Read... [10:54:37]Read from MH i2c: 01 [10:54:37]MH_I2C_Read... [10:54:37]Read from MH i2c: 01 07 00 [10:54:37]MH_I2C_Read... [10:54:37]Read from MH i2c: 01 07 00 0C 52 00 00 00 00 00 FF 0F 73 [10:54:37]RasterBufferAndPrint [10:54:37]line Счет N : (1)320199 [10:54:37]line ИНН: 02508201610067 [10:54:37]line Контрольно-Кассовый Чек [10:54:37]line ПРОДАЖА [10:54:37]line ТРК (МРК, ГНК) : 11 [10:54:37]line Товар: 2710124130 [10:54:37]line Аи-92-К-5 [10:54:37]line 4.520 * 66.40 [10:54:37]line = 300.13 [10:54:37]line НДС 12% НСП 1% [10:54:37]line > о реализуемом товаре [10:54:37]line ОКРУГЛЕНИЕ: -0.13 [10:54:37]line ИТОГО: 300.00 [10:54:37]line Внесено: 300.00 [10:54:37]line СДАЧА: 0.00 [10:54:37]line НСП 1% : 2.66 [10:54:37]line НДС 12% : 31.87 [10:54:37]line Наличными: 300.00 [10:54:37]line Безнал.: 0.00 [10:54:37]line Место: АЗС № 65 "Партнер Нефть" [10:54:37]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:54:37]line СНО: Общий режим [10:54:37]line Чек 52 20.06.2024 10:55 [10:54:37]line Смена: 389 ФФД: 1.0 [10:54:37]line ЗНМ: 0300000198 [10:54:37]line РНМ: 0000000000092771 [10:54:37]line Версия ККМ: 001 [10:54:37]line ФМ: 0000000000875083 [10:54:37]line ФД: 111602 [10:54:37]line ФПД: 171875304846257 [10:54:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T105507&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111602&fm=171875304846257&tin=02508201610067®Number=0000000000092771&sum=30000 [10:54:37]OFD Sender: Processing packet 111602 [packets to send 38, broken 37] [10:54:37]ProducePacketName [10:54:37]name=ofd_packets/00111602 [10:54:37]OFD Sender: To server: pG, [10:54:37]CommunicateWithHost lk.salyk.kg:30040 [10:54:37]ConnectInit lk.salyk.kg [10:54:37]written 0, free lines is 4095 [10:54:37]Connected sock=10 [10:54:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A2 87 07 01 C3 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 8B 0A 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F2 B3 01 00 35 04 06 00 9C 51 D6 7D B3 B1 BB 98 B8 87 8E CA 68 93 [10:54:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 76 A0 47 00 E8 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 35 30 38 33 10 04 04 00 F2 B3 01 00 F4 03 04 00 D8 A1 73 66 B6 04 01 00 00 27 B5 43 5B 69 4C 6D 07 [10:54:37]CommunicateWithHost err = 0 [10:54:37]CheckOFDResponse [10:54:37]1017 (14) - 77093643461234 [10:54:37]1041 (16) - 0000000000875083 [10:54:37]1040 (4) - 111602 [10:54:37]1012 (4) - 20.06.2024 03:28 [10:54:37]1206 (1) - 0 [10:54:37]OFD Sender: Remove packet 111602 [10:54:37]ProducePacketName [10:54:37]name=ofd_packets/00111602 [10:54:37]NVStorageDeleteData [10:54:38]Write to MH i2c: 01 00 00 37 52 89 [10:54:38]Write i2c OK [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: 01 [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: 01 07 00 [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: 01 07 00 37 52 00 00 00 00 00 C1 0C 5D [10:54:38]RasterBufferAndPrint [10:54:38]line [10:54:38]line [10:54:38]line [10:54:38]line [10:54:38]line [10:54:38]written 0, free lines is 3274 [10:54:38]MH_Cut [10:54:38]Write to MH i2c: D1 01 00 3E 52 01 62 [10:54:38]Write i2c OK [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: D1 [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: D1 01 00 [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: D1 01 00 3E 52 00 61 [10:54:38]Write to MH i2c: 01 00 00 3F 52 91 [10:54:38]Write i2c OK [10:54:38]MH_I2C_Read... [10:54:38]OFD Sender: No OFD packet to send [10:54:38]*** Cut start [10:54:38]*** Partial cut [10:54:38]*** CUTSNS_PIN = 1 [10:54:38]*** CUTSNS_PIN = 0 [10:54:39]*** Brake cut motor [10:54:39]Read from MH i2c: 01 [10:54:39]MH_I2C_Read... [10:54:39]*** Stop cut motor [10:54:39]*** Cut end [10:54:39]Read from MH i2c: 01 07 00 [10:54:39]MH_I2C_Read... [10:54:39]Read from MH i2c: 01 07 00 3F 52 00 00 00 00 00 FF 0F A6 [10:54:39]process_action close_receipt done [10:54:39]requested_data is exist [10:54:39]produce_requested_data [10:54:39]requested_item fm.sn is exist - process it [10:54:39]wFMCommunicate request_size=4 [10:54:39]MH_SAM_APDU [10:54:39]CAPDU: 80 11 00 00 [10:54:39]Write to MH i2c: E2 08 00 40 52 80 11 00 00 00 00 00 00 0C [10:54:39]Write i2c OK [10:54:39]MH_I2C_Read... [10:54:39]Read from MH i2c: E2 [10:54:39]MH_I2C_Read... [10:54:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:39]Read from MH i2c: E2 17 00 [10:54:39]MH_I2C_Read... [10:54:39]Read from MH i2c: E2 17 00 40 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5E [10:54:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:54:39]wFMCommunicate OK [10:54:39]requested_item fd.num is exist - process it [10:54:39]SAM_PROTO_GetFieldsCounters [10:54:39]wFMCommunicate request_size=4 [10:54:39]MH_SAM_APDU [10:54:39]CAPDU: 80 13 00 00 [10:54:39]Write to MH i2c: E2 08 00 41 52 80 13 00 00 00 00 00 00 0F [10:54:39]Write i2c OK [10:54:39]MH_I2C_Read... [10:54:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:39]Read from MH i2c: E2 [10:54:39]MH_I2C_Read... [10:54:39]Read from MH i2c: E2 62 00 [10:54:39]MH_I2C_Read... [10:54:39]Read from MH i2c: E2 62 00 41 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F2 B3 01 00 0E 04 04 00 85 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 F8 [10:54:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F2 B3 01 00 0E 04 04 00 85 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 [10:54:39]wFMCommunicate OK [10:54:39]SAM_PROTO_GetFieldsCounters done [10:54:39]requested_item shift.num is exist - process it [10:54:39]requested_item shift.opened is exist - process it [10:54:39]req_shift_opened [10:54:39]FM_GetShiftState [10:54:39]SAM_PROTO_GetShiftState [10:54:39]wFMCommunicate request_size=4 [10:54:39]MH_SAM_APDU [10:54:39]CAPDU: 80 13 01 00 [10:54:39]Write to MH i2c: E2 08 00 42 52 80 13 01 00 00 00 00 00 11 [10:54:39]Write i2c OK [10:54:39]MH_I2C_Read... [10:54:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:39]Read from MH i2c: E2 [10:54:39]MH_I2C_Read... [10:54:39]Read from MH i2c: E2 0E 00 [10:54:39]MH_I2C_Read... [10:54:39]Read from MH i2c: E2 0E 00 42 52 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 8C [10:54:39]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:54:39]wFMCommunicate OK [10:54:39]SAM_PROTO_GetShiftState done [10:54:39]FM_GetShiftState done [10:54:39]req_shift_opened done [10:54:39]requested_item shift.open_date is exist - process it [10:54:39]req_shift_open_date [10:54:39]req_shift_open_date done [10:54:39]produce_requested_data done [10:54:39]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111602,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [10:54:39]process_action_free close_receipt [10:54:39]json_value_free [10:54:39]json_value_free done [10:54:39]process_json_proto returns [10:54:39]Send response to host [10:54:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111602,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [10:54:39]free response buf [10:54:39]execute_script done [10:54:39]execute_script returns [10:54:39]free content buf [10:54:39]Sock 7.Close socket [10:54:39]Sock 7.Thread stoped [10:54:43]OFD Sender: No OFD packet to send [10:54:48]OFD Sender: No OFD packet to send [10:54:53]OFD Sender: No OFD packet to send [10:54:58]OFD Sender: No OFD packet to send [10:55:03]OFD Sender: No OFD packet to send [10:55:08]OFD Sender: No OFD packet to send [10:55:13]OFD Sender: No OFD packet to send [10:55:18]OFD Sender: No OFD packet to send [10:55:23]OFD Sender: No OFD packet to send [10:55:28]OFD Sender: No OFD packet to send [10:55:33]OFD Sender: No OFD packet to send [10:55:38]OFD Sender: No OFD packet to send [10:55:43]OFD Sender: No OFD packet to send [10:55:48]OFD Sender: No OFD packet to send [10:55:53]OFD Sender: No OFD packet to send [10:55:58]OFD Sender: No OFD packet to send [10:56:03]OFD Sender: No OFD packet to send [10:56:08]OFD Sender: No OFD packet to send [10:56:13]OFD Sender: No OFD packet to send [10:56:18]OFD Sender: No OFD packet to send [10:56:21]accept exits with 9 [10:56:21]New connection [10:56:21]New thread 3067321700 created [10:56:21]Thread 3067465060 joined [10:56:21]Waiting for new connection... [10:56:21] Sock 9.Parse request [10:56:21]Sock 9.Check first char [10:56:21]Sock 9.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.59.68:8080 [10:56:21]Content-Length: 677 [10:56:21]Content-Type: application/json [10:56:21] [10:56:21]POST finish read [10:56:21]Found Content-Length = 677 [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)320200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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)320200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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 43 52 84 [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 43 52 00 F5 0A 74 66 BC EC 60 65 D3 [10:56:21]GetLastDocTimeStamp 1718880907 [10:56:21]current date 1718881013 [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 44 52 80 13 01 00 00 00 00 00 13 [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 44 52 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 8E [10:56:21]RAPDU: 09 00 01 0F 87 73 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 1718847247 [10:56:21]opened+sec_in_day 1718933647 [10:56:21]quantity*price = 30012 [10:56:21]sum+1 = 30014 [10:56:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 53 20.06.2024 10:56 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111603 ФПД: 265533054405212 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T105653&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111603&fm=265533054405212&tin=02508201610067®Number=0000000000092771&sum=30000 [10:56:22]StoreToDocumentArchive [10:56:22]shift 389 fd 111603 [10:56:22]save to /storage/0389/doc_00111603 [10:56:22]save last doc name /storage/0389/doc_00111603 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 00F1EF10 [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 51 52 80 09 00 00 00 00 00 00 15 [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 51 52 00 90 00 17 [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 52 52 80 0D 01 02 00 00 00 00 1D [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 52 52 00 90 00 18 [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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 F5 0A 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F3 B3 01 00 35 04 06 00 F1 [10:56:22]Write to MH i2c: E2 02 01 53 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 F5 0A 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F3 B3 01 00 35 04 06 00 F1 00 00 9B [10:56:22]Write i2c OK [10:56:22]MH_I2C_Read... [10:56:22]*** 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 53 52 00 90 00 19 [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 80 3B 62 4A 5C [10:56:23]Write to MH i2c: E2 0D 00 54 52 80 0D 02 02 05 00 80 3B 62 4A 5C 00 00 ED [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 54 52 00 90 00 1A [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 55 52 80 0D 03 02 00 00 00 00 22 [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 55 52 00 37 3E 21 3F 4F 46 C2 EE 90 00 3D [10:56:23]RAPDU: 37 3E 21 3F 4F 46 C2 EE 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 56 52 80 11 00 00 00 00 00 00 22 [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 56 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 74 [10:56:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:56:23]wFMCommunicate OK [10:56:23]CreateOFDProtocolMessage done [10:56:23]OFDSenderStorePacket 111603 [10:56:23]StoreOFDPacket docnum=111603 [10:56:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 81 B9 07 01 74 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 F5 0A 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F3 B3 01 00 35 04 06 00 F1 80 3B 62 4A 5C 37 3E 21 3F 4F 46 C2 EE [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/00111603 [10:56:23]NVStorageSaveData ofd_packets/00111603 [10:56:23]File name is /storage/ofd_packets/00111603 [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 57 52 A9 [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 57 52 00 00 00 00 00 FF 0F BE [10:56:23]RasterBufferAndPrint [10:56:23]line Счет N : (1)320200 [10:56:23]line ИНН: 02508201610067 [10:56:23]line Контрольно-Кассовый Чек [10:56:23]line ПРОДАЖА [10:56:23]line ТРК (МРК, ГНК) : 11 [10:56:23]line Товар: 2710124130 [10:56:23]line Аи-92-К-5 [10:56:23]line 4.520 * 66.40 [10:56:23]line = 300.13 [10:56:23]line НДС 12% НСП 1% [10:56:23]line > о реализуемом товаре [10:56:23]line ОКРУГЛЕНИЕ: -0.13 [10:56:23]line ИТОГО: 300.00 [10:56:23]line Внесено: 300.00 [10:56:23]line СДАЧА: 0.00 [10:56:23]line НСП 1% : 2.66 [10:56:23]line НДС 12% : 31.87 [10:56:23]line Наличными: 300.00 [10:56:23]line Безнал.: 0.00 [10:56:23]line Место: АЗС № 65 "Партнер Нефть" [10:56:23]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:56:23]line СНО: Общий режим [10:56:23]line Чек 53 20.06.2024 10:56 [10:56:23]line Смена: 389 ФФД: 1.0 [10:56:23]line ЗНМ: 0300000198 [10:56:23]line РНМ: 0000000000092771 [10:56:23]line Версия ККМ: 001 [10:56:23]line ФМ: 0000000000875083 [10:56:23]line ФД: 111603 [10:56:23]line ФПД: 265533054405212 [10:56:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T105653&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111603&fm=265533054405212&tin=02508201610067®Number=0000000000092771&sum=30000 [10:56:23]OFD Sender: Processing packet 111603 [packets to send 38, broken 37] [10:56:23]ProducePacketName [10:56:23]name=ofd_packets/00111603 [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]written 0, free lines is 4095 [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 35 30 38 33 0F 01 00 00 81 B9 07 01 74 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 F5 0A 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F3 B3 01 00 35 04 06 00 F1 80 3B 62 4A 5C 37 3E 21 3F 4F 46 C2 EE [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 35 30 38 33 4F 00 00 00 91 9C 47 00 66 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F3 B3 01 00 F4 03 04 00 41 A2 73 66 B6 04 01 00 00 B3 40 F2 B1 08 07 61 50 [10:56:23]CommunicateWithHost err = 0 [10:56:23]CheckOFDResponse [10:56:23]1017 (14) - 77093643461234 [10:56:23]1041 (16) - 0000000000875083 [10:56:23]1040 (4) - 111603 [10:56:23]1012 (4) - 20.06.2024 03:30 [10:56:23]1206 (1) - 0 [10:56:23]OFD Sender: Remove packet 111603 [10:56:23]ProducePacketName [10:56:23]name=ofd_packets/00111603 [10:56:23]NVStorageDeleteData [10:56:23]Write to MH i2c: 01 00 00 82 52 D4 [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 82 52 00 00 00 00 00 CC 0C B3 [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 3282 [10:56:23]MH_Cut [10:56:23]Write to MH i2c: D1 01 00 89 52 01 AD [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 89 52 00 AC [10:56:23]Write to MH i2c: 01 00 00 8A 52 DC [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 8A 52 00 00 00 00 00 FF 0F F1 [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 8B 52 80 11 00 00 00 00 00 00 57 [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 8B 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A9 [10:56:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 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 8C 52 80 13 00 00 00 00 00 00 5A [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 8C 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F3 B3 01 00 0E 04 04 00 85 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 47 [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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F3 B3 01 00 0E 04 04 00 85 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 [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 8D 52 80 13 01 00 00 00 00 00 5C [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 8D 52 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 D7 [10:56:25]RAPDU: 09 00 01 0F 87 73 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":"0000000000875083","fd.num":111603,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [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":"0000000000875083","fd.num":111603,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [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 9.Close socket [10:56:25]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [10:56:54]OFD Sender: No OFD packet to send [10:56:59]OFD Sender: No OFD packet to send [10:57:04]OFD Sender: No OFD packet to send [10:57:09]OFD Sender: No OFD packet to send [10:57:14]OFD Sender: No OFD packet to send [10:57:19]OFD Sender: No OFD packet to send [10:57:24]OFD Sender: No OFD packet to send [10:57:29]OFD Sender: No OFD packet to send [10:57:34]OFD Sender: No OFD packet to send [10:57:39]OFD Sender: No OFD packet to send [10:57:44]OFD Sender: No OFD packet to send [10:57:49]OFD Sender: No OFD packet to send [10:57:54]OFD Sender: No OFD packet to send [10:57:59]OFD Sender: No OFD packet to send [10:58:04]OFD Sender: No OFD packet to send [10:58:09]OFD Sender: No OFD packet to send [10:58:14]OFD Sender: No OFD packet to send [10:58:19]OFD Sender: No OFD packet to send [10:58:24]OFD Sender: No OFD packet to send [10:58:29]OFD Sender: No OFD packet to send [10:58:34]OFD Sender: No OFD packet to send [10:58:39]OFD Sender: No OFD packet to send [10:58:44]OFD Sender: No OFD packet to send [10:58:46]accept exits with 7 [10:58:46]New connection [10:58:46]New thread 3067465060 created [10:58:46]Thread 3067321700 joined [10:58:46]Waiting for new connection... [10:58:46] Sock 7.Parse request [10:58:46]Sock 7.Check first char [10:58:46]Sock 7.First char is OK [10:58:46]request: POST /json_proto HTTP/1.0 [10:58:46]Method: POST [10:58:46]URL: /json_proto [10:58:46]Method is POST - this is cgi request [10:58:46]url: /json_proto [10:58:46]query_string will be loaded in cgi processing [10:58:46]execute_cgi json_proto POST (null) [10:58:46]execute_cgi path=json_proto method=POST [10:58:46]POST find Content-Length [10:58:46]Host: 172.17.59.68:8080 [10:58:46]Content-Length: 682 [10:58:46]Content-Type: application/json [10:58:46] [10:58:46]POST finish read [10:58:46]Found Content-Length = 682 [10:58:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 40.670, "sum" : 2700.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2700.00, "total" : 2700.00, "payments": [ { "type": 0, "sum" : 2700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:46]execute_script... [10:58:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 40.670, "sum" : 2700.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2700.00, "total" : 2700.00, "payments": [ { "type": 0, "sum" : 2700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:46]POST & json_proto [10:58:46]process_json_proto [10:58:46]json parsed OK: [10:58:46]protocol is kg_v1.0 [10:58:46]action value=close_receipt [10:58:46]process_action close_receipt [10:58:46]cmd_close_receipt [10:58:46]MH_GetDate [10:58:46]Write to MH i2c: F0 00 00 8E 52 CF [10:58:46]Write i2c OK [10:58:46]MH_I2C_Read... [10:58:46]Read from MH i2c: F0 [10:58:46]MH_I2C_Read... [10:58:46]Read from MH i2c: F0 09 00 [10:58:46]MH_I2C_Read... [10:58:46]Read from MH i2c: F0 09 00 8E 52 00 86 0B 74 66 BC EC 60 65 B0 [10:58:46]GetLastDocTimeStamp 1718881013 [10:58:46]current date 1718881158 [10:58:46]FM_GetShiftState [10:58:46]SAM_PROTO_GetShiftState [10:58:46]wFMCommunicate request_size=4 [10:58:46]MH_SAM_APDU [10:58:46]CAPDU: 80 13 01 00 [10:58:46]Write to MH i2c: E2 08 00 8F 52 80 13 01 00 00 00 00 00 5E [10:58:46]Write i2c OK [10:58:46]MH_I2C_Read... [10:58:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:47]Read from MH i2c: E2 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: E2 0E 00 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: E2 0E 00 8F 52 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 D9 [10:58:47]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:58:47]wFMCommunicate OK [10:58:47]SAM_PROTO_GetShiftState done [10:58:47]FM_GetShiftState done [10:58:47]opened in 1718847247 [10:58:47]opened+sec_in_day 1718933647 [10:58:47]quantity*price = 270048 [10:58:47]sum+1 = 270050 [10:58:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 2700.00 Внесено: 2700.00 СДАЧА: 0.00 НСП 1% : 23.90 НДС 12% : 286.78 Наличными: 2700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 54 20.06.2024 10:59 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111604 ФПД: 239444067043851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T105918&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111604&fm=239444067043851&tin=02508201610067®Number=0000000000092771&sum=270000 [10:58:48]StoreToDocumentArchive [10:58:48]shift 389 fd 111604 [10:58:48]save to /storage/0389/doc_00111604 [10:58:48]save last doc name /storage/0389/doc_00111604 to /storage/kkm_last_doc_name [10:58:48]save OK [10:58:48]Clear old archive folders... [10:58:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:58:48]tlvbuf is 00F2FC90 [10:58:48]SAM_PROTO_ClearQueue [10:58:48]wFMCommunicate request_size=4 [10:58:48]MH_SAM_APDU [10:58:48]CAPDU: 80 09 00 00 [10:58:48]Write to MH i2c: E2 08 00 9C 52 80 09 00 00 00 00 00 00 60 [10:58:48]Write i2c OK [10:58:48]MH_I2C_Read... [10:58:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:48]Read from MH i2c: E2 [10:58:48]MH_I2C_Read... [10:58:48]Read from MH i2c: E2 03 00 [10:58:48]MH_I2C_Read... [10:58:48]Read from MH i2c: E2 03 00 9C 52 00 90 00 62 [10:58:48]RAPDU: 90 00 [10:58:48]wFMCommunicate OK [10:58:48]SAM_PROTO_ClearQueue done [10:58:48]KKMCreateOFDPacket [10:58:48]OFDProtocolAddRootSTLVToBuf [10:58:48]FM_MakeSignedData [10:58:48]FM_MakeSignedData [10:58:48]SAM_PROTO_SignData [10:58:48]wFMCommunicate request_size=4 [10:58:48]MH_SAM_APDU [10:58:48]CAPDU: 80 0D 01 02 [10:58:48]Write to MH i2c: E2 08 00 9D 52 80 0D 01 02 00 00 00 00 68 [10:58:48]Write i2c OK [10:58:48]MH_I2C_Read... [10:58:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:48]Read from MH i2c: E2 [10:58:48]MH_I2C_Read... [10:58:48]Read from MH i2c: E2 03 00 [10:58:48]MH_I2C_Read... [10:58:48]Read from MH i2c: E2 03 00 9D 52 00 90 00 63 [10:58:48]RAPDU: 90 00 [10:58:48]wFMCommunicate OK [10:58:48]wFMCommunicate request_size=255 [10:58:48]MH_SAM_APDU [10:58:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 9E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 70 00 00 00 00 07 04 06 00 B0 1E 04 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 86 0B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F4 B3 01 00 35 04 06 00 D9 [10:58:48]Write to MH i2c: E2 02 01 9E 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 9E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 70 00 00 00 00 07 04 06 00 B0 1E 04 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 86 0B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F4 B3 01 00 35 04 06 00 D9 00 00 1B [10:58:48]Write i2c OK [10:58:48]MH_I2C_Read... [10:58:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:48]Read from MH i2c: E2 [10:58:48]MH_I2C_Read... [10:58:48]Read from MH i2c: E2 03 00 [10:58:48]MH_I2C_Read... [10:58:48]Read from MH i2c: E2 03 00 9E 52 00 90 00 64 [10:58:48]RAPDU: 90 00 [10:58:48]wFMCommunicate OK [10:58:48]wFMCommunicate request_size=10 [10:58:48]MH_SAM_APDU [10:58:48]CAPDU: 80 0D 02 02 05 C5 EA 8F 4A 0B [10:58:48]Write to MH i2c: E2 0D 00 9F 52 80 0D 02 02 05 00 C5 EA 8F 4A 0B 00 00 08 [10:58:48]Write i2c OK [10:58:48]MH_I2C_Read... [10:58:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:48]Read from MH i2c: E2 [10:58:48]MH_I2C_Read... [10:58:48]Read from MH i2c: E2 03 00 [10:58:48]MH_I2C_Read... [10:58:48]Read from MH i2c: E2 03 00 9F 52 00 90 00 65 [10:58:48]RAPDU: 90 00 [10:58:48]wFMCommunicate OK [10:58:48]wFMCommunicate request_size=4 [10:58:48]MH_SAM_APDU [10:58:48]CAPDU: 80 0D 03 02 [10:58:48]Write to MH i2c: E2 08 00 A0 52 80 0D 03 02 00 00 00 00 6D [10:58:48]Write i2c OK [10:58:48]MH_I2C_Read... [10:58:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:48]Read from MH i2c: E2 [10:58:48]MH_I2C_Read... [10:58:48]Read from MH i2c: E2 0B 00 [10:58:48]MH_I2C_Read... [10:58:48]Read from MH i2c: E2 0B 00 A0 52 00 2C 67 AF 53 54 EE 85 BB 90 00 85 [10:58:48]RAPDU: 2C 67 AF 53 54 EE 85 BB 90 00 [10:58:48]wFMCommunicate OK [10:58:48]SAM_PROTO_SignData done [10:58:48]FM_MakeSignedData done [10:58:48]CreateOFDProtocolMessage [10:58:48]wFMCommunicate request_size=4 [10:58:48]MH_SAM_APDU [10:58:48]CAPDU: 80 11 00 00 [10:58:48]Write to MH i2c: E2 08 00 A1 52 80 11 00 00 00 00 00 00 6D [10:58:48]Write i2c OK [10:58:48]MH_I2C_Read... [10:58:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:48]Read from MH i2c: E2 [10:58:48]MH_I2C_Read... [10:58:48]Read from MH i2c: E2 17 00 [10:58:48]MH_I2C_Read... [10:58:48]Read from MH i2c: E2 17 00 A1 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BF [10:58:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:58:48]wFMCommunicate OK [10:58:48]CreateOFDProtocolMessage done [10:58:48]OFDSenderStorePacket 111604 [10:58:48]StoreOFDPacket docnum=111604 [10:58:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E2 FB 07 01 5B 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 9E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 70 00 00 00 00 07 04 06 00 B0 1E 04 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 86 0B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F4 B3 01 00 35 04 06 00 D9 C5 EA 8F 4A 0B 2C 67 AF 53 54 EE 85 BB [10:58:48]CheckFolder [10:58:48]dirname=/storage/ofd_packets [10:58:48]CheckFolder done [10:58:48]ProducePacketName [10:58:48]name=ofd_packets/00111604 [10:58:48]NVStorageSaveData ofd_packets/00111604 [10:58:48]File name is /storage/ofd_packets/00111604 [10:58:48]Write 301 bytes [10:58:48]NVStorageSaveData done [10:58:48]OFDSenderStorePacket done [10:58:48]KKMCreateOFDPacket done [10:58:48]NVStorageSaveData kkm_last_timestamp [10:58:48]File name is /storage/kkm_last_timestamp [10:58:48]Write 4 bytes [10:58:48]NVStorageSaveData done [10:58:48]ExternCall_PrintAddStr [10:58:48]wPrintStart [10:58:48]Write to MH i2c: 01 00 00 A2 52 F4 [10:58:48]Write i2c OK [10:58:48]MH_I2C_Read... [10:58:48]Read from MH i2c: 01 [10:58:48]MH_I2C_Read... [10:58:48]Read from MH i2c: 01 07 00 [10:58:48]MH_I2C_Read... [10:58:48]Read from MH i2c: 01 07 00 A2 52 00 00 00 00 00 FF 0F 09 [10:58:48]RasterBufferAndPrint [10:58:48]line Счет N : (1)320201 [10:58:48]line ИНН: 02508201610067 [10:58:48]line Контрольно-Кассовый Чек [10:58:48]line ПРОДАЖА [10:58:48]line ТРК (МРК, ГНК) : 11 [10:58:48]line Товар: 2710124130 [10:58:48]line Аи-92-К-5 [10:58:48]line 40.670 * 66.40 [10:58:48]line = 2700.49 [10:58:48]line НДС 12% НСП 1% [10:58:48]line > о реализуемом товаре [10:58:48]line ОКРУГЛЕНИЕ: -0.49 [10:58:48]line ИТОГО: 2700.00 [10:58:48]line Внесено: 2700.00 [10:58:48]line СДАЧА: 0.00 [10:58:48]line НСП 1% : 23.90 [10:58:48]line НДС 12% : 286.78 [10:58:48]line Наличными: 2700.00 [10:58:48]line Безнал.: 0.00 [10:58:48]line Место: АЗС № 65 "Партнер Нефть" [10:58:48]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:58:48]line СНО: Общий режим [10:58:48]line Чек 54 20.06.2024 10:59 [10:58:48]line Смена: 389 ФФД: 1.0 [10:58:48]line ЗНМ: 0300000198 [10:58:48]line РНМ: 0000000000092771 [10:58:48]line Версия ККМ: 001 [10:58:48]line ФМ: 0000000000875083 [10:58:48]line ФД: 111604 [10:58:48]line ФПД: 239444067043851 [10:58:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T105918&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111604&fm=239444067043851&tin=02508201610067®Number=0000000000092771&sum=270000 [10:58:48]OFD Sender: Processing packet 111604 [packets to send 38, broken 37] [10:58:48]ProducePacketName [10:58:48]name=ofd_packets/00111604 [10:58:48]OFD Sender: To server: pG, [10:58:48]CommunicateWithHost lk.salyk.kg:30040 [10:58:48]ConnectInit lk.salyk.kg [10:58:48]written 0, free lines is 4095 [10:58:49]Connected sock=10 [10:58:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E2 FB 07 01 5B 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 9E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 70 00 00 00 00 07 04 06 00 B0 1E 04 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 86 0B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F4 B3 01 00 35 04 06 00 D9 C5 EA 8F 4A 0B 2C 67 AF 53 54 EE 85 BB [10:58:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 CB 42 47 00 74 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F4 B3 01 00 F4 03 04 00 D3 A2 73 66 B6 04 01 00 00 08 EA 38 91 C2 20 7B B8 [10:58:49]CommunicateWithHost err = 0 [10:58:49]CheckOFDResponse [10:58:49]1017 (14) - 77093643461234 [10:58:49]1041 (16) - 0000000000875083 [10:58:49]1040 (4) - 111604 [10:58:49]1012 (4) - 20.06.2024 03:32 [10:58:49]1206 (1) - 0 [10:58:49]OFD Sender: Remove packet 111604 [10:58:49]ProducePacketName [10:58:49]name=ofd_packets/00111604 [10:58:49]NVStorageDeleteData [10:58:49]Write to MH i2c: 01 00 00 CD 52 1F [10:58:49]Write i2c OK [10:58:49]MH_I2C_Read... [10:58:49]Read from MH i2c: 01 [10:58:49]MH_I2C_Read... [10:58:49]Read from MH i2c: 01 07 00 [10:58:49]MH_I2C_Read... [10:58:49]Read from MH i2c: 01 07 00 CD 52 00 00 00 00 00 D0 0C 02 [10:58:49]RasterBufferAndPrint [10:58:49]line [10:58:49]line [10:58:49]line [10:58:49]line [10:58:49]line [10:58:49]written 0, free lines is 3287 [10:58:49]MH_Cut [10:58:49]Write to MH i2c: D1 01 00 D4 52 01 F8 [10:58:49]Write i2c OK [10:58:49]MH_I2C_Read... [10:58:49]Read from MH i2c: D1 [10:58:49]MH_I2C_Read... [10:58:49]Read from MH i2c: D1 01 00 [10:58:49]MH_I2C_Read... [10:58:49]Read from MH i2c: D1 01 00 D4 52 00 F7 [10:58:49]Write to MH i2c: 01 00 00 D5 52 27 [10:58:49]Write i2c OK [10:58:49]MH_I2C_Read... [10:58:49]OFD Sender: No OFD packet to send [10:58:50]*** Cut start [10:58:50]*** Partial cut [10:58:50]*** CUTSNS_PIN = 1 [10:58:50]*** CUTSNS_PIN = 0 [10:58:50]*** Brake cut motor [10:58:50]Read from MH i2c: 01 [10:58:50]MH_I2C_Read... [10:58:50]*** Stop cut motor [10:58:50]*** Cut end [10:58:50]Read from MH i2c: 01 07 00 [10:58:50]MH_I2C_Read... [10:58:50]Read from MH i2c: 01 07 00 D5 52 00 00 00 00 00 FF 0F 3C [10:58:50]process_action close_receipt done [10:58:50]requested_data is exist [10:58:50]produce_requested_data [10:58:50]requested_item fm.sn is exist - process it [10:58:50]wFMCommunicate request_size=4 [10:58:50]MH_SAM_APDU [10:58:50]CAPDU: 80 11 00 00 [10:58:50]Write to MH i2c: E2 08 00 D6 52 80 11 00 00 00 00 00 00 A2 [10:58:50]Write i2c OK [10:58:50]MH_I2C_Read... [10:58:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:50]Read from MH i2c: E2 [10:58:50]MH_I2C_Read... [10:58:50]Read from MH i2c: E2 17 00 [10:58:50]MH_I2C_Read... [10:58:50]Read from MH i2c: E2 17 00 D6 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F4 [10:58:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:58:50]wFMCommunicate OK [10:58:50]requested_item fd.num is exist - process it [10:58:50]SAM_PROTO_GetFieldsCounters [10:58:50]wFMCommunicate request_size=4 [10:58:50]MH_SAM_APDU [10:58:50]CAPDU: 80 13 00 00 [10:58:50]Write to MH i2c: E2 08 00 D7 52 80 13 00 00 00 00 00 00 A5 [10:58:50]Write i2c OK [10:58:50]MH_I2C_Read... [10:58:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:51]Read from MH i2c: E2 [10:58:51]MH_I2C_Read... [10:58:51]Read from MH i2c: E2 62 00 [10:58:51]MH_I2C_Read... [10:58:51]Read from MH i2c: E2 62 00 D7 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F4 B3 01 00 0E 04 04 00 85 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 96 [10:58:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F4 B3 01 00 0E 04 04 00 85 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 [10:58:51]wFMCommunicate OK [10:58:51]SAM_PROTO_GetFieldsCounters done [10:58:51]requested_item shift.num is exist - process it [10:58:51]requested_item shift.opened is exist - process it [10:58:51]req_shift_opened [10:58:51]FM_GetShiftState [10:58:51]SAM_PROTO_GetShiftState [10:58:51]wFMCommunicate request_size=4 [10:58:51]MH_SAM_APDU [10:58:51]CAPDU: 80 13 01 00 [10:58:51]Write to MH i2c: E2 08 00 D8 52 80 13 01 00 00 00 00 00 A7 [10:58:51]Write i2c OK [10:58:51]MH_I2C_Read... [10:58:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:51]Read from MH i2c: E2 [10:58:51]MH_I2C_Read... [10:58:51]Read from MH i2c: E2 0E 00 [10:58:51]MH_I2C_Read... [10:58:51]Read from MH i2c: E2 0E 00 D8 52 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 22 [10:58:51]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [10:58:51]wFMCommunicate OK [10:58:51]SAM_PROTO_GetShiftState done [10:58:51]FM_GetShiftState done [10:58:51]req_shift_opened done [10:58:51]requested_item shift.open_date is exist - process it [10:58:51]req_shift_open_date [10:58:51]req_shift_open_date done [10:58:51]produce_requested_data done [10:58:51]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111604,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [10:58:51]process_action_free close_receipt [10:58:51]json_value_free [10:58:51]json_value_free done [10:58:51]process_json_proto returns [10:58:51]Send response to host [10:58:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111604,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [10:58:51]free response buf [10:58:51]execute_script done [10:58:51]execute_script returns [10:58:51]free content buf [10:58:51]Sock 7.Close socket [10:58:51]Sock 7.Thread stoped [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:19]OFD Sender: No OFD packet to send [11:01:24]OFD Sender: No OFD packet to send [11:01:29]OFD Sender: No OFD packet to send [11:01:35]OFD Sender: No OFD packet to send [11:01:40]OFD Sender: No OFD packet to send [11:01:45]OFD Sender: No OFD packet to send [11:01:50]OFD Sender: No OFD packet to send [11:01:55]OFD Sender: No OFD packet to send [11:02:00]OFD Sender: No OFD packet to send [11:02:05]OFD Sender: No OFD packet to send [11:02:10]OFD Sender: No OFD packet to send [11:02:10]accept exits with 9 [11:02:10]New connection [11:02:10]New thread 3067321700 created [11:02:10]Thread 3067465060 joined [11:02:10]Waiting for new connection... [11:02:10] Sock 9.Parse request [11:02:10]Sock 9.Check first char [11:02:10]Sock 9.First char is OK [11:02:10]request: POST /json_proto HTTP/1.0 [11:02:10]Method: POST [11:02:10]URL: /json_proto [11:02:10]Method is POST - this is cgi request [11:02:10]url: /json_proto [11:02:10]query_string will be loaded in cgi processing [11:02:10]execute_cgi json_proto POST (null) [11:02:10]execute_cgi path=json_proto method=POST [11:02:10]POST find Content-Length [11:02:10]Host: 172.17.59.68:8080 [11:02:10]Content-Length: 677 [11:02:10]Content-Type: application/json [11:02:10] [11:02:10]POST finish read [11:02:10]Found Content-Length = 677 [11:02:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:10]execute_script... [11: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)320202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:10]POST & json_proto [11:02:10]process_json_proto [11:02:10]json parsed OK: [11:02:10]protocol is kg_v1.0 [11:02:10]action value=close_receipt [11:02:10]process_action close_receipt [11:02:10]cmd_close_receipt [11:02:10]MH_GetDate [11:02:10]Write to MH i2c: F0 00 00 D9 52 1A [11:02:10]Write i2c OK [11:02:10]MH_I2C_Read... [11:02:10]Read from MH i2c: F0 [11:02:10]MH_I2C_Read... [11:02:10]Read from MH i2c: F0 09 00 [11:02:10]MH_I2C_Read... [11:02:10]Read from MH i2c: F0 09 00 D9 52 00 52 0C 74 66 BC EC 60 65 C8 [11:02:10]GetLastDocTimeStamp 1718881158 [11:02:10]current date 1718881362 [11:02:10]FM_GetShiftState [11:02:10]SAM_PROTO_GetShiftState [11:02:10]wFMCommunicate request_size=4 [11:02:10]MH_SAM_APDU [11:02:10]CAPDU: 80 13 01 00 [11:02:10]Write to MH i2c: E2 08 00 DA 52 80 13 01 00 00 00 00 00 A9 [11:02:10]Write i2c OK [11:02:10]MH_I2C_Read... [11:02:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:10]Read from MH i2c: E2 [11:02:10]MH_I2C_Read... [11:02:10]Read from MH i2c: E2 0E 00 [11:02:10]MH_I2C_Read... [11:02:10]Read from MH i2c: E2 0E 00 DA 52 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 24 [11:02:10]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:02:10]wFMCommunicate OK [11:02:10]SAM_PROTO_GetShiftState done [11:02:10]FM_GetShiftState done [11:02:10]opened in 1718847247 [11:02:10]opened+sec_in_day 1718933647 [11:02:10]quantity*price = 50065 [11:02:10]sum+1 = 50067 [11:02:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 55 20.06.2024 11:02 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111605 ФПД: 186619487272088 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T110242&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111605&fm=186619487272088&tin=02508201610067®Number=0000000000092771&sum=50000 [11:02:11]StoreToDocumentArchive [11:02:11]shift 389 fd 111605 [11:02:11]save to /storage/0389/doc_00111605 [11:02:11]save last doc name /storage/0389/doc_00111605 to /storage/kkm_last_doc_name [11:02:11]save OK [11:02:11]Clear old archive folders... [11:02:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:02:11]tlvbuf is 00EB8D40 [11:02:11]SAM_PROTO_ClearQueue [11:02:11]wFMCommunicate request_size=4 [11:02:11]MH_SAM_APDU [11:02:11]CAPDU: 80 09 00 00 [11:02:11]Write to MH i2c: E2 08 00 E7 52 80 09 00 00 00 00 00 00 AB [11:02:11]Write i2c OK [11:02:11]MH_I2C_Read... [11:02:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:11]Read from MH i2c: E2 [11:02:11]MH_I2C_Read... [11:02:11]Read from MH i2c: E2 03 00 [11:02:11]MH_I2C_Read... [11:02:11]Read from MH i2c: E2 03 00 E7 52 00 90 00 AD [11:02:11]RAPDU: 90 00 [11:02:11]wFMCommunicate OK [11:02:11]SAM_PROTO_ClearQueue done [11:02:11]KKMCreateOFDPacket [11:02:11]OFDProtocolAddRootSTLVToBuf [11:02:11]FM_MakeSignedData [11:02:11]FM_MakeSignedData [11:02:11]SAM_PROTO_SignData [11:02:11]wFMCommunicate request_size=4 [11:02:11]MH_SAM_APDU [11:02:11]CAPDU: 80 0D 01 02 [11:02:11]Write to MH i2c: E2 08 00 E8 52 80 0D 01 02 00 00 00 00 B3 [11:02:11]Write i2c OK [11:02:11]MH_I2C_Read... [11:02:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:11]Read from MH i2c: E2 [11:02:11]MH_I2C_Read... [11:02:11]Read from MH i2c: E2 03 00 [11:02:11]MH_I2C_Read... [11:02:11]Read from MH i2c: E2 03 00 E8 52 00 90 00 AE [11:02:11]RAPDU: 90 00 [11:02:11]wFMCommunicate OK [11:02:11]wFMCommunicate request_size=255 [11:02:11]MH_SAM_APDU [11:02:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 52 0C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F5 B3 01 00 35 04 06 00 A9 [11:02:11]Write to MH i2c: E2 02 01 E9 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 52 0C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F5 B3 01 00 35 04 06 00 A9 00 00 AE [11:02:11]Write i2c OK [11:02:11]MH_I2C_Read... [11:02:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:11]Read from MH i2c: E2 [11:02:11]MH_I2C_Read... [11:02:11]Read from MH i2c: E2 03 00 [11:02:11]MH_I2C_Read... [11:02:11]Read from MH i2c: E2 03 00 E9 52 00 90 00 AF [11:02:11]RAPDU: 90 00 [11:02:11]wFMCommunicate OK [11:02:11]wFMCommunicate request_size=10 [11:02:11]MH_SAM_APDU [11:02:11]CAPDU: 80 0D 02 02 05 BA BC 3F 3C 98 [11:02:11]Write to MH i2c: E2 0D 00 EA 52 80 0D 02 02 05 00 BA BC 3F 3C 98 00 00 49 [11:02:11]Write i2c OK [11:02:11]MH_I2C_Read... [11:02:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:11]Read from MH i2c: E2 [11:02:11]MH_I2C_Read... [11:02:11]Read from MH i2c: E2 03 00 [11:02:11]MH_I2C_Read... [11:02:11]Read from MH i2c: E2 03 00 EA 52 00 90 00 B0 [11:02:11]RAPDU: 90 00 [11:02:11]wFMCommunicate OK [11:02:11]wFMCommunicate request_size=4 [11:02:11]MH_SAM_APDU [11:02:11]CAPDU: 80 0D 03 02 [11:02:11]Write to MH i2c: E2 08 00 EB 52 80 0D 03 02 00 00 00 00 B8 [11:02:11]Write i2c OK [11:02:11]MH_I2C_Read... [11:02:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:11]Read from MH i2c: E2 [11:02:11]MH_I2C_Read... [11:02:11]Read from MH i2c: E2 0B 00 [11:02:11]MH_I2C_Read... [11:02:11]Read from MH i2c: E2 0B 00 EB 52 00 70 CB 0B EB 6C A8 EE 12 90 00 FE [11:02:11]RAPDU: 70 CB 0B EB 6C A8 EE 12 90 00 [11:02:11]wFMCommunicate OK [11:02:11]SAM_PROTO_SignData done [11:02:11]FM_MakeSignedData done [11:02:11]CreateOFDProtocolMessage [11:02:11]wFMCommunicate request_size=4 [11:02:11]MH_SAM_APDU [11:02:11]CAPDU: 80 11 00 00 [11:02:11]Write to MH i2c: E2 08 00 EC 52 80 11 00 00 00 00 00 00 B8 [11:02:11]Write i2c OK [11:02:11]MH_I2C_Read... [11:02:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:11]Read from MH i2c: E2 [11:02:11]MH_I2C_Read... [11:02:11]Read from MH i2c: E2 17 00 [11:02:11]MH_I2C_Read... [11:02:11]Read from MH i2c: E2 17 00 EC 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0A [11:02:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:02:11]wFMCommunicate OK [11:02:11]CreateOFDProtocolMessage done [11:02:11]OFDSenderStorePacket 111605 [11:02:11]StoreOFDPacket docnum=111605 [11:02:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 47 B3 07 01 31 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 52 0C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F5 B3 01 00 35 04 06 00 A9 BA BC 3F 3C 98 70 CB 0B EB 6C A8 EE 12 [11:02:11]CheckFolder [11:02:11]dirname=/storage/ofd_packets [11:02:11]CheckFolder done [11:02:11]ProducePacketName [11:02:11]name=ofd_packets/00111605 [11:02:11]NVStorageSaveData ofd_packets/00111605 [11:02:11]File name is /storage/ofd_packets/00111605 [11:02:11]Write 301 bytes [11:02:11]NVStorageSaveData done [11:02:11]OFDSenderStorePacket done [11:02:11]KKMCreateOFDPacket done [11:02:11]NVStorageSaveData kkm_last_timestamp [11:02:11]File name is /storage/kkm_last_timestamp [11:02:11]Write 4 bytes [11:02:11]NVStorageSaveData done [11:02:11]ExternCall_PrintAddStr [11:02:11]wPrintStart [11:02:11]Write to MH i2c: 01 00 00 ED 52 3F [11:02:11]Write i2c OK [11:02:11]MH_I2C_Read... [11:02:11]Read from MH i2c: 01 [11:02:11]MH_I2C_Read... [11:02:11]Read from MH i2c: 01 07 00 [11:02:11]MH_I2C_Read... [11:02:11]Read from MH i2c: 01 07 00 ED 52 00 00 00 00 00 FF 0F 54 [11:02:11]RasterBufferAndPrint [11:02:11]line Счет N : (1)320202 [11:02:11]line ИНН: 02508201610067 [11:02:11]line Контрольно-Кассовый Чек [11:02:11]line ПРОДАЖА [11:02:11]line ТРК (МРК, ГНК) : 11 [11:02:11]line Товар: 2710124130 [11:02:11]line Аи-92-К-5 [11:02:11]line 7.540 * 66.40 [11:02:11]line = 500.66 [11:02:11]line НДС 12% НСП 1% [11:02:11]line > о реализуемом товаре [11:02:11]line ОКРУГЛЕНИЕ: -0.66 [11:02:11]line ИТОГО: 500.00 [11:02:11]line Внесено: 500.00 [11:02:11]line СДАЧА: 0.00 [11:02:11]line НСП 1% : 4.43 [11:02:11]line НДС 12% : 53.17 [11:02:11]line Наличными: 500.00 [11:02:11]line Безнал.: 0.00 [11:02:11]line Место: АЗС № 65 "Партнер Нефть" [11:02:11]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:02:11]line СНО: Общий режим [11:02:11]line Чек 55 20.06.2024 11:02 [11:02:11]line Смена: 389 ФФД: 1.0 [11:02:11]line ЗНМ: 0300000198 [11:02:11]line РНМ: 0000000000092771 [11:02:11]line Версия ККМ: 001 [11:02:11]line ФМ: 0000000000875083 [11:02:11]line ФД: 111605 [11:02:11]line ФПД: 186619487272088 [11:02:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T110242&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111605&fm=186619487272088&tin=02508201610067®Number=0000000000092771&sum=50000 [11:02:12]OFD Sender: Processing packet 111605 [packets to send 38, broken 37] [11:02:12]ProducePacketName [11:02:12]name=ofd_packets/00111605 [11:02:12]OFD Sender: To server: pG, [11:02:12]CommunicateWithHost lk.salyk.kg:30040 [11:02:12]ConnectInit lk.salyk.kg [11:02:12]written 0, free lines is 4095 [11:02:12]Connected sock=10 [11:02:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 47 B3 07 01 31 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 52 0C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F5 B3 01 00 35 04 06 00 A9 BA BC 3F 3C 98 70 CB 0B EB 6C A8 EE 12 [11:02:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A8 E2 47 00 05 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 35 30 38 33 10 04 04 00 F5 B3 01 00 F4 03 04 00 9E A3 73 66 B6 04 01 00 00 4B 05 9E 99 A3 D2 55 F5 [11:02:12]CommunicateWithHost err = 0 [11:02:12]CheckOFDResponse [11:02:12]1017 (14) - 77093643461234 [11:02:12]1041 (16) - 0000000000875083 [11:02:12]1040 (4) - 111605 [11:02:12]1012 (4) - 20.06.2024 03:35 [11:02:12]1206 (1) - 0 [11:02:12]OFD Sender: Remove packet 111605 [11:02:12]ProducePacketName [11:02:12]name=ofd_packets/00111605 [11:02:12]NVStorageDeleteData [11:02:12]Write to MH i2c: 01 00 00 18 53 6B [11:02:12]Write i2c OK [11:02:12]MH_I2C_Read... [11:02:12]Read from MH i2c: 01 [11:02:12]MH_I2C_Read... [11:02:12]Read from MH i2c: 01 07 00 [11:02:12]MH_I2C_Read... [11:02:12]Read from MH i2c: 01 07 00 18 53 00 00 00 00 00 C6 0C 44 [11:02:12]RasterBufferAndPrint [11:02:12]line [11:02:12]line [11:02:12]line [11:02:12]line [11:02:12]line [11:02:12]written 0, free lines is 3276 [11:02:12]MH_Cut [11:02:12]Write to MH i2c: D1 01 00 1F 53 01 44 [11:02:12]Write i2c OK [11:02:12]MH_I2C_Read... [11:02:12]Read from MH i2c: D1 [11:02:12]MH_I2C_Read... [11:02:12]Read from MH i2c: D1 01 00 [11:02:12]MH_I2C_Read... [11:02:12]Read from MH i2c: D1 01 00 1F 53 00 43 [11:02:12]Write to MH i2c: 01 00 00 20 53 73 [11:02:12]Write i2c OK [11:02:12]MH_I2C_Read... [11:02:13]OFD Sender: No OFD packet to send [11:02:13]*** Cut start [11:02:13]*** Partial cut [11:02:13]*** CUTSNS_PIN = 1 [11:02:13]*** CUTSNS_PIN = 0 [11:02:13]*** Brake cut motor [11:02:14]Read from MH i2c: 01 [11:02:14]MH_I2C_Read... [11:02:14]*** Stop cut motor [11:02:14]*** Cut end [11:02:14]Read from MH i2c: 01 07 00 [11:02:14]MH_I2C_Read... [11:02:14]Read from MH i2c: 01 07 00 20 53 00 00 00 00 00 FF 0F 88 [11:02:14]process_action close_receipt done [11:02:14]requested_data is exist [11:02:14]produce_requested_data [11:02:14]requested_item fm.sn is exist - process it [11:02:14]wFMCommunicate request_size=4 [11:02:14]MH_SAM_APDU [11:02:14]CAPDU: 80 11 00 00 [11:02:14]Write to MH i2c: E2 08 00 21 53 80 11 00 00 00 00 00 00 EE [11:02:14]Write i2c OK [11:02:14]MH_I2C_Read... [11:02:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:14]Read from MH i2c: E2 [11:02:14]MH_I2C_Read... [11:02:14]Read from MH i2c: E2 17 00 [11:02:14]MH_I2C_Read... [11:02:14]Read from MH i2c: E2 17 00 21 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 40 [11:02:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:02:14]wFMCommunicate OK [11:02:14]requested_item fd.num is exist - process it [11:02:14]SAM_PROTO_GetFieldsCounters [11:02:14]wFMCommunicate request_size=4 [11:02:14]MH_SAM_APDU [11:02:14]CAPDU: 80 13 00 00 [11:02:14]Write to MH i2c: E2 08 00 22 53 80 13 00 00 00 00 00 00 F1 [11:02:14]Write i2c OK [11:02:14]MH_I2C_Read... [11:02:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:14]Read from MH i2c: E2 [11:02:14]MH_I2C_Read... [11:02:14]Read from MH i2c: E2 62 00 [11:02:14]MH_I2C_Read... [11:02:14]Read from MH i2c: E2 62 00 22 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F5 B3 01 00 0E 04 04 00 85 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 E6 [11: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F5 B3 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:02:14]wFMCommunicate OK [11:02:14]SAM_PROTO_GetFieldsCounters done [11:02:14]requested_item shift.num is exist - process it [11:02:14]requested_item shift.opened is exist - process it [11:02:14]req_shift_opened [11:02:14]FM_GetShiftState [11:02:14]SAM_PROTO_GetShiftState [11:02:14]wFMCommunicate request_size=4 [11:02:14]MH_SAM_APDU [11:02:14]CAPDU: 80 13 01 00 [11:02:14]Write to MH i2c: E2 08 00 23 53 80 13 01 00 00 00 00 00 F3 [11:02:14]Write i2c OK [11:02:14]MH_I2C_Read... [11:02:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:14]Read from MH i2c: E2 [11:02:14]MH_I2C_Read... [11:02:14]Read from MH i2c: E2 0E 00 [11:02:14]MH_I2C_Read... [11:02:14]Read from MH i2c: E2 0E 00 23 53 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 6E [11:02:14]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:02:14]wFMCommunicate OK [11:02:14]SAM_PROTO_GetShiftState done [11:02:14]FM_GetShiftState done [11:02:14]req_shift_opened done [11:02:14]requested_item shift.open_date is exist - process it [11:02:14]req_shift_open_date [11:02:14]req_shift_open_date done [11:02:14]produce_requested_data done [11:02:14]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111605,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [11:02:14]process_action_free close_receipt [11:02:14]json_value_free [11:02:14]json_value_free done [11:02:14]process_json_proto returns [11:02:14]Send response to host [11:02:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111605,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [11:02:14]free response buf [11:02:14]execute_script done [11:02:14]execute_script returns [11:02:14]free content buf [11:02:14]Sock 9.Close socket [11:02:14]Sock 9.Thread stoped [11:02:18]OFD Sender: No OFD packet to send [11:02:23]OFD Sender: No OFD packet to send [11:02:28]OFD Sender: No OFD packet to send [11:02:33]OFD Sender: No OFD packet to send [11:02:38]OFD Sender: No OFD packet to send [11:02:43]OFD Sender: No OFD packet to send [11:02:48]OFD Sender: No OFD packet to send [11:02:53]OFD Sender: No OFD packet to send [11:02:58]OFD Sender: No OFD packet to send [11:03:03]OFD Sender: No OFD packet to send [11:03:08]OFD Sender: No OFD packet to send [11:03:13]OFD Sender: No OFD packet to send [11:03:18]OFD Sender: No OFD packet to send [11:03:23]OFD Sender: No OFD packet to send [11:03:28]OFD Sender: No OFD packet to send [11:03:33]OFD Sender: No OFD packet to send [11:03:38]OFD Sender: No OFD packet to send [11:03:43]OFD Sender: No OFD packet to send [11:03:48]OFD Sender: No OFD packet to send [11:03:53]OFD Sender: No OFD packet to send [11:03:58]OFD Sender: No OFD packet to send [11:04:03]OFD Sender: No OFD packet to send [11:04:08]OFD Sender: No OFD packet to send [11:04:13]OFD Sender: No OFD packet to send [11:04:18]OFD Sender: No OFD packet to send [11:04:23]OFD Sender: No OFD packet to send [11:04:28]OFD Sender: No OFD packet to send [11:04:33]OFD Sender: No OFD packet to send [11:04:38]OFD Sender: No OFD packet to send [11:04:43]OFD Sender: No OFD packet to send [11:04:48]OFD Sender: No OFD packet to send [11:04:53]OFD Sender: No OFD packet to send [11:04:58]OFD Sender: No OFD packet to send [11:05:03]OFD Sender: No OFD packet to send [11:05:08]OFD Sender: No OFD packet to send [11:05:13]OFD Sender: No OFD packet to send [11:05:16]accept exits with 7 [11:05:16]New connection [11:05:16]New thread 3067465060 created [11:05:16]Thread 3067321700 joined [11:05:16]Waiting for new connection... [11:05:16] Sock 7.Parse request [11:05:16]Sock 7.Check first char [11:05:16]Sock 7.First char is OK [11:05:16]request: POST /json_proto HTTP/1.0 [11:05:16]Method: POST [11:05:16]URL: /json_proto [11:05:16]Method is POST - this is cgi request [11:05:16]url: /json_proto [11:05:16]query_string will be loaded in cgi processing [11:05:16]execute_cgi json_proto POST (null) [11:05:16]execute_cgi path=json_proto method=POST [11:05:16]POST find Content-Length [11:05:16]Host: 172.17.59.68:8080 [11:05:16]Content-Length: 639 [11:05:16]Content-Type: application/json [11:05:16] [11:05:16]POST finish read [11:05:16]Found Content-Length = 639 [11:05:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.000, "sum" : 332.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 332.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:16]execute_script... [11:05: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)320203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.000, "sum" : 332.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 332.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:16]POST & json_proto [11:05:16]process_json_proto [11:05:16]json parsed OK: [11:05:16]protocol is kg_v1.0 [11:05:16]action value=close_receipt [11:05:16]process_action close_receipt [11:05:16]cmd_close_receipt [11:05:16]MH_GetDate [11:05:16]Write to MH i2c: F0 00 00 24 53 66 [11:05:16]Write i2c OK [11:05:16]MH_I2C_Read... [11:05:16]Read from MH i2c: F0 [11:05:16]MH_I2C_Read... [11:05:16]Read from MH i2c: F0 09 00 [11:05:16]MH_I2C_Read... [11:05:16]Read from MH i2c: F0 09 00 24 53 00 0B 0D 74 66 BC EC 60 65 CE [11:05:16]GetLastDocTimeStamp 1718881362 [11:05:16]current date 1718881547 [11:05:16]FM_GetShiftState [11:05:16]SAM_PROTO_GetShiftState [11:05:16]wFMCommunicate request_size=4 [11:05:16]MH_SAM_APDU [11:05:16]CAPDU: 80 13 01 00 [11:05:16]Write to MH i2c: E2 08 00 25 53 80 13 01 00 00 00 00 00 F5 [11:05:16]Write i2c OK [11:05:16]MH_I2C_Read... [11:05:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:16]Read from MH i2c: E2 [11:05:16]MH_I2C_Read... [11:05:16]Read from MH i2c: E2 0E 00 [11:05:16]MH_I2C_Read... [11:05:16]Read from MH i2c: E2 0E 00 25 53 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 70 [11:05:16]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:05:16]wFMCommunicate OK [11:05:16]SAM_PROTO_GetShiftState done [11:05:16]FM_GetShiftState done [11:05:16]opened in 1718847247 [11:05:16]opened+sec_in_day 1718933647 [11:05:16]quantity*price = 33200 [11:05:16]sum+1 = 33201 [11:05:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 332.00 НСП 1% : 2.94 НДС 12% : 35.26 Наличными: 332.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 56 20.06.2024 11:05 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111606 ФПД: 11829725822450 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T110548&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111606&fm=11829725822450&tin=02508201610067®Number=0000000000092771&sum=33200 [11:05:17]StoreToDocumentArchive [11:05:17]shift 389 fd 111606 [11:05:17]save to /storage/0389/doc_00111606 [11:05:17]save last doc name /storage/0389/doc_00111606 to /storage/kkm_last_doc_name [11:05:17]save OK [11:05:17]Clear old archive folders... [11:05:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:05:17]tlvbuf is 0108F6A0 [11:05:17]SAM_PROTO_ClearQueue [11:05:17]wFMCommunicate request_size=4 [11:05:17]MH_SAM_APDU [11:05:17]CAPDU: 80 09 00 00 [11:05:17]Write to MH i2c: E2 08 00 32 53 80 09 00 00 00 00 00 00 F7 [11:05:17]Write i2c OK [11:05:17]MH_I2C_Read... [11:05:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:17]Read from MH i2c: E2 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: E2 03 00 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: E2 03 00 32 53 00 90 00 F9 [11:05:17]RAPDU: 90 00 [11:05:17]wFMCommunicate OK [11:05:17]SAM_PROTO_ClearQueue done [11:05:17]KKMCreateOFDPacket [11:05:17]OFDProtocolAddRootSTLVToBuf [11:05:17]FM_MakeSignedData [11:05:17]FM_MakeSignedData [11:05:17]SAM_PROTO_SignData [11:05:17]wFMCommunicate request_size=4 [11:05:17]MH_SAM_APDU [11:05:17]CAPDU: 80 0D 01 02 [11:05:17]Write to MH i2c: E2 08 00 33 53 80 0D 01 02 00 00 00 00 FF [11:05:17]Write i2c OK [11:05:17]MH_I2C_Read... [11:05:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:17]Read from MH i2c: E2 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: E2 03 00 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: E2 03 00 33 53 00 90 00 FA [11:05:17]RAPDU: 90 00 [11:05:17]wFMCommunicate OK [11:05:17]wFMCommunicate request_size=255 [11:05:17]MH_SAM_APDU [11:05: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 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 0C 0D 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F6 B3 01 00 35 04 06 00 0A [11:05:17]Write to MH i2c: E2 02 01 34 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 0C 0D 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F6 B3 01 00 35 04 06 00 0A 00 00 9F [11:05:17]Write i2c OK [11:05:17]MH_I2C_Read... [11:05:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:17]Read from MH i2c: E2 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: E2 03 00 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: E2 03 00 34 53 00 90 00 FB [11:05:17]RAPDU: 90 00 [11:05:17]wFMCommunicate OK [11:05:17]wFMCommunicate request_size=10 [11:05:17]MH_SAM_APDU [11:05:17]CAPDU: 80 0D 02 02 05 C2 52 9A FD F2 [11:05:17]Write to MH i2c: E2 0D 00 35 53 80 0D 02 02 05 00 C2 52 9A FD F2 00 00 A9 [11:05:17]Write i2c OK [11:05:17]MH_I2C_Read... [11:05:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:17]Read from MH i2c: E2 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: E2 03 00 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: E2 03 00 35 53 00 90 00 FC [11:05:17]RAPDU: 90 00 [11:05:17]wFMCommunicate OK [11:05:17]wFMCommunicate request_size=4 [11:05:17]MH_SAM_APDU [11:05:17]CAPDU: 80 0D 03 02 [11:05:17]Write to MH i2c: E2 08 00 36 53 80 0D 03 02 00 00 00 00 04 [11:05:17]Write i2c OK [11:05:17]MH_I2C_Read... [11:05:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:17]Read from MH i2c: E2 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: E2 0B 00 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: E2 0B 00 36 53 00 AE 65 74 78 5E 95 FC 0A 90 00 FD [11:05:17]RAPDU: AE 65 74 78 5E 95 FC 0A 90 00 [11:05:17]wFMCommunicate OK [11:05:17]SAM_PROTO_SignData done [11:05:17]FM_MakeSignedData done [11:05:17]CreateOFDProtocolMessage [11:05:17]wFMCommunicate request_size=4 [11:05:17]MH_SAM_APDU [11:05:17]CAPDU: 80 11 00 00 [11:05:17]Write to MH i2c: E2 08 00 37 53 80 11 00 00 00 00 00 00 04 [11:05:17]Write i2c OK [11:05:17]MH_I2C_Read... [11:05:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:17]Read from MH i2c: E2 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: E2 17 00 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: E2 17 00 37 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 56 [11:05:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:05:17]wFMCommunicate OK [11:05:17]CreateOFDProtocolMessage done [11:05:17]OFDSenderStorePacket 111606 [11:05:17]StoreOFDPacket docnum=111606 [11:05:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A1 A9 07 01 59 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 0C 0D 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F6 B3 01 00 35 04 06 00 0A C2 52 9A FD F2 AE 65 74 78 5E 95 FC 0A [11:05:17]CheckFolder [11:05:17]dirname=/storage/ofd_packets [11:05:17]CheckFolder done [11:05:17]ProducePacketName [11:05:17]name=ofd_packets/00111606 [11:05:17]NVStorageSaveData ofd_packets/00111606 [11:05:17]File name is /storage/ofd_packets/00111606 [11:05:17]Write 301 bytes [11:05:17]NVStorageSaveData done [11:05:17]OFDSenderStorePacket done [11:05:17]KKMCreateOFDPacket done [11:05:17]NVStorageSaveData kkm_last_timestamp [11:05:17]File name is /storage/kkm_last_timestamp [11:05:17]Write 4 bytes [11:05:17]NVStorageSaveData done [11:05:17]ExternCall_PrintAddStr [11:05:17]wPrintStart [11:05:17]Write to MH i2c: 01 00 00 38 53 8B [11:05:17]Write i2c OK [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: 01 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: 01 07 00 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: 01 07 00 38 53 00 00 00 00 00 FF 0F A0 [11:05:17]RasterBufferAndPrint [11:05:17]line Счет N : (1)320203 [11:05:17]line ИНН: 02508201610067 [11:05:17]line Контрольно-Кассовый Чек [11:05:17]line ПРОДАЖА [11:05:17]line ТРК (МРК, ГНК) : 11 [11:05:17]line Товар: 2710124130 [11:05:17]line Аи-92-К-5 [11:05:17]line 5.000 * 66.40 [11:05:17]line = 332.00 [11:05:17]line НДС 12% НСП 1% [11:05:17]line > о реализуемом товаре [11:05:17]line ИТОГО: 332.00 [11:05:17]line НСП 1% : 2.94 [11:05:17]line НДС 12% : 35.26 [11:05:17]line Наличными: 332.00 [11:05:17]line Безнал.: 0.00 [11:05:17]line Место: АЗС № 65 "Партнер Нефть" [11:05:17]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:05:17]line СНО: Общий режим [11:05:17]line Чек 56 20.06.2024 11:05 [11:05:17]line Смена: 389 ФФД: 1.0 [11:05:17]line ЗНМ: 0300000198 [11:05:17]line РНМ: 0000000000092771 [11:05:17]line Версия ККМ: 001 [11:05:17]line ФМ: 0000000000875083 [11:05:17]line ФД: 111606 [11:05:17]line ФПД: 11829725822450 [11:05:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T110548&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111606&fm=11829725822450&tin=02508201610067®Number=0000000000092771&sum=33200 [11:05:18]OFD Sender: Processing packet 111606 [packets to send 38, broken 37] [11:05:18]ProducePacketName [11:05:18]name=ofd_packets/00111606 [11:05:18]OFD Sender: To server: pG, [11:05:18]CommunicateWithHost lk.salyk.kg:30040 [11:05:18]ConnectInit lk.salyk.kg [11:05:18]written 0, free lines is 4095 [11:05:18]Connected sock=10 [11:05:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A1 A9 07 01 59 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 0C 0D 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F6 B3 01 00 35 04 06 00 0A C2 52 9A FD F2 AE 65 74 78 5E 95 FC 0A [11:05:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 73 D1 47 00 88 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F6 B3 01 00 F4 03 04 00 58 A4 73 66 B6 04 01 00 00 0C B3 85 06 A5 14 DB 89 [11:05:18]CommunicateWithHost err = 0 [11:05:18]CheckOFDResponse [11:05:18]1017 (14) - 77093643461234 [11:05:18]1041 (16) - 0000000000875083 [11:05:18]1040 (4) - 111606 [11:05:18]1012 (4) - 20.06.2024 03:39 [11:05:18]1206 (1) - 0 [11:05:18]OFD Sender: Remove packet 111606 [11:05:18]ProducePacketName [11:05:18]name=ofd_packets/00111606 [11:05:18]NVStorageDeleteData [11:05:18]Write to MH i2c: 01 00 00 60 53 B3 [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: 01 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: 01 07 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: 01 07 00 60 53 00 00 00 00 00 F6 0C BC [11:05:18]RasterBufferAndPrint [11:05:18]line [11:05:18]line [11:05:18]line [11:05:18]line [11:05:18]line [11:05:18]written 0, free lines is 3325 [11:05:18]MH_Cut [11:05:18]Write to MH i2c: D1 01 00 67 53 01 8C [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: D1 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: D1 01 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: D1 01 00 67 53 00 8B [11:05:18]Write to MH i2c: 01 00 00 68 53 BB [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]OFD Sender: No OFD packet to send [11:05:19]*** Cut start [11:05:19]*** Partial cut [11:05:19]*** CUTSNS_PIN = 1 [11:05:19]*** CUTSNS_PIN = 0 [11:05:19]*** Brake cut motor [11:05:19]Read from MH i2c: 01 [11:05:19]MH_I2C_Read... [11:05:19]*** Stop cut motor [11:05:19]*** Cut end [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 68 53 00 00 00 00 00 FF 0F D0 [11:05:19]process_action close_receipt done [11:05:19]requested_data is exist [11:05:19]produce_requested_data [11:05:19]requested_item fm.sn is exist - process it [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 69 53 80 11 00 00 00 00 00 00 36 [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 69 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 88 [11:05:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:05:19]wFMCommunicate OK [11:05:19]requested_item fd.num is exist - process it [11:05:19]SAM_PROTO_GetFieldsCounters [11:05:19]wFMCommunicate request_size=4 [11:05:19]MH_SAM_APDU [11:05:19]CAPDU: 80 13 00 00 [11:05:19]Write to MH i2c: E2 08 00 6A 53 80 13 00 00 00 00 00 00 39 [11:05:19]Write i2c OK [11:05:19]MH_I2C_Read... [11:05:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:20]Read from MH i2c: E2 [11:05:20]MH_I2C_Read... [11:05:20]Read from MH i2c: E2 62 00 [11:05:20]MH_I2C_Read... [11:05:20]Read from MH i2c: E2 62 00 6A 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F6 B3 01 00 0E 04 04 00 85 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 32 [11:05:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F6 B3 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:05:20]wFMCommunicate OK [11:05:20]SAM_PROTO_GetFieldsCounters done [11:05:20]requested_item shift.num is exist - process it [11:05:20]requested_item shift.opened is exist - process it [11:05:20]req_shift_opened [11:05:20]FM_GetShiftState [11:05:20]SAM_PROTO_GetShiftState [11:05:20]wFMCommunicate request_size=4 [11:05:20]MH_SAM_APDU [11:05:20]CAPDU: 80 13 01 00 [11:05:20]Write to MH i2c: E2 08 00 6B 53 80 13 01 00 00 00 00 00 3B [11:05:20]Write i2c OK [11:05:20]MH_I2C_Read... [11:05:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:20]Read from MH i2c: E2 [11:05:20]MH_I2C_Read... [11:05:20]Read from MH i2c: E2 0E 00 [11:05:20]MH_I2C_Read... [11:05:20]Read from MH i2c: E2 0E 00 6B 53 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 B6 [11:05:20]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:05:20]wFMCommunicate OK [11:05:20]SAM_PROTO_GetShiftState done [11:05:20]FM_GetShiftState done [11:05:20]req_shift_opened done [11:05:20]requested_item shift.open_date is exist - process it [11:05:20]req_shift_open_date [11:05:20]req_shift_open_date done [11:05:20]produce_requested_data done [11:05:20]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111606,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [11:05:20]process_action_free close_receipt [11:05:20]json_value_free [11:05:20]json_value_free done [11:05:20]process_json_proto returns [11:05:20]Send response to host [11:05:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111606,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [11:05:20]free response buf [11:05:20]execute_script done [11:05:20]execute_script returns [11:05:20]free content buf [11:05:20]Sock 7.Close socket [11:05:20]Sock 7.Thread stoped [11:05:23]OFD Sender: No OFD packet to send [11:05:28]OFD Sender: No OFD packet to send [11:05:33]OFD Sender: No OFD packet to send [11:05:38]OFD Sender: No OFD packet to send [11:05:43]OFD Sender: No OFD packet to send [11:05:48]OFD Sender: No OFD packet to send [11:05:53]OFD Sender: No OFD packet to send [11:05:58]OFD Sender: No OFD packet to send [11:06:03]OFD Sender: No OFD packet to send [11:06:08]OFD Sender: No OFD packet to send [11:06:13]OFD Sender: No OFD packet to send [11:06:18]OFD Sender: No OFD packet to send [11:06:23]OFD Sender: No OFD packet to send [11:06:25]accept exits with 9 [11:06:25]New connection [11:06:25]New thread 3067321700 created [11:06:25]Thread 3067465060 joined [11:06:25]Waiting for new connection... [11:06:25] Sock 9.Parse request [11:06:25]Sock 9.Check first char [11:06:25]Sock 9.First char is OK [11:06:25]request: POST /json_proto HTTP/1.0 [11:06:25]Method: POST [11:06:25]URL: /json_proto [11:06:25]Method is POST - this is cgi request [11:06:25]url: /json_proto [11:06:25]query_string will be loaded in cgi processing [11:06:25]execute_cgi json_proto POST (null) [11:06:25]execute_cgi path=json_proto method=POST [11:06:25]POST find Content-Length [11:06:25]Host: 172.17.59.68:8080 [11:06:25]Content-Length: 682 [11:06:25]Content-Type: application/json [11:06:25] [11:06:25]POST finish read [11:06:25]Found Content-Length = 682 [11:06:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:25]execute_script... [11:06: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)320204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:25]POST & json_proto [11:06:25]process_json_proto [11:06:25]json parsed OK: [11:06:25]protocol is kg_v1.0 [11:06:25]action value=close_receipt [11:06:25]process_action close_receipt [11:06:25]cmd_close_receipt [11:06:25]MH_GetDate [11:06:25]Write to MH i2c: F0 00 00 6C 53 AE [11:06:25]Write i2c OK [11:06:25]MH_I2C_Read... [11:06:25]Read from MH i2c: F0 [11:06:25]MH_I2C_Read... [11:06:25]Read from MH i2c: F0 09 00 [11:06:25]MH_I2C_Read... [11:06:25]Read from MH i2c: F0 09 00 6C 53 00 51 0D 74 66 BC EC 60 65 5C [11:06:25]GetLastDocTimeStamp 1718881548 [11:06:25]current date 1718881617 [11:06:25]FM_GetShiftState [11:06:25]SAM_PROTO_GetShiftState [11:06:25]wFMCommunicate request_size=4 [11:06:25]MH_SAM_APDU [11:06:25]CAPDU: 80 13 01 00 [11:06:25]Write to MH i2c: E2 08 00 6D 53 80 13 01 00 00 00 00 00 3D [11:06:25]Write i2c OK [11:06:25]MH_I2C_Read... [11:06:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:25]Read from MH i2c: E2 [11:06:25]MH_I2C_Read... [11:06:25]Read from MH i2c: E2 0E 00 [11:06:25]MH_I2C_Read... [11:06:25]Read from MH i2c: E2 0E 00 6D 53 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 B8 [11:06:25]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:06:25]wFMCommunicate OK [11:06:25]SAM_PROTO_GetShiftState done [11:06:25]FM_GetShiftState done [11:06:25]opened in 1718847247 [11:06:25]opened+sec_in_day 1718933647 [11:06:25]quantity*price = 150064 [11:06:25]sum+1 = 150065 [11:06:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 57 20.06.2024 11:06 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111607 ФПД: 222156252641762 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T110657&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111607&fm=222156252641762&tin=02508201610067®Number=0000000000092771&sum=150000 [11:06:26]StoreToDocumentArchive [11:06:26]shift 389 fd 111607 [11:06:26]save to /storage/0389/doc_00111607 [11:06:26]save last doc name /storage/0389/doc_00111607 to /storage/kkm_last_doc_name [11:06:26]save OK [11:06:26]Clear old archive folders... [11:06:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:06:26]tlvbuf is B6F57350 [11:06:26]SAM_PROTO_ClearQueue [11:06:26]wFMCommunicate request_size=4 [11:06:26]MH_SAM_APDU [11:06:26]CAPDU: 80 09 00 00 [11:06:26]Write to MH i2c: E2 08 00 7A 53 80 09 00 00 00 00 00 00 3F [11:06:26]Write i2c OK [11:06:26]MH_I2C_Read... [11:06:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:06:26]Read from MH i2c: E2 [11:06:26]MH_I2C_Read... [11:06:26]Read from MH i2c: E2 03 00 [11:06:26]MH_I2C_Read... [11:06:26]Read from MH i2c: E2 03 00 7A 53 00 90 00 41 [11:06:26]RAPDU: 90 00 [11:06:26]wFMCommunicate OK [11:06:26]SAM_PROTO_ClearQueue done [11:06:26]KKMCreateOFDPacket [11:06:26]OFDProtocolAddRootSTLVToBuf [11:06:26]FM_MakeSignedData [11:06:26]FM_MakeSignedData [11:06:26]SAM_PROTO_SignData [11:06:26]wFMCommunicate request_size=4 [11:06:26]MH_SAM_APDU [11:06:26]CAPDU: 80 0D 01 02 [11:06:26]Write to MH i2c: E2 08 00 7B 53 80 0D 01 02 00 00 00 00 47 [11:06:26]Write i2c OK [11:06:26]MH_I2C_Read... [11:06:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:06:27]Read from MH i2c: E2 [11:06:27]MH_I2C_Read... [11:06:27]Read from MH i2c: E2 03 00 [11:06:27]MH_I2C_Read... [11:06:27]Read from MH i2c: E2 03 00 7B 53 00 90 00 42 [11:06:27]RAPDU: 90 00 [11:06:27]wFMCommunicate OK [11:06:27]wFMCommunicate request_size=255 [11:06:27]MH_SAM_APDU [11:06:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 51 0D 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F7 B3 01 00 35 04 06 00 CA [11:06:27]Write to MH i2c: E2 02 01 7C 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 51 0D 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F7 B3 01 00 35 04 06 00 CA 00 00 0B [11:06:27]Write i2c OK [11:06:27]MH_I2C_Read... [11:06:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:27]Read from MH i2c: E2 [11:06:27]MH_I2C_Read... [11:06:27]Read from MH i2c: E2 03 00 [11:06:27]MH_I2C_Read... [11:06:27]Read from MH i2c: E2 03 00 7C 53 00 90 00 43 [11:06:27]RAPDU: 90 00 [11:06:27]wFMCommunicate OK [11:06:27]wFMCommunicate request_size=10 [11:06:27]MH_SAM_APDU [11:06:27]CAPDU: 80 0D 02 02 05 0C C8 85 F9 E2 [11:06:27]Write to MH i2c: E2 0D 00 7D 53 80 0D 02 02 05 00 0C C8 85 F9 E2 00 00 88 [11:06:27]Write i2c OK [11:06:27]MH_I2C_Read... [11:06:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:27]Read from MH i2c: E2 [11:06:27]MH_I2C_Read... [11:06:27]Read from MH i2c: E2 03 00 [11:06:27]MH_I2C_Read... [11:06:27]Read from MH i2c: E2 03 00 7D 53 00 90 00 44 [11:06:27]RAPDU: 90 00 [11:06:27]wFMCommunicate OK [11:06:27]wFMCommunicate request_size=4 [11:06:27]MH_SAM_APDU [11:06:27]CAPDU: 80 0D 03 02 [11:06:27]Write to MH i2c: E2 08 00 7E 53 80 0D 03 02 00 00 00 00 4C [11:06:27]Write i2c OK [11:06:27]MH_I2C_Read... [11:06:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:06:27]Read from MH i2c: E2 [11:06:27]MH_I2C_Read... [11:06:27]Read from MH i2c: E2 0B 00 [11:06:27]MH_I2C_Read... [11:06:27]Read from MH i2c: E2 0B 00 7E 53 00 EE BB C9 A7 C5 8D DE 98 90 00 2E [11:06:27]RAPDU: EE BB C9 A7 C5 8D DE 98 90 00 [11:06:27]wFMCommunicate OK [11:06:27]SAM_PROTO_SignData done [11:06:27]FM_MakeSignedData done [11:06:27]CreateOFDProtocolMessage [11:06:27]wFMCommunicate request_size=4 [11:06:27]MH_SAM_APDU [11:06:27]CAPDU: 80 11 00 00 [11:06:27]Write to MH i2c: E2 08 00 7F 53 80 11 00 00 00 00 00 00 4C [11:06:27]Write i2c OK [11:06:27]MH_I2C_Read... [11:06:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:27]Read from MH i2c: E2 [11:06:27]MH_I2C_Read... [11:06:27]Read from MH i2c: E2 17 00 [11:06:27]MH_I2C_Read... [11:06:27]Read from MH i2c: E2 17 00 7F 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9E [11:06:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:06:27]wFMCommunicate OK [11:06:27]CreateOFDProtocolMessage done [11:06:27]OFDSenderStorePacket 111607 [11:06:27]StoreOFDPacket docnum=111607 [11:06:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 4C 8D 07 01 35 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 51 0D 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F7 B3 01 00 35 04 06 00 CA 0C C8 85 F9 E2 EE BB C9 A7 C5 8D DE 98 [11:06:27]CheckFolder [11:06:27]dirname=/storage/ofd_packets [11:06:27]CheckFolder done [11:06:27]ProducePacketName [11:06:27]name=ofd_packets/00111607 [11:06:27]NVStorageSaveData ofd_packets/00111607 [11:06:27]File name is /storage/ofd_packets/00111607 [11:06:27]Write 301 bytes [11:06:27]NVStorageSaveData done [11:06:27]OFDSenderStorePacket done [11:06:27]KKMCreateOFDPacket done [11:06:27]NVStorageSaveData kkm_last_timestamp [11:06:27]File name is /storage/kkm_last_timestamp [11:06:27]Write 4 bytes [11:06:27]NVStorageSaveData done [11:06:27]ExternCall_PrintAddStr [11:06:27]wPrintStart [11:06:27]Write to MH i2c: 01 00 00 80 53 D3 [11:06:27]Write i2c OK [11:06:27]MH_I2C_Read... [11:06:27]Read from MH i2c: 01 [11:06:27]MH_I2C_Read... [11:06:27]Read from MH i2c: 01 07 00 [11:06:27]MH_I2C_Read... [11:06:27]Read from MH i2c: 01 07 00 80 53 00 00 00 00 00 FF 0F E8 [11:06:27]RasterBufferAndPrint [11:06:27]line Счет N : (1)320204 [11:06:27]line ИНН: 02508201610067 [11:06:27]line Контрольно-Кассовый Чек [11:06:27]line ПРОДАЖА [11:06:27]line ТРК (МРК, ГНК) : 11 [11:06:27]line Товар: 2710124130 [11:06:27]line Аи-92-К-5 [11:06:27]line 22.600 * 66.40 [11:06:27]line = 1500.64 [11:06:27]line НДС 12% НСП 1% [11:06:27]line > о реализуемом товаре [11:06:27]line ОКРУГЛЕНИЕ: -0.64 [11:06:27]line ИТОГО: 1500.00 [11:06:27]line Внесено: 1500.00 [11:06:27]line СДАЧА: 0.00 [11:06:27]line НСП 1% : 13.28 [11:06:27]line НДС 12% : 159.36 [11:06:27]line Наличными: 1500.00 [11:06:27]line Безнал.: 0.00 [11:06:27]line Место: АЗС № 65 "Партнер Нефть" [11:06:27]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:06:27]line СНО: Общий режим [11:06:27]line Чек 57 20.06.2024 11:06 [11:06:27]line Смена: 389 ФФД: 1.0 [11:06:27]line ЗНМ: 0300000198 [11:06:27]line РНМ: 0000000000092771 [11:06:27]line Версия ККМ: 001 [11:06:27]line ФМ: 0000000000875083 [11:06:27]line ФД: 111607 [11:06:27]line ФПД: 222156252641762 [11:06:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T110657&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111607&fm=222156252641762&tin=02508201610067®Number=0000000000092771&sum=150000 [11:06:27]OFD Sender: Processing packet 111607 [packets to send 38, broken 37] [11:06:27]ProducePacketName [11:06:27]name=ofd_packets/00111607 [11:06:27]OFD Sender: To server: pG, [11:06:27]CommunicateWithHost lk.salyk.kg:30040 [11:06:27]ConnectInit lk.salyk.kg [11:06:27]written 0, free lines is 4095 [11:06:27]Connected sock=10 [11:06:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 4C 8D 07 01 35 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 51 0D 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F7 B3 01 00 35 04 06 00 CA 0C C8 85 F9 E2 EE BB C9 A7 C5 8D DE 98 [11:06:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 26 1D 47 00 6A 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F7 B3 01 00 F4 03 04 00 9E A4 73 66 B6 04 01 00 00 66 E2 A3 D0 41 C7 11 29 [11:06:28]CommunicateWithHost err = 0 [11:06:28]CheckOFDResponse [11:06:28]1017 (14) - 77093643461234 [11:06:28]1041 (16) - 0000000000875083 [11:06:28]1040 (4) - 111607 [11:06:28]1012 (4) - 20.06.2024 03:40 [11:06:28]1206 (1) - 0 [11:06:28]OFD Sender: Remove packet 111607 [11:06:28]ProducePacketName [11:06:28]name=ofd_packets/00111607 [11:06:28]NVStorageDeleteData [11:06:28]Write to MH i2c: 01 00 00 AB 53 FE [11:06:28]Write i2c OK [11:06:28]MH_I2C_Read... [11:06:28]Read from MH i2c: 01 [11:06:28]MH_I2C_Read... [11:06:28]Read from MH i2c: 01 07 00 [11:06:28]MH_I2C_Read... [11:06:28]Read from MH i2c: 01 07 00 AB 53 00 00 00 00 00 CF 0C E0 [11:06:28]RasterBufferAndPrint [11:06:28]line [11:06:28]line [11:06:28]line [11:06:28]line [11:06:28]line [11:06:28]written 0, free lines is 3286 [11:06:28]MH_Cut [11:06:28]Write to MH i2c: D1 01 00 B2 53 01 D7 [11:06:28]Write i2c OK [11:06:28]MH_I2C_Read... [11:06:28]Read from MH i2c: D1 [11:06:28]MH_I2C_Read... [11:06:28]Read from MH i2c: D1 01 00 [11:06:28]MH_I2C_Read... [11:06:28]Read from MH i2c: D1 01 00 B2 53 00 D6 [11:06:28]Write to MH i2c: 01 00 00 B3 53 06 [11:06:28]Write i2c OK [11:06:28]MH_I2C_Read... [11:06:28]OFD Sender: No OFD packet to send [11:06:29]*** Cut start [11:06:29]*** Partial cut [11:06:29]*** CUTSNS_PIN = 1 [11:06:29]*** CUTSNS_PIN = 0 [11:06:29]*** Brake cut motor [11:06:29]Read from MH i2c: 01 [11:06:29]MH_I2C_Read... [11:06:29]*** Stop cut motor [11:06:29]*** Cut end [11:06:29]Read from MH i2c: 01 07 00 [11:06:29]MH_I2C_Read... [11:06:29]Read from MH i2c: 01 07 00 B3 53 00 00 00 00 00 FF 0F 1B [11:06:29]process_action close_receipt done [11:06:29]requested_data is exist [11:06:29]produce_requested_data [11:06:29]requested_item fm.sn is exist - process it [11:06:29]wFMCommunicate request_size=4 [11:06:29]MH_SAM_APDU [11:06:29]CAPDU: 80 11 00 00 [11:06:29]Write to MH i2c: E2 08 00 B4 53 80 11 00 00 00 00 00 00 81 [11:06:29]Write i2c OK [11:06:29]MH_I2C_Read... [11:06:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:29]Read from MH i2c: E2 [11:06:29]MH_I2C_Read... [11:06:29]Read from MH i2c: E2 17 00 [11:06:29]MH_I2C_Read... [11:06:29]Read from MH i2c: E2 17 00 B4 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D3 [11:06:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:06:29]wFMCommunicate OK [11:06:29]requested_item fd.num is exist - process it [11:06:29]SAM_PROTO_GetFieldsCounters [11:06:29]wFMCommunicate request_size=4 [11:06:29]MH_SAM_APDU [11:06:29]CAPDU: 80 13 00 00 [11:06:29]Write to MH i2c: E2 08 00 B5 53 80 13 00 00 00 00 00 00 84 [11:06:29]Write i2c OK [11:06:29]MH_I2C_Read... [11:06:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:29]Read from MH i2c: E2 [11:06:29]MH_I2C_Read... [11:06:29]Read from MH i2c: E2 62 00 [11:06:29]MH_I2C_Read... [11:06:29]Read from MH i2c: E2 62 00 B5 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F7 B3 01 00 0E 04 04 00 85 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 81 [11:06:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F7 B3 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:06:29]wFMCommunicate OK [11:06:29]SAM_PROTO_GetFieldsCounters done [11:06:29]requested_item shift.num is exist - process it [11:06:29]requested_item shift.opened is exist - process it [11:06:29]req_shift_opened [11:06:29]FM_GetShiftState [11:06:29]SAM_PROTO_GetShiftState [11:06:29]wFMCommunicate request_size=4 [11:06:29]MH_SAM_APDU [11:06:29]CAPDU: 80 13 01 00 [11:06:29]Write to MH i2c: E2 08 00 B6 53 80 13 01 00 00 00 00 00 86 [11:06:29]Write i2c OK [11:06:29]MH_I2C_Read... [11:06:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:29]Read from MH i2c: E2 [11:06:29]MH_I2C_Read... [11:06:29]Read from MH i2c: E2 0E 00 [11:06:29]MH_I2C_Read... [11:06:29]Read from MH i2c: E2 0E 00 B6 53 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 01 [11:06:29]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:06:29]wFMCommunicate OK [11:06:29]SAM_PROTO_GetShiftState done [11:06:29]FM_GetShiftState done [11:06:29]req_shift_opened done [11:06:29]requested_item shift.open_date is exist - process it [11:06:29]req_shift_open_date [11:06:29]req_shift_open_date done [11:06:29]produce_requested_data done [11:06:29]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111607,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [11:06:29]process_action_free close_receipt [11:06:29]json_value_free [11:06:29]json_value_free done [11:06:29]process_json_proto returns [11:06:29]Send response to host [11:06:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111607,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [11:06:29]free response buf [11:06:29]execute_script done [11:06:29]execute_script returns [11:06:29]free content buf [11:06:29]Sock 9.Close socket [11:06:29]Sock 9.Thread stoped [11:06:33]OFD Sender: No OFD packet to send [11:06:38]OFD Sender: No OFD packet to send [11:06:43]OFD Sender: No OFD packet to send [11:06:48]OFD Sender: No OFD packet to send [11:06:53]OFD Sender: No OFD packet to send [11:06:58]OFD Sender: No OFD packet to send [11:07:03]OFD Sender: No OFD packet to send [11:07:08]OFD Sender: No OFD packet to send [11:07:13]OFD Sender: No OFD packet to send [11:07:18]OFD Sender: No OFD packet to send [11:07:23]OFD Sender: No OFD packet to send [11:07:28]OFD Sender: No OFD packet to send [11:07:33]OFD Sender: No OFD packet to send [11:07:38]OFD Sender: No OFD packet to send [11:07:43]OFD Sender: No OFD packet to send [11:07:48]OFD Sender: No OFD packet to send [11:07:53]OFD Sender: No OFD packet to send [11:07:58]OFD Sender: No OFD packet to send [11:08:03]OFD Sender: No OFD packet to send [11:08:08]OFD Sender: No OFD packet to send [11:08:13]OFD Sender: No OFD packet to send [11:08:18]OFD Sender: No OFD packet to send [11:08:23]OFD Sender: No OFD packet to send [11:08:28]OFD Sender: No OFD packet to send [11:08:33]OFD Sender: No OFD packet to send [11:08:38]OFD Sender: No OFD packet to send [11:08:43]OFD Sender: No OFD packet to send [11:08:48]OFD Sender: No OFD packet to send [11:08:53]OFD Sender: No OFD packet to send [11:08:58]OFD Sender: No OFD packet to send [11:09:03]OFD Sender: No OFD packet to send [11:09:08]OFD Sender: No OFD packet to send [11:09:13]OFD Sender: No OFD packet to send [11:09:18]OFD Sender: No OFD packet to send [11:09:23]OFD Sender: No OFD packet to send [11:09:28]OFD Sender: No OFD packet to send [11:09:33]OFD Sender: No OFD packet to send [11:09:38]OFD Sender: No OFD packet to send [11:09:43]OFD Sender: No OFD packet to send [11:09:48]OFD Sender: No OFD packet to send [11:09:53]OFD Sender: No OFD packet to send [11:09:58]OFD Sender: No OFD packet to send [11:10:03]OFD Sender: No OFD packet to send [11:10:08]OFD Sender: No OFD packet to send [11:10:13]OFD Sender: No OFD packet to send [11:10:18]OFD Sender: No OFD packet to send [11:10:23]OFD Sender: No OFD packet to send [11:10:28]OFD Sender: No OFD packet to send [11:10:33]OFD Sender: No OFD packet to send [11:10:38]OFD Sender: No OFD packet to send [11:10:43]OFD Sender: No OFD packet to send [11:10:48]OFD Sender: No OFD packet to send [11:10:53]OFD Sender: No OFD packet to send [11:10:58]OFD Sender: No OFD packet to send [11:11:03]OFD Sender: No OFD packet to send [11:11:08]OFD Sender: No OFD packet to send [11:11:13]OFD Sender: No OFD packet to send [11:11:18]OFD Sender: No OFD packet to send [11:11:23]OFD Sender: No OFD packet to send [11:11:28]OFD Sender: No OFD packet to send [11:11:33]OFD Sender: No OFD packet to send [11:11:38]OFD Sender: No OFD packet to send [11:11:43]OFD Sender: No OFD packet to send [11:11:48]OFD Sender: No OFD packet to send [11:11:53]OFD Sender: No OFD packet to send [11:11:58]OFD Sender: No OFD packet to send [11:12:03]OFD Sender: No OFD packet to send [11:12:04]accept exits with 7 [11:12:04]New connection [11:12:04]New thread 3067465060 created [11:12:04]Thread 3067321700 joined [11:12:04]Waiting for new connection... [11:12:04] Sock 7.Parse request [11:12:04]Sock 7.Check first char [11:12:04]Sock 7.First char is OK [11:12:04]request: POST /json_proto HTTP/1.0 [11:12:04]Method: POST [11:12:04]URL: /json_proto [11:12:04]Method is POST - this is cgi request [11:12:04]url: /json_proto [11:12:04]query_string will be loaded in cgi processing [11:12:04]execute_cgi json_proto POST (null) [11:12:04]execute_cgi path=json_proto method=POST [11:12:04]POST find Content-Length [11:12:04]Host: 172.17.59.68:8080 [11:12:04]Content-Length: 677 [11:12:04]Content-Type: application/json [11:12:04] [11:12:04]POST finish read [11:12:04]Found Content-Length = 677 [11:12:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:04]execute_script... [11:12: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)320205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:04]POST & json_proto [11:12:04]process_json_proto [11:12:04]json parsed OK: [11:12:04]protocol is kg_v1.0 [11:12:04]action value=close_receipt [11:12:04]process_action close_receipt [11:12:04]cmd_close_receipt [11:12:04]MH_GetDate [11:12:04]Write to MH i2c: F0 00 00 B7 53 F9 [11:12:04]Write i2c OK [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: F0 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: F0 09 00 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: F0 09 00 B7 53 00 A4 0E 74 66 BC EC 60 65 FB [11:12:04]GetLastDocTimeStamp 1718881617 [11:12:04]current date 1718881956 [11:12:04]FM_GetShiftState [11:12:04]SAM_PROTO_GetShiftState [11:12:04]wFMCommunicate request_size=4 [11:12:04]MH_SAM_APDU [11:12:04]CAPDU: 80 13 01 00 [11:12:04]Write to MH i2c: E2 08 00 B8 53 80 13 01 00 00 00 00 00 88 [11:12:04]Write i2c OK [11:12:04]MH_I2C_Read... [11:12:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:04]Read from MH i2c: E2 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: E2 0E 00 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: E2 0E 00 B8 53 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 03 [11:12:04]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:12:04]wFMCommunicate OK [11:12:04]SAM_PROTO_GetShiftState done [11:12:04]FM_GetShiftState done [11:12:04]opened in 1718847247 [11:12:04]opened+sec_in_day 1718933647 [11:12:04]quantity*price = 60025 [11:12:04]sum+1 = 60027 [11:12:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 58 20.06.2024 11:12 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111608 ФПД: 112226047930313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T111236&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111608&fm=112226047930313&tin=02508201610067®Number=0000000000092771&sum=60000 [11:12:05]StoreToDocumentArchive [11:12:05]shift 389 fd 111608 [11:12:05]save to /storage/0389/doc_00111608 [11:12:05]save last doc name /storage/0389/doc_00111608 to /storage/kkm_last_doc_name [11:12:05]save OK [11:12:05]Clear old archive folders... [11:12:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:12:05]tlvbuf is 00F64200 [11:12:05]SAM_PROTO_ClearQueue [11:12:05]wFMCommunicate request_size=4 [11:12:05]MH_SAM_APDU [11:12:05]CAPDU: 80 09 00 00 [11:12:05]Write to MH i2c: E2 08 00 C5 53 80 09 00 00 00 00 00 00 8A [11:12:05]Write i2c OK [11:12:05]MH_I2C_Read... [11:12:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:05]Read from MH i2c: E2 [11:12:05]MH_I2C_Read... [11:12:05]Read from MH i2c: E2 03 00 [11:12:05]MH_I2C_Read... [11:12:05]Read from MH i2c: E2 03 00 C5 53 00 90 00 8C [11:12:05]RAPDU: 90 00 [11:12:05]wFMCommunicate OK [11:12:05]SAM_PROTO_ClearQueue done [11:12:05]KKMCreateOFDPacket [11:12:05]OFDProtocolAddRootSTLVToBuf [11:12:05]FM_MakeSignedData [11:12:05]FM_MakeSignedData [11:12:05]SAM_PROTO_SignData [11:12:05]wFMCommunicate request_size=4 [11:12:05]MH_SAM_APDU [11:12:05]CAPDU: 80 0D 01 02 [11:12:05]Write to MH i2c: E2 08 00 C6 53 80 0D 01 02 00 00 00 00 92 [11:12:05]Write i2c OK [11:12:05]MH_I2C_Read... [11:12:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:05]Read from MH i2c: E2 [11:12:05]MH_I2C_Read... [11:12:05]Read from MH i2c: E2 03 00 [11:12:05]MH_I2C_Read... [11:12:05]Read from MH i2c: E2 03 00 C6 53 00 90 00 8D [11:12:05]RAPDU: 90 00 [11:12:05]wFMCommunicate OK [11:12:05]wFMCommunicate request_size=255 [11:12:05]MH_SAM_APDU [11:12: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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 A4 0E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F8 B3 01 00 35 04 06 00 66 [11:12:05]Write to MH i2c: E2 02 01 C7 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 A4 0E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F8 B3 01 00 35 04 06 00 66 00 00 81 [11:12:05]Write i2c OK [11:12:05]MH_I2C_Read... [11:12:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:05]Read from MH i2c: E2 [11:12:05]MH_I2C_Read... [11:12:05]Read from MH i2c: E2 03 00 [11:12:05]MH_I2C_Read... [11:12:05]Read from MH i2c: E2 03 00 C7 53 00 90 00 8E [11:12:05]RAPDU: 90 00 [11:12:05]wFMCommunicate OK [11:12:05]wFMCommunicate request_size=10 [11:12:05]MH_SAM_APDU [11:12:05]CAPDU: 80 0D 02 02 05 11 A9 B8 AF C9 [11:12:05]Write to MH i2c: E2 0D 00 C8 53 80 0D 02 02 05 00 11 A9 B8 AF C9 00 00 89 [11:12:05]Write i2c OK [11:12:05]MH_I2C_Read... [11:12:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:06]Read from MH i2c: E2 [11:12:06]MH_I2C_Read... [11:12:06]Read from MH i2c: E2 03 00 [11:12:06]MH_I2C_Read... [11:12:06]Read from MH i2c: E2 03 00 C8 53 00 90 00 8F [11:12:06]RAPDU: 90 00 [11:12:06]wFMCommunicate OK [11:12:06]wFMCommunicate request_size=4 [11:12:06]MH_SAM_APDU [11:12:06]CAPDU: 80 0D 03 02 [11:12:06]Write to MH i2c: E2 08 00 C9 53 80 0D 03 02 00 00 00 00 97 [11:12:06]Write i2c OK [11:12:06]MH_I2C_Read... [11:12:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:06]Read from MH i2c: E2 [11:12:06]MH_I2C_Read... [11:12:06]Read from MH i2c: E2 0B 00 [11:12:06]MH_I2C_Read... [11:12:06]Read from MH i2c: E2 0B 00 C9 53 00 36 5F 1B 15 A0 AE 38 8F 90 00 72 [11:12:06]RAPDU: 36 5F 1B 15 A0 AE 38 8F 90 00 [11:12:06]wFMCommunicate OK [11:12:06]SAM_PROTO_SignData done [11:12:06]FM_MakeSignedData done [11:12:06]CreateOFDProtocolMessage [11:12:06]wFMCommunicate request_size=4 [11:12:06]MH_SAM_APDU [11:12:06]CAPDU: 80 11 00 00 [11:12:06]Write to MH i2c: E2 08 00 CA 53 80 11 00 00 00 00 00 00 97 [11:12:06]Write i2c OK [11:12:06]MH_I2C_Read... [11:12:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:06]Read from MH i2c: E2 [11:12:06]MH_I2C_Read... [11:12:06]Read from MH i2c: E2 17 00 [11:12:06]MH_I2C_Read... [11:12:06]Read from MH i2c: E2 17 00 CA 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E9 [11:12:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:12:06]wFMCommunicate OK [11:12:06]CreateOFDProtocolMessage done [11:12:06]OFDSenderStorePacket 111608 [11:12:06]StoreOFDPacket docnum=111608 [11:12:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E3 FC 07 01 DA 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 A4 0E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F8 B3 01 00 35 04 06 00 66 11 A9 B8 AF C9 36 5F 1B 15 A0 AE 38 8F [11:12:06]CheckFolder [11:12:06]dirname=/storage/ofd_packets [11:12:06]CheckFolder done [11:12:06]ProducePacketName [11:12:06]name=ofd_packets/00111608 [11:12:06]NVStorageSaveData ofd_packets/00111608 [11:12:06]File name is /storage/ofd_packets/00111608 [11:12:06]Write 301 bytes [11:12:06]NVStorageSaveData done [11:12:06]OFDSenderStorePacket done [11:12:06]KKMCreateOFDPacket done [11:12:06]NVStorageSaveData kkm_last_timestamp [11:12:06]File name is /storage/kkm_last_timestamp [11:12:06]Write 4 bytes [11:12:06]NVStorageSaveData done [11:12:06]ExternCall_PrintAddStr [11:12:06]wPrintStart [11:12:06]Write to MH i2c: 01 00 00 CB 53 1E [11:12:06]Write i2c OK [11:12:06]MH_I2C_Read... [11:12:06]Read from MH i2c: 01 [11:12:06]MH_I2C_Read... [11:12:06]Read from MH i2c: 01 07 00 [11:12:06]MH_I2C_Read... [11:12:06]Read from MH i2c: 01 07 00 CB 53 00 00 00 00 00 FF 0F 33 [11:12:06]RasterBufferAndPrint [11:12:06]line Счет N : (1)320205 [11:12:06]line ИНН: 02508201610067 [11:12:06]line Контрольно-Кассовый Чек [11:12:06]line ПРОДАЖА [11:12:06]line ТРК (МРК, ГНК) : 11 [11:12:06]line Товар: 2710124130 [11:12:06]line Аи-92-К-5 [11:12:06]line 9.040 * 66.40 [11:12:06]line = 600.26 [11:12:06]line НДС 12% НСП 1% [11:12:06]line > о реализуемом товаре [11:12:06]line ОКРУГЛЕНИЕ: -0.26 [11:12:06]line ИТОГО: 600.00 [11:12:06]line Внесено: 600.00 [11:12:06]line СДАЧА: 0.00 [11:12:06]line НСП 1% : 5.31 [11:12:06]line НДС 12% : 63.74 [11:12:06]line Наличными: 600.00 [11:12:06]line Безнал.: 0.00 [11:12:06]line Место: АЗС № 65 "Партнер Нефть" [11:12:06]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:12:06]line СНО: Общий режим [11:12:06]line Чек 58 20.06.2024 11:12 [11:12:06]line Смена: 389 ФФД: 1.0 [11:12:06]line ЗНМ: 0300000198 [11:12:06]line РНМ: 0000000000092771 [11:12:06]line Версия ККМ: 001 [11:12:06]line ФМ: 0000000000875083 [11:12:06]line ФД: 111608 [11:12:06]line ФПД: 112226047930313 [11:12:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T111236&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111608&fm=112226047930313&tin=02508201610067®Number=0000000000092771&sum=60000 [11:12:06]OFD Sender: Processing packet 111608 [packets to send 38, broken 37] [11:12:06]ProducePacketName [11:12:06]name=ofd_packets/00111608 [11:12:06]OFD Sender: To server: pG, [11:12:06]CommunicateWithHost lk.salyk.kg:30040 [11:12:06]ConnectInit lk.salyk.kg [11:12:06]written 0, free lines is 4095 [11:12:06]Connected sock=10 [11:12:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E3 FC 07 01 DA 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 A4 0E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F8 B3 01 00 35 04 06 00 66 11 A9 B8 AF C9 36 5F 1B 15 A0 AE 38 8F [11:12:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A5 7F 47 00 FD C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F8 B3 01 00 F4 03 04 00 F0 A5 73 66 B6 04 01 00 00 95 F7 A5 25 A1 6C 29 57 [11:12:06]CommunicateWithHost err = 0 [11:12:06]CheckOFDResponse [11:12:06]1017 (14) - 77093643461234 [11:12:06]1041 (16) - 0000000000875083 [11:12:06]1040 (4) - 111608 [11:12:06]1012 (4) - 20.06.2024 03:45 [11:12:06]1206 (1) - 0 [11:12:06]OFD Sender: Remove packet 111608 [11:12:06]ProducePacketName [11:12:06]name=ofd_packets/00111608 [11:12:06]NVStorageDeleteData [11:12:06]Write to MH i2c: 01 00 00 F6 53 49 [11:12:06]Write i2c OK [11:12:06]MH_I2C_Read... [11:12:06]Read from MH i2c: 01 [11:12:06]MH_I2C_Read... [11:12:06]Read from MH i2c: 01 07 00 [11:12:06]MH_I2C_Read... [11:12:06]Read from MH i2c: 01 07 00 F6 53 00 00 00 00 00 C6 0C 22 [11:12:06]RasterBufferAndPrint [11:12:06]line [11:12:06]line [11:12:06]line [11:12:06]line [11:12:06]line [11:12:06]written 0, free lines is 3276 [11:12:06]MH_Cut [11:12:06]Write to MH i2c: D1 01 00 FD 53 01 22 [11:12:06]Write i2c OK [11:12:06]MH_I2C_Read... [11:12:06]Read from MH i2c: D1 [11:12:06]MH_I2C_Read... [11:12:06]Read from MH i2c: D1 01 00 [11:12:06]MH_I2C_Read... [11:12:06]Read from MH i2c: D1 01 00 FD 53 00 21 [11:12:06]Write to MH i2c: 01 00 00 FE 53 51 [11:12:06]Write i2c OK [11:12:06]MH_I2C_Read... [11:12:07]OFD Sender: No OFD packet to send [11:12:07]*** Cut start [11:12:07]*** Partial cut [11:12:07]*** CUTSNS_PIN = 1 [11:12:07]*** CUTSNS_PIN = 0 [11:12:07]*** Brake cut motor [11:12:08]Read from MH i2c: 01 [11:12:08]MH_I2C_Read... [11:12:08]*** Stop cut motor [11:12:08]*** Cut end [11:12:08]Read from MH i2c: 01 07 00 [11:12:08]MH_I2C_Read... [11:12:08]Read from MH i2c: 01 07 00 FE 53 00 00 00 00 00 FF 0F 66 [11:12:08]process_action close_receipt done [11:12:08]requested_data is exist [11:12:08]produce_requested_data [11:12:08]requested_item fm.sn is exist - process it [11:12:08]wFMCommunicate request_size=4 [11:12:08]MH_SAM_APDU [11:12:08]CAPDU: 80 11 00 00 [11:12:08]Write to MH i2c: E2 08 00 FF 53 80 11 00 00 00 00 00 00 CC [11:12:08]Write i2c OK [11:12:08]MH_I2C_Read... [11:12:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:08]Read from MH i2c: E2 [11:12:08]MH_I2C_Read... [11:12:08]Read from MH i2c: E2 17 00 [11:12:08]MH_I2C_Read... [11:12:08]Read from MH i2c: E2 17 00 FF 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1E [11:12:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:12:08]wFMCommunicate OK [11:12:08]requested_item fd.num is exist - process it [11:12:08]SAM_PROTO_GetFieldsCounters [11:12:08]wFMCommunicate request_size=4 [11:12:08]MH_SAM_APDU [11:12:08]CAPDU: 80 13 00 00 [11:12:08]Write to MH i2c: E2 08 00 00 54 80 13 00 00 00 00 00 00 D0 [11:12:08]Write i2c OK [11:12:08]MH_I2C_Read... [11:12:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:08]Read from MH i2c: E2 [11:12:08]MH_I2C_Read... [11:12:08]Read from MH i2c: E2 62 00 [11:12:08]MH_I2C_Read... [11:12:08]Read from MH i2c: E2 62 00 00 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F8 B3 01 00 0E 04 04 00 85 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 D1 [11:12:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F8 B3 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:12:08]wFMCommunicate OK [11:12:08]SAM_PROTO_GetFieldsCounters done [11:12:08]requested_item shift.num is exist - process it [11:12:08]requested_item shift.opened is exist - process it [11:12:08]req_shift_opened [11:12:08]FM_GetShiftState [11:12:08]SAM_PROTO_GetShiftState [11:12:08]wFMCommunicate request_size=4 [11:12:08]MH_SAM_APDU [11:12:08]CAPDU: 80 13 01 00 [11:12:08]Write to MH i2c: E2 08 00 01 54 80 13 01 00 00 00 00 00 D2 [11:12:08]Write i2c OK [11:12:08]MH_I2C_Read... [11:12:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:08]Read from MH i2c: E2 [11:12:08]MH_I2C_Read... [11:12:08]Read from MH i2c: E2 0E 00 [11:12:08]MH_I2C_Read... [11:12:08]Read from MH i2c: E2 0E 00 01 54 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 4D [11:12:08]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:12:08]wFMCommunicate OK [11:12:08]SAM_PROTO_GetShiftState done [11:12:08]FM_GetShiftState done [11:12:08]req_shift_opened done [11:12:08]requested_item shift.open_date is exist - process it [11:12:08]req_shift_open_date [11:12:08]req_shift_open_date done [11:12:08]produce_requested_data done [11:12:08]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111608,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [11:12:08]process_action_free close_receipt [11:12:08]json_value_free [11:12:08]json_value_free done [11:12:08]process_json_proto returns [11:12:08]Send response to host [11:12:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111608,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [11:12:08]free response buf [11:12:08]execute_script done [11:12:08]execute_script returns [11:12:08]free content buf [11:12:08]Sock 7.Close socket [11:12:08]Sock 7.Thread stoped [11:12:12]OFD Sender: No OFD packet to send [11:12:17]OFD Sender: No OFD packet to send [11:12:22]OFD Sender: No OFD packet to send [11:12:27]OFD Sender: No OFD packet to send [11:12:32]OFD Sender: No OFD packet to send [11:12:37]OFD Sender: No OFD packet to send [11:12:42]OFD Sender: No OFD packet to send [11:12:47]OFD Sender: No OFD packet to send [11:12:52]OFD Sender: No OFD packet to send [11:12:57]OFD Sender: No OFD packet to send [11:13:02]OFD Sender: No OFD packet to send [11:13:07]OFD Sender: No OFD packet to send [11:13:12]OFD Sender: No OFD packet to send [11:13:17]OFD Sender: No OFD packet to send [11:13:22]OFD Sender: No OFD packet to send [11:13:27]OFD Sender: No OFD packet to send [11:13:32]OFD Sender: No OFD packet to send [11:13:37]OFD Sender: No OFD packet to send [11:13:41]accept exits with 9 [11:13:41]New connection [11:13:41]New thread 3067321700 created [11:13:41]Thread 3067465060 joined [11:13:41]Waiting for new connection... [11:13:41] Sock 9.Parse request [11:13:41]Sock 9.Check first char [11:13:41]Sock 9.First char is OK [11:13:41]request: POST /json_proto HTTP/1.0 [11:13:41]Method: POST [11:13:41]URL: /json_proto [11:13:41]Method is POST - this is cgi request [11:13:41]url: /json_proto [11:13:41]query_string will be loaded in cgi processing [11:13:41]execute_cgi json_proto POST (null) [11:13:41]execute_cgi path=json_proto method=POST [11:13:41]POST find Content-Length [11:13:41]Host: 172.17.59.68:8080 [11:13:41]Content-Length: 805 [11:13:41]Content-Type: application/json [11:13:41] [11:13:41]POST finish read [11:13:41]Found Content-Length = 805 [11:13:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:41]execute_script... [11: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)320206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:41]POST & json_proto [11:13:41]process_json_proto [11:13:41]json parsed OK: [11:13:41]protocol is kg_v1.0 [11:13:41]action value=close_receipt [11:13:41]process_action close_receipt [11:13:41]cmd_close_receipt [11:13:41]MH_GetDate [11:13:41]Write to MH i2c: F0 00 00 02 54 45 [11:13:41]Write i2c OK [11:13:41]MH_I2C_Read... [11:13:41]Read from MH i2c: F0 [11:13:41]MH_I2C_Read... [11:13:41]Read from MH i2c: F0 09 00 [11:13:41]MH_I2C_Read... [11:13:41]Read from MH i2c: F0 09 00 02 54 00 05 0F 74 66 BC EC 60 65 A9 [11:13:41]GetLastDocTimeStamp 1718881956 [11:13:41]current date 1718882053 [11:13:41]FM_GetShiftState [11:13:41]SAM_PROTO_GetShiftState [11:13:41]wFMCommunicate request_size=4 [11:13:41]MH_SAM_APDU [11:13:41]CAPDU: 80 13 01 00 [11:13:41]Write to MH i2c: E2 08 00 03 54 80 13 01 00 00 00 00 00 D4 [11:13:41]Write i2c OK [11:13:41]MH_I2C_Read... [11:13:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:41]Read from MH i2c: E2 [11:13:41]MH_I2C_Read... [11:13:41]Read from MH i2c: E2 0E 00 [11:13:41]MH_I2C_Read... [11:13:41]Read from MH i2c: E2 0E 00 03 54 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 4F [11:13:41]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:13:41]wFMCommunicate OK [11:13:41]SAM_PROTO_GetShiftState done [11:13:41]FM_GetShiftState done [11:13:41]opened in 1718847247 [11:13:41]opened+sec_in_day 1718933647 [11:13:41]quantity*price = 50065 [11:13:41]sum+1 = 50067 [11:13:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.66 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 0.00 Безнал.: 500.66 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 59 20.06.2024 11:14 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111609 ФПД: 197950595800543 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T111414&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111609&fm=197950595800543&tin=02508201610067®Number=0000000000092771&sum=50066 [11:13:43]StoreToDocumentArchive [11:13:43]shift 389 fd 111609 [11:13:43]save to /storage/0389/doc_00111609 [11:13:43]save last doc name /storage/0389/doc_00111609 to /storage/kkm_last_doc_name [11:13:43]save OK [11:13:43]Clear old archive folders... [11:13:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:13:43]tlvbuf is 00ED7170 [11:13:43]SAM_PROTO_ClearQueue [11:13:43]wFMCommunicate request_size=4 [11:13:43]MH_SAM_APDU [11:13:43]CAPDU: 80 09 00 00 [11:13:43]Write to MH i2c: E2 08 00 10 54 80 09 00 00 00 00 00 00 D6 [11:13:43]Write i2c OK [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 [11:13:43]MH_I2C_Read... [11:13:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:43]Read from MH i2c: E2 03 00 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 03 00 10 54 00 90 00 D8 [11:13:43]RAPDU: 90 00 [11:13:43]wFMCommunicate OK [11:13:43]SAM_PROTO_ClearQueue done [11:13:43]KKMCreateOFDPacket [11:13:43]OFDProtocolAddRootSTLVToBuf [11:13:43]FM_MakeSignedData [11:13:43]FM_MakeSignedData [11:13:43]SAM_PROTO_SignData [11:13:43]wFMCommunicate request_size=4 [11:13:43]MH_SAM_APDU [11:13:43]CAPDU: 80 0D 01 02 [11:13:43]Write to MH i2c: E2 08 00 11 54 80 0D 01 02 00 00 00 00 DE [11:13:43]Write i2c OK [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 [11:13:43]MH_I2C_Read... [11:13:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:43]Read from MH i2c: E2 03 00 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 03 00 11 54 00 90 00 D9 [11:13:43]RAPDU: 90 00 [11:13:43]wFMCommunicate OK [11:13:43]wFMCommunicate request_size=255 [11:13:43]MH_SAM_APDU [11:13: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 06 0F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F9 B3 01 00 35 04 06 00 B4 [11:13:43]Write to MH i2c: E2 02 01 12 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 06 0F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F9 B3 01 00 35 04 06 00 B4 00 00 27 [11:13:43]Write i2c OK [11:13:43]MH_I2C_Read... [11:13:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:43]Read from MH i2c: E2 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 03 00 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 03 00 12 54 00 90 00 DA [11:13:43]RAPDU: 90 00 [11:13:43]wFMCommunicate OK [11:13:43]wFMCommunicate request_size=10 [11:13:43]MH_SAM_APDU [11:13:43]CAPDU: 80 0D 02 02 05 08 F6 F2 1D DF [11:13:43]Write to MH i2c: E2 0D 00 13 54 80 0D 02 02 05 00 08 F6 F2 1D DF 00 00 D7 [11:13:43]Write i2c OK [11:13:43]MH_I2C_Read... [11:13:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:43]Read from MH i2c: E2 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 03 00 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 03 00 13 54 00 90 00 DB [11:13:43]RAPDU: 90 00 [11:13:43]wFMCommunicate OK [11:13:43]wFMCommunicate request_size=4 [11:13:43]MH_SAM_APDU [11:13:43]CAPDU: 80 0D 03 02 [11:13:43]Write to MH i2c: E2 08 00 14 54 80 0D 03 02 00 00 00 00 E3 [11:13:43]Write i2c OK [11:13:43]MH_I2C_Read... [11:13:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:43]Read from MH i2c: E2 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 0B 00 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 0B 00 14 54 00 8C 0B C9 EF C1 D5 DA AC 90 00 4F [11:13:43]RAPDU: 8C 0B C9 EF C1 D5 DA AC 90 00 [11:13:43]wFMCommunicate OK [11:13:43]SAM_PROTO_SignData done [11:13:43]FM_MakeSignedData done [11:13:43]CreateOFDProtocolMessage [11:13:43]wFMCommunicate request_size=4 [11:13:43]MH_SAM_APDU [11:13:43]CAPDU: 80 11 00 00 [11:13:43]Write to MH i2c: E2 08 00 15 54 80 11 00 00 00 00 00 00 E3 [11:13:43]Write i2c OK [11:13:43]MH_I2C_Read... [11:13:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:43]Read from MH i2c: E2 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 17 00 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 17 00 15 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 35 [11:13:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:13:43]wFMCommunicate OK [11:13:43]CreateOFDProtocolMessage done [11:13:43]OFDSenderStorePacket 111609 [11:13:43]StoreOFDPacket docnum=111609 [11:13:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F1 36 07 01 F4 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 06 0F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F9 B3 01 00 35 04 06 00 B4 08 F6 F2 1D DF 8C 0B C9 EF C1 D5 DA AC [11:13:43]CheckFolder [11:13:43]dirname=/storage/ofd_packets [11:13:43]CheckFolder done [11:13:43]ProducePacketName [11:13:43]name=ofd_packets/00111609 [11:13:43]NVStorageSaveData ofd_packets/00111609 [11:13:43]File name is /storage/ofd_packets/00111609 [11:13:43]Write 301 bytes [11:13:43]NVStorageSaveData done [11:13:43]OFDSenderStorePacket done [11:13:43]KKMCreateOFDPacket done [11:13:43]NVStorageSaveData kkm_last_timestamp [11:13:43]File name is /storage/kkm_last_timestamp [11:13:43]Write 4 bytes [11:13:43]NVStorageSaveData done [11:13:43]ExternCall_PrintAddStr [11:13:43]wPrintStart [11:13:43]Write to MH i2c: 01 00 00 16 54 6A [11:13:43]Write i2c OK [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: 01 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: 01 07 00 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: 01 07 00 16 54 00 00 00 00 00 FF 0F 7F [11:13:43]RasterBufferAndPrint [11:13:43]line Счет N : (1)320206 [11:13:43]line ИНН: 02508201610067 [11:13:43]line Контрольно-Кассовый Чек [11:13:43]line ПРОДАЖА [11:13:43]line ТРК (МРК, ГНК) : 11 [11:13:43]line Товар: 2710124130 [11:13:43]line Аи-92-К-5 [11:13:43]line 7.540 * 66.40 [11:13:43]line = 500.66 [11:13:43]line НДС 12% НСП 1% [11:13:43]line > о реализуемом товаре [11:13:43]line ИТОГО: 500.66 [11:13:43]line НСП 1% : 4.43 [11:13:43]line НДС 12% : 53.17 [11:13:43]line Наличными: 0.00 [11:13:43]line Безнал.: 500.66 [11:13:43]line Место: АЗС № 65 "Партнер Нефть" [11:13:43]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:13:43]line СНО: Общий режим [11:13:43]line Чек 59 20.06.2024 11:14 [11:13:43]line Смена: 389 ФФД: 1.0 [11:13:43]line ЗНМ: 0300000198 [11:13:43]line РНМ: 0000000000092771 [11:13:43]line Версия ККМ: 001 [11:13:43]line Платежная система: О! деньги [11:13:43]line ФМ: 0000000000875083 [11:13:43]line ФД: 111609 [11:13:43]line ФПД: 197950595800543 [11:13:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T111414&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111609&fm=197950595800543&tin=02508201610067®Number=0000000000092771&sum=50066 [11:13:43]written 0, free lines is 4095 [11:13:43]OFD Sender: Processing packet 111609 [packets to send 38, broken 37] [11:13:43]ProducePacketName [11:13:43]name=ofd_packets/00111609 [11:13:43]OFD Sender: To server: pG, [11:13:43]CommunicateWithHost lk.salyk.kg:30040 [11:13:43]ConnectInit lk.salyk.kg [11:13:43]Connected sock=10 [11:13:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F1 36 07 01 F4 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 06 0F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F9 B3 01 00 35 04 06 00 B4 08 F6 F2 1D DF 8C 0B C9 EF C1 D5 DA AC [11:13:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 9B 2D 47 00 C5 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F9 B3 01 00 F4 03 04 00 51 A6 73 66 B6 04 01 00 00 79 E7 37 0A 51 65 AF 27 [11:13:43]CommunicateWithHost err = 0 [11:13:43]CheckOFDResponse [11:13:43]1017 (14) - 77093643461234 [11:13:43]1041 (16) - 0000000000875083 [11:13:43]1040 (4) - 111609 [11:13:43]1012 (4) - 20.06.2024 03:47 [11:13:43]1206 (1) - 0 [11:13:43]OFD Sender: Remove packet 111609 [11:13:43]ProducePacketName [11:13:43]name=ofd_packets/00111609 [11:13:43]NVStorageDeleteData [11:13:44]Write to MH i2c: 01 00 00 40 54 94 [11:13:44]Write i2c OK [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: 01 [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: 01 07 00 [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: 01 07 00 40 54 00 00 00 00 00 E4 0C 8B [11:13:44]RasterBufferAndPrint [11:13:44]line [11:13:44]line [11:13:44]line [11:13:44]line [11:13:44]line [11:13:44]written 0, free lines is 3307 [11:13:44]MH_Cut [11:13:44]Write to MH i2c: D1 01 00 47 54 01 6D [11:13:44]Write i2c OK [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: D1 [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: D1 01 00 [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: D1 01 00 47 54 00 6C [11:13:44]Write to MH i2c: 01 00 00 48 54 9C [11:13:44]Write i2c OK [11:13:44]MH_I2C_Read... [11:13:44]OFD Sender: No OFD packet to send [11:13:44]*** Cut start [11:13:44]*** Partial cut [11:13:44]*** CUTSNS_PIN = 1 [11:13:44]*** CUTSNS_PIN = 0 [11:13:45]*** Brake cut motor [11:13:45]Read from MH i2c: 01 [11:13:45]MH_I2C_Read... [11:13:45]*** Stop cut motor [11:13:45]*** Cut end [11:13:45]Read from MH i2c: 01 07 00 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: 01 07 00 48 54 00 00 00 00 00 FF 0F B1 [11:13:45]process_action close_receipt done [11:13:45]requested_data is exist [11:13:45]produce_requested_data [11:13:45]requested_item fm.sn is exist - process it [11:13:45]wFMCommunicate request_size=4 [11:13:45]MH_SAM_APDU [11:13:45]CAPDU: 80 11 00 00 [11:13:45]Write to MH i2c: E2 08 00 49 54 80 11 00 00 00 00 00 00 17 [11:13:45]Write i2c OK [11:13:45]MH_I2C_Read... [11:13:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:45]Read from MH i2c: E2 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: E2 17 00 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: E2 17 00 49 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 69 [11:13:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:13:45]wFMCommunicate OK [11:13:45]requested_item fd.num is exist - process it [11:13:45]SAM_PROTO_GetFieldsCounters [11:13:45]wFMCommunicate request_size=4 [11:13:45]MH_SAM_APDU [11:13:45]CAPDU: 80 13 00 00 [11:13:45]Write to MH i2c: E2 08 00 4A 54 80 13 00 00 00 00 00 00 1A [11:13:45]Write i2c OK [11:13:45]MH_I2C_Read... [11:13:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:45]Read from MH i2c: E2 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: E2 62 00 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: E2 62 00 4A 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F9 B3 01 00 0E 04 04 00 85 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 1F [11: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F9 B3 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:13:45]wFMCommunicate OK [11:13:45]SAM_PROTO_GetFieldsCounters done [11:13:45]requested_item shift.num is exist - process it [11:13:45]requested_item shift.opened is exist - process it [11:13:45]req_shift_opened [11:13:45]FM_GetShiftState [11:13:45]SAM_PROTO_GetShiftState [11:13:45]wFMCommunicate request_size=4 [11:13:45]MH_SAM_APDU [11:13:45]CAPDU: 80 13 01 00 [11:13:45]Write to MH i2c: E2 08 00 4B 54 80 13 01 00 00 00 00 00 1C [11:13:45]Write i2c OK [11:13:45]MH_I2C_Read... [11:13:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:45]Read from MH i2c: E2 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: E2 0E 00 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: E2 0E 00 4B 54 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 97 [11:13:45]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:13:45]wFMCommunicate OK [11:13:45]SAM_PROTO_GetShiftState done [11:13:45]FM_GetShiftState done [11:13:45]req_shift_opened done [11:13:45]requested_item shift.open_date is exist - process it [11:13:45]req_shift_open_date [11:13:45]req_shift_open_date done [11:13:45]produce_requested_data done [11:13:45]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111609,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [11:13:45]process_action_free close_receipt [11:13:45]json_value_free [11:13:45]json_value_free done [11:13:45]process_json_proto returns [11:13:45]Send response to host [11:13:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111609,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [11:13:45]free response buf [11:13:45]execute_script done [11:13:45]execute_script returns [11:13:45]free content buf [11:13:45]Sock 9.Close socket [11:13:45]Sock 9.Thread stoped [11:13:49]OFD Sender: No OFD packet to send [11:13:54]OFD Sender: No OFD packet to send [11:13:59]OFD Sender: No OFD packet to send [11:14:04]OFD Sender: No OFD packet to send [11:14:09]OFD Sender: No OFD packet to send [11:14:14]OFD Sender: No OFD packet to send [11:14:19]OFD Sender: No OFD packet to send [11:14:24]OFD Sender: No OFD packet to send [11:14:29]OFD Sender: No OFD packet to send [11:14:34]OFD Sender: No OFD packet to send [11:14:39]OFD Sender: No OFD packet to send [11:14:44]OFD Sender: No OFD packet to send [11:14:49]OFD Sender: No OFD packet to send [11:14:54]OFD Sender: No OFD packet to send [11:14:59]OFD Sender: No OFD packet to send [11:15:04]OFD Sender: No OFD packet to send [11:15:09]OFD Sender: No OFD packet to send [11:15:14]OFD Sender: No OFD packet to send [11:15:19]OFD Sender: No OFD packet to send [11:15:24]OFD Sender: No OFD packet to send [11:15:29]OFD Sender: No OFD packet to send [11:15:34]OFD Sender: No OFD packet to send [11:15:39]OFD Sender: No OFD packet to send [11:15:44]OFD Sender: No OFD packet to send [11:15:49]OFD Sender: No OFD packet to send [11:15:54]OFD Sender: No OFD packet to send [11:15:59]OFD Sender: No OFD packet to send [11:16:04]OFD Sender: No OFD packet to send [11:16:09]OFD Sender: No OFD packet to send [11:16:14]OFD Sender: No OFD packet to send [11:16:19]OFD Sender: No OFD packet to send [11:16:24]OFD Sender: No OFD packet to send [11:16:29]OFD Sender: No OFD packet to send [11:16:34]OFD Sender: No OFD packet to send [11:16:39]OFD Sender: No OFD packet to send [11:16:44]OFD Sender: No OFD packet to send [11:16:46]accept exits with 7 [11:16:46]New connection [11:16:46]New thread 3067465060 created [11:16:46]Thread 3067321700 joined [11:16:46]Waiting for new connection... [11:16:46] Sock 7.Parse request [11:16:46]Sock 7.Check first char [11:16:46]Sock 7.First char is OK [11:16:46]request: POST /json_proto HTTP/1.0 [11:16:46]Method: POST [11:16:46]URL: /json_proto [11:16:46]Method is POST - this is cgi request [11:16:46]url: /json_proto [11:16:46]query_string will be loaded in cgi processing [11:16:46]execute_cgi json_proto POST (null) [11:16:46]execute_cgi path=json_proto method=POST [11:16:46]POST find Content-Length [11:16:46]Host: 172.17.59.68:8080 [11:16:46]Content-Length: 677 [11:16:46]Content-Type: application/json [11:16:46] [11:16:46]POST finish read [11:16:46]Found Content-Length = 677 [11:16:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.130, "sum" : 340.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:46]execute_script... [11:16:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.130, "sum" : 340.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:46]POST & json_proto [11:16:46]process_json_proto [11:16:46]json parsed OK: [11:16:46]protocol is kg_v1.0 [11:16:46]action value=close_receipt [11:16:46]process_action close_receipt [11:16:46]cmd_close_receipt [11:16:46]MH_GetDate [11:16:46]Write to MH i2c: F0 00 00 4C 54 8F [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: F0 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: F0 09 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: F0 09 00 4C 54 00 BE 0F 74 66 BC EC 60 65 AC [11:16:46]GetLastDocTimeStamp 1718882054 [11:16:46]current date 1718882238 [11:16:46]FM_GetShiftState [11:16:46]SAM_PROTO_GetShiftState [11:16:46]wFMCommunicate request_size=4 [11:16:46]MH_SAM_APDU [11:16:46]CAPDU: 80 13 01 00 [11:16:46]Write to MH i2c: E2 08 00 4D 54 80 13 01 00 00 00 00 00 1E [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:46]Read from MH i2c: E2 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 0E 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 0E 00 4D 54 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 99 [11:16:46]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:16:46]wFMCommunicate OK [11:16:46]SAM_PROTO_GetShiftState done [11:16:46]FM_GetShiftState done [11:16:46]opened in 1718847247 [11:16:46]opened+sec_in_day 1718933647 [11:16:46]quantity*price = 34063 [11:16:46]sum+1 = 34064 [11:16:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.17 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 60 20.06.2024 11:17 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111610 ФПД: 161770963340258 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T111718&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111610&fm=161770963340258&tin=02508201610067®Number=0000000000092771&sum=34000 [11:16:47]StoreToDocumentArchive [11:16:47]shift 389 fd 111610 [11:16:47]save to /storage/0389/doc_00111610 [11:16:47]save last doc name /storage/0389/doc_00111610 to /storage/kkm_last_doc_name [11:16:47]save OK [11:16:47]Clear old archive folders... [11:16:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:16:47]tlvbuf is 010356D0 [11:16:47]SAM_PROTO_ClearQueue [11:16:47]wFMCommunicate request_size=4 [11:16:47]MH_SAM_APDU [11:16:47]CAPDU: 80 09 00 00 [11:16:47]Write to MH i2c: E2 08 00 5A 54 80 09 00 00 00 00 00 00 20 [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:47]Read from MH i2c: E2 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 5A 54 00 90 00 22 [11:16:47]RAPDU: 90 00 [11:16:47]wFMCommunicate OK [11:16:47]SAM_PROTO_ClearQueue done [11:16:47]KKMCreateOFDPacket [11:16:47]OFDProtocolAddRootSTLVToBuf [11:16:47]FM_MakeSignedData [11:16:47]FM_MakeSignedData [11:16:47]SAM_PROTO_SignData [11:16:47]wFMCommunicate request_size=4 [11:16:47]MH_SAM_APDU [11:16:47]CAPDU: 80 0D 01 02 [11:16:47]Write to MH i2c: E2 08 00 5B 54 80 0D 01 02 00 00 00 00 28 [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:47]Read from MH i2c: E2 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 5B 54 00 90 00 23 [11:16:47]RAPDU: 90 00 [11:16:47]wFMCommunicate OK [11:16:47]wFMCommunicate request_size=255 [11:16:47]MH_SAM_APDU [11:16:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 BE 0F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FA B3 01 00 35 04 06 00 93 [11:16:47]Write to MH i2c: E2 02 01 5C 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 BE 0F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FA B3 01 00 35 04 06 00 93 00 00 9C [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:48]Read from MH i2c: E2 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 03 00 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 03 00 5C 54 00 90 00 24 [11:16:48]RAPDU: 90 00 [11:16:48]wFMCommunicate OK [11:16:48]wFMCommunicate request_size=10 [11:16:48]MH_SAM_APDU [11:16:48]CAPDU: 80 0D 02 02 05 21 3C CE 0B E2 [11:16:48]Write to MH i2c: E2 0D 00 5D 54 80 0D 02 02 05 00 21 3C CE 0B E2 00 00 4D [11:16:48]Write i2c OK [11:16:48]MH_I2C_Read... [11:16:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:48]Read from MH i2c: E2 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 03 00 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 03 00 5D 54 00 90 00 25 [11:16:48]RAPDU: 90 00 [11:16:48]wFMCommunicate OK [11:16:48]wFMCommunicate request_size=4 [11:16:48]MH_SAM_APDU [11:16:48]CAPDU: 80 0D 03 02 [11:16:48]Write to MH i2c: E2 08 00 5E 54 80 0D 03 02 00 00 00 00 2D [11:16:48]Write i2c OK [11:16:48]MH_I2C_Read... [11:16:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:48]Read from MH i2c: E2 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 0B 00 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 0B 00 5E 54 00 BE BE AE 07 07 1B DE DF 90 00 3E [11:16:48]RAPDU: BE BE AE 07 07 1B DE DF 90 00 [11:16:48]wFMCommunicate OK [11:16:48]SAM_PROTO_SignData done [11:16:48]FM_MakeSignedData done [11:16:48]CreateOFDProtocolMessage [11:16:48]wFMCommunicate request_size=4 [11:16:48]MH_SAM_APDU [11:16:48]CAPDU: 80 11 00 00 [11:16:48]Write to MH i2c: E2 08 00 5F 54 80 11 00 00 00 00 00 00 2D [11:16:48]Write i2c OK [11:16:48]MH_I2C_Read... [11:16:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:48]Read from MH i2c: E2 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 17 00 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 17 00 5F 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7F [11:16:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:16:48]wFMCommunicate OK [11:16:48]CreateOFDProtocolMessage done [11:16:48]OFDSenderStorePacket 111610 [11:16:48]StoreOFDPacket docnum=111610 [11:16:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AA 9B 07 01 09 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 BE 0F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FA B3 01 00 35 04 06 00 93 21 3C CE 0B E2 BE BE AE 07 07 1B DE DF [11:16:48]CheckFolder [11:16:48]dirname=/storage/ofd_packets [11:16:48]CheckFolder done [11:16:48]ProducePacketName [11:16:48]name=ofd_packets/00111610 [11:16:48]NVStorageSaveData ofd_packets/00111610 [11:16:48]File name is /storage/ofd_packets/00111610 [11:16:48]Write 301 bytes [11:16:48]NVStorageSaveData done [11:16:48]OFDSenderStorePacket done [11:16:48]KKMCreateOFDPacket done [11:16:48]NVStorageSaveData kkm_last_timestamp [11:16:48]File name is /storage/kkm_last_timestamp [11:16:48]Write 4 bytes [11:16:48]NVStorageSaveData done [11:16:48]ExternCall_PrintAddStr [11:16:48]wPrintStart [11:16:48]Write to MH i2c: 01 00 00 60 54 B4 [11:16:48]Write i2c OK [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: 01 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: 01 07 00 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: 01 07 00 60 54 00 00 00 00 00 FF 0F C9 [11:16:48]RasterBufferAndPrint [11:16:48]line Счет N : (1)320207 [11:16:48]line ИНН: 02508201610067 [11:16:48]line Контрольно-Кассовый Чек [11:16:48]line ПРОДАЖА [11:16:48]line ТРК (МРК, ГНК) : 11 [11:16:48]line Товар: 2710124130 [11:16:48]line Аи-92-К-5 [11:16:48]line 5.130 * 66.40 [11:16:48]line = 340.63 [11:16:48]line НДС 12% НСП 1% [11:16:48]line > о реализуемом товаре [11:16:48]line ОКРУГЛЕНИЕ: -0.63 [11:16:48]line ИТОГО: 340.00 [11:16:48]line Внесено: 340.00 [11:16:48]line СДАЧА: 0.00 [11:16:48]line НСП 1% : 3.01 [11:16:48]line НДС 12% : 36.17 [11:16:48]line Наличными: 340.00 [11:16:48]line Безнал.: 0.00 [11:16:48]line Место: АЗС № 65 "Партнер Нефть" [11:16:48]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:16:48]line СНО: Общий режим [11:16:48]line Чек 60 20.06.2024 11:17 [11:16:48]line Смена: 389 ФФД: 1.0 [11:16:48]line ЗНМ: 0300000198 [11:16:48]line РНМ: 0000000000092771 [11:16:48]line Версия ККМ: 001 [11:16:48]line ФМ: 0000000000875083 [11:16:48]line ФД: 111610 [11:16:48]line ФПД: 161770963340258 [11:16:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T111718&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111610&fm=161770963340258&tin=02508201610067®Number=0000000000092771&sum=34000 [11:16:48]OFD Sender: Processing packet 111610 [packets to send 38, broken 37] [11:16:48]ProducePacketName [11:16:48]name=ofd_packets/00111610 [11:16:48]OFD Sender: To server: pG, [11:16:48]CommunicateWithHost lk.salyk.kg:30040 [11:16:48]ConnectInit lk.salyk.kg [11:16:48]written 0, free lines is 4095 [11:16:48]Connected sock=10 [11:16:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AA 9B 07 01 09 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 BE 0F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FA B3 01 00 35 04 06 00 93 21 3C CE 0B E2 BE BE AE 07 07 1B DE DF [11:16:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 74 64 47 00 D0 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FA B3 01 00 F4 03 04 00 0B A7 73 66 B6 04 01 00 00 60 8F DF 26 D6 22 A7 34 [11:16:48]CommunicateWithHost err = 0 [11:16:48]CheckOFDResponse [11:16:48]1017 (14) - 77093643461234 [11:16:48]1041 (16) - 0000000000875083 [11:16:48]1040 (4) - 111610 [11:16:48]1012 (4) - 20.06.2024 03:50 [11:16:48]1206 (1) - 0 [11:16:48]OFD Sender: Remove packet 111610 [11:16:48]ProducePacketName [11:16:48]name=ofd_packets/00111610 [11:16:48]NVStorageDeleteData [11:16:49]Write to MH i2c: 01 00 00 8B 54 DF [11:16:49]Write i2c OK [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: 01 [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: 01 07 00 [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: 01 07 00 8B 54 00 00 00 00 00 CB 0C BD [11:16:49]RasterBufferAndPrint [11:16:49]line [11:16:49]line [11:16:49]line [11:16:49]line [11:16:49]line [11:16:49]written 0, free lines is 3281 [11:16:49]MH_Cut [11:16:49]Write to MH i2c: D1 01 00 92 54 01 B8 [11:16:49]Write i2c OK [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: D1 [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: D1 01 00 [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: D1 01 00 92 54 00 B7 [11:16:49]Write to MH i2c: 01 00 00 93 54 E7 [11:16:49]Write i2c OK [11:16:49]MH_I2C_Read... [11:16:49]OFD Sender: No OFD packet to send [11:16:49]*** Cut start [11:16:49]*** Partial cut [11:16:49]*** CUTSNS_PIN = 1 [11:16:49]*** CUTSNS_PIN = 0 [11:16:50]*** Brake cut motor [11:16:50]Read from MH i2c: 01 [11:16:50]MH_I2C_Read... [11:16:50]*** Stop cut motor [11:16:50]*** Cut end [11:16:50]Read from MH i2c: 01 07 00 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: 01 07 00 93 54 00 00 00 00 00 FF 0F FC [11:16:50]process_action close_receipt done [11:16:50]requested_data is exist [11:16:50]produce_requested_data [11:16:50]requested_item fm.sn is exist - process it [11:16:50]wFMCommunicate request_size=4 [11:16:50]MH_SAM_APDU [11:16:50]CAPDU: 80 11 00 00 [11:16:50]Write to MH i2c: E2 08 00 94 54 80 11 00 00 00 00 00 00 62 [11:16:50]Write i2c OK [11:16:50]MH_I2C_Read... [11:16:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:50]Read from MH i2c: E2 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 17 00 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 17 00 94 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B4 [11:16:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:16:50]wFMCommunicate OK [11:16:50]requested_item fd.num is exist - process it [11:16:50]SAM_PROTO_GetFieldsCounters [11:16:50]wFMCommunicate request_size=4 [11:16:50]MH_SAM_APDU [11:16:50]CAPDU: 80 13 00 00 [11:16:50]Write to MH i2c: E2 08 00 95 54 80 13 00 00 00 00 00 00 65 [11:16:50]Write i2c OK [11:16:50]MH_I2C_Read... [11:16:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:50]Read from MH i2c: E2 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 62 00 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 62 00 95 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FA B3 01 00 0E 04 04 00 85 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 6E [11:16:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FA B3 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:16:50]wFMCommunicate OK [11:16:50]SAM_PROTO_GetFieldsCounters done [11:16:50]requested_item shift.num is exist - process it [11:16:50]requested_item shift.opened is exist - process it [11:16:50]req_shift_opened [11:16:50]FM_GetShiftState [11:16:50]SAM_PROTO_GetShiftState [11:16:50]wFMCommunicate request_size=4 [11:16:50]MH_SAM_APDU [11:16:50]CAPDU: 80 13 01 00 [11:16:50]Write to MH i2c: E2 08 00 96 54 80 13 01 00 00 00 00 00 67 [11:16:50]Write i2c OK [11:16:50]MH_I2C_Read... [11:16:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:50]Read from MH i2c: E2 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 0E 00 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 0E 00 96 54 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 E2 [11:16:50]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:16:50]wFMCommunicate OK [11:16:50]SAM_PROTO_GetShiftState done [11:16:50]FM_GetShiftState done [11:16:50]req_shift_opened done [11:16:50]requested_item shift.open_date is exist - process it [11:16:50]req_shift_open_date [11:16:50]req_shift_open_date done [11:16:50]produce_requested_data done [11:16:50]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111610,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [11:16:50]process_action_free close_receipt [11:16:50]json_value_free [11:16:50]json_value_free done [11:16:50]process_json_proto returns [11:16:50]Send response to host [11:16:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111610,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [11:16:50]free response buf [11:16:50]execute_script done [11:16:50]execute_script returns [11:16:50]free content buf [11:16:50]Sock 7.Close socket [11:16:50]Sock 7.Thread stoped [11:16:54]OFD Sender: No OFD packet to send [11:16:59]OFD Sender: No OFD packet to send [11:17:04]OFD Sender: No OFD packet to send [11:17:09]OFD Sender: No OFD packet to send [11:17:14]OFD Sender: No OFD packet to send [11:17:19]OFD Sender: No OFD packet to send [11:17:24]OFD Sender: No OFD packet to send [11:17:29]OFD Sender: No OFD packet to send [11:17:34]OFD Sender: No OFD packet to send [11:17:39]OFD Sender: No OFD packet to send [11:17:44]OFD Sender: No OFD packet to send [11:17:44]accept exits with 9 [11:17:44]New connection [11:17:44]New thread 3067321700 created [11:17:44]Thread 3067465060 joined [11:17:44]Waiting for new connection... [11:17:44] Sock 9.Parse request [11:17:44]Sock 9.Check first char [11:17:44]Sock 9.First char is OK [11:17:44]request: POST /json_proto HTTP/1.0 [11:17:44]Method: POST [11:17:44]URL: /json_proto [11:17:44]Method is POST - this is cgi request [11:17:44]url: /json_proto [11:17:44]query_string will be loaded in cgi processing [11:17:44]execute_cgi json_proto POST (null) [11:17:44]execute_cgi path=json_proto method=POST [11:17:44]POST find Content-Length [11:17:44]Host: 172.17.59.68:8080 [11:17:44]Content-Length: 682 [11:17:44]Content-Type: application/json [11:17:44] [11:17:44]POST finish read [11:17:44]Found Content-Length = 682 [11:17:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:44]execute_script... [11:17:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:44]POST & json_proto [11:17:44]process_json_proto [11:17:44]json parsed OK: [11:17:44]protocol is kg_v1.0 [11:17:44]action value=close_receipt [11:17:44]process_action close_receipt [11:17:44]cmd_close_receipt [11:17:44]MH_GetDate [11:17:44]Write to MH i2c: F0 00 00 97 54 DA [11:17:44]Write i2c OK [11:17:44]MH_I2C_Read... [11:17:44]Read from MH i2c: F0 [11:17:44]MH_I2C_Read... [11:17:44]Read from MH i2c: F0 09 00 [11:17:44]MH_I2C_Read... [11:17:44]Read from MH i2c: F0 09 00 97 54 00 F9 0F 74 66 BC EC 60 65 32 [11:17:44]GetLastDocTimeStamp 1718882238 [11:17:44]current date 1718882297 [11:17:44]FM_GetShiftState [11:17:44]SAM_PROTO_GetShiftState [11:17:44]wFMCommunicate request_size=4 [11:17:44]MH_SAM_APDU [11:17:44]CAPDU: 80 13 01 00 [11:17:44]Write to MH i2c: E2 08 00 98 54 80 13 01 00 00 00 00 00 69 [11:17:44]Write i2c OK [11:17:44]MH_I2C_Read... [11:17:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:44]Read from MH i2c: E2 [11:17:44]MH_I2C_Read... [11:17:44]Read from MH i2c: E2 0E 00 [11:17:44]MH_I2C_Read... [11:17:44]Read from MH i2c: E2 0E 00 98 54 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 E4 [11:17:44]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:17:44]wFMCommunicate OK [11:17:44]SAM_PROTO_GetShiftState done [11:17:44]FM_GetShiftState done [11:17:44]opened in 1718847247 [11:17:44]opened+sec_in_day 1718933647 [11:17:44]quantity*price = 100064 [11:17:44]sum+1 = 100066 [11:17:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 61 20.06.2024 11:18 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111611 ФПД: 56813562487033 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T111817&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111611&fm=56813562487033&tin=02508201610067®Number=0000000000092771&sum=100000 [11:17:45]StoreToDocumentArchive [11:17:45]shift 389 fd 111611 [11:17:45]save to /storage/0389/doc_00111611 [11:17:45]save last doc name /storage/0389/doc_00111611 to /storage/kkm_last_doc_name [11:17:45]save OK [11:17:45]Clear old archive folders... [11:17:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:17:45]tlvbuf is B6E25BB0 [11:17:45]SAM_PROTO_ClearQueue [11:17:45]wFMCommunicate request_size=4 [11:17:45]MH_SAM_APDU [11:17:45]CAPDU: 80 09 00 00 [11:17:45]Write to MH i2c: E2 08 00 A5 54 80 09 00 00 00 00 00 00 6B [11:17:45]Write i2c OK [11:17:45]MH_I2C_Read... [11:17:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:46]Read from MH i2c: E2 [11:17:46]MH_I2C_Read... [11:17:46]Read from MH i2c: E2 03 00 [11:17:46]MH_I2C_Read... [11:17:46]Read from MH i2c: E2 03 00 A5 54 00 90 00 6D [11:17:46]RAPDU: 90 00 [11:17:46]wFMCommunicate OK [11:17:46]SAM_PROTO_ClearQueue done [11:17:46]KKMCreateOFDPacket [11:17:46]OFDProtocolAddRootSTLVToBuf [11:17:46]FM_MakeSignedData [11:17:46]FM_MakeSignedData [11:17:46]SAM_PROTO_SignData [11:17:46]wFMCommunicate request_size=4 [11:17:46]MH_SAM_APDU [11:17:46]CAPDU: 80 0D 01 02 [11:17:46]Write to MH i2c: E2 08 00 A6 54 80 0D 01 02 00 00 00 00 73 [11:17:46]Write i2c OK [11:17:46]MH_I2C_Read... [11:17:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:46]Read from MH i2c: E2 [11:17:46]MH_I2C_Read... [11:17:46]Read from MH i2c: E2 03 00 [11:17:46]MH_I2C_Read... [11:17:46]Read from MH i2c: E2 03 00 A6 54 00 90 00 6E [11:17:46]RAPDU: 90 00 [11:17:46]wFMCommunicate OK [11:17:46]wFMCommunicate request_size=255 [11:17:46]MH_SAM_APDU [11:17:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 F9 0F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FB B3 01 00 35 04 06 00 33 [11:17:46]Write to MH i2c: E2 02 01 A7 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 F9 0F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FB B3 01 00 35 04 06 00 33 00 00 FE [11:17:46]Write i2c OK [11:17:46]MH_I2C_Read... [11:17:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:46]Read from MH i2c: E2 [11:17:46]MH_I2C_Read... [11:17:46]Read from MH i2c: E2 03 00 [11:17:46]MH_I2C_Read... [11:17:46]Read from MH i2c: E2 03 00 A7 54 00 90 00 6F [11:17:46]RAPDU: 90 00 [11:17:46]wFMCommunicate OK [11:17:46]wFMCommunicate request_size=10 [11:17:46]MH_SAM_APDU [11:17:46]CAPDU: 80 0D 02 02 05 AB F0 35 E0 F9 [11:17:46]Write to MH i2c: E2 0D 00 A8 54 80 0D 02 02 05 00 AB F0 35 E0 F9 00 00 29 [11:17:46]Write i2c OK [11:17:46]MH_I2C_Read... [11:17:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:46]Read from MH i2c: E2 [11:17:46]MH_I2C_Read... [11:17:46]Read from MH i2c: E2 03 00 [11:17:46]MH_I2C_Read... [11:17:46]Read from MH i2c: E2 03 00 A8 54 00 90 00 70 [11:17:46]RAPDU: 90 00 [11:17:46]wFMCommunicate OK [11:17:46]wFMCommunicate request_size=4 [11:17:46]MH_SAM_APDU [11:17:46]CAPDU: 80 0D 03 02 [11:17:46]Write to MH i2c: E2 08 00 A9 54 80 0D 03 02 00 00 00 00 78 [11:17:46]Write i2c OK [11:17:46]MH_I2C_Read... [11:17:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:46]Read from MH i2c: E2 [11:17:46]MH_I2C_Read... [11:17:46]Read from MH i2c: E2 0B 00 [11:17:46]MH_I2C_Read... [11:17:46]Read from MH i2c: E2 0B 00 A9 54 00 4E 84 76 66 A1 CF 9E 4E 90 00 83 [11:17:46]RAPDU: 4E 84 76 66 A1 CF 9E 4E 90 00 [11:17:46]wFMCommunicate OK [11:17:46]SAM_PROTO_SignData done [11:17:46]FM_MakeSignedData done [11:17:46]CreateOFDProtocolMessage [11:17:46]wFMCommunicate request_size=4 [11:17:46]MH_SAM_APDU [11:17:46]CAPDU: 80 11 00 00 [11:17:46]Write to MH i2c: E2 08 00 AA 54 80 11 00 00 00 00 00 00 78 [11:17:46]Write i2c OK [11:17:46]MH_I2C_Read... [11:17:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:46]Read from MH i2c: E2 [11:17:46]MH_I2C_Read... [11:17:46]Read from MH i2c: E2 17 00 [11:17:46]MH_I2C_Read... [11:17:46]Read from MH i2c: E2 17 00 AA 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CA [11:17:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:17:46]wFMCommunicate OK [11:17:46]CreateOFDProtocolMessage done [11:17:46]OFDSenderStorePacket 111611 [11:17:46]StoreOFDPacket docnum=111611 [11:17:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FD F0 07 01 03 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 F9 0F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FB B3 01 00 35 04 06 00 33 AB F0 35 E0 F9 4E 84 76 66 A1 CF 9E 4E [11:17:46]CheckFolder [11:17:46]dirname=/storage/ofd_packets [11:17:46]CheckFolder done [11:17:46]ProducePacketName [11:17:46]name=ofd_packets/00111611 [11:17:46]NVStorageSaveData ofd_packets/00111611 [11:17:46]File name is /storage/ofd_packets/00111611 [11:17:46]Write 301 bytes [11:17:46]NVStorageSaveData done [11:17:46]OFDSenderStorePacket done [11:17:46]KKMCreateOFDPacket done [11:17:46]NVStorageSaveData kkm_last_timestamp [11:17:46]File name is /storage/kkm_last_timestamp [11:17:46]Write 4 bytes [11:17:46]NVStorageSaveData done [11:17:46]ExternCall_PrintAddStr [11:17:46]wPrintStart [11:17:46]Write to MH i2c: 01 00 00 AB 54 FF [11:17:46]Write i2c OK [11:17:46]MH_I2C_Read... [11:17:46]Read from MH i2c: 01 [11:17:46]MH_I2C_Read... [11:17:46]Read from MH i2c: 01 07 00 [11:17:46]MH_I2C_Read... [11:17:46]Read from MH i2c: 01 07 00 AB 54 00 00 00 00 00 FF 0F 14 [11:17:46]RasterBufferAndPrint [11:17:46]line Счет N : (1)320208 [11:17:46]line ИНН: 02508201610067 [11:17:46]line Контрольно-Кассовый Чек [11:17:46]line ПРОДАЖА [11:17:46]line ТРК (МРК, ГНК) : 11 [11:17:46]line Товар: 2710124130 [11:17:46]line Аи-92-К-5 [11:17:46]line 15.070 * 66.40 [11:17:46]line = 1000.65 [11:17:46]line НДС 12% НСП 1% [11:17:46]line > о реализуемом товаре [11:17:46]line ОКРУГЛЕНИЕ: -0.65 [11:17:46]line ИТОГО: 1000.00 [11:17:46]line Внесено: 1000.00 [11:17:46]line СДАЧА: 0.00 [11:17:46]line НСП 1% : 8.85 [11:17:46]line НДС 12% : 106.26 [11:17:46]line Наличными: 1000.00 [11:17:46]line Безнал.: 0.00 [11:17:46]line Место: АЗС № 65 "Партнер Нефть" [11:17:46]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:17:46]line СНО: Общий режим [11:17:46]line Чек 61 20.06.2024 11:18 [11:17:46]line Смена: 389 ФФД: 1.0 [11:17:46]line ЗНМ: 0300000198 [11:17:46]line РНМ: 0000000000092771 [11:17:46]line Версия ККМ: 001 [11:17:46]line ФМ: 0000000000875083 [11:17:46]line ФД: 111611 [11:17:46]line ФПД: 56813562487033 [11:17:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T111817&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111611&fm=56813562487033&tin=02508201610067®Number=0000000000092771&sum=100000 [11:17:46]OFD Sender: Processing packet 111611 [packets to send 38, broken 37] [11:17:46]ProducePacketName [11:17:46]name=ofd_packets/00111611 [11:17:46]OFD Sender: To server: pG, [11:17:46]CommunicateWithHost lk.salyk.kg:30040 [11:17:46]ConnectInit lk.salyk.kg [11:17:46]written 0, free lines is 4095 [11:17:46]Connected sock=10 [11:17:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FD F0 07 01 03 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 F9 0F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FB B3 01 00 35 04 06 00 33 AB F0 35 E0 F9 4E 84 76 66 A1 CF 9E 4E [11:17:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 EB F4 47 00 3F C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FB B3 01 00 F4 03 04 00 45 A7 73 66 B6 04 01 00 00 CC 32 82 58 CD 83 21 CB [11:17:47]CommunicateWithHost err = 0 [11:17:47]CheckOFDResponse [11:17:47]1017 (14) - 77093643461234 [11:17:47]1041 (16) - 0000000000875083 [11:17:47]1040 (4) - 111611 [11:17:47]1012 (4) - 20.06.2024 03:51 [11:17:47]1206 (1) - 0 [11:17:47]OFD Sender: Remove packet 111611 [11:17:47]ProducePacketName [11:17:47]name=ofd_packets/00111611 [11:17:47]NVStorageDeleteData [11:17:47]Write to MH i2c: 01 00 00 D6 54 2A [11:17:47]Write i2c OK [11:17:47]MH_I2C_Read... [11:17:47]Read from MH i2c: 01 [11:17:47]MH_I2C_Read... [11:17:47]Read from MH i2c: 01 07 00 [11:17:47]MH_I2C_Read... [11:17:47]Read from MH i2c: 01 07 00 D6 54 00 00 00 00 00 C6 0C 03 [11:17:47]RasterBufferAndPrint [11:17:47]line [11:17:47]line [11:17:47]line [11:17:47]line [11:17:47]line [11:17:47]written 0, free lines is 3279 [11:17:47]MH_Cut [11:17:47]Write to MH i2c: D1 01 00 DD 54 01 03 [11:17:47]Write i2c OK [11:17:47]MH_I2C_Read... [11:17:47]Read from MH i2c: D1 [11:17:47]MH_I2C_Read... [11:17:47]Read from MH i2c: D1 01 00 [11:17:47]MH_I2C_Read... [11:17:47]Read from MH i2c: D1 01 00 DD 54 00 02 [11:17:47]Write to MH i2c: 01 00 00 DE 54 32 [11:17:47]Write i2c OK [11:17:47]MH_I2C_Read... [11:17:47]OFD Sender: No OFD packet to send [11:17:48]*** Cut start [11:17:48]*** Partial cut [11:17:48]*** CUTSNS_PIN = 1 [11:17:48]*** CUTSNS_PIN = 0 [11:17:48]*** Brake cut motor [11:17:48]Read from MH i2c: 01 [11:17:48]MH_I2C_Read... [11:17:48]*** Stop cut motor [11:17:48]*** Cut end [11:17:48]Read from MH i2c: 01 07 00 [11:17:48]MH_I2C_Read... [11:17:48]Read from MH i2c: 01 07 00 DE 54 00 00 00 00 00 FF 0F 47 [11:17:48]process_action close_receipt done [11:17:48]requested_data is exist [11:17:48]produce_requested_data [11:17:48]requested_item fm.sn is exist - process it [11:17:48]wFMCommunicate request_size=4 [11:17:48]MH_SAM_APDU [11:17:48]CAPDU: 80 11 00 00 [11:17:48]Write to MH i2c: E2 08 00 DF 54 80 11 00 00 00 00 00 00 AD [11:17:48]Write i2c OK [11:17:48]MH_I2C_Read... [11:17:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:48]Read from MH i2c: E2 [11:17:48]MH_I2C_Read... [11:17:48]Read from MH i2c: E2 17 00 [11:17:48]MH_I2C_Read... [11:17:48]Read from MH i2c: E2 17 00 DF 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FF [11:17:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:17:48]wFMCommunicate OK [11:17:48]requested_item fd.num is exist - process it [11:17:48]SAM_PROTO_GetFieldsCounters [11:17:48]wFMCommunicate request_size=4 [11:17:48]MH_SAM_APDU [11:17:48]CAPDU: 80 13 00 00 [11:17:48]Write to MH i2c: E2 08 00 E0 54 80 13 00 00 00 00 00 00 B0 [11:17:48]Write i2c OK [11:17:48]MH_I2C_Read... [11:17:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:48]Read from MH i2c: E2 [11:17:48]MH_I2C_Read... [11:17:48]Read from MH i2c: E2 62 00 [11:17:48]MH_I2C_Read... [11:17:48]Read from MH i2c: E2 62 00 E0 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FB B3 01 00 0E 04 04 00 85 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 BD [11:17:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FB B3 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:48]wFMCommunicate OK [11:17:48]SAM_PROTO_GetFieldsCounters done [11:17:48]requested_item shift.num is exist - process it [11:17:48]requested_item shift.opened is exist - process it [11:17:48]req_shift_opened [11:17:48]FM_GetShiftState [11:17:48]SAM_PROTO_GetShiftState [11:17:48]wFMCommunicate request_size=4 [11:17:48]MH_SAM_APDU [11:17:48]CAPDU: 80 13 01 00 [11:17:48]Write to MH i2c: E2 08 00 E1 54 80 13 01 00 00 00 00 00 B2 [11:17:48]Write i2c OK [11:17:48]MH_I2C_Read... [11:17:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:48]Read from MH i2c: E2 [11:17:48]MH_I2C_Read... [11:17:48]Read from MH i2c: E2 0E 00 [11:17:48]MH_I2C_Read... [11:17:48]Read from MH i2c: E2 0E 00 E1 54 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 2D [11:17:48]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:17:48]wFMCommunicate OK [11:17:48]SAM_PROTO_GetShiftState done [11:17:48]FM_GetShiftState done [11:17:48]req_shift_opened done [11:17:48]requested_item shift.open_date is exist - process it [11:17:48]req_shift_open_date [11:17:48]req_shift_open_date done [11:17:48]produce_requested_data done [11:17:48]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111611,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [11:17:48]process_action_free close_receipt [11:17:48]json_value_free [11:17:48]json_value_free done [11:17:48]process_json_proto returns [11:17:48]Send response to host [11:17:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111611,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [11:17:48]free response buf [11:17:48]execute_script done [11:17:48]execute_script returns [11:17:48]free content buf [11:17:48]Sock 9.Close socket [11:17:48]Sock 9.Thread stoped [11:17:52]OFD Sender: No OFD packet to send [11:17:57]OFD Sender: No OFD packet to send [11:18:02]OFD Sender: No OFD packet to send [11:18:07]OFD Sender: No OFD packet to send [11:18:12]OFD Sender: No OFD packet to send [11:18:17]OFD Sender: No OFD packet to send [11:18:22]OFD Sender: No OFD packet to send [11:18:27]OFD Sender: No OFD packet to send [11:18:32]OFD Sender: No OFD packet to send [11:18:37]OFD Sender: No OFD packet to send [11:18:42]OFD Sender: No OFD packet to send [11:18:47]OFD Sender: No OFD packet to send [11:18:52]OFD Sender: No OFD packet to send [11:18:57]OFD Sender: No OFD packet to send [11:19:02]OFD Sender: No OFD packet to send [11:19:07]OFD Sender: No OFD packet to send [11:19:12]OFD Sender: No OFD packet to send [11:19:17]OFD Sender: No OFD packet to send [11:19:22]OFD Sender: No OFD packet to send [11:19:27]OFD Sender: No OFD packet to send [11:19:32]OFD Sender: No OFD packet to send [11:19:37]OFD Sender: No OFD packet to send [11:19:42]OFD Sender: No OFD packet to send [11:19:47]OFD Sender: No OFD packet to send [11:19:52]OFD Sender: No OFD packet to send [11:19:57]OFD Sender: No OFD packet to send [11:20:02]OFD Sender: No OFD packet to send [11:20:07]OFD Sender: No OFD packet to send [11:20:12]OFD Sender: No OFD packet to send [11:20:17]OFD Sender: No OFD packet to send [11:20:22]OFD Sender: No OFD packet to send [11:20:27]OFD Sender: No OFD packet to send [11:20:32]OFD Sender: No OFD packet to send [11:20:37]OFD Sender: No OFD packet to send [11:20:42]OFD Sender: No OFD packet to send [11:20:47]OFD Sender: No OFD packet to send [11:20:48]accept exits with 7 [11:20:48]New connection [11:20:48]New thread 3067465060 created [11:20:48]Thread 3067321700 joined [11:20:48]Waiting for new connection... [11:20:48] Sock 7.Parse request [11:20:48]Sock 7.Check first char [11:20:48]Sock 7.First char is OK [11:20:48]request: POST /json_proto HTTP/1.0 [11:20:48]Method: POST [11:20:48]URL: /json_proto [11:20:48]Method is POST - this is cgi request [11:20:48]url: /json_proto [11:20:48]query_string will be loaded in cgi processing [11:20:48]execute_cgi json_proto POST (null) [11:20:48]execute_cgi path=json_proto method=POST [11:20:48]POST find Content-Length [11:20:48]Host: 172.17.59.68:8080 [11:20:48]Content-Length: 678 [11:20:48]Content-Type: application/json [11:20:48] [11:20:48]POST finish read [11:20:48]Found Content-Length = 678 [11:20:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.050, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:48]execute_script... [11:20: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)320209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.050, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:48]POST & json_proto [11:20:48]process_json_proto [11:20:48]json parsed OK: [11:20:48]protocol is kg_v1.0 [11:20:48]action value=close_receipt [11:20:48]process_action close_receipt [11:20:48]cmd_close_receipt [11:20:48]MH_GetDate [11:20:48]Write to MH i2c: F0 00 00 E2 54 25 [11:20:48]Write i2c OK [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: F0 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: F0 09 00 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: F0 09 00 E2 54 00 B1 10 74 66 BC EC 60 65 36 [11:20:48]GetLastDocTimeStamp 1718882297 [11:20:48]current date 1718882481 [11:20:48]FM_GetShiftState [11:20:48]SAM_PROTO_GetShiftState [11:20:48]wFMCommunicate request_size=4 [11:20:48]MH_SAM_APDU [11:20:48]CAPDU: 80 13 01 00 [11:20:48]Write to MH i2c: E2 08 00 E3 54 80 13 01 00 00 00 00 00 B4 [11:20:48]Write i2c OK [11:20:48]MH_I2C_Read... [11:20:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:48]Read from MH i2c: E2 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: E2 0E 00 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: E2 0E 00 E3 54 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 2F [11:20:48]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:20:48]wFMCommunicate OK [11:20:48]SAM_PROTO_GetShiftState done [11:20:48]FM_GetShiftState done [11:20:48]opened in 1718847247 [11:20:48]opened+sec_in_day 1718933647 [11:20:48]quantity*price = 80012 [11:20:48]sum+1 = 80013 [11:20:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 62 20.06.2024 11:21 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111612 ФПД: 51087180253334 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T112121&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111612&fm=51087180253334&tin=02508201610067®Number=0000000000092771&sum=80000 [11:20:50]StoreToDocumentArchive [11:20:50]shift 389 fd 111612 [11:20:50]save to /storage/0389/doc_00111612 [11:20:50]save last doc name /storage/0389/doc_00111612 to /storage/kkm_last_doc_name [11:20:50]save OK [11:20:50]Clear old archive folders... [11:20:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:20:50]tlvbuf is 00F501B0 [11:20:50]SAM_PROTO_ClearQueue [11:20:50]wFMCommunicate request_size=4 [11:20:50]MH_SAM_APDU [11:20:50]CAPDU: 80 09 00 00 [11:20:50]Write to MH i2c: E2 08 00 F0 54 80 09 00 00 00 00 00 00 B6 [11:20:50]Write i2c OK [11:20:50]MH_I2C_Read... [11:20:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:50]Read from MH i2c: E2 [11:20:50]MH_I2C_Read... [11:20:50]Read from MH i2c: E2 03 00 [11:20:50]MH_I2C_Read... [11:20:50]Read from MH i2c: E2 03 00 F0 54 00 90 00 B8 [11:20:50]RAPDU: 90 00 [11:20:50]wFMCommunicate OK [11:20:50]SAM_PROTO_ClearQueue done [11:20:50]KKMCreateOFDPacket [11:20:50]OFDProtocolAddRootSTLVToBuf [11:20:50]FM_MakeSignedData [11:20:50]FM_MakeSignedData [11:20:50]SAM_PROTO_SignData [11:20:50]wFMCommunicate request_size=4 [11:20:50]MH_SAM_APDU [11:20:50]CAPDU: 80 0D 01 02 [11:20:50]Write to MH i2c: E2 08 00 F1 54 80 0D 01 02 00 00 00 00 BE [11:20:50]Write i2c OK [11:20:50]MH_I2C_Read... [11:20:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:50]Read from MH i2c: E2 [11:20:50]MH_I2C_Read... [11:20:50]Read from MH i2c: E2 03 00 [11:20:50]MH_I2C_Read... [11:20:50]Read from MH i2c: E2 03 00 F1 54 00 90 00 B9 [11:20:50]RAPDU: 90 00 [11:20:50]wFMCommunicate OK [11:20:50]wFMCommunicate request_size=255 [11:20:50]MH_SAM_APDU [11:20: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 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 B1 10 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FC B3 01 00 35 04 06 00 2E [11:20:50]Write to MH i2c: E2 02 01 F2 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 B1 10 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FC B3 01 00 35 04 06 00 2E 00 00 9E [11:20:50]Write i2c OK [11:20:50]MH_I2C_Read... [11:20:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:50]Read from MH i2c: E2 [11:20:50]MH_I2C_Read... [11:20:50]Read from MH i2c: E2 03 00 [11:20:50]MH_I2C_Read... [11:20:50]Read from MH i2c: E2 03 00 F2 54 00 90 00 BA [11:20:50]RAPDU: 90 00 [11:20:50]wFMCommunicate OK [11:20:50]wFMCommunicate request_size=10 [11:20:50]MH_SAM_APDU [11:20:50]CAPDU: 80 0D 02 02 05 76 A9 3B 48 96 [11:20:50]Write to MH i2c: E2 0D 00 F3 54 80 0D 02 02 05 00 76 A9 3B 48 96 00 00 03 [11:20:50]Write i2c OK [11:20:50]MH_I2C_Read... [11:20:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:50]Read from MH i2c: E2 [11:20:50]MH_I2C_Read... [11:20:50]Read from MH i2c: E2 03 00 [11:20:50]MH_I2C_Read... [11:20:50]Read from MH i2c: E2 03 00 F3 54 00 90 00 BB [11:20:50]RAPDU: 90 00 [11:20:50]wFMCommunicate OK [11:20:50]wFMCommunicate request_size=4 [11:20:50]MH_SAM_APDU [11:20:50]CAPDU: 80 0D 03 02 [11:20:50]Write to MH i2c: E2 08 00 F4 54 80 0D 03 02 00 00 00 00 C3 [11:20:50]Write i2c OK [11:20:50]MH_I2C_Read... [11:20:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:50]Read from MH i2c: E2 [11:20:50]MH_I2C_Read... [11:20:50]Read from MH i2c: E2 0B 00 [11:20:50]MH_I2C_Read... [11:20:50]Read from MH i2c: E2 0B 00 F4 54 00 69 CC 1F 96 5D D9 5B 96 90 00 D5 [11:20:50]RAPDU: 69 CC 1F 96 5D D9 5B 96 90 00 [11:20:50]wFMCommunicate OK [11:20:50]SAM_PROTO_SignData done [11:20:50]FM_MakeSignedData done [11:20:50]CreateOFDProtocolMessage [11:20:50]wFMCommunicate request_size=4 [11:20:50]MH_SAM_APDU [11:20:50]CAPDU: 80 11 00 00 [11:20:50]Write to MH i2c: E2 08 00 F5 54 80 11 00 00 00 00 00 00 C3 [11:20:50]Write i2c OK [11:20:50]MH_I2C_Read... [11:20:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:50]Read from MH i2c: E2 [11:20:50]MH_I2C_Read... [11:20:50]Read from MH i2c: E2 17 00 [11:20:50]MH_I2C_Read... [11:20:50]Read from MH i2c: E2 17 00 F5 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 15 [11:20:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:20:50]wFMCommunicate OK [11:20:50]CreateOFDProtocolMessage done [11:20:50]OFDSenderStorePacket 111612 [11:20:50]StoreOFDPacket docnum=111612 [11:20:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B4 52 07 01 C7 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 B1 10 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FC B3 01 00 35 04 06 00 2E 76 A9 3B 48 96 69 CC 1F 96 5D D9 5B 96 [11:20:50]CheckFolder [11:20:50]dirname=/storage/ofd_packets [11:20:50]CheckFolder done [11:20:50]ProducePacketName [11:20:50]name=ofd_packets/00111612 [11:20:50]NVStorageSaveData ofd_packets/00111612 [11:20:50]File name is /storage/ofd_packets/00111612 [11:20:50]Write 301 bytes [11:20:50]NVStorageSaveData done [11:20:50]OFDSenderStorePacket done [11:20:50]KKMCreateOFDPacket done [11:20:50]NVStorageSaveData kkm_last_timestamp [11:20:50]File name is /storage/kkm_last_timestamp [11:20:50]Write 4 bytes [11:20:50]NVStorageSaveData done [11:20:50]ExternCall_PrintAddStr [11:20:50]wPrintStart [11:20:50]Write to MH i2c: 01 00 00 F6 54 4A [11:20:50]Write i2c OK [11:20:50]MH_I2C_Read... [11:20:50]Read from MH i2c: 01 [11:20:50]MH_I2C_Read... [11:20:50]Read from MH i2c: 01 07 00 [11:20:50]MH_I2C_Read... [11:20:50]Read from MH i2c: 01 07 00 F6 54 00 00 00 00 00 FF 0F 5F [11:20:50]RasterBufferAndPrint [11:20:50]line Счет N : (1)320209 [11:20:50]line ИНН: 02508201610067 [11:20:50]line Контрольно-Кассовый Чек [11:20:50]line ПРОДАЖА [11:20:50]line ТРК (МРК, ГНК) : 11 [11:20:50]line Товар: 2710124130 [11:20:50]line Аи-92-К-5 [11:20:50]line 12.050 * 66.40 [11:20:50]line = 800.12 [11:20:50]line НДС 12% НСП 1% [11:20:50]line > о реализуемом товаре [11:20:50]line ОКРУГЛЕНИЕ: -0.12 [11:20:50]line ИТОГО: 800.00 [11:20:50]line Внесено: 800.00 [11:20:50]line СДАЧА: 0.00 [11:20:50]line НСП 1% : 7.08 [11:20:50]line НДС 12% : 84.97 [11:20:50]line Наличными: 800.00 [11:20:50]line Безнал.: 0.00 [11:20:50]line Место: АЗС № 65 "Партнер Нефть" [11:20:50]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:20:50]line СНО: Общий режим [11:20:50]line Чек 62 20.06.2024 11:21 [11:20:50]line Смена: 389 ФФД: 1.0 [11:20:50]line ЗНМ: 0300000198 [11:20:50]line РНМ: 0000000000092771 [11:20:50]line Версия ККМ: 001 [11:20:50]line ФМ: 0000000000875083 [11:20:50]line ФД: 111612 [11:20:50]line ФПД: 51087180253334 [11:20:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T112121&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111612&fm=51087180253334&tin=02508201610067®Number=0000000000092771&sum=80000 [11:20:50]OFD Sender: Processing packet 111612 [packets to send 38, broken 37] [11:20:50]ProducePacketName [11:20:50]name=ofd_packets/00111612 [11:20:50]OFD Sender: To server: pG, [11:20:50]CommunicateWithHost lk.salyk.kg:30040 [11:20:50]ConnectInit lk.salyk.kg [11:20:50]written 0, free lines is 4095 [11:20:51]Connected sock=10 [11:20:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B4 52 07 01 C7 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 B1 10 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FC B3 01 00 35 04 06 00 2E 76 A9 3B 48 96 69 CC 1F 96 5D D9 5B 96 [11:20:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 67 1D 47 00 5B 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FC B3 01 00 F4 03 04 00 FD A7 73 66 B6 04 01 00 00 39 AE B5 07 B6 74 23 03 [11:20:51]CommunicateWithHost err = 0 [11:20:51]CheckOFDResponse [11:20:51]1017 (14) - 77093643461234 [11:20:51]1041 (16) - 0000000000875083 [11:20:51]1040 (4) - 111612 [11:20:51]1012 (4) - 20.06.2024 03:54 [11:20:51]1206 (1) - 0 [11:20:51]OFD Sender: Remove packet 111612 [11:20:51]ProducePacketName [11:20:51]name=ofd_packets/00111612 [11:20:51]NVStorageDeleteData [11:20:51]Write to MH i2c: 01 00 00 21 55 76 [11:20:51]Write i2c OK [11:20:51]MH_I2C_Read... [11:20:51]Read from MH i2c: 01 [11:20:51]MH_I2C_Read... [11:20:51]Read from MH i2c: 01 07 00 [11:20:51]MH_I2C_Read... [11:20:51]Read from MH i2c: 01 07 00 21 55 00 00 00 00 00 E0 0C 69 [11:20:51]RasterBufferAndPrint [11:20:51]line [11:20:51]line [11:20:51]line [11:20:51]line [11:20:51]line [11:20:51]written 0, free lines is 3305 [11:20:51]MH_Cut [11:20:51]Write to MH i2c: D1 01 00 28 55 01 4F [11:20:51]Write i2c OK [11:20:51]MH_I2C_Read... [11:20:51]Read from MH i2c: D1 [11:20:51]MH_I2C_Read... [11:20:51]Read from MH i2c: D1 01 00 [11:20:51]MH_I2C_Read... [11:20:51]Read from MH i2c: D1 01 00 28 55 00 4E [11:20:51]Write to MH i2c: 01 00 00 29 55 7E [11:20:51]Write i2c OK [11:20:51]MH_I2C_Read... [11:20:51]OFD Sender: No OFD packet to send [11:20:52]*** Cut start [11:20:52]*** Partial cut [11:20:52]*** CUTSNS_PIN = 1 [11:20:52]*** CUTSNS_PIN = 0 [11:20:52]*** Brake cut motor [11:20:52]Read from MH i2c: 01 [11:20:52]MH_I2C_Read... [11:20:52]*** Stop cut motor [11:20:52]*** Cut end [11:20:52]Read from MH i2c: 01 07 00 [11:20:52]MH_I2C_Read... [11:20:52]Read from MH i2c: 01 07 00 29 55 00 00 00 00 00 FF 0F 93 [11:20:52]process_action close_receipt done [11:20:52]requested_data is exist [11:20:52]produce_requested_data [11:20:52]requested_item fm.sn is exist - process it [11:20:52]wFMCommunicate request_size=4 [11:20:52]MH_SAM_APDU [11:20:52]CAPDU: 80 11 00 00 [11:20:52]Write to MH i2c: E2 08 00 2A 55 80 11 00 00 00 00 00 00 F9 [11:20:52]Write i2c OK [11:20:52]MH_I2C_Read... [11:20:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:52]Read from MH i2c: E2 [11:20:52]MH_I2C_Read... [11:20:52]Read from MH i2c: E2 17 00 [11:20:52]MH_I2C_Read... [11:20:52]Read from MH i2c: E2 17 00 2A 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4B [11:20:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:20:52]wFMCommunicate OK [11:20:52]requested_item fd.num is exist - process it [11:20:52]SAM_PROTO_GetFieldsCounters [11:20:52]wFMCommunicate request_size=4 [11:20:52]MH_SAM_APDU [11:20:52]CAPDU: 80 13 00 00 [11:20:52]Write to MH i2c: E2 08 00 2B 55 80 13 00 00 00 00 00 00 FC [11:20:52]Write i2c OK [11:20:52]MH_I2C_Read... [11:20:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:53]Read from MH i2c: E2 [11:20:53]MH_I2C_Read... [11:20:53]Read from MH i2c: E2 62 00 [11:20:53]MH_I2C_Read... [11:20:53]Read from MH i2c: E2 62 00 2B 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FC B3 01 00 0E 04 04 00 85 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 0D [11:20:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FC B3 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:20:53]wFMCommunicate OK [11:20:53]SAM_PROTO_GetFieldsCounters done [11:20:53]requested_item shift.num is exist - process it [11:20:53]requested_item shift.opened is exist - process it [11:20:53]req_shift_opened [11:20:53]FM_GetShiftState [11:20:53]SAM_PROTO_GetShiftState [11:20:53]wFMCommunicate request_size=4 [11:20:53]MH_SAM_APDU [11:20:53]CAPDU: 80 13 01 00 [11:20:53]Write to MH i2c: E2 08 00 2C 55 80 13 01 00 00 00 00 00 FE [11:20:53]Write i2c OK [11:20:53]MH_I2C_Read... [11:20:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:53]Read from MH i2c: E2 [11:20:53]MH_I2C_Read... [11:20:53]Read from MH i2c: E2 0E 00 [11:20:53]MH_I2C_Read... [11:20:53]Read from MH i2c: E2 0E 00 2C 55 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 79 [11:20:53]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:20:53]wFMCommunicate OK [11:20:53]SAM_PROTO_GetShiftState done [11:20:53]FM_GetShiftState done [11:20:53]req_shift_opened done [11:20:53]requested_item shift.open_date is exist - process it [11:20:53]req_shift_open_date [11:20:53]req_shift_open_date done [11:20:53]produce_requested_data done [11:20:53]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111612,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [11:20:53]process_action_free close_receipt [11:20:53]json_value_free [11:20:53]json_value_free done [11:20:53]process_json_proto returns [11:20:53]Send response to host [11:20:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111612,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [11:20:53]free response buf [11:20:53]execute_script done [11:20:53]execute_script returns [11:20:53]free content buf [11:20:53]Sock 7.Close socket [11:20:53]Sock 7.Thread stoped [11:20:56]OFD Sender: No OFD packet to send [11:21:01]OFD Sender: No OFD packet to send [11:21:06]OFD Sender: No OFD packet to send [11:21:11]OFD Sender: No OFD packet to send [11:21:16]OFD Sender: No OFD packet to send [11:21:21]OFD Sender: No OFD packet to send [11:21:26]OFD Sender: No OFD packet to send [11:21:31]OFD Sender: No OFD packet to send [11:21:36]OFD Sender: No OFD packet to send [11:21:41]OFD Sender: No OFD packet to send [11:21:46]OFD Sender: No OFD packet to send [11:21:51]OFD Sender: No OFD packet to send [11:21:56]OFD Sender: No OFD packet to send [11:22:01]OFD Sender: No OFD packet to send [11:22:06]OFD Sender: No OFD packet to send [11:22:11]OFD Sender: No OFD packet to send [11:22:16]OFD Sender: No OFD packet to send [11:22:21]OFD Sender: No OFD packet to send [11:22:26]OFD Sender: No OFD packet to send [11:22:31]OFD Sender: No OFD packet to send [11:22:36]OFD Sender: No OFD packet to send [11:22:41]OFD Sender: No OFD packet to send [11:22:46]OFD Sender: No OFD packet to send [11:22:51]OFD Sender: No OFD packet to send [11:22:56]OFD Sender: No OFD packet to send [11:23:01]OFD Sender: No OFD packet to send [11:23:06]OFD Sender: No OFD packet to send [11:23:11]OFD Sender: No OFD packet to send [11:23:16]OFD Sender: No OFD packet to send [11:23:21]OFD Sender: No OFD packet to send [11:23:26]OFD Sender: No OFD packet to send [11:23:31]OFD Sender: No OFD packet to send [11:23:36]OFD Sender: No OFD packet to send [11:23:41]OFD Sender: No OFD packet to send [11:23:46]OFD Sender: No OFD packet to send [11:23:51]OFD Sender: No OFD packet to send [11:23:56]OFD Sender: No OFD packet to send [11:24:01]OFD Sender: No OFD packet to send [11:24:06]OFD Sender: No OFD packet to send [11:24:11]OFD Sender: No OFD packet to send [11:24:16]OFD Sender: No OFD packet to send [11:24:21]OFD Sender: No OFD packet to send [11:24:26]OFD Sender: No OFD packet to send [11:24:31]OFD Sender: No OFD packet to send [11:24:37]OFD Sender: No OFD packet to send [11:24:42]OFD Sender: No OFD packet to send [11:24:47]OFD Sender: No OFD packet to send [11:24:52]OFD Sender: No OFD packet to send [11:24:57]OFD Sender: No OFD packet to send [11:25:02]OFD Sender: No OFD packet to send [11:25:07]OFD Sender: No OFD packet to send [11:25:12]OFD Sender: No OFD packet to send [11:25:17]OFD Sender: No OFD packet to send [11:25:22]OFD Sender: No OFD packet to send [11:25:27]OFD Sender: No OFD packet to send [11:25:32]OFD Sender: No OFD packet to send [11:25:37]OFD Sender: No OFD packet to send [11:25:42]OFD Sender: No OFD packet to send [11:25:46]accept exits with 9 [11:25:46]New connection [11:25:46]New thread 3067321700 created [11:25:46]Thread 3067465060 joined [11:25:46]Waiting for new connection... [11:25:46] Sock 9.Parse request [11:25:46]Sock 9.Check first char [11:25:46]Sock 9.First char is OK [11:25:46]request: POST /json_proto HTTP/1.0 [11:25:46]Method: POST [11:25:46]URL: /json_proto [11:25:46]Method is POST - this is cgi request [11:25:46]url: /json_proto [11:25:46]query_string will be loaded in cgi processing [11:25:46]execute_cgi json_proto POST (null) [11:25:46]execute_cgi path=json_proto method=POST [11:25:46]POST find Content-Length [11:25:46]Host: 172.17.59.68:8080 [11:25:46]Content-Length: 674 [11:25:46]Content-Type: application/json [11:25:46] [11:25:46]POST finish read [11:25:46]Found Content-Length = 674 [11:25:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:46]execute_script... [11:25: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)320210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:46]POST & json_proto [11:25:46]process_json_proto [11:25:46]json parsed OK: [11:25:46]protocol is kg_v1.0 [11:25:46]action value=close_receipt [11:25:46]process_action close_receipt [11:25:46]cmd_close_receipt [11:25:46]MH_GetDate [11:25:46]Write to MH i2c: F0 00 00 2D 55 71 [11:25:46]Write i2c OK [11:25:46]MH_I2C_Read... [11:25:46]Read from MH i2c: F0 [11:25:46]MH_I2C_Read... [11:25:46]Read from MH i2c: F0 09 00 [11:25:46]MH_I2C_Read... [11:25:46]Read from MH i2c: F0 09 00 2D 55 00 DB 11 74 66 BC EC 60 65 AD [11:25:46]GetLastDocTimeStamp 1718882481 [11:25:46]current date 1718882779 [11:25:46]FM_GetShiftState [11:25:46]SAM_PROTO_GetShiftState [11:25:46]wFMCommunicate request_size=4 [11:25:46]MH_SAM_APDU [11:25:46]CAPDU: 80 13 01 00 [11:25:46]Write to MH i2c: E2 08 00 2E 55 80 13 01 00 00 00 00 00 00 [11:25:46]Write i2c OK [11:25:46]MH_I2C_Read... [11:25:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:46]Read from MH i2c: E2 [11:25:46]MH_I2C_Read... [11:25:46]Read from MH i2c: E2 0E 00 [11:25:46]MH_I2C_Read... [11:25:46]Read from MH i2c: E2 0E 00 2E 55 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 7B [11:25:46]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:25:46]wFMCommunicate OK [11:25:46]SAM_PROTO_GetShiftState done [11:25:46]FM_GetShiftState done [11:25:46]opened in 1718847247 [11:25:46]opened+sec_in_day 1718933647 [11:25:46]quantity*price = 50009 [11:25:46]sum+1 = 50010 [11:25:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 63 20.06.2024 11:26 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111613 ФПД: 115126664128479 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T112619&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111613&fm=115126664128479&tin=02508201610067®Number=0000000000092771&sum=50000 [11:25:48]StoreToDocumentArchive [11:25:48]shift 389 fd 111613 [11:25:48]save to /storage/0389/doc_00111613 [11:25:48]save last doc name /storage/0389/doc_00111613 to /storage/kkm_last_doc_name [11:25:48]save OK [11:25:48]Clear old archive folders... [11:25:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:25:48]tlvbuf is 0108EF80 [11:25:48]SAM_PROTO_ClearQueue [11:25:48]wFMCommunicate request_size=4 [11:25:48]MH_SAM_APDU [11:25:48]CAPDU: 80 09 00 00 [11:25:48]Write to MH i2c: E2 08 00 3B 55 80 09 00 00 00 00 00 00 02 [11:25:48]Write i2c OK [11:25:48]MH_I2C_Read... [11:25:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:48]Read from MH i2c: E2 [11:25:48]MH_I2C_Read... [11:25:48]Read from MH i2c: E2 03 00 [11:25:48]MH_I2C_Read... [11:25:48]Read from MH i2c: E2 03 00 3B 55 00 90 00 04 [11:25:48]RAPDU: 90 00 [11:25:48]wFMCommunicate OK [11:25:48]SAM_PROTO_ClearQueue done [11:25:48]KKMCreateOFDPacket [11:25:48]OFDProtocolAddRootSTLVToBuf [11:25:48]FM_MakeSignedData [11:25:48]FM_MakeSignedData [11:25:48]SAM_PROTO_SignData [11:25:48]wFMCommunicate request_size=4 [11:25:48]MH_SAM_APDU [11:25:48]CAPDU: 80 0D 01 02 [11:25:48]Write to MH i2c: E2 08 00 3C 55 80 0D 01 02 00 00 00 00 0A [11:25:48]Write i2c OK [11:25:48]MH_I2C_Read... [11:25:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:48]Read from MH i2c: E2 [11:25:48]MH_I2C_Read... [11:25:48]Read from MH i2c: E2 03 00 [11:25:48]MH_I2C_Read... [11:25:48]Read from MH i2c: E2 03 00 3C 55 00 90 00 05 [11:25:48]RAPDU: 90 00 [11:25:48]wFMCommunicate OK [11:25:48]wFMCommunicate request_size=255 [11:25:48]MH_SAM_APDU [11:25:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 DB 11 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FD B3 01 00 35 04 06 00 68 B5 03 EB [11:25:48]Write to MH i2c: E2 02 01 3D 55 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 DB 11 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FD B3 01 00 35 04 06 00 68 B5 03 EB 00 00 FB [11:25:48]Write i2c OK [11:25:48]MH_I2C_Read... [11:25:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:48]Read from MH i2c: E2 [11:25:48]MH_I2C_Read... [11:25:48]Read from MH i2c: E2 03 00 [11:25:48]MH_I2C_Read... [11:25:48]Read from MH i2c: E2 03 00 3D 55 00 90 00 06 [11:25:48]RAPDU: 90 00 [11:25:48]wFMCommunicate OK [11:25:48]wFMCommunicate request_size=7 [11:25:48]MH_SAM_APDU [11:25:48]CAPDU: 80 0D 02 02 02 67 DF [11:25:48]Write to MH i2c: E2 0A 00 3E 55 80 0D 02 02 02 00 67 DF 00 00 57 [11:25:48]Write i2c OK [11:25:48]MH_I2C_Read... [11:25:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:48]Read from MH i2c: E2 [11:25:48]MH_I2C_Read... [11:25:48]Read from MH i2c: E2 03 00 [11:25:48]MH_I2C_Read... [11:25:48]Read from MH i2c: E2 03 00 3E 55 00 90 00 07 [11:25:48]RAPDU: 90 00 [11:25:48]wFMCommunicate OK [11:25:48]wFMCommunicate request_size=4 [11:25:48]MH_SAM_APDU [11:25:48]CAPDU: 80 0D 03 02 [11:25:48]Write to MH i2c: E2 08 00 3F 55 80 0D 03 02 00 00 00 00 0F [11:25:48]Write i2c OK [11:25:48]MH_I2C_Read... [11:25:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:48]Read from MH i2c: E2 [11:25:48]MH_I2C_Read... [11:25:48]Read from MH i2c: E2 0B 00 [11:25:48]MH_I2C_Read... [11:25:48]Read from MH i2c: E2 0B 00 3F 55 00 D8 85 FE D2 25 2A A8 A2 90 00 D6 [11:25:48]RAPDU: D8 85 FE D2 25 2A A8 A2 90 00 [11:25:48]wFMCommunicate OK [11:25:48]SAM_PROTO_SignData done [11:25:48]FM_MakeSignedData done [11:25:48]CreateOFDProtocolMessage [11:25:48]wFMCommunicate request_size=4 [11:25:48]MH_SAM_APDU [11:25:48]CAPDU: 80 11 00 00 [11:25:48]Write to MH i2c: E2 08 00 40 55 80 11 00 00 00 00 00 00 0F [11:25:48]Write i2c OK [11:25:48]MH_I2C_Read... [11:25:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:48]Read from MH i2c: E2 [11:25:48]MH_I2C_Read... [11:25:48]Read from MH i2c: E2 17 00 [11:25:48]MH_I2C_Read... [11:25:48]Read from MH i2c: E2 17 00 40 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 61 [11:25:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:25:48]wFMCommunicate OK [11:25:48]CreateOFDProtocolMessage done [11:25:48]OFDSenderStorePacket 111613 [11:25:48]StoreOFDPacket docnum=111613 [11:25:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 24 13 04 01 7D 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 DB 11 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FD B3 01 00 35 04 06 00 68 B5 03 EB 67 DF D8 85 FE D2 25 2A A8 A2 [11:25:48]CheckFolder [11:25:48]dirname=/storage/ofd_packets [11:25:48]CheckFolder done [11:25:48]ProducePacketName [11:25:48]name=ofd_packets/00111613 [11:25:48]NVStorageSaveData ofd_packets/00111613 [11:25:48]File name is /storage/ofd_packets/00111613 [11:25:48]Write 298 bytes [11:25:48]NVStorageSaveData done [11:25:48]OFDSenderStorePacket done [11:25:48]KKMCreateOFDPacket done [11:25:48]NVStorageSaveData kkm_last_timestamp [11:25:48]File name is /storage/kkm_last_timestamp [11:25:48]Write 4 bytes [11:25:48]NVStorageSaveData done [11:25:48]ExternCall_PrintAddStr [11:25:48]wPrintStart [11:25:48]Write to MH i2c: 01 00 00 41 55 96 [11:25:48]Write i2c OK [11:25:48]MH_I2C_Read... [11:25:48]Read from MH i2c: 01 [11:25:48]MH_I2C_Read... [11:25:48]Read from MH i2c: 01 07 00 [11:25:48]MH_I2C_Read... [11:25:48]Read from MH i2c: 01 07 00 41 55 00 00 00 00 00 FF 0F AB [11:25:48]RasterBufferAndPrint [11:25:48]line Счет N : (1)320210 [11:25:48]line ИНН: 02508201610067 [11:25:48]line Контрольно-Кассовый Чек [11:25:48]line ПРОДАЖА [11:25:48]line ТРК (МРК, ГНК) : 22 [11:25:48]line Товар: 2710194210 [11:25:48]line ДТ-К-5 [11:25:48]line 6.860 * 72.90 [11:25:48]line = 500.09 [11:25:48]line НДС 12% НСП 1% [11:25:48]line > о реализуемом товаре [11:25:48]line ОКРУГЛЕНИЕ: -0.09 [11:25:48]line ИТОГО: 500.00 [11:25:48]line Внесено: 500.00 [11:25:48]line СДАЧА: 0.00 [11:25:48]line НСП 1% : 4.43 [11:25:48]line НДС 12% : 53.11 [11:25:48]line Наличными: 500.00 [11:25:48]line Безнал.: 0.00 [11:25:48]line Место: АЗС № 65 "Партнер Нефть" [11:25:48]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:25:48]line СНО: Общий режим [11:25:48]line Чек 63 20.06.2024 11:26 [11:25:48]line Смена: 389 ФФД: 1.0 [11:25:48]line ЗНМ: 0300000198 [11:25:48]line РНМ: 0000000000092771 [11:25:48]line Версия ККМ: 001 [11:25:48]line ФМ: 0000000000875083 [11:25:48]line ФД: 111613 [11:25:48]line ФПД: 115126664128479 [11:25:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T112619&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111613&fm=115126664128479&tin=02508201610067®Number=0000000000092771&sum=50000 [11:25:48]OFD Sender: Processing packet 111613 [packets to send 38, broken 37] [11:25:48]ProducePacketName [11:25:48]name=ofd_packets/00111613 [11:25:48]OFD Sender: To server: pG, [11:25:48]CommunicateWithHost lk.salyk.kg:30040 [11:25:48]ConnectInit lk.salyk.kg [11:25:48]written 0, free lines is 4095 [11:25:49]Connected sock=7 [11:25:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 24 13 04 01 7D 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 DB 11 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FD B3 01 00 35 04 06 00 68 B5 03 EB 67 DF D8 85 FE D2 25 2A A8 A2 [11:25:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 9C 3E 47 00 1D 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FD B3 01 00 F4 03 04 00 27 A9 73 66 B6 04 01 00 00 A1 53 08 54 D4 10 92 09 [11:25:49]CommunicateWithHost err = 0 [11:25:49]CheckOFDResponse [11:25:49]1017 (14) - 77093643461234 [11:25:49]1041 (16) - 0000000000875083 [11:25:49]1040 (4) - 111613 [11:25:49]1012 (4) - 20.06.2024 03:59 [11:25:49]1206 (1) - 0 [11:25:49]OFD Sender: Remove packet 111613 [11:25:49]ProducePacketName [11:25:49]name=ofd_packets/00111613 [11:25:49]NVStorageDeleteData [11:25:49]Write to MH i2c: 01 00 00 6C 55 C1 [11:25:49]Write i2c OK [11:25:49]MH_I2C_Read... [11:25:49]Read from MH i2c: 01 [11:25:49]MH_I2C_Read... [11:25:49]Read from MH i2c: 01 07 00 [11:25:49]MH_I2C_Read... [11:25:49]Read from MH i2c: 01 07 00 6C 55 00 00 00 00 00 CD 0C A1 [11:25:49]RasterBufferAndPrint [11:25:49]line [11:25:49]line [11:25:49]line [11:25:49]line [11:25:49]line [11:25:49]written 0, free lines is 3283 [11:25:49]MH_Cut [11:25:49]Write to MH i2c: D1 01 00 73 55 01 9A [11:25:49]Write i2c OK [11:25:49]MH_I2C_Read... [11:25:49]Read from MH i2c: D1 [11:25:49]MH_I2C_Read... [11:25:49]Read from MH i2c: D1 01 00 [11:25:49]MH_I2C_Read... [11:25:49]Read from MH i2c: D1 01 00 73 55 00 99 [11:25:49]Write to MH i2c: 01 00 00 74 55 C9 [11:25:49]Write i2c OK [11:25:49]MH_I2C_Read... [11:25:49]OFD Sender: No OFD packet to send [11:25:50]*** Cut start [11:25:50]*** Partial cut [11:25:50]*** CUTSNS_PIN = 1 [11:25:50]*** CUTSNS_PIN = 0 [11:25:50]*** Brake cut motor [11:25:50]Read from MH i2c: 01 [11:25:50]MH_I2C_Read... [11:25:50]*** Stop cut motor [11:25:50]*** Cut end [11:25:50]Read from MH i2c: 01 07 00 [11:25:50]MH_I2C_Read... [11:25:50]Read from MH i2c: 01 07 00 74 55 00 00 00 00 00 FF 0F DE [11:25:50]process_action close_receipt done [11:25:50]requested_data is exist [11:25:50]produce_requested_data [11:25:50]requested_item fm.sn is exist - process it [11:25:50]wFMCommunicate request_size=4 [11:25:50]MH_SAM_APDU [11:25:50]CAPDU: 80 11 00 00 [11:25:50]Write to MH i2c: E2 08 00 75 55 80 11 00 00 00 00 00 00 44 [11:25:50]Write i2c OK [11:25:50]MH_I2C_Read... [11:25:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:50]Read from MH i2c: E2 [11:25:50]MH_I2C_Read... [11:25:50]Read from MH i2c: E2 17 00 [11:25:50]MH_I2C_Read... [11:25:50]Read from MH i2c: E2 17 00 75 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 96 [11:25:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:25:50]wFMCommunicate OK [11:25:50]requested_item fd.num is exist - process it [11:25:50]SAM_PROTO_GetFieldsCounters [11:25:50]wFMCommunicate request_size=4 [11:25:50]MH_SAM_APDU [11:25:50]CAPDU: 80 13 00 00 [11:25:50]Write to MH i2c: E2 08 00 76 55 80 13 00 00 00 00 00 00 47 [11:25:50]Write i2c OK [11:25:50]MH_I2C_Read... [11:25:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:50]Read from MH i2c: E2 [11:25:50]MH_I2C_Read... [11:25:50]Read from MH i2c: E2 62 00 [11:25:50]MH_I2C_Read... [11:25:50]Read from MH i2c: E2 62 00 76 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FD B3 01 00 0E 04 04 00 85 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 5C [11:25:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FD B3 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:25:50]wFMCommunicate OK [11:25:50]SAM_PROTO_GetFieldsCounters done [11:25:50]requested_item shift.num is exist - process it [11:25:50]requested_item shift.opened is exist - process it [11:25:50]req_shift_opened [11:25:50]FM_GetShiftState [11:25:50]SAM_PROTO_GetShiftState [11:25:50]wFMCommunicate request_size=4 [11:25:50]MH_SAM_APDU [11:25:50]CAPDU: 80 13 01 00 [11:25:50]Write to MH i2c: E2 08 00 77 55 80 13 01 00 00 00 00 00 49 [11:25:50]Write i2c OK [11:25:50]MH_I2C_Read... [11:25:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:51]Read from MH i2c: E2 [11:25:51]MH_I2C_Read... [11:25:51]Read from MH i2c: E2 0E 00 [11:25:51]MH_I2C_Read... [11:25:51]Read from MH i2c: E2 0E 00 77 55 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 C4 [11:25:51]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:25:51]wFMCommunicate OK [11:25:51]SAM_PROTO_GetShiftState done [11:25:51]FM_GetShiftState done [11:25:51]req_shift_opened done [11:25:51]requested_item shift.open_date is exist - process it [11:25:51]req_shift_open_date [11:25:51]req_shift_open_date done [11:25:51]produce_requested_data done [11:25:51]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111613,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [11:25:51]process_action_free close_receipt [11:25:51]json_value_free [11:25:51]json_value_free done [11:25:51]process_json_proto returns [11:25:51]Send response to host [11:25:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111613,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [11:25:51]free response buf [11:25:51]execute_script done [11:25:51]execute_script returns [11:25:51]free content buf [11:25:51]Sock 9.Close socket [11:25:51]Sock 9.Thread stoped [11:25:54]OFD Sender: No OFD packet to send [11:25:59]OFD Sender: No OFD packet to send [11:26:04]OFD Sender: No OFD packet to send [11:26:09]OFD Sender: No OFD packet to send [11:26:14]OFD Sender: No OFD packet to send [11:26:19]OFD Sender: No OFD packet to send [11:26:24]OFD Sender: No OFD packet to send [11:26:26]accept exits with 10 [11:26:26]New connection [11:26:26]New thread 3067465060 created [11:26:26]Thread 3067321700 joined [11:26:26]Waiting for new connection... [11:26:26] Sock 10.Parse request [11:26:26]Sock 10.Check first char [11:26:26]Sock 10.First char is OK [11:26:26]request: POST /json_proto HTTP/1.0 [11:26:26]Method: POST [11:26:26]URL: /json_proto [11:26:26]Method is POST - this is cgi request [11:26:26]url: /json_proto [11:26:26]query_string will be loaded in cgi processing [11:26:26]execute_cgi json_proto POST (null) [11:26:26]execute_cgi path=json_proto method=POST [11:26:26]POST find Content-Length [11:26:26]Host: 172.17.59.68:8080 [11:26:26]Content-Length: 678 [11:26:26]Content-Type: application/json [11:26:26] [11:26:26]POST finish read [11:26:26]Found Content-Length = 678 [11:26:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 10.020, "sum" : 740.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 740.00, "total" : 740.00, "payments": [ { "type": 0, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:26]execute_script... [11:26: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)320211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 10.020, "sum" : 740.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 740.00, "total" : 740.00, "payments": [ { "type": 0, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:26]POST & json_proto [11:26:26]process_json_proto [11:26:26]json parsed OK: [11:26:26]protocol is kg_v1.0 [11:26:26]action value=close_receipt [11:26:26]process_action close_receipt [11:26:26]cmd_close_receipt [11:26:26]MH_GetDate [11:26:26]Write to MH i2c: F0 00 00 78 55 BC [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: F0 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: F0 09 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: F0 09 00 78 55 00 02 12 74 66 BC EC 60 65 20 [11:26:26]GetLastDocTimeStamp 1718882779 [11:26:26]current date 1718882818 [11:26:26]FM_GetShiftState [11:26:26]SAM_PROTO_GetShiftState [11:26:26]wFMCommunicate request_size=4 [11:26:26]MH_SAM_APDU [11:26:26]CAPDU: 80 13 01 00 [11:26:26]Write to MH i2c: E2 08 00 79 55 80 13 01 00 00 00 00 00 4B [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:26]Read from MH i2c: E2 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 0E 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 0E 00 79 55 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 C6 [11:26:26]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:26:26]wFMCommunicate OK [11:26:26]SAM_PROTO_GetShiftState done [11:26:26]FM_GetShiftState done [11:26:26]opened in 1718847247 [11:26:26]opened+sec_in_day 1718933647 [11:26:26]quantity*price = 74047 [11:26:26]sum+1 = 74049 [11:26:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 740.00 Внесено: 740.00 СДАЧА: 0.00 НСП 1% : 6.55 НДС 12% : 78.63 Наличными: 740.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 64 20.06.2024 11:26 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111614 ФПД: 153344878146751 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T112658&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111614&fm=153344878146751&tin=02508201610067®Number=0000000000092771&sum=74000 [11:26:27]StoreToDocumentArchive [11:26:27]shift 389 fd 111614 [11:26:27]save to /storage/0389/doc_00111614 [11:26:27]save last doc name /storage/0389/doc_00111614 to /storage/kkm_last_doc_name [11:26:27]save OK [11:26:27]Clear old archive folders... [11:26:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:26:27]tlvbuf is 0101D2C0 [11:26:27]SAM_PROTO_ClearQueue [11:26:27]wFMCommunicate request_size=4 [11:26:27]MH_SAM_APDU [11:26:27]CAPDU: 80 09 00 00 [11:26:27]Write to MH i2c: E2 08 00 86 55 80 09 00 00 00 00 00 00 4D [11:26:27]Write i2c OK [11:26:27]MH_I2C_Read... [11:26:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:27]Read from MH i2c: E2 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: E2 03 00 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: E2 03 00 86 55 00 90 00 4F [11:26:27]RAPDU: 90 00 [11:26:27]wFMCommunicate OK [11:26:27]SAM_PROTO_ClearQueue done [11:26:27]KKMCreateOFDPacket [11:26:27]OFDProtocolAddRootSTLVToBuf [11:26:27]FM_MakeSignedData [11:26:27]FM_MakeSignedData [11:26:27]SAM_PROTO_SignData [11:26:27]wFMCommunicate request_size=4 [11:26:27]MH_SAM_APDU [11:26:27]CAPDU: 80 0D 01 02 [11:26:27]Write to MH i2c: E2 08 00 87 55 80 0D 01 02 00 00 00 00 55 [11:26:27]Write i2c OK [11:26:27]MH_I2C_Read... [11:26:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:27]Read from MH i2c: E2 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: E2 03 00 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: E2 03 00 87 55 00 90 00 50 [11:26:27]RAPDU: 90 00 [11:26:27]wFMCommunicate OK [11:26:27]wFMCommunicate request_size=255 [11:26:27]MH_SAM_APDU [11:26:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 40 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 02 12 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FE B3 01 00 35 04 06 00 8B [11:26:27]Write to MH i2c: E2 02 01 88 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 40 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 02 12 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FE B3 01 00 35 04 06 00 8B 00 00 C5 [11:26:27]Write i2c OK [11:26:27]MH_I2C_Read... [11:26:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:27]Read from MH i2c: E2 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: E2 03 00 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: E2 03 00 88 55 00 90 00 51 [11:26:27]RAPDU: 90 00 [11:26:27]wFMCommunicate OK [11:26:27]wFMCommunicate request_size=10 [11:26:27]MH_SAM_APDU [11:26:27]CAPDU: 80 0D 02 02 05 77 62 FD 74 BF [11:26:27]Write to MH i2c: E2 0D 00 89 55 80 0D 02 02 05 00 77 62 FD 74 BF 00 00 6B [11:26:27]Write i2c OK [11:26:27]MH_I2C_Read... [11:26:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:27]Read from MH i2c: E2 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: E2 03 00 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: E2 03 00 89 55 00 90 00 52 [11:26:27]RAPDU: 90 00 [11:26:27]wFMCommunicate OK [11:26:27]wFMCommunicate request_size=4 [11:26:27]MH_SAM_APDU [11:26:27]CAPDU: 80 0D 03 02 [11:26:27]Write to MH i2c: E2 08 00 8A 55 80 0D 03 02 00 00 00 00 5A [11:26:27]Write i2c OK [11:26:27]MH_I2C_Read... [11:26:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:27]Read from MH i2c: E2 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: E2 0B 00 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: E2 0B 00 8A 55 00 89 C1 D7 DD ED A2 10 0E 90 00 06 [11:26:27]RAPDU: 89 C1 D7 DD ED A2 10 0E 90 00 [11:26:27]wFMCommunicate OK [11:26:27]SAM_PROTO_SignData done [11:26:27]FM_MakeSignedData done [11:26:27]CreateOFDProtocolMessage [11:26:27]wFMCommunicate request_size=4 [11:26:27]MH_SAM_APDU [11:26:27]CAPDU: 80 11 00 00 [11:26:27]Write to MH i2c: E2 08 00 8B 55 80 11 00 00 00 00 00 00 5A [11:26:27]Write i2c OK [11:26:27]MH_I2C_Read... [11:26:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:27]Read from MH i2c: E2 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: E2 17 00 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: E2 17 00 8B 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AC [11:26:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:26:27]wFMCommunicate OK [11:26:27]CreateOFDProtocolMessage done [11:26:27]OFDSenderStorePacket 111614 [11:26:27]StoreOFDPacket docnum=111614 [11:26:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 71 C8 07 01 F6 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 24 27 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 40 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 02 12 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FE B3 01 00 35 04 06 00 8B 77 62 FD 74 BF 89 C1 D7 DD ED A2 10 0E [11:26:27]CheckFolder [11:26:27]dirname=/storage/ofd_packets [11:26:27]CheckFolder done [11:26:27]ProducePacketName [11:26:27]name=ofd_packets/00111614 [11:26:27]NVStorageSaveData ofd_packets/00111614 [11:26:27]File name is /storage/ofd_packets/00111614 [11:26:27]Write 301 bytes [11:26:27]NVStorageSaveData done [11:26:27]OFDSenderStorePacket done [11:26:27]KKMCreateOFDPacket done [11:26:27]NVStorageSaveData kkm_last_timestamp [11:26:27]File name is /storage/kkm_last_timestamp [11:26:27]Write 4 bytes [11:26:27]NVStorageSaveData done [11:26:27]ExternCall_PrintAddStr [11:26:27]wPrintStart [11:26:27]Write to MH i2c: 01 00 00 8C 55 E1 [11:26:27]Write i2c OK [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: 01 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: 01 07 00 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: 01 07 00 8C 55 00 00 00 00 00 FF 0F F6 [11:26:27]RasterBufferAndPrint [11:26:27]line Счет N : (1)320211 [11:26:27]line ИНН: 02508201610067 [11:26:27]line Контрольно-Кассовый Чек [11:26:27]line ПРОДАЖА [11:26:27]line ТРК (МРК, ГНК) : 12 [11:26:27]line Товар: 2710124500 [11:26:27]line Аи-95-К-5 [11:26:27]line 10.020 * 73.90 [11:26:27]line = 740.48 [11:26:27]line НДС 12% НСП 1% [11:26:27]line > о реализуемом товаре [11:26:27]line ОКРУГЛЕНИЕ: -0.48 [11:26:27]line ИТОГО: 740.00 [11:26:27]line Внесено: 740.00 [11:26:27]line СДАЧА: 0.00 [11:26:27]line НСП 1% : 6.55 [11:26:27]line НДС 12% : 78.63 [11:26:27]line Наличными: 740.00 [11:26:27]line Безнал.: 0.00 [11:26:27]line Место: АЗС № 65 "Партнер Нефть" [11:26:27]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:26:27]line СНО: Общий режим [11:26:27]line Чек 64 20.06.2024 11:26 [11:26:27]line Смена: 389 ФФД: 1.0 [11:26:27]line ЗНМ: 0300000198 [11:26:27]line РНМ: 0000000000092771 [11:26:27]line Версия ККМ: 001 [11:26:27]line ФМ: 0000000000875083 [11:26:27]line ФД: 111614 [11:26:27]line ФПД: 153344878146751 [11:26:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T112658&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111614&fm=153344878146751&tin=02508201610067®Number=0000000000092771&sum=74000 [11:26:28]OFD Sender: Processing packet 111614 [packets to send 38, broken 37] [11:26:28]ProducePacketName [11:26:28]name=ofd_packets/00111614 [11:26:28]OFD Sender: To server: pG, [11:26:28]CommunicateWithHost lk.salyk.kg:30040 [11:26:28]ConnectInit lk.salyk.kg [11:26:28]written 0, free lines is 4095 [11:26:28]Connected sock=9 [11:26:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 71 C8 07 01 F6 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 24 27 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 40 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 02 12 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FE B3 01 00 35 04 06 00 8B 77 62 FD 74 BF 89 C1 D7 DD ED A2 10 0E [11:26:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 35 85 47 00 69 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FE B3 01 00 F4 03 04 00 4E A9 73 66 B6 04 01 00 00 53 C6 CA 9D 47 76 EC 32 [11:26:28]CommunicateWithHost err = 0 [11:26:28]CheckOFDResponse [11:26:28]1017 (14) - 77093643461234 [11:26:28]1041 (16) - 0000000000875083 [11:26:28]1040 (4) - 111614 [11:26:28]1012 (4) - 20.06.2024 04:00 [11:26:28]1206 (1) - 0 [11:26:28]OFD Sender: Remove packet 111614 [11:26:28]ProducePacketName [11:26:28]name=ofd_packets/00111614 [11:26:28]NVStorageDeleteData [11:26:28]Write to MH i2c: 01 00 00 B7 55 0C [11:26:28]Write i2c OK [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: 01 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: 01 07 00 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: 01 07 00 B7 55 00 00 00 00 00 CD 0C EC [11:26:28]RasterBufferAndPrint [11:26:28]line [11:26:28]line [11:26:28]line [11:26:28]line [11:26:28]line [11:26:28]written 0, free lines is 3284 [11:26:28]MH_Cut [11:26:28]Write to MH i2c: D1 01 00 BE 55 01 E5 [11:26:28]Write i2c OK [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: D1 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: D1 01 00 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: D1 01 00 BE 55 00 E4 [11:26:28]Write to MH i2c: 01 00 00 BF 55 14 [11:26:28]Write i2c OK [11:26:28]MH_I2C_Read... [11:26:29]OFD Sender: No OFD packet to send [11:26:29]*** Cut start [11:26:29]*** Partial cut [11:26:29]*** CUTSNS_PIN = 1 [11:26:29]*** CUTSNS_PIN = 0 [11:26:29]*** Brake cut motor [11:26:30]Read from MH i2c: 01 [11:26:30]MH_I2C_Read... [11:26:30]*** Stop cut motor [11:26:30]*** Cut end [11:26:30]Read from MH i2c: 01 07 00 [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: 01 07 00 BF 55 00 00 00 00 00 FF 0F 29 [11:26:30]process_action close_receipt done [11:26:30]requested_data is exist [11:26:30]produce_requested_data [11:26:30]requested_item fm.sn is exist - process it [11:26:30]wFMCommunicate request_size=4 [11:26:30]MH_SAM_APDU [11:26:30]CAPDU: 80 11 00 00 [11:26:30]Write to MH i2c: E2 08 00 C0 55 80 11 00 00 00 00 00 00 8F [11:26:30]Write i2c OK [11:26:30]MH_I2C_Read... [11:26:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:30]Read from MH i2c: E2 [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: E2 17 00 [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: E2 17 00 C0 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E1 [11:26:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:26:30]wFMCommunicate OK [11:26:30]requested_item fd.num is exist - process it [11:26:30]SAM_PROTO_GetFieldsCounters [11:26:30]wFMCommunicate request_size=4 [11:26:30]MH_SAM_APDU [11:26:30]CAPDU: 80 13 00 00 [11:26:30]Write to MH i2c: E2 08 00 C1 55 80 13 00 00 00 00 00 00 92 [11:26:30]Write i2c OK [11:26:30]MH_I2C_Read... [11:26:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:30]Read from MH i2c: E2 [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: E2 62 00 [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: E2 62 00 C1 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FE B3 01 00 0E 04 04 00 85 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 AB [11:26:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FE B3 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:26:30]wFMCommunicate OK [11:26:30]SAM_PROTO_GetFieldsCounters done [11:26:30]requested_item shift.num is exist - process it [11:26:30]requested_item shift.opened is exist - process it [11:26:30]req_shift_opened [11:26:30]FM_GetShiftState [11:26:30]SAM_PROTO_GetShiftState [11:26:30]wFMCommunicate request_size=4 [11:26:30]MH_SAM_APDU [11:26:30]CAPDU: 80 13 01 00 [11:26:30]Write to MH i2c: E2 08 00 C2 55 80 13 01 00 00 00 00 00 94 [11:26:30]Write i2c OK [11:26:30]MH_I2C_Read... [11:26:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:30]Read from MH i2c: E2 [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: E2 0E 00 [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: E2 0E 00 C2 55 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 0F [11:26:30]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:26:30]wFMCommunicate OK [11:26:30]SAM_PROTO_GetShiftState done [11:26:30]FM_GetShiftState done [11:26:30]req_shift_opened done [11:26:30]requested_item shift.open_date is exist - process it [11:26:30]req_shift_open_date [11:26:30]req_shift_open_date done [11:26:30]produce_requested_data done [11:26:30]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111614,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [11:26:30]process_action_free close_receipt [11:26:30]json_value_free [11:26:30]json_value_free done [11:26:30]process_json_proto returns [11:26:30]Send response to host [11:26:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111614,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [11:26:30]free response buf [11:26:30]execute_script done [11:26:30]execute_script returns [11:26:30]free content buf [11:26:30]Sock 10.Close socket [11:26:30]Sock 10.Thread stoped [11:26:34]OFD Sender: No OFD packet to send [11:26:39]OFD Sender: No OFD packet to send [11:26:44]OFD Sender: No OFD packet to send [11:26:49]OFD Sender: No OFD packet to send [11:26:54]OFD Sender: No OFD packet to send [11:26:59]OFD Sender: No OFD packet to send [11:27:04]OFD Sender: No OFD packet to send [11:27:09]OFD Sender: No OFD packet to send [11:27:14]OFD Sender: No OFD packet to send [11:27:19]OFD Sender: No OFD packet to send [11:27:24]OFD Sender: No OFD packet to send [11:27:29]OFD Sender: No OFD packet to send [11:27:34]OFD Sender: No OFD packet to send [11:27:39]OFD Sender: No OFD packet to send [11:27:44]OFD Sender: No OFD packet to send [11:27:49]OFD Sender: No OFD packet to send [11:27:50]accept exits with 7 [11:27:50]New connection [11:27:50]New thread 3067321700 created [11:27:50]Thread 3067465060 joined [11:27:50]Waiting for new connection... [11:27:50] Sock 7.Parse request [11:27:50]Sock 7.Check first char [11:27:50]Sock 7.First char is OK [11:27:50]request: POST /json_proto HTTP/1.0 [11:27:50]Method: POST [11:27:50]URL: /json_proto [11:27:50]Method is POST - this is cgi request [11:27:50]url: /json_proto [11:27:50]query_string will be loaded in cgi processing [11:27:50]execute_cgi json_proto POST (null) [11:27:50]execute_cgi path=json_proto method=POST [11:27:50]POST find Content-Length [11:27:50]Host: 172.17.59.68:8080 [11:27:50]Content-Length: 677 [11:27:50]Content-Type: application/json [11:27:50] [11:27:50]POST finish read [11:27:50]Found Content-Length = 677 [11:27:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:50]execute_script... [11:27: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)320212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:50]POST & json_proto [11:27:50]process_json_proto [11:27:50]json parsed OK: [11:27:50]protocol is kg_v1.0 [11:27:50]action value=close_receipt [11:27:50]process_action close_receipt [11:27:50]cmd_close_receipt [11:27:50]MH_GetDate [11:27:50]Write to MH i2c: F0 00 00 C3 55 07 [11:27:50]Write i2c OK [11:27:50]MH_I2C_Read... [11:27:50]Read from MH i2c: F0 [11:27:50]MH_I2C_Read... [11:27:50]Read from MH i2c: F0 09 00 [11:27:50]MH_I2C_Read... [11:27:50]Read from MH i2c: F0 09 00 C3 55 00 57 12 74 66 BC EC 60 65 C0 [11:27:50]GetLastDocTimeStamp 1718882818 [11:27:50]current date 1718882903 [11:27:50]FM_GetShiftState [11:27:50]SAM_PROTO_GetShiftState [11:27:50]wFMCommunicate request_size=4 [11:27:50]MH_SAM_APDU [11:27:50]CAPDU: 80 13 01 00 [11:27:50]Write to MH i2c: E2 08 00 C4 55 80 13 01 00 00 00 00 00 96 [11:27:50]Write i2c OK [11:27:50]MH_I2C_Read... [11:27:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:50]Read from MH i2c: E2 [11:27:50]MH_I2C_Read... [11:27:50]Read from MH i2c: E2 0E 00 [11:27:50]MH_I2C_Read... [11:27:50]Read from MH i2c: E2 0E 00 C4 55 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 11 [11:27:50]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:27:50]wFMCommunicate OK [11:27:50]SAM_PROTO_GetShiftState done [11:27:50]FM_GetShiftState done [11:27:50]opened in 1718847247 [11:27:50]opened+sec_in_day 1718933647 [11:27:50]quantity*price = 40039 [11:27:50]sum+1 = 40040 [11:27:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 65 20.06.2024 11:28 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111615 ФПД: 162266655129826 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T112823&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111615&fm=162266655129826&tin=02508201610067®Number=0000000000092771&sum=40000 [11:27:51]StoreToDocumentArchive [11:27:51]shift 389 fd 111615 [11:27:51]save to /storage/0389/doc_00111615 [11:27:51]save last doc name /storage/0389/doc_00111615 to /storage/kkm_last_doc_name [11:27:51]save OK [11:27:51]Clear old archive folders... [11:27:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:27:51]tlvbuf is 00F07DD0 [11:27:51]SAM_PROTO_ClearQueue [11:27:51]wFMCommunicate request_size=4 [11:27:51]MH_SAM_APDU [11:27:51]CAPDU: 80 09 00 00 [11:27:51]Write to MH i2c: E2 08 00 D1 55 80 09 00 00 00 00 00 00 98 [11:27:51]Write i2c OK [11:27:51]MH_I2C_Read... [11:27:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:52]Read from MH i2c: E2 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: E2 03 00 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: E2 03 00 D1 55 00 90 00 9A [11:27:52]RAPDU: 90 00 [11:27:52]wFMCommunicate OK [11:27:52]SAM_PROTO_ClearQueue done [11:27:52]KKMCreateOFDPacket [11:27:52]OFDProtocolAddRootSTLVToBuf [11:27:52]FM_MakeSignedData [11:27:52]FM_MakeSignedData [11:27:52]SAM_PROTO_SignData [11:27:52]wFMCommunicate request_size=4 [11:27:52]MH_SAM_APDU [11:27:52]CAPDU: 80 0D 01 02 [11:27:52]Write to MH i2c: E2 08 00 D2 55 80 0D 01 02 00 00 00 00 A0 [11:27:52]Write i2c OK [11:27:52]MH_I2C_Read... [11:27:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:52]Read from MH i2c: E2 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: E2 03 00 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: E2 03 00 D2 55 00 90 00 9B [11:27:52]RAPDU: 90 00 [11:27:52]wFMCommunicate OK [11:27:52]wFMCommunicate request_size=255 [11:27:52]MH_SAM_APDU [11:27: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 57 12 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FF B3 01 00 35 04 06 00 93 [11:27:52]Write to MH i2c: E2 02 01 D3 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 57 12 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FF B3 01 00 35 04 06 00 93 00 00 72 [11:27:52]Write i2c OK [11:27:52]MH_I2C_Read... [11:27:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:52]Read from MH i2c: E2 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: E2 03 00 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: E2 03 00 D3 55 00 90 00 9C [11:27:52]RAPDU: 90 00 [11:27:52]wFMCommunicate OK [11:27:52]wFMCommunicate request_size=10 [11:27:52]MH_SAM_APDU [11:27:52]CAPDU: 80 0D 02 02 05 94 A6 56 80 E2 [11:27:52]Write to MH i2c: E2 0D 00 D4 55 80 0D 02 02 05 00 94 A6 56 80 E2 00 00 9F [11:27:52]Write i2c OK [11:27:52]MH_I2C_Read... [11:27:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:52]Read from MH i2c: E2 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: E2 03 00 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: E2 03 00 D4 55 00 90 00 9D [11:27:52]RAPDU: 90 00 [11:27:52]wFMCommunicate OK [11:27:52]wFMCommunicate request_size=4 [11:27:52]MH_SAM_APDU [11:27:52]CAPDU: 80 0D 03 02 [11:27:52]Write to MH i2c: E2 08 00 D5 55 80 0D 03 02 00 00 00 00 A5 [11:27:52]Write i2c OK [11:27:52]MH_I2C_Read... [11:27:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:52]Read from MH i2c: E2 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: E2 0B 00 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: E2 0B 00 D5 55 00 1B 27 3B 7D DA 89 FA B0 90 00 AD [11:27:52]RAPDU: 1B 27 3B 7D DA 89 FA B0 90 00 [11:27:52]wFMCommunicate OK [11:27:52]SAM_PROTO_SignData done [11:27:52]FM_MakeSignedData done [11:27:52]CreateOFDProtocolMessage [11:27:52]wFMCommunicate request_size=4 [11:27:52]MH_SAM_APDU [11:27:52]CAPDU: 80 11 00 00 [11:27:52]Write to MH i2c: E2 08 00 D6 55 80 11 00 00 00 00 00 00 A5 [11:27:52]Write i2c OK [11:27:52]MH_I2C_Read... [11:27:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:52]Read from MH i2c: E2 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: E2 17 00 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: E2 17 00 D6 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F7 [11:27:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:27:52]wFMCommunicate OK [11:27:52]CreateOFDProtocolMessage done [11:27:52]OFDSenderStorePacket 111615 [11:27:52]StoreOFDPacket docnum=111615 [11:27:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CC DC 07 01 80 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 57 12 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FF B3 01 00 35 04 06 00 93 94 A6 56 80 E2 1B 27 3B 7D DA 89 FA B0 [11:27:52]CheckFolder [11:27:52]dirname=/storage/ofd_packets [11:27:52]CheckFolder done [11:27:52]ProducePacketName [11:27:52]name=ofd_packets/00111615 [11:27:52]NVStorageSaveData ofd_packets/00111615 [11:27:52]File name is /storage/ofd_packets/00111615 [11:27:52]Write 301 bytes [11:27:52]NVStorageSaveData done [11:27:52]OFDSenderStorePacket done [11:27:52]KKMCreateOFDPacket done [11:27:52]NVStorageSaveData kkm_last_timestamp [11:27:52]File name is /storage/kkm_last_timestamp [11:27:52]Write 4 bytes [11:27:52]NVStorageSaveData done [11:27:52]ExternCall_PrintAddStr [11:27:52]wPrintStart [11:27:52]Write to MH i2c: 01 00 00 D7 55 2C [11:27:52]Write i2c OK [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: 01 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: 01 07 00 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: 01 07 00 D7 55 00 00 00 00 00 FF 0F 41 [11:27:52]RasterBufferAndPrint [11:27:52]line Счет N : (1)320212 [11:27:52]line ИНН: 02508201610067 [11:27:52]line Контрольно-Кассовый Чек [11:27:52]line ПРОДАЖА [11:27:52]line ТРК (МРК, ГНК) : 11 [11:27:52]line Товар: 2710124130 [11:27:52]line Аи-92-К-5 [11:27:52]line 6.030 * 66.40 [11:27:52]line = 400.39 [11:27:52]line НДС 12% НСП 1% [11:27:52]line > о реализуемом товаре [11:27:52]line ОКРУГЛЕНИЕ: -0.39 [11:27:52]line ИТОГО: 400.00 [11:27:52]line Внесено: 400.00 [11:27:52]line СДАЧА: 0.00 [11:27:52]line НСП 1% : 3.54 [11:27:52]line НДС 12% : 42.52 [11:27:52]line Наличными: 400.00 [11:27:52]line Безнал.: 0.00 [11:27:52]line Место: АЗС № 65 "Партнер Нефть" [11:27:52]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:27:52]line СНО: Общий режим [11:27:52]line Чек 65 20.06.2024 11:28 [11:27:52]line Смена: 389 ФФД: 1.0 [11:27:52]line ЗНМ: 0300000198 [11:27:52]line РНМ: 0000000000092771 [11:27:52]line Версия ККМ: 001 [11:27:52]line ФМ: 0000000000875083 [11:27:52]line ФД: 111615 [11:27:52]line ФПД: 162266655129826 [11:27:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T112823&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111615&fm=162266655129826&tin=02508201610067®Number=0000000000092771&sum=40000 [11:27:52]OFD Sender: Processing packet 111615 [packets to send 38, broken 37] [11:27:52]ProducePacketName [11:27:52]name=ofd_packets/00111615 [11:27:52]OFD Sender: To server: pG, [11:27:52]CommunicateWithHost lk.salyk.kg:30040 [11:27:52]ConnectInit lk.salyk.kg [11:27:52]written 0, free lines is 4095 [11:27:52]Connected sock=10 [11:27:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CC DC 07 01 80 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 57 12 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FF B3 01 00 35 04 06 00 93 94 A6 56 80 E2 1B 27 3B 7D DA 89 FA B0 [11:27:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 31 A6 47 00 3F 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FF B3 01 00 F4 03 04 00 A3 A9 73 66 B6 04 01 00 00 39 E9 60 09 73 B4 48 2D [11:27:53]CommunicateWithHost err = 0 [11:27:53]CheckOFDResponse [11:27:53]1017 (14) - 77093643461234 [11:27:53]1041 (16) - 0000000000875083 [11:27:53]1040 (4) - 111615 [11:27:53]1012 (4) - 20.06.2024 04:01 [11:27:53]1206 (1) - 0 [11:27:53]OFD Sender: Remove packet 111615 [11:27:53]ProducePacketName [11:27:53]name=ofd_packets/00111615 [11:27:53]NVStorageDeleteData [11:27:53]Write to MH i2c: 01 00 00 02 56 58 [11:27:53]Write i2c OK [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: 01 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: 01 07 00 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: 01 07 00 02 56 00 00 00 00 00 E4 0C 4F [11:27:53]RasterBufferAndPrint [11:27:53]line [11:27:53]line [11:27:53]line [11:27:53]line [11:27:53]line [11:27:53]written 0, free lines is 3306 [11:27:53]MH_Cut [11:27:53]Write to MH i2c: D1 01 00 09 56 01 31 [11:27:53]Write i2c OK [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: D1 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: D1 01 00 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: D1 01 00 09 56 00 30 [11:27:53]Write to MH i2c: 01 00 00 0A 56 60 [11:27:53]Write i2c OK [11:27:53]MH_I2C_Read... [11:27:53]OFD Sender: No OFD packet to send [11:27:54]*** Cut start [11:27:54]*** Partial cut [11:27:54]*** CUTSNS_PIN = 1 [11:27:54]*** CUTSNS_PIN = 0 [11:27:54]*** Brake cut motor [11:27:54]Read from MH i2c: 01 [11:27:54]MH_I2C_Read... [11:27:54]*** Stop cut motor [11:27:54]*** Cut end [11:27:54]Read from MH i2c: 01 07 00 [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: 01 07 00 0A 56 00 00 00 00 00 FF 0F 75 [11:27:54]process_action close_receipt done [11:27:54]requested_data is exist [11:27:54]produce_requested_data [11:27:54]requested_item fm.sn is exist - process it [11:27:54]wFMCommunicate request_size=4 [11:27:54]MH_SAM_APDU [11:27:54]CAPDU: 80 11 00 00 [11:27:54]Write to MH i2c: E2 08 00 0B 56 80 11 00 00 00 00 00 00 DB [11:27:54]Write i2c OK [11:27:54]MH_I2C_Read... [11:27:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:54]Read from MH i2c: E2 [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: E2 17 00 [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: E2 17 00 0B 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2D [11:27:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:27:54]wFMCommunicate OK [11:27:54]requested_item fd.num is exist - process it [11:27:54]SAM_PROTO_GetFieldsCounters [11:27:54]wFMCommunicate request_size=4 [11:27:54]MH_SAM_APDU [11:27:54]CAPDU: 80 13 00 00 [11:27:54]Write to MH i2c: E2 08 00 0C 56 80 13 00 00 00 00 00 00 DE [11:27:54]Write i2c OK [11:27:54]MH_I2C_Read... [11:27:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:54]Read from MH i2c: E2 [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: E2 62 00 [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: E2 62 00 0C 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FF B3 01 00 0E 04 04 00 85 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 FB [11:27:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FF B3 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:27:54]wFMCommunicate OK [11:27:54]SAM_PROTO_GetFieldsCounters done [11:27:54]requested_item shift.num is exist - process it [11:27:54]requested_item shift.opened is exist - process it [11:27:54]req_shift_opened [11:27:54]FM_GetShiftState [11:27:54]SAM_PROTO_GetShiftState [11:27:54]wFMCommunicate request_size=4 [11:27:54]MH_SAM_APDU [11:27:54]CAPDU: 80 13 01 00 [11:27:54]Write to MH i2c: E2 08 00 0D 56 80 13 01 00 00 00 00 00 E0 [11:27:54]Write i2c OK [11:27:54]MH_I2C_Read... [11:27:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:54]Read from MH i2c: E2 [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: E2 0E 00 [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: E2 0E 00 0D 56 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 5B [11:27:54]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:27:54]wFMCommunicate OK [11:27:54]SAM_PROTO_GetShiftState done [11:27:54]FM_GetShiftState done [11:27:54]req_shift_opened done [11:27:54]requested_item shift.open_date is exist - process it [11:27:54]req_shift_open_date [11:27:54]req_shift_open_date done [11:27:54]produce_requested_data done [11:27:54]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111615,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [11:27:54]process_action_free close_receipt [11:27:54]json_value_free [11:27:54]json_value_free done [11:27:54]process_json_proto returns [11:27:54]Send response to host [11:27:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111615,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [11:27:54]free response buf [11:27:54]execute_script done [11:27:54]execute_script returns [11:27:54]free content buf [11:27:54]Sock 7.Close socket [11:27:54]Sock 7.Thread stoped [11:27:58]OFD Sender: No OFD packet to send [11:28:03]OFD Sender: No OFD packet to send [11:28:08]OFD Sender: No OFD packet to send [11:28:13]OFD Sender: No OFD packet to send [11:28:18]OFD Sender: No OFD packet to send [11:28:23]OFD Sender: No OFD packet to send [11:28:28]OFD Sender: No OFD packet to send [11:28:33]OFD Sender: No OFD packet to send [11:28:38]OFD Sender: No OFD packet to send [11:28:43]OFD Sender: No OFD packet to send [11:28:48]OFD Sender: No OFD packet to send [11:28:53]OFD Sender: No OFD packet to send [11:28:58]OFD Sender: No OFD packet to send [11:29:03]OFD Sender: No OFD packet to send [11:29:08]OFD Sender: No OFD packet to send [11:29:13]accept exits with 9 [11:29:13]New connection [11:29:13]New thread 3067465060 created [11:29:13]Thread 3067321700 joined [11:29:13]Waiting for new connection... [11:29:13] Sock 9.Parse request [11:29:13]Sock 9.Check first char [11:29:13]Sock 9.First char is OK [11:29:13]request: POST /json_proto HTTP/1.0 [11:29:13]Method: POST [11:29:13]URL: /json_proto [11:29:13]Method is POST - this is cgi request [11:29:13]url: /json_proto [11:29:13]query_string will be loaded in cgi processing [11:29:13]execute_cgi json_proto POST (null) [11:29:13]execute_cgi path=json_proto method=POST [11:29:13]POST find Content-Length [11:29:13]Host: 172.17.59.68:8080 [11:29:13]Content-Length: 682 [11:29:13]Content-Type: application/json [11:29:13] [11:29:13]POST finish read [11:29:13]Found Content-Length = 682 [11:29:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:13]execute_script... [11:29: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)320213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:13]POST & json_proto [11:29:13]process_json_proto [11:29:13]json parsed OK: [11:29:13]protocol is kg_v1.0 [11:29:13]action value=close_receipt [11:29:13]process_action close_receipt [11:29:13]cmd_close_receipt [11:29:13]MH_GetDate [11:29:13]Write to MH i2c: F0 00 00 0E 56 53 [11:29:13]Write i2c OK [11:29:13]MH_I2C_Read... [11:29:13]Read from MH i2c: F0 [11:29:13]MH_I2C_Read... [11:29:13]Read from MH i2c: F0 09 00 [11:29:13]MH_I2C_Read... [11:29:13]Read from MH i2c: F0 09 00 0E 56 00 A9 12 74 66 BC EC 60 65 5E [11:29:13]GetLastDocTimeStamp 1718882903 [11:29:13]current date 1718882985 [11:29:13]FM_GetShiftState [11:29:13]SAM_PROTO_GetShiftState [11:29:13]wFMCommunicate request_size=4 [11:29:13]MH_SAM_APDU [11:29:13]CAPDU: 80 13 01 00 [11:29:13]Write to MH i2c: E2 08 00 0F 56 80 13 01 00 00 00 00 00 E2 [11:29:13]Write i2c OK [11:29:13]MH_I2C_Read... [11:29:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:13]Read from MH i2c: E2 [11:29:13]MH_I2C_Read... [11:29:13]Read from MH i2c: E2 0E 00 [11:29:13]MH_I2C_Read... [11:29:13]Read from MH i2c: E2 0E 00 0F 56 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 5D [11:29:13]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:29:13]wFMCommunicate OK [11:29:13]SAM_PROTO_GetShiftState done [11:29:13]FM_GetShiftState done [11:29:13]opened in 1718847247 [11:29:13]opened+sec_in_day 1718933647 [11:29:13]quantity*price = 200063 [11:29:13]sum+1 = 200064 [11:29:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 66 20.06.2024 11:29 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111616 ФПД: 110267174930525 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T112945&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111616&fm=110267174930525&tin=02508201610067®Number=0000000000092771&sum=200000 [11:29:14]StoreToDocumentArchive [11:29:14]shift 389 fd 111616 [11:29:14]save to /storage/0389/doc_00111616 [11:29:14]save last doc name /storage/0389/doc_00111616 to /storage/kkm_last_doc_name [11:29:14]save OK [11:29:14]Clear old archive folders... [11:29:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:29:14]tlvbuf is 00F64040 [11:29:14]SAM_PROTO_ClearQueue [11:29:14]wFMCommunicate request_size=4 [11:29:14]MH_SAM_APDU [11:29:14]CAPDU: 80 09 00 00 [11:29:14]Write to MH i2c: E2 08 00 1C 56 80 09 00 00 00 00 00 00 E4 [11:29:14]Write i2c OK [11:29:14]MH_I2C_Read... [11:29:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:14]Read from MH i2c: E2 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: E2 03 00 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: E2 03 00 1C 56 00 90 00 E6 [11:29:14]RAPDU: 90 00 [11:29:14]wFMCommunicate OK [11:29:14]SAM_PROTO_ClearQueue done [11:29:14]KKMCreateOFDPacket [11:29:14]OFDProtocolAddRootSTLVToBuf [11:29:14]FM_MakeSignedData [11:29:14]FM_MakeSignedData [11:29:14]SAM_PROTO_SignData [11:29:14]wFMCommunicate request_size=4 [11:29:14]MH_SAM_APDU [11:29:14]CAPDU: 80 0D 01 02 [11:29:14]Write to MH i2c: E2 08 00 1D 56 80 0D 01 02 00 00 00 00 EC [11:29:14]Write i2c OK [11:29:14]MH_I2C_Read... [11:29:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:14]Read from MH i2c: E2 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: E2 03 00 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: E2 03 00 1D 56 00 90 00 E7 [11:29:14]RAPDU: 90 00 [11:29:14]wFMCommunicate OK [11:29:14]wFMCommunicate request_size=255 [11:29:14]MH_SAM_APDU [11:29: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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 A9 12 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 00 B4 01 00 35 04 06 00 64 [11:29:14]Write to MH i2c: E2 02 01 1E 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 A9 12 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 00 B4 01 00 35 04 06 00 64 00 00 0B [11:29:14]Write i2c OK [11:29:14]MH_I2C_Read... [11:29:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:14]Read from MH i2c: E2 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: E2 03 00 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: E2 03 00 1E 56 00 90 00 E8 [11:29:14]RAPDU: 90 00 [11:29:14]wFMCommunicate OK [11:29:14]wFMCommunicate request_size=10 [11:29:14]MH_SAM_APDU [11:29:14]CAPDU: 80 0D 02 02 05 49 93 CA C8 5D [11:29:14]Write to MH i2c: E2 0D 00 1F 56 80 0D 02 02 05 00 49 93 CA C8 5D 00 00 C4 [11:29:14]Write i2c OK [11:29:14]MH_I2C_Read... [11:29:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:14]Read from MH i2c: E2 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: E2 03 00 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: E2 03 00 1F 56 00 90 00 E9 [11:29:14]RAPDU: 90 00 [11:29:14]wFMCommunicate OK [11:29:14]wFMCommunicate request_size=4 [11:29:14]MH_SAM_APDU [11:29:14]CAPDU: 80 0D 03 02 [11:29:14]Write to MH i2c: E2 08 00 20 56 80 0D 03 02 00 00 00 00 F1 [11:29:14]Write i2c OK [11:29:14]MH_I2C_Read... [11:29:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:14]Read from MH i2c: E2 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: E2 0B 00 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: E2 0B 00 20 56 00 E6 9B 63 91 00 62 A7 81 90 00 F1 [11:29:14]RAPDU: E6 9B 63 91 00 62 A7 81 90 00 [11:29:14]wFMCommunicate OK [11:29:14]SAM_PROTO_SignData done [11:29:14]FM_MakeSignedData done [11:29:14]CreateOFDProtocolMessage [11:29:14]wFMCommunicate request_size=4 [11:29:14]MH_SAM_APDU [11:29:14]CAPDU: 80 11 00 00 [11:29:14]Write to MH i2c: E2 08 00 21 56 80 11 00 00 00 00 00 00 F1 [11:29:14]Write i2c OK [11:29:14]MH_I2C_Read... [11:29:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:14]Read from MH i2c: E2 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: E2 17 00 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: E2 17 00 21 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 43 [11:29:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:29:14]wFMCommunicate OK [11:29:14]CreateOFDProtocolMessage done [11:29:14]OFDSenderStorePacket 111616 [11:29:14]StoreOFDPacket docnum=111616 [11:29:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 12 40 07 01 03 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 A9 12 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 00 B4 01 00 35 04 06 00 64 49 93 CA C8 5D E6 9B 63 91 00 62 A7 81 [11:29:14]CheckFolder [11:29:14]dirname=/storage/ofd_packets [11:29:14]CheckFolder done [11:29:14]ProducePacketName [11:29:14]name=ofd_packets/00111616 [11:29:14]NVStorageSaveData ofd_packets/00111616 [11:29:14]File name is /storage/ofd_packets/00111616 [11:29:14]Write 301 bytes [11:29:14]NVStorageSaveData done [11:29:14]OFDSenderStorePacket done [11:29:14]KKMCreateOFDPacket done [11:29:14]NVStorageSaveData kkm_last_timestamp [11:29:14]File name is /storage/kkm_last_timestamp [11:29:14]Write 4 bytes [11:29:14]NVStorageSaveData done [11:29:15]ExternCall_PrintAddStr [11:29:15]wPrintStart [11:29:15]Write to MH i2c: 01 00 00 22 56 78 [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 22 56 00 00 00 00 00 FF 0F 8D [11:29:15]RasterBufferAndPrint [11:29:15]line Счет N : (1)320213 [11:29:15]line ИНН: 02508201610067 [11:29:15]line Контрольно-Кассовый Чек [11:29:15]line ПРОДАЖА [11:29:15]line ТРК (МРК, ГНК) : 11 [11:29:15]line Товар: 2710124130 [11:29:15]line Аи-92-К-5 [11:29:15]line 30.130 * 66.40 [11:29:15]line = 2000.63 [11:29:15]line НДС 12% НСП 1% [11:29:15]line > о реализуемом товаре [11:29:15]line ОКРУГЛЕНИЕ: -0.63 [11:29:15]line ИТОГО: 2000.00 [11:29:15]line Внесено: 2000.00 [11:29:15]line СДАЧА: 0.00 [11:29:15]line НСП 1% : 17.70 [11:29:15]line НДС 12% : 212.46 [11:29:15]line Наличными: 2000.00 [11:29:15]line Безнал.: 0.00 [11:29:15]line Место: АЗС № 65 "Партнер Нефть" [11:29:15]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:29:15]line СНО: Общий режим [11:29:15]line Чек 66 20.06.2024 11:29 [11:29:15]line Смена: 389 ФФД: 1.0 [11:29:15]line ЗНМ: 0300000198 [11:29:15]line РНМ: 0000000000092771 [11:29:15]line Версия ККМ: 001 [11:29:15]line ФМ: 0000000000875083 [11:29:15]line ФД: 111616 [11:29:15]line ФПД: 110267174930525 [11:29:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T112945&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111616&fm=110267174930525&tin=02508201610067®Number=0000000000092771&sum=200000 [11:29:15]OFD Sender: Processing packet 111616 [packets to send 38, broken 37] [11:29:15]ProducePacketName [11:29:15]name=ofd_packets/00111616 [11:29:15]OFD Sender: To server: pG, [11:29:15]CommunicateWithHost lk.salyk.kg:30040 [11:29:15]ConnectInit lk.salyk.kg [11:29:15]written 0, free lines is 4095 [11:29:15]Connected sock=10 [11:29:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 12 40 07 01 03 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 A9 12 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 00 B4 01 00 35 04 06 00 64 49 93 CA C8 5D E6 9B 63 91 00 62 A7 81 [11:29:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 35 F1 47 00 9C 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 00 B4 01 00 F4 03 04 00 F5 A9 73 66 B6 04 01 00 00 BD DE F8 74 2E B3 80 77 [11:29:15]CommunicateWithHost err = 0 [11:29:15]CheckOFDResponse [11:29:15]1017 (14) - 77093643461234 [11:29:15]1041 (16) - 0000000000875083 [11:29:15]1040 (4) - 111616 [11:29:15]1012 (4) - 20.06.2024 04:03 [11:29:15]1206 (1) - 0 [11:29:15]OFD Sender: Remove packet 111616 [11:29:15]ProducePacketName [11:29:15]name=ofd_packets/00111616 [11:29:15]NVStorageDeleteData [11:29:15]Write to MH i2c: 01 00 00 4D 56 A3 [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 4D 56 00 00 00 00 00 E4 0C 9A [11:29:15]RasterBufferAndPrint [11:29:15]line [11:29:15]line [11:29:15]line [11:29:15]line [11:29:15]line [11:29:15]written 0, free lines is 3306 [11:29:15]MH_Cut [11:29:15]Write to MH i2c: D1 01 00 54 56 01 7C [11:29:15]Write i2c OK [11:29:15]MH_I2C_Read... [11:29:15]Read from MH i2c: D1 [11:29:15]MH_I2C_Read... [11:29:15]Read from MH i2c: D1 01 00 [11:29:15]MH_I2C_Read... [11:29:15]Read from MH i2c: D1 01 00 54 56 00 7B [11:29:15]Write to MH i2c: 01 00 00 55 56 AB [11:29:15]Write i2c OK [11:29:15]MH_I2C_Read... [11:29:16]OFD Sender: No OFD packet to send [11:29:16]*** Cut start [11:29:16]*** Partial cut [11:29:16]*** CUTSNS_PIN = 1 [11:29:16]*** CUTSNS_PIN = 0 [11:29:16]*** 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 55 56 00 00 00 00 00 FF 0F C0 [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 56 56 80 11 00 00 00 00 00 00 26 [11:29:17]Write i2c OK [11:29:17]MH_I2C_Read... [11:29:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:17]Read from MH i2c: E2 [11:29:17]MH_I2C_Read... [11:29:17]Read from MH i2c: E2 17 00 [11:29:17]MH_I2C_Read... [11:29:17]Read from MH i2c: E2 17 00 56 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 78 [11:29:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:29:17]wFMCommunicate OK [11:29:17]requested_item fd.num is exist - process it [11:29:17]SAM_PROTO_GetFieldsCounters [11:29:17]wFMCommunicate request_size=4 [11:29:17]MH_SAM_APDU [11:29:17]CAPDU: 80 13 00 00 [11:29:17]Write to MH i2c: E2 08 00 57 56 80 13 00 00 00 00 00 00 29 [11:29:17]Write i2c OK [11:29:17]MH_I2C_Read... [11:29:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:17]Read from MH i2c: E2 [11:29:17]MH_I2C_Read... [11:29:17]Read from MH i2c: E2 62 00 [11:29:17]MH_I2C_Read... [11:29:17]Read from MH i2c: E2 62 00 57 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 00 B4 01 00 0E 04 04 00 85 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 4B [11:29:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 00 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:29:17]wFMCommunicate OK [11:29:17]SAM_PROTO_GetFieldsCounters done [11:29:17]requested_item shift.num is exist - process it [11:29:17]requested_item shift.opened is exist - process it [11:29:17]req_shift_opened [11:29:17]FM_GetShiftState [11:29:17]SAM_PROTO_GetShiftState [11:29:17]wFMCommunicate request_size=4 [11:29:17]MH_SAM_APDU [11:29:17]CAPDU: 80 13 01 00 [11:29:17]Write to MH i2c: E2 08 00 58 56 80 13 01 00 00 00 00 00 2B [11:29:17]Write i2c OK [11:29:17]MH_I2C_Read... [11:29:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:17]Read from MH i2c: E2 [11:29:17]MH_I2C_Read... [11:29:17]Read from MH i2c: E2 0E 00 [11:29:17]MH_I2C_Read... [11:29:17]Read from MH i2c: E2 0E 00 58 56 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 A6 [11:29:17]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:29:17]wFMCommunicate OK [11:29:17]SAM_PROTO_GetShiftState done [11:29:17]FM_GetShiftState done [11:29:17]req_shift_opened done [11:29:17]requested_item shift.open_date is exist - process it [11:29:17]req_shift_open_date [11:29:17]req_shift_open_date done [11:29:17]produce_requested_data done [11:29:17]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111616,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [11:29:17]process_action_free close_receipt [11:29:17]json_value_free [11:29:17]json_value_free done [11:29:17]process_json_proto returns [11:29:17]Send response to host [11:29:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111616,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [11:29:17]free response buf [11:29:17]execute_script done [11:29:17]execute_script returns [11:29:17]free content buf [11:29:17]Sock 9.Close socket [11:29:17]Sock 9.Thread stoped [11:29:21]OFD Sender: No OFD packet to send [11:29:26]OFD Sender: No OFD packet to send [11:29:31]OFD Sender: No OFD packet to send [11:29:36]OFD Sender: No OFD packet to send [11:29:41]OFD Sender: No OFD packet to send [11:29:46]OFD Sender: No OFD packet to send [11:29:51]OFD Sender: No OFD packet to send [11:29:56]OFD Sender: No OFD packet to send [11:30:01]OFD Sender: No OFD packet to send [11:30:06]OFD Sender: No OFD packet to send [11:30:11]OFD Sender: No OFD packet to send [11:30:16]OFD Sender: No OFD packet to send [11:30:21]OFD Sender: No OFD packet to send [11:30:26]OFD Sender: No OFD packet to send [11:30:31]OFD Sender: No OFD packet to send [11:30:36]OFD Sender: No OFD packet to send [11:30:41]OFD Sender: No OFD packet to send [11:30:46]OFD Sender: No OFD packet to send [11:30:51]OFD Sender: No OFD packet to send [11:30:56]OFD Sender: No OFD packet to send [11:31:01]OFD Sender: No OFD packet to send [11:31:06]OFD Sender: No OFD packet to send [11:31:11]OFD Sender: No OFD packet to send [11:31:16]OFD Sender: No OFD packet to send [11:31:21]OFD Sender: No OFD packet to send [11:31:26]OFD Sender: No OFD packet to send [11:31:31]OFD Sender: No OFD packet to send [11:31:36]OFD Sender: No OFD packet to send [11:31:41]OFD Sender: No OFD packet to send [11:31:46]OFD Sender: No OFD packet to send [11:31:51]OFD Sender: No OFD packet to send [11:31:56]OFD Sender: No OFD packet to send [11:32:01]OFD Sender: No OFD packet to send [11:32:06]OFD Sender: No OFD packet to send [11:32:11]OFD Sender: No OFD packet to send [11:32:16]OFD Sender: No OFD packet to send [11:32:21]OFD Sender: No OFD packet to send [11:32:26]OFD Sender: No OFD packet to send [11:32:31]OFD Sender: No OFD packet to send [11:32:36]OFD Sender: No OFD packet to send [11:32:41]OFD Sender: No OFD packet to send [11:32:46]OFD Sender: No OFD packet to send [11:32:51]OFD Sender: No OFD packet to send [11:32:56]OFD Sender: No OFD packet to send [11:32:59]accept exits with 7 [11:32:59]New connection [11:32:59]New thread 3067321700 created [11:32:59]Thread 3067465060 joined [11:32:59]Waiting for new connection... [11:32:59] Sock 7.Parse request [11:32:59]Sock 7.Check first char [11:32:59]Sock 7.First char is OK [11:32:59]request: POST /json_proto HTTP/1.0 [11:32:59]Method: POST [11:32:59]URL: /json_proto [11:32:59]Method is POST - this is cgi request [11:32:59]url: /json_proto [11:32:59]query_string will be loaded in cgi processing [11:32:59]execute_cgi json_proto POST (null) [11:32:59]execute_cgi path=json_proto method=POST [11:32:59]POST find Content-Length [11:32:59]Host: 172.17.59.68:8080 [11:32:59]Content-Length: 678 [11:32:59]Content-Type: application/json [11:32:59] [11:32:59]POST finish read [11:32:59]Found Content-Length = 678 [11:32:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:59]execute_script... [11:32: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)320214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:59]POST & json_proto [11:32:59]process_json_proto [11:32:59]json parsed OK: [11:32:59]protocol is kg_v1.0 [11:32:59]action value=close_receipt [11:32:59]process_action close_receipt [11:32:59]cmd_close_receipt [11:32:59]MH_GetDate [11:32:59]Write to MH i2c: F0 00 00 59 56 9E [11:32:59]Write i2c OK [11:32:59]MH_I2C_Read... [11:32:59]Read from MH i2c: F0 [11:32:59]MH_I2C_Read... [11:32:59]Read from MH i2c: F0 09 00 [11:32:59]MH_I2C_Read... [11:32:59]Read from MH i2c: F0 09 00 59 56 00 8C 13 74 66 BC EC 60 65 8D [11:32:59]GetLastDocTimeStamp 1718882985 [11:32:59]current date 1718883212 [11:32:59]FM_GetShiftState [11:32:59]SAM_PROTO_GetShiftState [11:32:59]wFMCommunicate request_size=4 [11:32:59]MH_SAM_APDU [11:32:59]CAPDU: 80 13 01 00 [11:32:59]Write to MH i2c: E2 08 00 5A 56 80 13 01 00 00 00 00 00 2D [11:32:59]Write i2c OK [11:32:59]MH_I2C_Read... [11:32:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:59]Read from MH i2c: E2 [11:32:59]MH_I2C_Read... [11:32:59]Read from MH i2c: E2 0E 00 [11:32:59]MH_I2C_Read... [11:32:59]Read from MH i2c: E2 0E 00 5A 56 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 A8 [11:32:59]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:32:59]wFMCommunicate OK [11:32:59]SAM_PROTO_GetShiftState done [11:32:59]FM_GetShiftState done [11:32:59]opened in 1718847247 [11:32:59]opened+sec_in_day 1718933647 [11:32:59]quantity*price = 70052 [11:32:59]sum+1 = 70053 [11:32:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 67 20.06.2024 11:33 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111617 ФПД: 86431037001754 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T113332&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111617&fm=86431037001754&tin=02508201610067®Number=0000000000092771&sum=70000 [11:33:00]StoreToDocumentArchive [11:33:00]shift 389 fd 111617 [11:33:00]save to /storage/0389/doc_00111617 [11:33:00]save last doc name /storage/0389/doc_00111617 to /storage/kkm_last_doc_name [11:33:00]save OK [11:33:00]Clear old archive folders... [11:33:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:33:00]tlvbuf is 01018A10 [11:33:00]SAM_PROTO_ClearQueue [11:33:00]wFMCommunicate request_size=4 [11:33:00]MH_SAM_APDU [11:33:00]CAPDU: 80 09 00 00 [11:33:00]Write to MH i2c: E2 08 00 67 56 80 09 00 00 00 00 00 00 2F [11:33:00]Write i2c OK [11:33:00]MH_I2C_Read... [11:33:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:00]Read from MH i2c: E2 [11:33:00]MH_I2C_Read... [11:33:00]Read from MH i2c: E2 03 00 [11:33:00]MH_I2C_Read... [11:33:00]Read from MH i2c: E2 03 00 67 56 00 90 00 31 [11:33:00]RAPDU: 90 00 [11:33:00]wFMCommunicate OK [11:33:00]SAM_PROTO_ClearQueue done [11:33:00]KKMCreateOFDPacket [11:33:00]OFDProtocolAddRootSTLVToBuf [11:33:00]FM_MakeSignedData [11:33:00]FM_MakeSignedData [11:33:00]SAM_PROTO_SignData [11:33:00]wFMCommunicate request_size=4 [11:33:00]MH_SAM_APDU [11:33:00]CAPDU: 80 0D 01 02 [11:33:00]Write to MH i2c: E2 08 00 68 56 80 0D 01 02 00 00 00 00 37 [11:33:00]Write i2c OK [11:33:00]MH_I2C_Read... [11:33:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:00]Read from MH i2c: E2 [11:33:00]MH_I2C_Read... [11:33:00]Read from MH i2c: E2 03 00 [11:33:00]MH_I2C_Read... [11:33:00]Read from MH i2c: E2 03 00 68 56 00 90 00 32 [11:33:00]RAPDU: 90 00 [11:33:00]wFMCommunicate OK [11:33:00]wFMCommunicate request_size=255 [11:33:00]MH_SAM_APDU [11:33: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 8C 13 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 01 B4 01 00 35 04 06 00 4E [11:33:00]Write to MH i2c: E2 02 01 69 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 8C 13 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 01 B4 01 00 35 04 06 00 4E 00 00 43 [11:33:00]Write i2c OK [11:33:00]MH_I2C_Read... [11:33:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:01]Read from MH i2c: E2 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 03 00 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 03 00 69 56 00 90 00 33 [11:33:01]RAPDU: 90 00 [11:33:01]wFMCommunicate OK [11:33:01]wFMCommunicate request_size=10 [11:33:01]MH_SAM_APDU [11:33:01]CAPDU: 80 0D 02 02 05 9B CB 42 10 1A [11:33:01]Write to MH i2c: E2 0D 00 6A 56 80 0D 02 02 05 00 9B CB 42 10 1A 00 00 16 [11:33:01]Write i2c OK [11:33:01]MH_I2C_Read... [11:33:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:01]Read from MH i2c: E2 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 03 00 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 03 00 6A 56 00 90 00 34 [11:33:01]RAPDU: 90 00 [11:33:01]wFMCommunicate OK [11:33:01]wFMCommunicate request_size=4 [11:33:01]MH_SAM_APDU [11:33:01]CAPDU: 80 0D 03 02 [11:33:01]Write to MH i2c: E2 08 00 6B 56 80 0D 03 02 00 00 00 00 3C [11:33:01]Write i2c OK [11:33:01]MH_I2C_Read... [11:33:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:01]Read from MH i2c: E2 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 0B 00 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 0B 00 6B 56 00 E0 C4 0F BB DB EB 21 DB 90 00 6D [11:33:01]RAPDU: E0 C4 0F BB DB EB 21 DB 90 00 [11:33:01]wFMCommunicate OK [11:33:01]SAM_PROTO_SignData done [11:33:01]FM_MakeSignedData done [11:33:01]CreateOFDProtocolMessage [11:33:01]wFMCommunicate request_size=4 [11:33:01]MH_SAM_APDU [11:33:01]CAPDU: 80 11 00 00 [11:33:01]Write to MH i2c: E2 08 00 6C 56 80 11 00 00 00 00 00 00 3C [11:33:01]Write i2c OK [11:33:01]MH_I2C_Read... [11:33:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:01]Read from MH i2c: E2 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 17 00 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 17 00 6C 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8E [11:33:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:33:01]wFMCommunicate OK [11:33:01]CreateOFDProtocolMessage done [11:33:01]OFDSenderStorePacket 111617 [11:33:01]StoreOFDPacket docnum=111617 [11:33:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 89 82 07 01 2E 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 8C 13 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 01 B4 01 00 35 04 06 00 4E 9B CB 42 10 1A E0 C4 0F BB DB EB 21 DB [11:33:01]CheckFolder [11:33:01]dirname=/storage/ofd_packets [11:33:01]CheckFolder done [11:33:01]ProducePacketName [11:33:01]name=ofd_packets/00111617 [11:33:01]NVStorageSaveData ofd_packets/00111617 [11:33:01]File name is /storage/ofd_packets/00111617 [11:33:01]Write 301 bytes [11:33:01]NVStorageSaveData done [11:33:01]OFDSenderStorePacket done [11:33:01]KKMCreateOFDPacket done [11:33:01]NVStorageSaveData kkm_last_timestamp [11:33:01]File name is /storage/kkm_last_timestamp [11:33:01]Write 4 bytes [11:33:01]NVStorageSaveData done [11:33:01]ExternCall_PrintAddStr [11:33:01]wPrintStart [11:33:01]Write to MH i2c: 01 00 00 6D 56 C3 [11:33:01]Write i2c OK [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: 01 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: 01 07 00 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: 01 07 00 6D 56 00 00 00 00 00 FF 0F D8 [11:33:01]RasterBufferAndPrint [11:33:01]line Счет N : (1)320214 [11:33:01]line ИНН: 02508201610067 [11:33:01]line Контрольно-Кассовый Чек [11:33:01]line ПРОДАЖА [11:33:01]line ТРК (МРК, ГНК) : 11 [11:33:01]line Товар: 2710124130 [11:33:01]line Аи-92-К-5 [11:33:01]line 10.550 * 66.40 [11:33:01]line = 700.52 [11:33:01]line НДС 12% НСП 1% [11:33:01]line > о реализуемом товаре [11:33:01]line ОКРУГЛЕНИЕ: -0.52 [11:33:01]line ИТОГО: 700.00 [11:33:01]line Внесено: 700.00 [11:33:01]line СДАЧА: 0.00 [11:33:01]line НСП 1% : 6.20 [11:33:01]line НДС 12% : 74.39 [11:33:01]line Наличными: 700.00 [11:33:01]line Безнал.: 0.00 [11:33:01]line Место: АЗС № 65 "Партнер Нефть" [11:33:01]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:33:01]line СНО: Общий режим [11:33:01]line Чек 67 20.06.2024 11:33 [11:33:01]line Смена: 389 ФФД: 1.0 [11:33:01]line ЗНМ: 0300000198 [11:33:01]line РНМ: 0000000000092771 [11:33:01]line Версия ККМ: 001 [11:33:01]line ФМ: 0000000000875083 [11:33:01]line ФД: 111617 [11:33:01]line ФПД: 86431037001754 [11:33:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T113332&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111617&fm=86431037001754&tin=02508201610067®Number=0000000000092771&sum=70000 [11:33:01]written 0, free lines is 4095 [11:33:01]OFD Sender: Processing packet 111617 [packets to send 38, broken 37] [11:33:01]ProducePacketName [11:33:01]name=ofd_packets/00111617 [11:33:01]OFD Sender: To server: pG, [11:33:01]CommunicateWithHost lk.salyk.kg:30040 [11:33:01]ConnectInit lk.salyk.kg [11:33:01]Connected sock=10 [11:33:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 89 82 07 01 2E 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 8C 13 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 01 B4 01 00 35 04 06 00 4E 9B CB 42 10 1A E0 C4 0F BB DB EB 21 DB [11:33:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 2C AF 47 00 7B FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 01 B4 01 00 F4 03 04 00 D7 AA 73 66 B6 04 01 00 00 58 81 5B 57 96 86 EE 3E [11:33:01]CommunicateWithHost err = 0 [11:33:01]CheckOFDResponse [11:33:01]1017 (14) - 77093643461234 [11:33:01]1041 (16) - 0000000000875083 [11:33:01]1040 (4) - 111617 [11:33:01]1012 (4) - 20.06.2024 04:06 [11:33:01]1206 (1) - 0 [11:33:01]OFD Sender: Remove packet 111617 [11:33:01]ProducePacketName [11:33:01]name=ofd_packets/00111617 [11:33:01]NVStorageDeleteData [11:33:01]Write to MH i2c: 01 00 00 98 56 EE [11:33:01]Write i2c OK [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: 01 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: 01 07 00 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: 01 07 00 98 56 00 00 00 00 00 D0 0C D1 [11:33:01]RasterBufferAndPrint [11:33:01]line [11:33:01]line [11:33:01]line [11:33:01]line [11:33:01]line [11:33:01]written 0, free lines is 3288 [11:33:01]MH_Cut [11:33:01]Write to MH i2c: D1 01 00 9F 56 01 C7 [11:33:01]Write i2c OK [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: D1 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: D1 01 00 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: D1 01 00 9F 56 00 C6 [11:33:01]Write to MH i2c: 01 00 00 A0 56 F6 [11:33:01]Write i2c OK [11:33:01]MH_I2C_Read... [11:33:01]OFD Sender: No OFD packet to send [11:33:02]*** Cut start [11:33:02]*** Partial cut [11:33:02]*** CUTSNS_PIN = 1 [11:33:02]*** CUTSNS_PIN = 0 [11:33:02]*** Brake cut motor [11:33:02]Read from MH i2c: 01 [11:33:02]MH_I2C_Read... [11:33:02]*** Stop cut motor [11:33:02]*** Cut end [11:33:02]Read from MH i2c: 01 07 00 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: 01 07 00 A0 56 00 00 00 00 00 FF 0F 0B [11:33:02]process_action close_receipt done [11:33:02]requested_data is exist [11:33:02]produce_requested_data [11:33:02]requested_item fm.sn is exist - process it [11:33:02]wFMCommunicate request_size=4 [11:33:02]MH_SAM_APDU [11:33:02]CAPDU: 80 11 00 00 [11:33:02]Write to MH i2c: E2 08 00 A1 56 80 11 00 00 00 00 00 00 71 [11:33:02]Write i2c OK [11:33:02]MH_I2C_Read... [11:33:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:03]Read from MH i2c: E2 [11:33:03]MH_I2C_Read... [11:33:03]Read from MH i2c: E2 17 00 [11:33:03]MH_I2C_Read... [11:33:03]Read from MH i2c: E2 17 00 A1 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C3 [11:33:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:33:03]wFMCommunicate OK [11:33:03]requested_item fd.num is exist - process it [11:33:03]SAM_PROTO_GetFieldsCounters [11:33:03]wFMCommunicate request_size=4 [11:33:03]MH_SAM_APDU [11:33:03]CAPDU: 80 13 00 00 [11:33:03]Write to MH i2c: E2 08 00 A2 56 80 13 00 00 00 00 00 00 74 [11:33:03]Write i2c OK [11:33:03]MH_I2C_Read... [11:33:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:03]Read from MH i2c: E2 [11:33:03]MH_I2C_Read... [11:33:03]Read from MH i2c: E2 62 00 [11:33:03]MH_I2C_Read... [11:33:03]Read from MH i2c: E2 62 00 A2 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 01 B4 01 00 0E 04 04 00 85 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 9A [11: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 01 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:33:03]wFMCommunicate OK [11:33:03]SAM_PROTO_GetFieldsCounters done [11:33:03]requested_item shift.num is exist - process it [11:33:03]requested_item shift.opened is exist - process it [11:33:03]req_shift_opened [11:33:03]FM_GetShiftState [11:33:03]SAM_PROTO_GetShiftState [11:33:03]wFMCommunicate request_size=4 [11:33:03]MH_SAM_APDU [11:33:03]CAPDU: 80 13 01 00 [11:33:03]Write to MH i2c: E2 08 00 A3 56 80 13 01 00 00 00 00 00 76 [11:33:03]Write i2c OK [11:33:03]MH_I2C_Read... [11:33:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:03]Read from MH i2c: E2 [11:33:03]MH_I2C_Read... [11:33:03]Read from MH i2c: E2 0E 00 [11:33:03]MH_I2C_Read... [11:33:03]Read from MH i2c: E2 0E 00 A3 56 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 F1 [11:33:03]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:33:03]wFMCommunicate OK [11:33:03]SAM_PROTO_GetShiftState done [11:33:03]FM_GetShiftState done [11:33:03]req_shift_opened done [11:33:03]requested_item shift.open_date is exist - process it [11:33:03]req_shift_open_date [11:33:03]req_shift_open_date done [11:33:03]produce_requested_data done [11:33:03]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111617,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [11:33:03]process_action_free close_receipt [11:33:03]json_value_free [11:33:03]json_value_free done [11:33:03]process_json_proto returns [11:33:03]Send response to host [11:33:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111617,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [11:33:03]free response buf [11:33:03]execute_script done [11:33:03]execute_script returns [11:33:03]free content buf [11:33:03]Sock 7.Close socket [11:33:03]Sock 7.Thread stoped [11:33:06]OFD Sender: No OFD packet to send [11:33:11]OFD Sender: No OFD packet to send [11:33:16]OFD Sender: No OFD packet to send [11:33:21]OFD Sender: No OFD packet to send [11:33:26]OFD Sender: No OFD packet to send [11:33:31]OFD Sender: No OFD packet to send [11:33:36]OFD Sender: No OFD packet to send [11:33:42]OFD Sender: No OFD packet to send [11:33:47]OFD Sender: No OFD packet to send [11:33:52]OFD Sender: No OFD packet to send [11:33:57]OFD Sender: No OFD packet to send [11:34:02]OFD Sender: No OFD packet to send [11:34:07]OFD Sender: No OFD packet to send [11:34:12]OFD Sender: No OFD packet to send [11:34:17]OFD Sender: No OFD packet to send [11:34:21]accept exits with 9 [11:34:21]New connection [11:34:21]New thread 3067465060 created [11:34:21]Thread 3067321700 joined [11:34:21]Waiting for new connection... [11:34:21] Sock 9.Parse request [11:34:21]Sock 9.Check first char [11:34:21]Sock 9.First char is OK [11:34:21]request: POST /json_proto HTTP/1.0 [11:34:21]Method: POST [11:34:21]URL: /json_proto [11:34:21]Method is POST - this is cgi request [11:34:21]url: /json_proto [11:34:21]query_string will be loaded in cgi processing [11:34:21]execute_cgi json_proto POST (null) [11:34:21]execute_cgi path=json_proto method=POST [11:34:21]POST find Content-Length [11:34:21]Host: 172.17.59.68:8080 [11:34:21]Content-Length: 678 [11:34:21]Content-Type: application/json [11:34:21] [11:34:21]POST finish read [11:34:21]Found Content-Length = 678 [11:34:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:21]execute_script... [11:34: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)320215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:21]POST & json_proto [11:34:21]process_json_proto [11:34:21]json parsed OK: [11:34:21]protocol is kg_v1.0 [11:34:21]action value=close_receipt [11:34:21]process_action close_receipt [11:34:21]cmd_close_receipt [11:34:21]MH_GetDate [11:34:21]Write to MH i2c: F0 00 00 A4 56 E9 [11:34:21]Write i2c OK [11:34:21]MH_I2C_Read... [11:34:21]Read from MH i2c: F0 [11:34:21]MH_I2C_Read... [11:34:21]Read from MH i2c: F0 09 00 [11:34:21]MH_I2C_Read... [11:34:21]Read from MH i2c: F0 09 00 A4 56 00 DE 13 74 66 BC EC 60 65 2A [11:34:21]GetLastDocTimeStamp 1718883212 [11:34:21]current date 1718883294 [11:34:21]FM_GetShiftState [11:34:21]SAM_PROTO_GetShiftState [11:34:21]wFMCommunicate request_size=4 [11:34:21]MH_SAM_APDU [11:34:21]CAPDU: 80 13 01 00 [11:34:21]Write to MH i2c: E2 08 00 A5 56 80 13 01 00 00 00 00 00 78 [11:34:21]Write i2c OK [11:34:21]MH_I2C_Read... [11:34:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:21]Read from MH i2c: E2 [11:34:21]MH_I2C_Read... [11:34:21]Read from MH i2c: E2 0E 00 [11:34:21]MH_I2C_Read... [11:34:21]Read from MH i2c: E2 0E 00 A5 56 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 F3 [11:34:21]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:34:21]wFMCommunicate OK [11:34:21]SAM_PROTO_GetShiftState done [11:34:21]FM_GetShiftState done [11:34:21]opened in 1718847247 [11:34:21]opened+sec_in_day 1718933647 [11:34:21]quantity*price = 70052 [11:34:21]sum+1 = 70053 [11:34:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 68 20.06.2024 11:34 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111618 ФПД: 158026199305513 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T113454&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111618&fm=158026199305513&tin=02508201610067®Number=0000000000092771&sum=70000 [11:34:22]StoreToDocumentArchive [11:34:22]shift 389 fd 111618 [11:34:22]save to /storage/0389/doc_00111618 [11:34:22]save last doc name /storage/0389/doc_00111618 to /storage/kkm_last_doc_name [11:34:22]save OK [11:34:22]Clear old archive folders... [11:34:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:34:22]tlvbuf is 00EF4830 [11:34:22]SAM_PROTO_ClearQueue [11:34:22]wFMCommunicate request_size=4 [11:34:22]MH_SAM_APDU [11:34:22]CAPDU: 80 09 00 00 [11:34:22]Write to MH i2c: E2 08 00 B2 56 80 09 00 00 00 00 00 00 7A [11:34:22]Write i2c OK [11:34:22]MH_I2C_Read... [11:34:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:34:22]Read from MH i2c: E2 [11:34:22]MH_I2C_Read... [11:34:22]Read from MH i2c: E2 03 00 [11:34:22]MH_I2C_Read... [11:34:22]Read from MH i2c: E2 03 00 B2 56 00 90 00 7C [11:34:22]RAPDU: 90 00 [11:34:22]wFMCommunicate OK [11:34:22]SAM_PROTO_ClearQueue done [11:34:22]KKMCreateOFDPacket [11:34:22]OFDProtocolAddRootSTLVToBuf [11:34:22]FM_MakeSignedData [11:34:22]FM_MakeSignedData [11:34:22]SAM_PROTO_SignData [11:34:22]wFMCommunicate request_size=4 [11:34:22]MH_SAM_APDU [11:34:22]CAPDU: 80 0D 01 02 [11:34:22]Write to MH i2c: E2 08 00 B3 56 80 0D 01 02 00 00 00 00 82 [11:34:22]Write i2c OK [11:34:22]MH_I2C_Read... [11:34:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:34:22]Read from MH i2c: E2 [11:34:22]MH_I2C_Read... [11:34:22]Read from MH i2c: E2 03 00 [11:34:22]MH_I2C_Read... [11:34:22]Read from MH i2c: E2 03 00 B3 56 00 90 00 7D [11:34:22]RAPDU: 90 00 [11:34:22]wFMCommunicate OK [11:34:22]wFMCommunicate request_size=255 [11:34:22]MH_SAM_APDU [11:34:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 DE 13 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 02 B4 01 00 35 04 06 00 8F [11:34:22]Write to MH i2c: E2 02 01 B4 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 DE 13 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 02 B4 01 00 35 04 06 00 8F 00 00 23 [11:34:23]Write i2c OK [11:34:23]MH_I2C_Read... [11:34:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:23]Read from MH i2c: E2 [11:34:23]MH_I2C_Read... [11:34:23]Read from MH i2c: E2 03 00 [11:34:23]MH_I2C_Read... [11:34:23]Read from MH i2c: E2 03 00 B4 56 00 90 00 7E [11:34:23]RAPDU: 90 00 [11:34:23]wFMCommunicate OK [11:34:23]wFMCommunicate request_size=10 [11:34:23]MH_SAM_APDU [11:34:23]CAPDU: 80 0D 02 02 05 B9 57 79 8D 29 [11:34:23]Write to MH i2c: E2 0D 00 B5 56 80 0D 02 02 05 00 B9 57 79 8D 29 00 00 CE [11:34:23]Write i2c OK [11:34:23]MH_I2C_Read... [11:34:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:23]Read from MH i2c: E2 [11:34:23]MH_I2C_Read... [11:34:23]Read from MH i2c: E2 03 00 [11:34:23]MH_I2C_Read... [11:34:23]Read from MH i2c: E2 03 00 B5 56 00 90 00 7F [11:34:23]RAPDU: 90 00 [11:34:23]wFMCommunicate OK [11:34:23]wFMCommunicate request_size=4 [11:34:23]MH_SAM_APDU [11:34:23]CAPDU: 80 0D 03 02 [11:34:23]Write to MH i2c: E2 08 00 B6 56 80 0D 03 02 00 00 00 00 87 [11:34:23]Write i2c OK [11:34:23]MH_I2C_Read... [11:34:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:34:23]Read from MH i2c: E2 [11:34:23]MH_I2C_Read... [11:34:23]Read from MH i2c: E2 0B 00 [11:34:23]MH_I2C_Read... [11:34:23]Read from MH i2c: E2 0B 00 B6 56 00 C4 97 AD 1B 87 9E F4 AA 90 00 6E [11:34:23]RAPDU: C4 97 AD 1B 87 9E F4 AA 90 00 [11:34:23]wFMCommunicate OK [11:34:23]SAM_PROTO_SignData done [11:34:23]FM_MakeSignedData done [11:34:23]CreateOFDProtocolMessage [11:34:23]wFMCommunicate request_size=4 [11:34:23]MH_SAM_APDU [11:34:23]CAPDU: 80 11 00 00 [11:34:23]Write to MH i2c: E2 08 00 B7 56 80 11 00 00 00 00 00 00 87 [11:34:23]Write i2c OK [11:34:23]MH_I2C_Read... [11:34:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:23]Read from MH i2c: E2 [11:34:23]MH_I2C_Read... [11:34:23]Read from MH i2c: E2 17 00 [11:34:23]MH_I2C_Read... [11:34:23]Read from MH i2c: E2 17 00 B7 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D9 [11:34:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:34:23]wFMCommunicate OK [11:34:23]CreateOFDProtocolMessage done [11:34:23]OFDSenderStorePacket 111618 [11:34:23]StoreOFDPacket docnum=111618 [11:34:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B4 A4 07 01 3B 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 DE 13 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 02 B4 01 00 35 04 06 00 8F B9 57 79 8D 29 C4 97 AD 1B 87 9E F4 AA [11:34:23]CheckFolder [11:34:23]dirname=/storage/ofd_packets [11:34:23]CheckFolder done [11:34:23]ProducePacketName [11:34:23]name=ofd_packets/00111618 [11:34:23]NVStorageSaveData ofd_packets/00111618 [11:34:23]File name is /storage/ofd_packets/00111618 [11:34:23]Write 301 bytes [11:34:23]NVStorageSaveData done [11:34:23]OFDSenderStorePacket done [11:34:23]KKMCreateOFDPacket done [11:34:23]NVStorageSaveData kkm_last_timestamp [11:34:23]File name is /storage/kkm_last_timestamp [11:34:23]Write 4 bytes [11:34:23]NVStorageSaveData done [11:34:23]ExternCall_PrintAddStr [11:34:23]wPrintStart [11:34:23]Write to MH i2c: 01 00 00 B8 56 0E [11:34:23]Write i2c OK [11:34:23]MH_I2C_Read... [11:34:23]Read from MH i2c: 01 [11:34:23]MH_I2C_Read... [11:34:23]Read from MH i2c: 01 07 00 [11:34:23]MH_I2C_Read... [11:34:23]Read from MH i2c: 01 07 00 B8 56 00 00 00 00 00 FF 0F 23 [11:34:23]RasterBufferAndPrint [11:34:23]line Счет N : (1)320215 [11:34:23]line ИНН: 02508201610067 [11:34:23]line Контрольно-Кассовый Чек [11:34:23]line ПРОДАЖА [11:34:23]line ТРК (МРК, ГНК) : 11 [11:34:23]line Товар: 2710124130 [11:34:23]line Аи-92-К-5 [11:34:23]line 10.550 * 66.40 [11:34:23]line = 700.52 [11:34:23]line НДС 12% НСП 1% [11:34:23]line > о реализуемом товаре [11:34:23]line ОКРУГЛЕНИЕ: -0.52 [11:34:23]line ИТОГО: 700.00 [11:34:23]line Внесено: 700.00 [11:34:23]line СДАЧА: 0.00 [11:34:23]line НСП 1% : 6.20 [11:34:23]line НДС 12% : 74.39 [11:34:23]line Наличными: 700.00 [11:34:23]line Безнал.: 0.00 [11:34:23]line Место: АЗС № 65 "Партнер Нефть" [11:34:23]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:34:23]line СНО: Общий режим [11:34:23]line Чек 68 20.06.2024 11:34 [11:34:23]line Смена: 389 ФФД: 1.0 [11:34:23]line ЗНМ: 0300000198 [11:34:23]line РНМ: 0000000000092771 [11:34:23]line Версия ККМ: 001 [11:34:23]line ФМ: 0000000000875083 [11:34:23]line ФД: 111618 [11:34:23]line ФПД: 158026199305513 [11:34:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T113454&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111618&fm=158026199305513&tin=02508201610067®Number=0000000000092771&sum=70000 [11:34:23]OFD Sender: Processing packet 111618 [packets to send 38, broken 37] [11:34:23]ProducePacketName [11:34:23]name=ofd_packets/00111618 [11:34:23]OFD Sender: To server: pG, [11:34:23]CommunicateWithHost lk.salyk.kg:30040 [11:34:23]ConnectInit lk.salyk.kg [11:34:23]written 0, free lines is 4095 [11:34:23]Connected sock=10 [11:34:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B4 A4 07 01 3B 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 DE 13 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 02 B4 01 00 35 04 06 00 8F B9 57 79 8D 29 C4 97 AD 1B 87 9E F4 AA [11:34:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 7A 14 47 00 59 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 02 B4 01 00 F4 03 04 00 2A AB 73 66 B6 04 01 00 00 87 12 41 98 F2 61 21 7D [11:34:24]CommunicateWithHost err = 0 [11:34:24]CheckOFDResponse [11:34:24]1017 (14) - 77093643461234 [11:34:24]1041 (16) - 0000000000875083 [11:34:24]1040 (4) - 111618 [11:34:24]1012 (4) - 20.06.2024 04:08 [11:34:24]1206 (1) - 0 [11:34:24]OFD Sender: Remove packet 111618 [11:34:24]ProducePacketName [11:34:24]name=ofd_packets/00111618 [11:34:24]NVStorageDeleteData [11:34:24]Write to MH i2c: 01 00 00 E3 56 39 [11:34:24]Write i2c OK [11:34:24]MH_I2C_Read... [11:34:24]Read from MH i2c: 01 [11:34:24]MH_I2C_Read... [11:34:24]Read from MH i2c: 01 07 00 [11:34:24]MH_I2C_Read... [11:34:24]Read from MH i2c: 01 07 00 E3 56 00 00 00 00 00 D4 0C 20 [11:34:24]RasterBufferAndPrint [11:34:24]line [11:34:24]line [11:34:24]line [11:34:24]line [11:34:24]line [11:34:24]written 0, free lines is 3292 [11:34:24]MH_Cut [11:34:24]Write to MH i2c: D1 01 00 EA 56 01 12 [11:34:24]Write i2c OK [11:34:24]MH_I2C_Read... [11:34:24]Read from MH i2c: D1 [11:34:24]MH_I2C_Read... [11:34:24]Read from MH i2c: D1 01 00 [11:34:24]MH_I2C_Read... [11:34:24]Read from MH i2c: D1 01 00 EA 56 00 11 [11:34:24]Write to MH i2c: 01 00 00 EB 56 41 [11:34:24]Write i2c OK [11:34:24]MH_I2C_Read... [11:34:24]OFD Sender: No OFD packet to send [11:34:24]*** Cut start [11:34:24]*** Partial cut [11:34:24]*** CUTSNS_PIN = 1 [11:34:25]*** CUTSNS_PIN = 0 [11:34:25]*** Brake cut motor [11:34:25]Read from MH i2c: 01 [11:34:25]MH_I2C_Read... [11:34:25]*** Stop cut motor [11:34:25]*** Cut end [11:34:25]Read from MH i2c: 01 07 00 [11:34:25]MH_I2C_Read... [11:34:25]Read from MH i2c: 01 07 00 EB 56 00 00 00 00 00 FF 0F 56 [11:34:25]process_action close_receipt done [11:34:25]requested_data is exist [11:34:25]produce_requested_data [11:34:25]requested_item fm.sn is exist - process it [11:34:25]wFMCommunicate request_size=4 [11:34:25]MH_SAM_APDU [11:34:25]CAPDU: 80 11 00 00 [11:34:25]Write to MH i2c: E2 08 00 EC 56 80 11 00 00 00 00 00 00 BC [11:34:25]Write i2c OK [11:34:25]MH_I2C_Read... [11:34:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:25]Read from MH i2c: E2 [11:34:25]MH_I2C_Read... [11:34:25]Read from MH i2c: E2 17 00 [11:34:25]MH_I2C_Read... [11:34:25]Read from MH i2c: E2 17 00 EC 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0E [11:34:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:34:25]wFMCommunicate OK [11:34:25]requested_item fd.num is exist - process it [11:34:25]SAM_PROTO_GetFieldsCounters [11:34:25]wFMCommunicate request_size=4 [11:34:25]MH_SAM_APDU [11:34:25]CAPDU: 80 13 00 00 [11:34:25]Write to MH i2c: E2 08 00 ED 56 80 13 00 00 00 00 00 00 BF [11:34:25]Write i2c OK [11:34:25]MH_I2C_Read... [11:34:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:34:25]Read from MH i2c: E2 [11:34:25]MH_I2C_Read... [11:34:25]Read from MH i2c: E2 62 00 [11:34:25]MH_I2C_Read... [11:34:25]Read from MH i2c: E2 62 00 ED 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 02 B4 01 00 0E 04 04 00 85 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 E9 [11:34:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 02 B4 01 00 0E 04 04 00 85 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 [11:34:25]wFMCommunicate OK [11:34:25]SAM_PROTO_GetFieldsCounters done [11:34:25]requested_item shift.num is exist - process it [11:34:25]requested_item shift.opened is exist - process it [11:34:25]req_shift_opened [11:34:25]FM_GetShiftState [11:34:25]SAM_PROTO_GetShiftState [11:34:25]wFMCommunicate request_size=4 [11:34:25]MH_SAM_APDU [11:34:25]CAPDU: 80 13 01 00 [11:34:25]Write to MH i2c: E2 08 00 EE 56 80 13 01 00 00 00 00 00 C1 [11:34:25]Write i2c OK [11:34:25]MH_I2C_Read... [11:34:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:25]Read from MH i2c: E2 [11:34:25]MH_I2C_Read... [11:34:25]Read from MH i2c: E2 0E 00 [11:34:25]MH_I2C_Read... [11:34:25]Read from MH i2c: E2 0E 00 EE 56 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 3C [11:34:25]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:34:25]wFMCommunicate OK [11:34:25]SAM_PROTO_GetShiftState done [11:34:25]FM_GetShiftState done [11:34:25]req_shift_opened done [11:34:25]requested_item shift.open_date is exist - process it [11:34:25]req_shift_open_date [11:34:25]req_shift_open_date done [11:34:25]produce_requested_data done [11:34:25]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111618,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [11:34:25]process_action_free close_receipt [11:34:25]json_value_free [11:34:25]json_value_free done [11:34:25]process_json_proto returns [11:34:25]Send response to host [11:34:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111618,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [11:34:25]free response buf [11:34:25]execute_script done [11:34:25]execute_script returns [11:34:25]free content buf [11:34:25]Sock 9.Close socket [11:34:25]Sock 9.Thread stoped [11:34:29]OFD Sender: No OFD packet to send [11:34:34]OFD Sender: No OFD packet to send [11:34:39]OFD Sender: No OFD packet to send [11:34:44]OFD Sender: No OFD packet to send [11:34:49]OFD Sender: No OFD packet to send [11:34:54]OFD Sender: No OFD packet to send [11:34:59]OFD Sender: No OFD packet to send [11:35:04]OFD Sender: No OFD packet to send [11:35:09]OFD Sender: No OFD packet to send [11:35:14]OFD Sender: No OFD packet to send [11:35:19]OFD Sender: No OFD packet to send [11:35:24]OFD Sender: No OFD packet to send [11:35:29]OFD Sender: No OFD packet to send [11:35:34]OFD Sender: No OFD packet to send [11:35:36]accept exits with 7 [11:35:36]New connection [11:35:36]New thread 3067321700 created [11:35:36]Thread 3067465060 joined [11:35:36]Waiting for new connection... [11:35:36] Sock 7.Parse request [11:35:36]Sock 7.Check first char [11:35:36]Sock 7.First char is OK [11:35:36]request: POST /json_proto HTTP/1.0 [11:35:36]Method: POST [11:35:36]URL: /json_proto [11:35:36]Method is POST - this is cgi request [11:35:36]url: /json_proto [11:35:36]query_string will be loaded in cgi processing [11:35:36]execute_cgi json_proto POST (null) [11:35:36]execute_cgi path=json_proto method=POST [11:35:36]POST find Content-Length [11:35:36]Host: 172.17.59.68:8080 [11:35:36]Content-Length: 674 [11:35:36]Content-Type: application/json [11:35:36] [11:35:36]POST finish read [11:35:36]Found Content-Length = 674 [11:35:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:36]execute_script... [11:35: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)320216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:36]POST & json_proto [11:35:36]process_json_proto [11:35:36]json parsed OK: [11:35:36]protocol is kg_v1.0 [11:35:36]action value=close_receipt [11:35:36]process_action close_receipt [11:35:36]cmd_close_receipt [11:35:36]MH_GetDate [11:35:36]Write to MH i2c: F0 00 00 EF 56 34 [11:35:36]Write i2c OK [11:35:36]MH_I2C_Read... [11:35:36]Read from MH i2c: F0 [11:35:36]MH_I2C_Read... [11:35:36]Read from MH i2c: F0 09 00 [11:35:36]MH_I2C_Read... [11:35:36]Read from MH i2c: F0 09 00 EF 56 00 29 14 74 66 BC EC 60 65 C1 [11:35:36]GetLastDocTimeStamp 1718883294 [11:35:36]current date 1718883369 [11:35:36]FM_GetShiftState [11:35:36]SAM_PROTO_GetShiftState [11:35:36]wFMCommunicate request_size=4 [11:35:36]MH_SAM_APDU [11:35:36]CAPDU: 80 13 01 00 [11:35:36]Write to MH i2c: E2 08 00 F0 56 80 13 01 00 00 00 00 00 C3 [11:35:36]Write i2c OK [11:35:36]MH_I2C_Read... [11:35:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:36]Read from MH i2c: E2 [11:35:36]MH_I2C_Read... [11:35:36]Read from MH i2c: E2 0E 00 [11:35:36]MH_I2C_Read... [11:35:36]Read from MH i2c: E2 0E 00 F0 56 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 3E [11:35:36]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:35:36]wFMCommunicate OK [11:35:36]SAM_PROTO_GetShiftState done [11:35:36]FM_GetShiftState done [11:35:36]opened in 1718847247 [11:35:36]opened+sec_in_day 1718933647 [11:35:36]quantity*price = 50009 [11:35:36]sum+1 = 50010 [11:35:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 69 20.06.2024 11:36 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111619 ФПД: 31242542173844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T113609&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111619&fm=31242542173844&tin=02508201610067®Number=0000000000092771&sum=50000 [11:35:37]StoreToDocumentArchive [11:35:37]shift 389 fd 111619 [11:35:37]save to /storage/0389/doc_00111619 [11:35:37]save last doc name /storage/0389/doc_00111619 to /storage/kkm_last_doc_name [11:35:37]save OK [11:35:37]Clear old archive folders... [11:35:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:35:37]tlvbuf is 00F70460 [11:35:37]SAM_PROTO_ClearQueue [11:35:37]wFMCommunicate request_size=4 [11:35:37]MH_SAM_APDU [11:35:37]CAPDU: 80 09 00 00 [11:35:37]Write to MH i2c: E2 08 00 FD 56 80 09 00 00 00 00 00 00 C5 [11:35:37]Write i2c OK [11:35:37]MH_I2C_Read... [11:35:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:37]Read from MH i2c: E2 [11:35:37]MH_I2C_Read... [11:35:37]Read from MH i2c: E2 03 00 [11:35:37]MH_I2C_Read... [11:35:37]Read from MH i2c: E2 03 00 FD 56 00 90 00 C7 [11:35:37]RAPDU: 90 00 [11:35:37]wFMCommunicate OK [11:35:37]SAM_PROTO_ClearQueue done [11:35:37]KKMCreateOFDPacket [11:35:37]OFDProtocolAddRootSTLVToBuf [11:35:37]FM_MakeSignedData [11:35:37]FM_MakeSignedData [11:35:37]SAM_PROTO_SignData [11:35:37]wFMCommunicate request_size=4 [11:35:37]MH_SAM_APDU [11:35:37]CAPDU: 80 0D 01 02 [11:35:37]Write to MH i2c: E2 08 00 FE 56 80 0D 01 02 00 00 00 00 CD [11:35:37]Write i2c OK [11:35:37]MH_I2C_Read... [11:35:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:37]Read from MH i2c: E2 [11:35:37]MH_I2C_Read... [11:35:37]Read from MH i2c: E2 03 00 [11:35:37]MH_I2C_Read... [11:35:37]Read from MH i2c: E2 03 00 FE 56 00 90 00 C8 [11:35:37]RAPDU: 90 00 [11:35:37]wFMCommunicate OK [11:35:37]wFMCommunicate request_size=255 [11:35:37]MH_SAM_APDU [11:35:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 29 14 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 03 B4 01 00 35 04 06 00 1C 6A 38 A0 [11:35:37]Write to MH i2c: E2 02 01 FF 56 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 29 14 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 03 B4 01 00 35 04 06 00 1C 6A 38 A0 00 00 6F [11:35:37]Write i2c OK [11:35:37]MH_I2C_Read... [11:35:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:38]Read from MH i2c: E2 [11:35:38]MH_I2C_Read... [11:35:38]Read from MH i2c: E2 03 00 [11:35:38]MH_I2C_Read... [11:35:38]Read from MH i2c: E2 03 00 FF 56 00 90 00 C9 [11:35:38]RAPDU: 90 00 [11:35:38]wFMCommunicate OK [11:35:38]wFMCommunicate request_size=7 [11:35:38]MH_SAM_APDU [11:35:38]CAPDU: 80 0D 02 02 02 CE 94 [11:35:38]Write to MH i2c: E2 0A 00 00 57 80 0D 02 02 02 00 CE 94 00 00 37 [11:35:38]Write i2c OK [11:35:38]MH_I2C_Read... [11:35:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:38]Read from MH i2c: E2 [11:35:38]MH_I2C_Read... [11:35:38]Read from MH i2c: E2 03 00 [11:35:38]MH_I2C_Read... [11:35:38]Read from MH i2c: E2 03 00 00 57 00 90 00 CB [11:35:38]RAPDU: 90 00 [11:35:38]wFMCommunicate OK [11:35:38]wFMCommunicate request_size=4 [11:35:38]MH_SAM_APDU [11:35:38]CAPDU: 80 0D 03 02 [11:35:38]Write to MH i2c: E2 08 00 01 57 80 0D 03 02 00 00 00 00 D3 [11:35:38]Write i2c OK [11:35:38]MH_I2C_Read... [11:35:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:38]Read from MH i2c: E2 [11:35:38]MH_I2C_Read... [11:35:38]Read from MH i2c: E2 0B 00 [11:35:38]MH_I2C_Read... [11:35:38]Read from MH i2c: E2 0B 00 01 57 00 30 5A 58 8D 91 19 47 42 90 00 76 [11:35:38]RAPDU: 30 5A 58 8D 91 19 47 42 90 00 [11:35:38]wFMCommunicate OK [11:35:38]SAM_PROTO_SignData done [11:35:38]FM_MakeSignedData done [11:35:38]CreateOFDProtocolMessage [11:35:38]wFMCommunicate request_size=4 [11:35:38]MH_SAM_APDU [11:35:38]CAPDU: 80 11 00 00 [11:35:38]Write to MH i2c: E2 08 00 02 57 80 11 00 00 00 00 00 00 D3 [11:35:38]Write i2c OK [11:35:38]MH_I2C_Read... [11:35:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:38]Read from MH i2c: E2 [11:35:38]MH_I2C_Read... [11:35:38]Read from MH i2c: E2 17 00 [11:35:38]MH_I2C_Read... [11:35:38]Read from MH i2c: E2 17 00 02 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 25 [11:35:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:35:38]wFMCommunicate OK [11:35:38]CreateOFDProtocolMessage done [11:35:38]OFDSenderStorePacket 111619 [11:35:38]StoreOFDPacket docnum=111619 [11:35:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 FC 5E 04 01 E4 BE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 29 14 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 03 B4 01 00 35 04 06 00 1C 6A 38 A0 CE 94 30 5A 58 8D 91 19 47 42 [11:35:38]CheckFolder [11:35:38]dirname=/storage/ofd_packets [11:35:38]CheckFolder done [11:35:38]ProducePacketName [11:35:38]name=ofd_packets/00111619 [11:35:38]NVStorageSaveData ofd_packets/00111619 [11:35:38]File name is /storage/ofd_packets/00111619 [11:35:38]Write 298 bytes [11:35:38]NVStorageSaveData done [11:35:38]OFDSenderStorePacket done [11:35:38]KKMCreateOFDPacket done [11:35:38]NVStorageSaveData kkm_last_timestamp [11:35:38]File name is /storage/kkm_last_timestamp [11:35:38]Write 4 bytes [11:35:38]NVStorageSaveData done [11:35:38]ExternCall_PrintAddStr [11:35:38]wPrintStart [11:35:38]Write to MH i2c: 01 00 00 03 57 5A [11:35:38]Write i2c OK [11:35:38]MH_I2C_Read... [11:35:38]Read from MH i2c: 01 [11:35:38]MH_I2C_Read... [11:35:38]Read from MH i2c: 01 07 00 [11:35:38]MH_I2C_Read... [11:35:38]Read from MH i2c: 01 07 00 03 57 00 00 00 00 00 FF 0F 6F [11:35:38]RasterBufferAndPrint [11:35:38]line Счет N : (1)320216 [11:35:38]line ИНН: 02508201610067 [11:35:38]line Контрольно-Кассовый Чек [11:35:38]line ПРОДАЖА [11:35:38]line ТРК (МРК, ГНК) : 22 [11:35:38]line Товар: 2710194210 [11:35:38]line ДТ-К-5 [11:35:38]line 6.860 * 72.90 [11:35:38]line = 500.09 [11:35:38]line НДС 12% НСП 1% [11:35:38]line > о реализуемом товаре [11:35:38]line ОКРУГЛЕНИЕ: -0.09 [11:35:38]line ИТОГО: 500.00 [11:35:38]line Внесено: 500.00 [11:35:38]line СДАЧА: 0.00 [11:35:38]line НСП 1% : 4.43 [11:35:38]line НДС 12% : 53.11 [11:35:38]line Наличными: 500.00 [11:35:38]line Безнал.: 0.00 [11:35:38]line Место: АЗС № 65 "Партнер Нефть" [11:35:38]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:35:38]line СНО: Общий режим [11:35:38]line Чек 69 20.06.2024 11:36 [11:35:38]line Смена: 389 ФФД: 1.0 [11:35:38]line ЗНМ: 0300000198 [11:35:38]line РНМ: 0000000000092771 [11:35:38]line Версия ККМ: 001 [11:35:38]line ФМ: 0000000000875083 [11:35:38]line ФД: 111619 [11:35:38]line ФПД: 31242542173844 [11:35:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T113609&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111619&fm=31242542173844&tin=02508201610067®Number=0000000000092771&sum=50000 [11:35:38]OFD Sender: Processing packet 111619 [packets to send 38, broken 37] [11:35:38]ProducePacketName [11:35:38]name=ofd_packets/00111619 [11:35:38]OFD Sender: To server: pG, [11:35:38]CommunicateWithHost lk.salyk.kg:30040 [11:35:38]ConnectInit lk.salyk.kg [11:35:38]written 0, free lines is 4095 [11:35:38]Connected sock=10 [11:35:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 FC 5E 04 01 E4 BE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 29 14 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 03 B4 01 00 35 04 06 00 1C 6A 38 A0 CE 94 30 5A 58 8D 91 19 47 42 [11:35:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3C 37 47 00 DC 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 35 30 38 33 10 04 04 00 03 B4 01 00 F4 03 04 00 74 AB 73 66 B6 04 01 00 00 8C E1 6F 5F 70 4E A5 B0 [11:35:38]CommunicateWithHost err = 0 [11:35:38]CheckOFDResponse [11:35:38]1017 (14) - 77093643461234 [11:35:38]1041 (16) - 0000000000875083 [11:35:38]1040 (4) - 111619 [11:35:38]1012 (4) - 20.06.2024 04:09 [11:35:38]1206 (1) - 0 [11:35:38]OFD Sender: Remove packet 111619 [11:35:38]ProducePacketName [11:35:38]name=ofd_packets/00111619 [11:35:38]NVStorageDeleteData [11:35:38]Write to MH i2c: 01 00 00 2E 57 85 [11:35:38]Write i2c OK [11:35:38]MH_I2C_Read... [11:35:38]Read from MH i2c: 01 [11:35:38]MH_I2C_Read... [11:35:38]Read from MH i2c: 01 07 00 [11:35:38]MH_I2C_Read... [11:35:38]Read from MH i2c: 01 07 00 2E 57 00 00 00 00 00 CD 0C 65 [11:35:38]RasterBufferAndPrint [11:35:38]line [11:35:38]line [11:35:38]line [11:35:38]line [11:35:38]line [11:35:38]written 0, free lines is 3283 [11:35:38]MH_Cut [11:35:38]Write to MH i2c: D1 01 00 35 57 01 5E [11:35:38]Write i2c OK [11:35:38]MH_I2C_Read... [11:35:38]Read from MH i2c: D1 [11:35:38]MH_I2C_Read... [11:35:38]Read from MH i2c: D1 01 00 [11:35:38]MH_I2C_Read... [11:35:38]Read from MH i2c: D1 01 00 35 57 00 5D [11:35:38]Write to MH i2c: 01 00 00 36 57 8D [11:35:38]Write i2c OK [11:35:38]MH_I2C_Read... [11:35:39]OFD Sender: No OFD packet to send [11:35:39]*** Cut start [11:35:39]*** Partial cut [11:35:39]*** CUTSNS_PIN = 1 [11:35:39]*** CUTSNS_PIN = 0 [11:35:39]*** Brake cut motor [11:35:40]Read from MH i2c: 01 [11:35:40]MH_I2C_Read... [11:35:40]*** Stop cut motor [11:35:40]*** Cut end [11:35:40]Read from MH i2c: 01 07 00 [11:35:40]MH_I2C_Read... [11:35:40]Read from MH i2c: 01 07 00 36 57 00 00 00 00 00 FF 0F A2 [11:35:40]process_action close_receipt done [11:35:40]requested_data is exist [11:35:40]produce_requested_data [11:35:40]requested_item fm.sn is exist - process it [11:35:40]wFMCommunicate request_size=4 [11:35:40]MH_SAM_APDU [11:35:40]CAPDU: 80 11 00 00 [11:35:40]Write to MH i2c: E2 08 00 37 57 80 11 00 00 00 00 00 00 08 [11:35:40]Write i2c OK [11:35:40]MH_I2C_Read... [11:35:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:40]Read from MH i2c: E2 [11:35:40]MH_I2C_Read... [11:35:40]Read from MH i2c: E2 17 00 [11:35:40]MH_I2C_Read... [11:35:40]Read from MH i2c: E2 17 00 37 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5A [11:35:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:35:40]wFMCommunicate OK [11:35:40]requested_item fd.num is exist - process it [11:35:40]SAM_PROTO_GetFieldsCounters [11:35:40]wFMCommunicate request_size=4 [11:35:40]MH_SAM_APDU [11:35:40]CAPDU: 80 13 00 00 [11:35:40]Write to MH i2c: E2 08 00 38 57 80 13 00 00 00 00 00 00 0B [11:35:40]Write i2c OK [11:35:40]MH_I2C_Read... [11:35:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:40]Read from MH i2c: E2 [11:35:40]MH_I2C_Read... [11:35:40]Read from MH i2c: E2 62 00 [11:35:40]MH_I2C_Read... [11:35:40]Read from MH i2c: E2 62 00 38 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 03 B4 01 00 0E 04 04 00 85 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 39 [11:35:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 03 B4 01 00 0E 04 04 00 85 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 [11:35:40]wFMCommunicate OK [11:35:40]SAM_PROTO_GetFieldsCounters done [11:35:40]requested_item shift.num is exist - process it [11:35:40]requested_item shift.opened is exist - process it [11:35:40]req_shift_opened [11:35:40]FM_GetShiftState [11:35:40]SAM_PROTO_GetShiftState [11:35:40]wFMCommunicate request_size=4 [11:35:40]MH_SAM_APDU [11:35:40]CAPDU: 80 13 01 00 [11:35:40]Write to MH i2c: E2 08 00 39 57 80 13 01 00 00 00 00 00 0D [11:35:40]Write i2c OK [11:35:40]MH_I2C_Read... [11:35:40]Read from MH i2c: E2 [11:35:40]MH_I2C_Read... [11:35:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:40]Read from MH i2c: E2 0E 00 [11:35:40]MH_I2C_Read... [11:35:40]Read from MH i2c: E2 0E 00 39 57 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 88 [11:35:40]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:35:40]wFMCommunicate OK [11:35:40]SAM_PROTO_GetShiftState done [11:35:40]FM_GetShiftState done [11:35:40]req_shift_opened done [11:35:40]requested_item shift.open_date is exist - process it [11:35:40]req_shift_open_date [11:35:40]req_shift_open_date done [11:35:40]produce_requested_data done [11:35:40]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111619,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [11:35:40]process_action_free close_receipt [11:35:40]json_value_free [11:35:40]json_value_free done [11:35:40]process_json_proto returns [11:35:40]Send response to host [11:35:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111619,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [11:35:40]free response buf [11:35:40]execute_script done [11:35:40]execute_script returns [11:35:40]free content buf [11:35:40]Sock 7.Close socket [11:35:40]Sock 7.Thread stoped [11:35:44]OFD Sender: No OFD packet to send [11:35:49]OFD Sender: No OFD packet to send [11:35:54]OFD Sender: No OFD packet to send [11:35:59]OFD Sender: No OFD packet to send [11:36:04]OFD Sender: No OFD packet to send [11:36:09]OFD Sender: No OFD packet to send [11:36:14]OFD Sender: No OFD packet to send [11:36:16]accept exits with 9 [11:36:16]New connection [11:36:16]New thread 3067465060 created [11:36:16]Thread 3067321700 joined [11:36:16]Waiting for new connection... [11:36:16] Sock 9.Parse request [11:36:16]Sock 9.Check first char [11:36:16]Sock 9.First char is OK [11:36:16]request: POST /json_proto HTTP/1.0 [11:36:16]Method: POST [11:36:16]URL: /json_proto [11:36:16]Method is POST - this is cgi request [11:36:16]url: /json_proto [11:36:16]query_string will be loaded in cgi processing [11:36:16]execute_cgi json_proto POST (null) [11:36:16]execute_cgi path=json_proto method=POST [11:36:16]POST find Content-Length [11:36:16]Host: 172.17.59.68:8080 [11:36:16]Content-Length: 805 [11:36:16]Content-Type: application/json [11:36:16] [11:36:16]POST finish read [11:36:16]Found Content-Length = 805 [11:36:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:16]execute_script... [11: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)320217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:16]POST & json_proto [11:36:16]process_json_proto [11:36:16]json parsed OK: [11:36:16]protocol is kg_v1.0 [11:36:16]action value=close_receipt [11:36:16]process_action close_receipt [11:36:16]cmd_close_receipt [11:36:16]MH_GetDate [11:36:16]Write to MH i2c: F0 00 00 3A 57 80 [11:36:16]Write i2c OK [11:36:16]MH_I2C_Read... [11:36:16]Read from MH i2c: F0 [11:36:16]MH_I2C_Read... [11:36:16]Read from MH i2c: F0 09 00 [11:36:16]MH_I2C_Read... [11:36:16]Read from MH i2c: F0 09 00 3A 57 00 51 14 74 66 BC EC 60 65 35 [11:36:16]GetLastDocTimeStamp 1718883369 [11:36:16]current date 1718883409 [11:36:16]FM_GetShiftState [11:36:16]SAM_PROTO_GetShiftState [11:36:16]wFMCommunicate request_size=4 [11:36:16]MH_SAM_APDU [11:36:16]CAPDU: 80 13 01 00 [11:36:16]Write to MH i2c: E2 08 00 3B 57 80 13 01 00 00 00 00 00 0F [11:36:16]Write i2c OK [11:36:16]MH_I2C_Read... [11:36:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:16]Read from MH i2c: E2 [11:36:16]MH_I2C_Read... [11:36:16]Read from MH i2c: E2 0E 00 [11:36:16]MH_I2C_Read... [11:36:16]Read from MH i2c: E2 0E 00 3B 57 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 8A [11:36:16]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:36:16]wFMCommunicate OK [11:36:16]SAM_PROTO_GetShiftState done [11:36:16]FM_GetShiftState done [11:36:16]opened in 1718847247 [11:36:16]opened+sec_in_day 1718933647 [11:36:16]quantity*price = 50065 [11:36:16]sum+1 = 50067 [11:36:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.66 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 0.00 Безнал.: 500.66 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 70 20.06.2024 11:36 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111620 ФПД: 108682787329522 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T113649&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111620&fm=108682787329522&tin=02508201610067®Number=0000000000092771&sum=50066 [11:36:17]StoreToDocumentArchive [11:36:17]shift 389 fd 111620 [11:36:17]save to /storage/0389/doc_00111620 [11:36:17]save last doc name /storage/0389/doc_00111620 to /storage/kkm_last_doc_name [11:36:17]save OK [11:36:17]Clear old archive folders... [11:36:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:36:17]tlvbuf is 00ED6F30 [11:36:17]SAM_PROTO_ClearQueue [11:36:17]wFMCommunicate request_size=4 [11:36:17]MH_SAM_APDU [11:36:17]CAPDU: 80 09 00 00 [11:36:17]Write to MH i2c: E2 08 00 48 57 80 09 00 00 00 00 00 00 11 [11:36:17]Write i2c OK [11:36:17]MH_I2C_Read... [11:36:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:17]Read from MH i2c: E2 [11:36:17]MH_I2C_Read... [11:36:17]Read from MH i2c: E2 03 00 [11:36:17]MH_I2C_Read... [11:36:17]Read from MH i2c: E2 03 00 48 57 00 90 00 13 [11:36:17]RAPDU: 90 00 [11:36:17]wFMCommunicate OK [11:36:17]SAM_PROTO_ClearQueue done [11:36:17]KKMCreateOFDPacket [11:36:17]OFDProtocolAddRootSTLVToBuf [11:36:17]FM_MakeSignedData [11:36:17]FM_MakeSignedData [11:36:17]SAM_PROTO_SignData [11:36:17]wFMCommunicate request_size=4 [11:36:17]MH_SAM_APDU [11:36:17]CAPDU: 80 0D 01 02 [11:36:17]Write to MH i2c: E2 08 00 49 57 80 0D 01 02 00 00 00 00 19 [11:36:17]Write i2c OK [11:36:17]MH_I2C_Read... [11:36:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:17]Read from MH i2c: E2 [11:36:17]MH_I2C_Read... [11:36:17]Read from MH i2c: E2 03 00 [11:36:17]MH_I2C_Read... [11:36:17]Read from MH i2c: E2 03 00 49 57 00 90 00 14 [11:36:17]RAPDU: 90 00 [11:36:17]wFMCommunicate OK [11:36:17]wFMCommunicate request_size=255 [11:36:17]MH_SAM_APDU [11: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 51 14 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 04 B4 01 00 35 04 06 00 62 [11:36:17]Write to MH i2c: E2 02 01 4A 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 51 14 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 04 B4 01 00 35 04 06 00 62 00 00 77 [11:36:17]Write i2c OK [11:36:17]MH_I2C_Read... [11:36:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:17]Read from MH i2c: E2 [11:36:17]MH_I2C_Read... [11:36:17]Read from MH i2c: E2 03 00 [11:36:17]MH_I2C_Read... [11:36:17]Read from MH i2c: E2 03 00 4A 57 00 90 00 15 [11:36:17]RAPDU: 90 00 [11:36:17]wFMCommunicate OK [11:36:17]wFMCommunicate request_size=10 [11:36:17]MH_SAM_APDU [11:36:17]CAPDU: 80 0D 02 02 05 D8 AE EE 95 F2 [11:36:17]Write to MH i2c: E2 0D 00 4B 57 80 0D 02 02 05 00 D8 AE EE 95 F2 00 00 21 [11:36:17]Write i2c OK [11:36:17]MH_I2C_Read... [11:36:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:17]Read from MH i2c: E2 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: E2 03 00 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: E2 03 00 4B 57 00 90 00 16 [11:36:18]RAPDU: 90 00 [11:36:18]wFMCommunicate OK [11:36:18]wFMCommunicate request_size=4 [11:36:18]MH_SAM_APDU [11:36:18]CAPDU: 80 0D 03 02 [11:36:18]Write to MH i2c: E2 08 00 4C 57 80 0D 03 02 00 00 00 00 1E [11:36:18]Write i2c OK [11:36:18]MH_I2C_Read... [11:36:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:18]Read from MH i2c: E2 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: E2 0B 00 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: E2 0B 00 4C 57 00 67 75 DC FB FD 43 3D 4D 90 00 9C [11:36:18]RAPDU: 67 75 DC FB FD 43 3D 4D 90 00 [11:36:18]wFMCommunicate OK [11:36:18]SAM_PROTO_SignData done [11:36:18]FM_MakeSignedData done [11:36:18]CreateOFDProtocolMessage [11:36:18]wFMCommunicate request_size=4 [11:36:18]MH_SAM_APDU [11:36:18]CAPDU: 80 11 00 00 [11:36:18]Write to MH i2c: E2 08 00 4D 57 80 11 00 00 00 00 00 00 1E [11:36:18]Write i2c OK [11:36:18]MH_I2C_Read... [11:36:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:18]Read from MH i2c: E2 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: E2 17 00 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: E2 17 00 4D 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 70 [11:36:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:36:18]wFMCommunicate OK [11:36:18]CreateOFDProtocolMessage done [11:36:18]OFDSenderStorePacket 111620 [11:36:18]StoreOFDPacket docnum=111620 [11:36:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CF BC 07 01 34 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 51 14 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 04 B4 01 00 35 04 06 00 62 D8 AE EE 95 F2 67 75 DC FB FD 43 3D 4D [11:36:18]CheckFolder [11:36:18]dirname=/storage/ofd_packets [11:36:18]CheckFolder done [11:36:18]ProducePacketName [11:36:18]name=ofd_packets/00111620 [11:36:18]NVStorageSaveData ofd_packets/00111620 [11:36:18]File name is /storage/ofd_packets/00111620 [11:36:18]Write 301 bytes [11:36:18]NVStorageSaveData done [11:36:18]OFDSenderStorePacket done [11:36:18]KKMCreateOFDPacket done [11:36:18]NVStorageSaveData kkm_last_timestamp [11:36:18]File name is /storage/kkm_last_timestamp [11:36:18]Write 4 bytes [11:36:18]NVStorageSaveData done [11:36:18]ExternCall_PrintAddStr [11:36:18]wPrintStart [11:36:18]Write to MH i2c: 01 00 00 4E 57 A5 [11:36:18]Write i2c OK [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: 01 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: 01 07 00 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: 01 07 00 4E 57 00 00 00 00 00 FF 0F BA [11:36:18]RasterBufferAndPrint [11:36:18]line Счет N : (1)320217 [11:36:18]line ИНН: 02508201610067 [11:36:18]line Контрольно-Кассовый Чек [11:36:18]line ПРОДАЖА [11:36:18]line ТРК (МРК, ГНК) : 11 [11:36:18]line Товар: 2710124130 [11:36:18]line Аи-92-К-5 [11:36:18]line 7.540 * 66.40 [11:36:18]line = 500.66 [11:36:18]line НДС 12% НСП 1% [11:36:18]line > о реализуемом товаре [11:36:18]line ИТОГО: 500.66 [11:36:18]line НСП 1% : 4.43 [11:36:18]line НДС 12% : 53.17 [11:36:18]line Наличными: 0.00 [11:36:18]line Безнал.: 500.66 [11:36:18]line Место: АЗС № 65 "Партнер Нефть" [11:36:18]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:36:18]line СНО: Общий режим [11:36:18]line Чек 70 20.06.2024 11:36 [11:36:18]line Смена: 389 ФФД: 1.0 [11:36:18]line ЗНМ: 0300000198 [11:36:18]line РНМ: 0000000000092771 [11:36:18]line Версия ККМ: 001 [11:36:18]line Платежная система: О! деньги [11:36:18]line ФМ: 0000000000875083 [11:36:18]line ФД: 111620 [11:36:18]line ФПД: 108682787329522 [11:36:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T113649&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111620&fm=108682787329522&tin=02508201610067®Number=0000000000092771&sum=50066 [11:36:18]written 0, free lines is 4095 [11:36:18]OFD Sender: Processing packet 111620 [packets to send 38, broken 37] [11:36:18]ProducePacketName [11:36:18]name=ofd_packets/00111620 [11:36:18]OFD Sender: To server: pG, [11:36:18]CommunicateWithHost lk.salyk.kg:30040 [11:36:18]ConnectInit lk.salyk.kg [11:36:18]Connected sock=10 [11: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 35 30 38 33 0F 01 00 00 CF BC 07 01 34 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 51 14 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 04 B4 01 00 35 04 06 00 62 D8 AE EE 95 F2 67 75 DC FB FD 43 3D 4D [11:36:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 9C 9B 47 00 4A 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 04 B4 01 00 F4 03 04 00 9C AB 73 66 B6 04 01 00 00 F1 22 B2 0D 0E 37 63 ED [11:36:18]CommunicateWithHost err = 0 [11:36:18]CheckOFDResponse [11:36:18]1017 (14) - 77093643461234 [11:36:18]1041 (16) - 0000000000875083 [11:36:18]1040 (4) - 111620 [11:36:18]1012 (4) - 20.06.2024 04:10 [11:36:18]1206 (1) - 0 [11:36:18]OFD Sender: Remove packet 111620 [11:36:18]ProducePacketName [11:36:18]name=ofd_packets/00111620 [11:36:18]NVStorageDeleteData [11:36:18]Write to MH i2c: 01 00 00 78 57 CF [11:36:18]Write i2c OK [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: 01 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: 01 07 00 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: 01 07 00 78 57 00 00 00 00 00 DF 0C C1 [11:36:18]RasterBufferAndPrint [11:36:18]line [11:36:18]line [11:36:18]line [11:36:18]line [11:36:18]line [11:36:18]written 0, free lines is 3304 [11:36:18]MH_Cut [11:36:18]Write to MH i2c: D1 01 00 7F 57 01 A8 [11:36:18]Write i2c OK [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: D1 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: D1 01 00 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: D1 01 00 7F 57 00 A7 [11:36:18]Write to MH i2c: 01 00 00 80 57 D7 [11:36:18]Write i2c OK [11:36:18]MH_I2C_Read... [11:36:19]OFD Sender: No OFD packet to send [11:36:19]*** Cut start [11:36:19]*** Partial cut [11:36:19]*** CUTSNS_PIN = 1 [11:36:19]*** CUTSNS_PIN = 0 [11:36:19]*** Brake cut motor [11:36:20]Read from MH i2c: 01 [11:36:20]MH_I2C_Read... [11:36:20]*** Stop cut motor [11:36:20]*** Cut end [11:36:20]Read from MH i2c: 01 07 00 [11:36:20]MH_I2C_Read... [11:36:20]Read from MH i2c: 01 07 00 80 57 00 00 00 00 00 FF 0F EC [11:36:20]process_action close_receipt done [11:36:20]requested_data is exist [11:36:20]produce_requested_data [11:36:20]requested_item fm.sn is exist - process it [11:36:20]wFMCommunicate request_size=4 [11:36:20]MH_SAM_APDU [11:36:20]CAPDU: 80 11 00 00 [11:36:20]Write to MH i2c: E2 08 00 81 57 80 11 00 00 00 00 00 00 52 [11:36:20]Write i2c OK [11:36:20]MH_I2C_Read... [11:36:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:20]Read from MH i2c: E2 [11:36:20]MH_I2C_Read... [11:36:20]Read from MH i2c: E2 17 00 [11:36:20]MH_I2C_Read... [11:36:20]Read from MH i2c: E2 17 00 81 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A4 [11:36:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:36:20]wFMCommunicate OK [11:36:20]requested_item fd.num is exist - process it [11:36:20]SAM_PROTO_GetFieldsCounters [11:36:20]wFMCommunicate request_size=4 [11:36:20]MH_SAM_APDU [11:36:20]CAPDU: 80 13 00 00 [11:36:20]Write to MH i2c: E2 08 00 82 57 80 13 00 00 00 00 00 00 55 [11:36:20]Write i2c OK [11:36:20]MH_I2C_Read... [11:36:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:20]Read from MH i2c: E2 [11:36:20]MH_I2C_Read... [11:36:20]Read from MH i2c: E2 62 00 [11:36:20]MH_I2C_Read... [11:36:20]Read from MH i2c: E2 62 00 82 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 04 B4 01 00 0E 04 04 00 85 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 87 [11: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 04 B4 01 00 0E 04 04 00 85 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 [11:36:20]wFMCommunicate OK [11:36:20]SAM_PROTO_GetFieldsCounters done [11:36:20]requested_item shift.num is exist - process it [11:36:20]requested_item shift.opened is exist - process it [11:36:20]req_shift_opened [11:36:20]FM_GetShiftState [11:36:20]SAM_PROTO_GetShiftState [11:36:20]wFMCommunicate request_size=4 [11:36:20]MH_SAM_APDU [11:36:20]CAPDU: 80 13 01 00 [11:36:20]Write to MH i2c: E2 08 00 83 57 80 13 01 00 00 00 00 00 57 [11:36:20]Write i2c OK [11:36:20]MH_I2C_Read... [11:36:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:20]Read from MH i2c: E2 [11:36:20]MH_I2C_Read... [11:36:20]Read from MH i2c: E2 0E 00 [11:36:20]MH_I2C_Read... [11:36:20]Read from MH i2c: E2 0E 00 83 57 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 D2 [11:36:20]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:36:20]wFMCommunicate OK [11:36:20]SAM_PROTO_GetShiftState done [11:36:20]FM_GetShiftState done [11:36:20]req_shift_opened done [11:36:20]requested_item shift.open_date is exist - process it [11:36:20]req_shift_open_date [11:36:20]req_shift_open_date done [11:36:20]produce_requested_data done [11:36:20]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111620,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [11:36:20]process_action_free close_receipt [11:36:20]json_value_free [11:36:20]json_value_free done [11:36:20]process_json_proto returns [11:36:20]Send response to host [11:36:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111620,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [11:36:20]free response buf [11:36:20]execute_script done [11:36:20]execute_script returns [11:36:20]free content buf [11:36:20]Sock 9.Close socket [11:36:20]Sock 9.Thread stoped [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:29]OFD Sender: No OFD packet to send [11:37:34]OFD Sender: No OFD packet to send [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:29]OFD Sender: No OFD packet to send [11:39:34]OFD Sender: No OFD packet to send [11:39:39]OFD Sender: No OFD packet to send [11:39:39]accept exits with 7 [11:39:39]New connection [11:39:39]New thread 3067321700 created [11:39:39]Thread 3067465060 joined [11:39:39]Waiting for new connection... [11:39:39] Sock 7.Parse request [11:39:39]Sock 7.Check first char [11:39:39]Sock 7.First char is OK [11:39:39]request: POST /json_proto HTTP/1.0 [11:39:39]Method: POST [11:39:39]URL: /json_proto [11:39:39]Method is POST - this is cgi request [11:39:39]url: /json_proto [11:39:39]query_string will be loaded in cgi processing [11:39:39]execute_cgi json_proto POST (null) [11:39:39]execute_cgi path=json_proto method=POST [11:39:39]POST find Content-Length [11:39:39]Host: 172.17.59.68:8080 [11:39:39]Content-Length: 640 [11:39:39]Content-Type: application/json [11:39:39] [11:39:39]POST finish read [11:39:39]Found Content-Length = 640 [11:39:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:39]execute_script... [11: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)320218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:39]POST & json_proto [11:39:39]process_json_proto [11:39:39]json parsed OK: [11:39:39]protocol is kg_v1.0 [11:39:39]action value=close_receipt [11:39:39]process_action close_receipt [11:39:39]cmd_close_receipt [11:39:39]MH_GetDate [11:39:39]Write to MH i2c: F0 00 00 84 57 CA [11:39:39]Write i2c OK [11:39:39]MH_I2C_Read... [11:39:39]Read from MH i2c: F0 [11:39:39]MH_I2C_Read... [11:39:39]Read from MH i2c: F0 09 00 [11:39:39]MH_I2C_Read... [11:39:39]Read from MH i2c: F0 09 00 84 57 00 1C 15 74 66 BC EC 60 65 4B [11:39:39]GetLastDocTimeStamp 1718883409 [11:39:39]current date 1718883612 [11:39:39]FM_GetShiftState [11:39:39]SAM_PROTO_GetShiftState [11:39:39]wFMCommunicate request_size=4 [11:39:39]MH_SAM_APDU [11:39:39]CAPDU: 80 13 01 00 [11:39:39]Write to MH i2c: E2 08 00 85 57 80 13 01 00 00 00 00 00 59 [11:39:39]Write i2c OK [11:39:39]MH_I2C_Read... [11:39:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:39]Read from MH i2c: E2 [11:39:39]MH_I2C_Read... [11:39:39]Read from MH i2c: E2 0E 00 [11:39:39]MH_I2C_Read... [11:39:39]Read from MH i2c: E2 0E 00 85 57 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 D4 [11:39:39]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:39:39]wFMCommunicate OK [11:39:39]SAM_PROTO_GetShiftState done [11:39:39]FM_GetShiftState done [11:39:39]opened in 1718847247 [11:39:39]opened+sec_in_day 1718933647 [11:39:39]quantity*price = 66400 [11:39:39]sum+1 = 66401 [11:39:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 664.00 НСП 1% : 5.88 НДС 12% : 70.51 Наличными: 664.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 71 20.06.2024 11:40 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111621 ФПД: 268573357790407 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T114012&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111621&fm=268573357790407&tin=02508201610067®Number=0000000000092771&sum=66400 [11:39:40]StoreToDocumentArchive [11:39:40]shift 389 fd 111621 [11:39:40]save to /storage/0389/doc_00111621 [11:39:40]save last doc name /storage/0389/doc_00111621 to /storage/kkm_last_doc_name [11:39:40]save OK [11:39:40]Clear old archive folders... [11:39:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:39:40]tlvbuf is 00ED6C10 [11:39:40]SAM_PROTO_ClearQueue [11:39:40]wFMCommunicate request_size=4 [11:39:40]MH_SAM_APDU [11:39:40]CAPDU: 80 09 00 00 [11:39:40]Write to MH i2c: E2 08 00 92 57 80 09 00 00 00 00 00 00 5B [11:39:40]Write i2c OK [11:39:40]MH_I2C_Read... [11:39:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:40]Read from MH i2c: E2 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: E2 03 00 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: E2 03 00 92 57 00 90 00 5D [11:39:40]RAPDU: 90 00 [11:39:40]wFMCommunicate OK [11:39:40]SAM_PROTO_ClearQueue done [11:39:40]KKMCreateOFDPacket [11:39:40]OFDProtocolAddRootSTLVToBuf [11:39:40]FM_MakeSignedData [11:39:40]FM_MakeSignedData [11:39:40]SAM_PROTO_SignData [11:39:40]wFMCommunicate request_size=4 [11:39:40]MH_SAM_APDU [11:39:40]CAPDU: 80 0D 01 02 [11:39:40]Write to MH i2c: E2 08 00 93 57 80 0D 01 02 00 00 00 00 63 [11:39:40]Write i2c OK [11:39:40]MH_I2C_Read... [11:39:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:40]Read from MH i2c: E2 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: E2 03 00 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: E2 03 00 93 57 00 90 00 5E [11:39:40]RAPDU: 90 00 [11:39:40]wFMCommunicate OK [11:39:40]wFMCommunicate request_size=255 [11:39:40]MH_SAM_APDU [11:39: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 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 1C 15 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 05 B4 01 00 35 04 06 00 F4 [11:39:40]Write to MH i2c: E2 02 01 94 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 1C 15 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 05 B4 01 00 35 04 06 00 F4 00 00 53 [11:39:40]Write i2c OK [11:39:40]MH_I2C_Read... [11:39:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:41]Read from MH i2c: E2 [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: E2 03 00 [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: E2 03 00 94 57 00 90 00 5F [11:39:41]RAPDU: 90 00 [11:39:41]wFMCommunicate OK [11:39:41]wFMCommunicate request_size=10 [11:39:41]MH_SAM_APDU [11:39:41]CAPDU: 80 0D 02 02 05 44 1B 96 54 C7 [11:39:41]Write to MH i2c: E2 0D 00 95 57 80 0D 02 02 05 00 44 1B 96 54 C7 00 00 80 [11:39:41]Write i2c OK [11:39:41]MH_I2C_Read... [11:39:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:41]Read from MH i2c: E2 [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: E2 03 00 [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: E2 03 00 95 57 00 90 00 60 [11:39:41]RAPDU: 90 00 [11:39:41]wFMCommunicate OK [11:39:41]wFMCommunicate request_size=4 [11:39:41]MH_SAM_APDU [11:39:41]CAPDU: 80 0D 03 02 [11:39:41]Write to MH i2c: E2 08 00 96 57 80 0D 03 02 00 00 00 00 68 [11:39:41]Write i2c OK [11:39:41]MH_I2C_Read... [11:39:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:41]Read from MH i2c: E2 [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: E2 0B 00 [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: E2 0B 00 96 57 00 C7 BA C4 EB B5 7C A4 7C 90 00 EA [11:39:41]RAPDU: C7 BA C4 EB B5 7C A4 7C 90 00 [11:39:41]wFMCommunicate OK [11:39:41]SAM_PROTO_SignData done [11:39:41]FM_MakeSignedData done [11:39:41]CreateOFDProtocolMessage [11:39:41]wFMCommunicate request_size=4 [11:39:41]MH_SAM_APDU [11:39:41]CAPDU: 80 11 00 00 [11:39:41]Write to MH i2c: E2 08 00 97 57 80 11 00 00 00 00 00 00 68 [11:39:41]Write i2c OK [11:39:41]MH_I2C_Read... [11:39:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:41]Read from MH i2c: E2 [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: E2 17 00 [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: E2 17 00 97 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BA [11:39:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:39:41]wFMCommunicate OK [11:39:41]CreateOFDProtocolMessage done [11:39:41]OFDSenderStorePacket 111621 [11:39:41]StoreOFDPacket docnum=111621 [11:39:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BA 44 07 01 9D CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 1C 15 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 05 B4 01 00 35 04 06 00 F4 44 1B 96 54 C7 C7 BA C4 EB B5 7C A4 7C [11:39:41]CheckFolder [11:39:41]dirname=/storage/ofd_packets [11:39:41]CheckFolder done [11:39:41]ProducePacketName [11:39:41]name=ofd_packets/00111621 [11:39:41]NVStorageSaveData ofd_packets/00111621 [11:39:41]File name is /storage/ofd_packets/00111621 [11:39:41]Write 301 bytes [11:39:41]NVStorageSaveData done [11:39:41]OFDSenderStorePacket done [11:39:41]KKMCreateOFDPacket done [11:39:41]NVStorageSaveData kkm_last_timestamp [11:39:41]File name is /storage/kkm_last_timestamp [11:39:41]Write 4 bytes [11:39:41]NVStorageSaveData done [11:39:41]ExternCall_PrintAddStr [11:39:41]wPrintStart [11:39:41]Write to MH i2c: 01 00 00 98 57 EF [11:39:41]Write i2c OK [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: 01 [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: 01 07 00 [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: 01 07 00 98 57 00 00 00 00 00 FF 0F 04 [11:39:41]RasterBufferAndPrint [11:39:41]line Счет N : (1)320218 [11:39:41]line ИНН: 02508201610067 [11:39:41]line Контрольно-Кассовый Чек [11:39:41]line ПРОДАЖА [11:39:41]line ТРК (МРК, ГНК) : 11 [11:39:41]line Товар: 2710124130 [11:39:41]line Аи-92-К-5 [11:39:41]line 10.000 * 66.40 [11:39:41]line = 664.00 [11:39:41]line НДС 12% НСП 1% [11:39:41]line > о реализуемом товаре [11:39:41]line ИТОГО: 664.00 [11:39:41]line НСП 1% : 5.88 [11:39:41]line НДС 12% : 70.51 [11:39:41]line Наличными: 664.00 [11:39:41]line Безнал.: 0.00 [11:39:41]line Место: АЗС № 65 "Партнер Нефть" [11:39:41]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:39:41]line СНО: Общий режим [11:39:41]line Чек 71 20.06.2024 11:40 [11:39:41]line Смена: 389 ФФД: 1.0 [11:39:41]line ЗНМ: 0300000198 [11:39:41]line РНМ: 0000000000092771 [11:39:41]line Версия ККМ: 001 [11:39:41]line ФМ: 0000000000875083 [11:39:41]line ФД: 111621 [11:39:41]line ФПД: 268573357790407 [11:39:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T114012&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111621&fm=268573357790407&tin=02508201610067®Number=0000000000092771&sum=66400 [11:39:41]OFD Sender: Processing packet 111621 [packets to send 38, broken 37] [11:39:41]ProducePacketName [11:39:41]name=ofd_packets/00111621 [11:39:41]OFD Sender: To server: pG, [11:39:41]CommunicateWithHost lk.salyk.kg:30040 [11:39:41]ConnectInit lk.salyk.kg [11:39:41]written 0, free lines is 4095 [11:39:41]Connected sock=10 [11:39:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BA 44 07 01 9D CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 1C 15 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 05 B4 01 00 35 04 06 00 F4 44 1B 96 54 C7 C7 BA C4 EB B5 7C A4 7C [11:39:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 01 42 47 00 D6 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 05 B4 01 00 F4 03 04 00 68 AC 73 66 B6 04 01 00 00 40 82 95 AB 45 61 79 2D [11:39:41]CommunicateWithHost err = 0 [11:39:41]CheckOFDResponse [11:39:41]1017 (14) - 77093643461234 [11:39:41]1041 (16) - 0000000000875083 [11:39:41]1040 (4) - 111621 [11:39:41]1012 (4) - 20.06.2024 04:13 [11:39:41]1206 (1) - 0 [11:39:41]OFD Sender: Remove packet 111621 [11:39:41]ProducePacketName [11:39:41]name=ofd_packets/00111621 [11:39:41]NVStorageDeleteData [11:39:42]Write to MH i2c: 01 00 00 C0 57 17 [11:39:42]Write i2c OK [11:39:42]MH_I2C_Read... [11:39:42]Read from MH i2c: 01 [11:39:42]MH_I2C_Read... [11:39:42]Read from MH i2c: 01 07 00 [11:39:42]MH_I2C_Read... [11:39:42]Read from MH i2c: 01 07 00 C0 57 00 00 00 00 00 F6 0C 20 [11:39:42]RasterBufferAndPrint [11:39:42]line [11:39:42]line [11:39:42]line [11:39:42]line [11:39:42]line [11:39:42]written 0, free lines is 3325 [11:39:42]MH_Cut [11:39:42]Write to MH i2c: D1 01 00 C7 57 01 F0 [11:39:42]Write i2c OK [11:39:42]MH_I2C_Read... [11:39:42]Read from MH i2c: D1 [11:39:42]MH_I2C_Read... [11:39:42]Read from MH i2c: D1 01 00 [11:39:42]MH_I2C_Read... [11:39:42]Read from MH i2c: D1 01 00 C7 57 00 EF [11:39:42]Write to MH i2c: 01 00 00 C8 57 1F [11:39:42]Write i2c OK [11:39:42]MH_I2C_Read... [11:39:42]OFD Sender: No OFD packet to send [11:39:42]*** Cut start [11:39:42]*** Partial cut [11:39:42]*** CUTSNS_PIN = 1 [11:39:42]*** CUTSNS_PIN = 0 [11:39:43]*** Brake cut motor [11:39:43]Read from MH i2c: 01 [11:39:43]MH_I2C_Read... [11:39:43]*** Stop cut motor [11:39:43]*** Cut end [11:39:43]Read from MH i2c: 01 07 00 [11:39:43]MH_I2C_Read... [11:39:43]Read from MH i2c: 01 07 00 C8 57 00 00 00 00 00 FF 0F 34 [11:39:43]process_action close_receipt done [11:39:43]requested_data is exist [11:39:43]produce_requested_data [11:39:43]requested_item fm.sn is exist - process it [11:39:43]wFMCommunicate request_size=4 [11:39:43]MH_SAM_APDU [11:39:43]CAPDU: 80 11 00 00 [11:39:43]Write to MH i2c: E2 08 00 C9 57 80 11 00 00 00 00 00 00 9A [11:39:43]Write i2c OK [11:39:43]MH_I2C_Read... [11:39:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:43]Read from MH i2c: E2 [11:39:43]MH_I2C_Read... [11:39:43]Read from MH i2c: E2 17 00 [11:39:43]MH_I2C_Read... [11:39:43]Read from MH i2c: E2 17 00 C9 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EC [11:39:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:39:43]wFMCommunicate OK [11:39:43]requested_item fd.num is exist - process it [11:39:43]SAM_PROTO_GetFieldsCounters [11:39:43]wFMCommunicate request_size=4 [11:39:43]MH_SAM_APDU [11:39:43]CAPDU: 80 13 00 00 [11:39:43]Write to MH i2c: E2 08 00 CA 57 80 13 00 00 00 00 00 00 9D [11:39:43]Write i2c OK [11:39:43]MH_I2C_Read... [11:39:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:39:43]Read from MH i2c: E2 [11:39:43]MH_I2C_Read... [11:39:43]Read from MH i2c: E2 62 00 [11:39:43]MH_I2C_Read... [11:39:43]Read from MH i2c: E2 62 00 CA 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 05 B4 01 00 0E 04 04 00 85 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 D3 [11:39:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 05 B4 01 00 0E 04 04 00 85 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 [11:39:43]wFMCommunicate OK [11:39:43]SAM_PROTO_GetFieldsCounters done [11:39:43]requested_item shift.num is exist - process it [11:39:43]requested_item shift.opened is exist - process it [11:39:43]req_shift_opened [11:39:43]FM_GetShiftState [11:39:43]SAM_PROTO_GetShiftState [11:39:43]wFMCommunicate request_size=4 [11:39:43]MH_SAM_APDU [11:39:43]CAPDU: 80 13 01 00 [11:39:43]Write to MH i2c: E2 08 00 CB 57 80 13 01 00 00 00 00 00 9F [11:39:43]Write i2c OK [11:39:43]MH_I2C_Read... [11:39:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:43]Read from MH i2c: E2 [11:39:43]MH_I2C_Read... [11:39:43]Read from MH i2c: E2 0E 00 [11:39:43]MH_I2C_Read... [11:39:43]Read from MH i2c: E2 0E 00 CB 57 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 1A [11:39:43]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:39:43]wFMCommunicate OK [11:39:43]SAM_PROTO_GetShiftState done [11:39:43]FM_GetShiftState done [11:39:43]req_shift_opened done [11:39:43]requested_item shift.open_date is exist - process it [11:39:43]req_shift_open_date [11:39:43]req_shift_open_date done [11:39:43]produce_requested_data done [11:39:43]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111621,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [11:39:43]process_action_free close_receipt [11:39:43]json_value_free [11:39:43]json_value_free done [11:39:43]process_json_proto returns [11:39:43]Send response to host [11:39:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111621,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [11:39:43]free response buf [11:39:43]execute_script done [11:39:43]execute_script returns [11:39:43]free content buf [11:39:43]Sock 7.Close socket [11:39:43]Sock 7.Thread stoped [11:39:47]OFD Sender: No OFD packet to send [11:39:52]OFD Sender: No OFD packet to send [11:39:57]OFD Sender: No OFD packet to send [11:40:02]OFD Sender: No OFD packet to send [11:40:07]OFD Sender: No OFD packet to send [11:40:12]OFD Sender: No OFD packet to send [11:40:17]OFD Sender: No OFD packet to send [11:40:22]OFD Sender: No OFD packet to send [11:40:27]OFD Sender: No OFD packet to send [11:40:32]OFD Sender: No OFD packet to send [11:40:37]OFD Sender: No OFD packet to send [11:40:42]OFD Sender: No OFD packet to send [11:40:47]OFD Sender: No OFD packet to send [11:40:52]OFD Sender: No OFD packet to send [11:40:57]OFD Sender: No OFD packet to send [11:41:02]OFD Sender: No OFD packet to send [11:41:07]OFD Sender: No OFD packet to send [11:41:12]OFD Sender: No OFD packet to send [11:41:17]OFD Sender: No OFD packet to send [11:41:22]OFD Sender: No OFD packet to send [11:41:27]OFD Sender: No OFD packet to send [11:41:32]OFD Sender: No OFD packet to send [11:41:37]OFD Sender: No OFD packet to send [11:41:42]OFD Sender: No OFD packet to send [11:41:47]OFD Sender: No OFD packet to send [11:41:52]OFD Sender: No OFD packet to send [11:41:57]OFD Sender: No OFD packet to send [11:42:02]OFD Sender: No OFD packet to send [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:17]accept exits with 9 [11:42:17]New connection [11:42:17]New thread 3067465060 created [11:42:17]Thread 3067321700 joined [11:42:17]Waiting for new connection... [11:42:17] Sock 9.Parse request [11:42:17]Sock 9.Check first char [11:42:17]Sock 9.First char is OK [11:42:17]request: POST /json_proto HTTP/1.0 [11:42:17]Method: POST [11:42:17]URL: /json_proto [11:42:17]Method is POST - this is cgi request [11:42:17]url: /json_proto [11:42:17]query_string will be loaded in cgi processing [11:42:17]execute_cgi json_proto POST (null) [11:42:17]execute_cgi path=json_proto method=POST [11:42:17]POST find Content-Length [11:42:17]Host: 172.17.59.68:8080 [11:42:17]Content-Length: 677 [11:42:17]Content-Type: application/json [11:42:17] [11:42:17]POST finish read [11:42:17]Found Content-Length = 677 [11:42:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:17]execute_script... [11: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)320220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:17]POST & json_proto [11:42:17]process_json_proto [11:42:17]json parsed OK: [11:42:17]protocol is kg_v1.0 [11:42:17]action value=close_receipt [11:42:17]process_action close_receipt [11:42:17]cmd_close_receipt [11:42:17]MH_GetDate [11:42:17]Write to MH i2c: F0 00 00 CC 57 12 [11:42:17]Write i2c OK [11:42:17]MH_I2C_Read... [11:42:17]Read from MH i2c: F0 [11:42:17]MH_I2C_Read... [11:42:17]Read from MH i2c: F0 09 00 [11:42:17]MH_I2C_Read... [11:42:17]Read from MH i2c: F0 09 00 CC 57 00 BA 15 74 66 BC EC 60 65 31 [11:42:17]GetLastDocTimeStamp 1718883612 [11:42:17]current date 1718883770 [11:42:17]FM_GetShiftState [11:42:17]SAM_PROTO_GetShiftState [11:42:17]wFMCommunicate request_size=4 [11:42:17]MH_SAM_APDU [11:42:17]CAPDU: 80 13 01 00 [11:42:17]Write to MH i2c: E2 08 00 CD 57 80 13 01 00 00 00 00 00 A1 [11:42:17]Write i2c OK [11:42:17]MH_I2C_Read... [11:42:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:18]Read from MH i2c: E2 [11:42:18]MH_I2C_Read... [11:42:18]Read from MH i2c: E2 0E 00 [11:42:18]MH_I2C_Read... [11:42:18]Read from MH i2c: E2 0E 00 CD 57 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 1C [11:42:18]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:42:18]wFMCommunicate OK [11:42:18]SAM_PROTO_GetShiftState done [11:42:18]FM_GetShiftState done [11:42:18]opened in 1718847247 [11:42:18]opened+sec_in_day 1718933647 [11:42:18]quantity*price = 20052 [11:42:18]sum+1 = 20054 [11:42:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 72 20.06.2024 11:42 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111622 ФПД: 99908066802916 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T114250&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111622&fm=99908066802916&tin=02508201610067®Number=0000000000092771&sum=20000 [11:42:19]StoreToDocumentArchive [11:42:19]shift 389 fd 111622 [11:42:19]save to /storage/0389/doc_00111622 [11:42:19]save last doc name /storage/0389/doc_00111622 to /storage/kkm_last_doc_name [11:42:19]save OK [11:42:19]Clear old archive folders... [11:42:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:42:19]tlvbuf is 0101CA10 [11:42:19]SAM_PROTO_ClearQueue [11:42:19]wFMCommunicate request_size=4 [11:42:19]MH_SAM_APDU [11:42:19]CAPDU: 80 09 00 00 [11:42:19]Write to MH i2c: E2 08 00 DA 57 80 09 00 00 00 00 00 00 A3 [11:42:19]Write i2c OK [11:42:19]MH_I2C_Read... [11:42:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:19]Read from MH i2c: E2 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: E2 03 00 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: E2 03 00 DA 57 00 90 00 A5 [11:42:19]RAPDU: 90 00 [11:42:19]wFMCommunicate OK [11:42:19]SAM_PROTO_ClearQueue done [11:42:19]KKMCreateOFDPacket [11:42:19]OFDProtocolAddRootSTLVToBuf [11:42:19]FM_MakeSignedData [11:42:19]FM_MakeSignedData [11:42:19]SAM_PROTO_SignData [11:42:19]wFMCommunicate request_size=4 [11:42:19]MH_SAM_APDU [11:42:19]CAPDU: 80 0D 01 02 [11:42:19]Write to MH i2c: E2 08 00 DB 57 80 0D 01 02 00 00 00 00 AB [11:42:19]Write i2c OK [11:42:19]MH_I2C_Read... [11:42:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:19]Read from MH i2c: E2 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: E2 03 00 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: E2 03 00 DB 57 00 90 00 A6 [11:42:19]RAPDU: 90 00 [11:42:19]wFMCommunicate OK [11:42:19]wFMCommunicate request_size=255 [11:42:19]MH_SAM_APDU [11:42: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 BA 15 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 06 B4 01 00 35 04 06 00 5A [11:42:19]Write to MH i2c: E2 02 01 DC 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 BA 15 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 06 B4 01 00 35 04 06 00 5A 00 00 AA [11:42:19]Write i2c OK [11:42:19]MH_I2C_Read... [11:42:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:19]Read from MH i2c: E2 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: E2 03 00 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: E2 03 00 DC 57 00 90 00 A7 [11:42:19]RAPDU: 90 00 [11:42:19]wFMCommunicate OK [11:42:19]wFMCommunicate request_size=10 [11:42:19]MH_SAM_APDU [11:42:19]CAPDU: 80 0D 02 02 05 DD A8 D4 FC E4 [11:42:19]Write to MH i2c: E2 0D 00 DD 57 80 0D 02 02 05 00 DD A8 D4 FC E4 00 00 F1 [11:42:19]Write i2c OK [11:42:19]MH_I2C_Read... [11:42:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:19]Read from MH i2c: E2 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: E2 03 00 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: E2 03 00 DD 57 00 90 00 A8 [11:42:19]RAPDU: 90 00 [11:42:19]wFMCommunicate OK [11:42:19]wFMCommunicate request_size=4 [11:42:19]MH_SAM_APDU [11:42:19]CAPDU: 80 0D 03 02 [11:42:19]Write to MH i2c: E2 08 00 DE 57 80 0D 03 02 00 00 00 00 B0 [11:42:19]Write i2c OK [11:42:19]MH_I2C_Read... [11:42:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:19]Read from MH i2c: E2 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: E2 0B 00 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: E2 0B 00 DE 57 00 64 5D 3A 23 0E BD 88 8A 90 00 AC [11:42:19]RAPDU: 64 5D 3A 23 0E BD 88 8A 90 00 [11:42:19]wFMCommunicate OK [11:42:19]SAM_PROTO_SignData done [11:42:19]FM_MakeSignedData done [11:42:19]CreateOFDProtocolMessage [11:42:19]wFMCommunicate request_size=4 [11:42:19]MH_SAM_APDU [11:42:19]CAPDU: 80 11 00 00 [11:42:19]Write to MH i2c: E2 08 00 DF 57 80 11 00 00 00 00 00 00 B0 [11:42:19]Write i2c OK [11:42:19]MH_I2C_Read... [11:42:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:19]Read from MH i2c: E2 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: E2 17 00 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: E2 17 00 DF 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 02 [11:42:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:42:19]wFMCommunicate OK [11:42:19]CreateOFDProtocolMessage done [11:42:19]OFDSenderStorePacket 111622 [11:42:19]StoreOFDPacket docnum=111622 [11:42:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 05 54 07 01 8F 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 BA 15 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 06 B4 01 00 35 04 06 00 5A DD A8 D4 FC E4 64 5D 3A 23 0E BD 88 8A [11:42:19]CheckFolder [11:42:19]dirname=/storage/ofd_packets [11:42:19]CheckFolder done [11:42:19]ProducePacketName [11:42:19]name=ofd_packets/00111622 [11:42:19]NVStorageSaveData ofd_packets/00111622 [11:42:19]File name is /storage/ofd_packets/00111622 [11:42:19]Write 301 bytes [11:42:19]NVStorageSaveData done [11:42:19]OFDSenderStorePacket done [11:42:19]KKMCreateOFDPacket done [11:42:19]NVStorageSaveData kkm_last_timestamp [11:42:19]File name is /storage/kkm_last_timestamp [11:42:19]Write 4 bytes [11:42:19]NVStorageSaveData done [11:42:19]ExternCall_PrintAddStr [11:42:19]wPrintStart [11:42:19]Write to MH i2c: 01 00 00 E0 57 37 [11:42:19]Write i2c OK [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: 01 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: 01 07 00 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: 01 07 00 E0 57 00 00 00 00 00 FF 0F 4C [11:42:19]RasterBufferAndPrint [11:42:19]line Счет N : (1)320220 [11:42:19]line ИНН: 02508201610067 [11:42:19]line Контрольно-Кассовый Чек [11:42:19]line ПРОДАЖА [11:42:19]line ТРК (МРК, ГНК) : 11 [11:42:19]line Товар: 2710124130 [11:42:19]line Аи-92-К-5 [11:42:19]line 3.020 * 66.40 [11:42:19]line = 200.53 [11:42:19]line НДС 12% НСП 1% [11:42:19]line > о реализуемом товаре [11:42:19]line ОКРУГЛЕНИЕ: -0.53 [11:42:19]line ИТОГО: 200.00 [11:42:19]line Внесено: 200.00 [11:42:19]line СДАЧА: 0.00 [11:42:19]line НСП 1% : 1.77 [11:42:19]line НДС 12% : 21.29 [11:42:19]line Наличными: 200.00 [11:42:19]line Безнал.: 0.00 [11:42:19]line Место: АЗС № 65 "Партнер Нефть" [11:42:19]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:42:19]line СНО: Общий режим [11:42:19]line Чек 72 20.06.2024 11:42 [11:42:19]line Смена: 389 ФФД: 1.0 [11:42:19]line ЗНМ: 0300000198 [11:42:19]line РНМ: 0000000000092771 [11:42:19]line Версия ККМ: 001 [11:42:19]line ФМ: 0000000000875083 [11:42:19]line ФД: 111622 [11:42:19]line ФПД: 99908066802916 [11:42:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T114250&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111622&fm=99908066802916&tin=02508201610067®Number=0000000000092771&sum=20000 [11:42:20]OFD Sender: Processing packet 111622 [packets to send 38, broken 37] [11:42:20]ProducePacketName [11:42:20]name=ofd_packets/00111622 [11:42:20]OFD Sender: To server: pG, [11:42:20]CommunicateWithHost lk.salyk.kg:30040 [11:42:20]ConnectInit lk.salyk.kg [11:42:20]written 0, free lines is 4095 [11:42:20]Connected sock=10 [11:42:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 05 54 07 01 8F 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 BA 15 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 06 B4 01 00 35 04 06 00 5A DD A8 D4 FC E4 64 5D 3A 23 0E BD 88 8A [11:42:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 8F 03 47 00 6A A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 06 B4 01 00 F4 03 04 00 06 AD 73 66 B6 04 01 00 00 DD C2 8C 0F 64 30 90 8E [11:42:20]CommunicateWithHost err = 0 [11:42:20]CheckOFDResponse [11:42:20]1017 (14) - 77093643461234 [11:42:20]1041 (16) - 0000000000875083 [11:42:20]1040 (4) - 111622 [11:42:20]1012 (4) - 20.06.2024 04:16 [11:42:20]1206 (1) - 0 [11:42:20]OFD Sender: Remove packet 111622 [11:42:20]ProducePacketName [11:42:20]name=ofd_packets/00111622 [11:42:20]NVStorageDeleteData [11:42:20]Write to MH i2c: 01 00 00 0B 58 63 [11:42:20]Write i2c OK [11:42:20]MH_I2C_Read... [11:42:20]Read from MH i2c: 01 [11:42:20]MH_I2C_Read... [11:42:20]Read from MH i2c: 01 07 00 [11:42:20]MH_I2C_Read... [11:42:20]Read from MH i2c: 01 07 00 0B 58 00 00 00 00 00 CC 0C 42 [11:42:20]RasterBufferAndPrint [11:42:20]line [11:42:20]line [11:42:20]line [11:42:20]line [11:42:20]line [11:42:20]written 0, free lines is 3282 [11:42:20]MH_Cut [11:42:20]Write to MH i2c: D1 01 00 12 58 01 3C [11:42:20]Write i2c OK [11:42:20]MH_I2C_Read... [11:42:20]Read from MH i2c: D1 [11:42:20]MH_I2C_Read... [11:42:20]Read from MH i2c: D1 01 00 [11:42:20]MH_I2C_Read... [11:42:20]Read from MH i2c: D1 01 00 12 58 00 3B [11:42:20]Write to MH i2c: 01 00 00 13 58 6B [11:42:20]Write i2c OK [11:42:20]MH_I2C_Read... [11:42:20]OFD Sender: No OFD packet to send [11:42:21]*** Cut start [11:42:21]*** Partial cut [11:42:21]*** CUTSNS_PIN = 1 [11:42:21]*** CUTSNS_PIN = 0 [11:42:21]*** Brake cut motor [11:42:21]Read from MH i2c: 01 [11:42:21]MH_I2C_Read... [11:42:21]*** Stop cut motor [11:42:21]*** Cut end [11:42:21]Read from MH i2c: 01 07 00 [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: 01 07 00 13 58 00 00 00 00 00 FF 0F 80 [11:42:21]process_action close_receipt done [11:42:21]requested_data is exist [11:42:21]produce_requested_data [11:42:21]requested_item fm.sn is exist - process it [11:42:21]wFMCommunicate request_size=4 [11:42:21]MH_SAM_APDU [11:42:21]CAPDU: 80 11 00 00 [11:42:21]Write to MH i2c: E2 08 00 14 58 80 11 00 00 00 00 00 00 E6 [11:42:21]Write i2c OK [11:42:21]MH_I2C_Read... [11:42:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:21]Read from MH i2c: E2 [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: E2 17 00 [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: E2 17 00 14 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 38 [11:42:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:42:21]wFMCommunicate OK [11:42:21]requested_item fd.num is exist - process it [11:42:21]SAM_PROTO_GetFieldsCounters [11:42:21]wFMCommunicate request_size=4 [11:42:21]MH_SAM_APDU [11:42:21]CAPDU: 80 13 00 00 [11:42:21]Write to MH i2c: E2 08 00 15 58 80 13 00 00 00 00 00 00 E9 [11:42:21]Write i2c OK [11:42:21]MH_I2C_Read... [11:42:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:22]Read from MH i2c: E2 [11:42:22]MH_I2C_Read... [11:42:22]Read from MH i2c: E2 62 00 [11:42:22]MH_I2C_Read... [11:42:22]Read from MH i2c: E2 62 00 15 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 06 B4 01 00 0E 04 04 00 85 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 23 [11:42:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 06 B4 01 00 0E 04 04 00 85 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 [11:42:22]wFMCommunicate OK [11:42:22]SAM_PROTO_GetFieldsCounters done [11:42:22]requested_item shift.num is exist - process it [11:42:22]requested_item shift.opened is exist - process it [11:42:22]req_shift_opened [11:42:22]FM_GetShiftState [11:42:22]SAM_PROTO_GetShiftState [11:42:22]wFMCommunicate request_size=4 [11:42:22]MH_SAM_APDU [11:42:22]CAPDU: 80 13 01 00 [11:42:22]Write to MH i2c: E2 08 00 16 58 80 13 01 00 00 00 00 00 EB [11:42:22]Write i2c OK [11:42:22]MH_I2C_Read... [11:42:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:22]Read from MH i2c: E2 [11:42:22]MH_I2C_Read... [11:42:22]Read from MH i2c: E2 0E 00 [11:42:22]MH_I2C_Read... [11:42:22]Read from MH i2c: E2 0E 00 16 58 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 66 [11:42:22]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:42:22]wFMCommunicate OK [11:42:22]SAM_PROTO_GetShiftState done [11:42:22]FM_GetShiftState done [11:42:22]req_shift_opened done [11:42:22]requested_item shift.open_date is exist - process it [11:42:22]req_shift_open_date [11:42:22]req_shift_open_date done [11:42:22]produce_requested_data done [11:42:22]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111622,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [11:42:22]process_action_free close_receipt [11:42:22]json_value_free [11:42:22]json_value_free done [11:42:22]process_json_proto returns [11:42:22]Send response to host [11:42:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111622,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [11:42:22]free response buf [11:42:22]execute_script done [11:42:22]execute_script returns [11:42:22]free content buf [11:42:22]Sock 9.Close socket [11:42:22]Sock 9.Thread stoped [11:42:25]OFD Sender: No OFD packet to send [11:42:30]OFD Sender: No OFD packet to send [11:42:35]OFD Sender: No OFD packet to send [11:42:40]OFD Sender: No OFD packet to send [11:42:45]OFD Sender: No OFD packet to send [11:42:50]OFD Sender: No OFD packet to send [11:42:55]OFD Sender: No OFD packet to send [11:43:00]OFD Sender: No OFD packet to send [11:43:05]OFD Sender: No OFD packet to send [11:43:10]OFD Sender: No OFD packet to send [11:43:15]OFD Sender: No OFD packet to send [11:43:20]OFD Sender: No OFD packet to send [11:43:25]OFD Sender: No OFD packet to send [11:43:30]OFD Sender: No OFD packet to send [11:43:31]accept exits with 7 [11:43:31]New connection [11:43:31]New thread 3067321700 created [11:43:31]Thread 3067465060 joined [11:43:31]Waiting for new connection... [11:43:31] Sock 7.Parse request [11:43:31]Sock 7.Check first char [11:43:31]Sock 7.First char is OK [11:43:31]request: POST /json_proto HTTP/1.0 [11:43:31]Method: POST [11:43:31]URL: /json_proto [11:43:31]Method is POST - this is cgi request [11:43:31]url: /json_proto [11:43:31]query_string will be loaded in cgi processing [11:43:31]execute_cgi json_proto POST (null) [11:43:31]execute_cgi path=json_proto method=POST [11:43:31]POST find Content-Length [11:43:31]Host: 172.17.59.68:8080 [11:43:31]Content-Length: 1211 [11:43:31]Content-Type: application/json [11:43:31] [11:43:31]POST finish read [11:43:31]Found Content-Length = 1211 [11:43:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0435\u0439\u0448\u0435\u043D\u0431\u0435\u043A\u043E\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)320219\u000A20.06.2024 10:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 7290.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A54590\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:31]execute_script... [11:43:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0435\u0439\u0448\u0435\u043D\u0431\u0435\u043A\u043E\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)320219\u000A20.06.2024 10:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 7290.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A54590\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:31]POST & json_proto [11:43:31]process_json_proto [11:43:31]json parsed OK: [11:43:31]protocol is kg_v1.0 [11:43:31]action value=print_text [11:43:31]process_action print_text [11:43:31]cmd_print_text [11:43:31]ExternCall_PrintAddStr [11:43:31]wPrintStart [11:43:31]Write to MH i2c: 01 00 00 17 58 6F [11:43:31]Write i2c OK [11:43:31]MH_I2C_Read... [11:43:31]Read from MH i2c: 01 [11:43:31]MH_I2C_Read... [11:43:31]Read from MH i2c: 01 07 00 [11:43:31]MH_I2C_Read... [11:43:31]Read from MH i2c: 01 07 00 17 58 00 00 00 00 00 FF 0F 84 [11:43:31]RasterBufferAndPrint [11:43:31]line *****ТОВАРНЫЙ ЧЕК***** [11:43:31]line АЗС 65 [11:43:31]line Партнер нефть [11:43:31]line 02508201610067 [11:43:31]line Кассир : Бейшенбеков А. [11:43:31]line Счет N : (1)320219 [11:43:31]line 20.06.2024 10:12 [11:43:31]line ПРОДАЖА [11:43:31]line ТРК (МРК, ГНК): 22 [11:43:31]line Вид ГСМ : 2710194210 [11:43:31]line ДТ-К-5 [11:43:31]line 100.000 x 72.90 [11:43:31]line ИТОГ: 7290.00 [11:43:31]line Тип оплаты: Талоны: Топливная Карта [11:43:31]line 54590 [11:43:31]line ______________________ [11:43:31]line (подпись) [11:43:31]written 0, free lines is 4095 [11:43:31]Write to MH i2c: 01 00 00 2C 58 84 [11:43:31]Write i2c OK [11:43:31]MH_I2C_Read... [11:43:31]Read from MH i2c: 01 [11:43:31]MH_I2C_Read... [11:43:31]Read from MH i2c: 01 07 00 [11:43:31]MH_I2C_Read... [11:43:31]Read from MH i2c: 01 07 00 2C 58 00 00 00 00 00 F4 0D 8C [11:43:31]RasterBufferAndPrint [11:43:31]line [11:43:31]line [11:43:31]line [11:43:31]line [11:43:31]line [11:43:31]written 0, free lines is 3573 [11:43:31]MH_Cut [11:43:31]Write to MH i2c: D1 01 00 33 58 01 5D [11:43:31]Write i2c OK [11:43:31]MH_I2C_Read... [11:43:31]Read from MH i2c: D1 [11:43:31]MH_I2C_Read... [11:43:31]Read from MH i2c: D1 01 00 [11:43:31]MH_I2C_Read... [11:43:31]Read from MH i2c: D1 01 00 33 58 00 5C [11:43:31]Write to MH i2c: 01 00 00 34 58 8C [11:43:31]Write i2c OK [11:43:31]MH_I2C_Read... [11:43:32]*** Cut start [11:43:32]*** Partial cut [11:43:32]*** CUTSNS_PIN = 1 [11:43:32]*** CUTSNS_PIN = 0 [11:43:32]*** Brake cut motor [11:43:33]Read from MH i2c: 01 [11:43:33]MH_I2C_Read... [11:43:33]Read from MH i2c: 01 07 00 [11:43:33]MH_I2C_Read... [11:43:33]*** Stop cut motor [11:43:33]*** Cut end [11:43:33]Read from MH i2c: 01 07 00 34 58 00 00 00 00 00 FF 0F A1 [11:43:33]process_action print_text done [11:43:33]requested_data is exist [11:43:33]produce_requested_data [11:43:33]requested_item fm.sn is exist - process it [11:43:33]wFMCommunicate request_size=4 [11:43:33]MH_SAM_APDU [11:43:33]CAPDU: 80 11 00 00 [11:43:33]Write to MH i2c: E2 08 00 35 58 80 11 00 00 00 00 00 00 07 [11:43:33]Write i2c OK [11:43:33]MH_I2C_Read... [11:43:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:33]Read from MH i2c: E2 [11:43:33]MH_I2C_Read... [11:43:33]Read from MH i2c: E2 17 00 [11:43:33]MH_I2C_Read... [11:43:33]Read from MH i2c: E2 17 00 35 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 59 [11:43:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:43:33]wFMCommunicate OK [11:43:33]requested_item fd.num is exist - process it [11:43:33]SAM_PROTO_GetFieldsCounters [11:43:33]wFMCommunicate request_size=4 [11:43:33]MH_SAM_APDU [11:43:33]CAPDU: 80 13 00 00 [11:43:33]Write to MH i2c: E2 08 00 36 58 80 13 00 00 00 00 00 00 0A [11:43:33]Write i2c OK [11:43:33]MH_I2C_Read... [11:43:33]Read from MH i2c: E2 [11:43:33]MH_I2C_Read... [11:43:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:33]Read from MH i2c: E2 62 00 [11:43:33]MH_I2C_Read... [11:43:33]Read from MH i2c: E2 62 00 36 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 06 B4 01 00 0E 04 04 00 85 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 44 [11: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 06 B4 01 00 0E 04 04 00 85 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 [11:43:33]wFMCommunicate OK [11:43:33]SAM_PROTO_GetFieldsCounters done [11:43:33]requested_item shift.num is exist - process it [11:43:33]requested_item shift.opened is exist - process it [11:43:33]req_shift_opened [11:43:33]FM_GetShiftState [11:43:33]SAM_PROTO_GetShiftState [11:43:33]wFMCommunicate request_size=4 [11:43:33]MH_SAM_APDU [11:43:33]CAPDU: 80 13 01 00 [11:43:33]Write to MH i2c: E2 08 00 37 58 80 13 01 00 00 00 00 00 0C [11:43:33]Write i2c OK [11:43:33]MH_I2C_Read... [11:43:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:33]Read from MH i2c: E2 [11:43:33]MH_I2C_Read... [11:43:33]Read from MH i2c: E2 0E 00 [11:43:33]MH_I2C_Read... [11:43:33]Read from MH i2c: E2 0E 00 37 58 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 87 [11:43:33]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:43:33]wFMCommunicate OK [11:43:33]SAM_PROTO_GetShiftState done [11:43:33]FM_GetShiftState done [11:43:33]req_shift_opened done [11:43:33]requested_item shift.open_date is exist - process it [11:43:33]req_shift_open_date [11:43:33]req_shift_open_date done [11:43:33]produce_requested_data done [11:43:33]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111622,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [11:43:33]process_action_free print_text [11:43:33]json_value_free [11:43:33]json_value_free done [11:43:33]process_json_proto returns [11:43:33]Send response to host [11:43:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111622,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [11:43:33]free response buf [11:43:33]execute_script done [11:43:33]execute_script returns [11:43:33]free content buf [11:43:33]Sock 7.Close socket [11:43:33]Sock 7.Thread stoped [11:43:35]OFD Sender: No OFD packet to send [11:43:40]OFD Sender: No OFD packet to send [11:43:45]OFD Sender: No OFD packet to send [11:43:50]OFD Sender: No OFD packet to send [11:43:55]OFD Sender: No OFD packet to send [11:44:00]OFD Sender: No OFD packet to send [11:44:05]OFD Sender: No OFD packet to send [11:44:10]OFD Sender: No OFD packet to send [11:44:15]OFD Sender: No OFD packet to send [11:44:20]OFD Sender: No OFD packet to send [11:44:25]OFD Sender: No OFD packet to send [11:44:30]OFD Sender: No OFD packet to send [11:44:35]OFD Sender: No OFD packet to send [11:44:40]OFD Sender: No OFD packet to send [11:44:45]OFD Sender: No OFD packet to send [11:44:50]OFD Sender: No OFD packet to send [11:44:55]OFD Sender: No OFD packet to send [11:45:00]OFD Sender: No OFD packet to send [11:45:05]OFD Sender: No OFD packet to send [11:45:10]OFD Sender: No OFD packet to send [11:45:15]OFD Sender: No OFD packet to send [11:45:20]OFD Sender: No OFD packet to send [11:45:22]accept exits with 9 [11:45:22]New connection [11:45:22]New thread 3067465060 created [11:45:22]Thread 3067321700 joined [11:45:22]Waiting for new connection... [11:45:22] Sock 9.Parse request [11:45:22]Sock 9.Check first char [11:45:22]Sock 9.First char is OK [11:45:22]request: POST /json_proto HTTP/1.0 [11:45:22]Method: POST [11:45:22]URL: /json_proto [11:45:22]Method is POST - this is cgi request [11:45:22]url: /json_proto [11:45:22]query_string will be loaded in cgi processing [11:45:22]execute_cgi json_proto POST (null) [11:45:22]execute_cgi path=json_proto method=POST [11:45:22]POST find Content-Length [11:45:22]Host: 172.17.59.68:8080 [11:45:22]Content-Length: 674 [11:45:22]Content-Type: application/json [11:45:22] [11:45:22]POST finish read [11:45:22]Found Content-Length = 674 [11:45:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 4.940, "sum" : 360.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:22]execute_script... [11:45:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 4.940, "sum" : 360.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:22]POST & json_proto [11:45:22]process_json_proto [11:45:22]json parsed OK: [11:45:22]protocol is kg_v1.0 [11:45:22]action value=close_receipt [11:45:22]process_action close_receipt [11:45:22]cmd_close_receipt [11:45:22]MH_GetDate [11:45:22]Write to MH i2c: F0 00 00 38 58 7F [11:45:22]Write i2c OK [11:45:22]MH_I2C_Read... [11:45:22]Read from MH i2c: F0 [11:45:22]MH_I2C_Read... [11:45:22]Read from MH i2c: F0 09 00 [11:45:22]MH_I2C_Read... [11:45:22]Read from MH i2c: F0 09 00 38 58 00 73 16 74 66 BC EC 60 65 58 [11:45:22]GetLastDocTimeStamp 1718883770 [11:45:22]current date 1718883955 [11:45:22]FM_GetShiftState [11:45:22]SAM_PROTO_GetShiftState [11:45:22]wFMCommunicate request_size=4 [11:45:22]MH_SAM_APDU [11:45:22]CAPDU: 80 13 01 00 [11:45:22]Write to MH i2c: E2 08 00 39 58 80 13 01 00 00 00 00 00 0E [11:45:22]Write i2c OK [11:45:22]MH_I2C_Read... [11:45:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:22]Read from MH i2c: E2 [11:45:22]MH_I2C_Read... [11:45:22]Read from MH i2c: E2 0E 00 [11:45:22]MH_I2C_Read... [11:45:22]Read from MH i2c: E2 0E 00 39 58 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 89 [11:45:22]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:45:22]wFMCommunicate OK [11:45:22]SAM_PROTO_GetShiftState done [11:45:22]FM_GetShiftState done [11:45:22]opened in 1718847247 [11:45:22]opened+sec_in_day 1718933647 [11:45:22]quantity*price = 36012 [11:45:22]sum+1 = 36014 [11:45:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 360.00 Внесено: 360.00 СДАЧА: 0.00 НСП 1% : 3.19 НДС 12% : 38.24 Наличными: 360.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 73 20.06.2024 11:45 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111623 ФПД: 178533440668838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T114555&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111623&fm=178533440668838&tin=02508201610067®Number=0000000000092771&sum=36000 [11:45:23]StoreToDocumentArchive [11:45:23]shift 389 fd 111623 [11:45:23]save to /storage/0389/doc_00111623 [11:45:23]save last doc name /storage/0389/doc_00111623 to /storage/kkm_last_doc_name [11:45:23]save OK [11:45:23]Clear old archive folders... [11:45:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:45:23]tlvbuf is B6F57610 [11:45:23]SAM_PROTO_ClearQueue [11:45:23]wFMCommunicate request_size=4 [11:45:23]MH_SAM_APDU [11:45:23]CAPDU: 80 09 00 00 [11:45:23]Write to MH i2c: E2 08 00 46 58 80 09 00 00 00 00 00 00 10 [11:45:23]Write i2c OK [11:45:23]MH_I2C_Read... [11:45:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:45:23]Read from MH i2c: E2 [11:45:23]MH_I2C_Read... [11:45:23]Read from MH i2c: E2 03 00 [11:45:23]MH_I2C_Read... [11:45:23]Read from MH i2c: E2 03 00 46 58 00 90 00 12 [11:45:23]RAPDU: 90 00 [11:45:23]wFMCommunicate OK [11:45:23]SAM_PROTO_ClearQueue done [11:45:23]KKMCreateOFDPacket [11:45:23]OFDProtocolAddRootSTLVToBuf [11:45:23]FM_MakeSignedData [11:45:23]FM_MakeSignedData [11:45:23]SAM_PROTO_SignData [11:45:23]wFMCommunicate request_size=4 [11:45:23]MH_SAM_APDU [11:45:23]CAPDU: 80 0D 01 02 [11:45:23]Write to MH i2c: E2 08 00 47 58 80 0D 01 02 00 00 00 00 18 [11:45:23]Write i2c OK [11:45:23]MH_I2C_Read... [11:45:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:45:23]Read from MH i2c: E2 [11:45:23]MH_I2C_Read... [11:45:23]Read from MH i2c: E2 03 00 [11:45:23]MH_I2C_Read... [11:45:23]Read from MH i2c: E2 03 00 47 58 00 90 00 13 [11:45:23]RAPDU: 90 00 [11:45:23]wFMCommunicate OK [11:45:23]wFMCommunicate request_size=255 [11:45:23]MH_SAM_APDU [11:45:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4C 13 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AD 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 73 16 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 07 B4 01 00 35 04 06 00 A2 60 0E 4F [11:45:24]Write to MH i2c: E2 02 01 48 58 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4C 13 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AD 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 73 16 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 07 B4 01 00 35 04 06 00 A2 60 0E 4F 00 00 86 [11:45:24]Write i2c OK [11:45:24]MH_I2C_Read... [11:45:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:24]Read from MH i2c: E2 [11:45:24]MH_I2C_Read... [11:45:24]Read from MH i2c: E2 03 00 [11:45:24]MH_I2C_Read... [11:45:24]Read from MH i2c: E2 03 00 48 58 00 90 00 14 [11:45:24]RAPDU: 90 00 [11:45:24]wFMCommunicate OK [11:45:24]wFMCommunicate request_size=7 [11:45:24]MH_SAM_APDU [11:45:24]CAPDU: 80 0D 02 02 02 C4 A6 [11:45:24]Write to MH i2c: E2 0A 00 49 58 80 0D 02 02 02 00 C4 A6 00 00 89 [11:45:24]Write i2c OK [11:45:24]MH_I2C_Read... [11:45:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:24]Read from MH i2c: E2 [11:45:24]MH_I2C_Read... [11:45:24]Read from MH i2c: E2 03 00 [11:45:24]MH_I2C_Read... [11:45:24]Read from MH i2c: E2 03 00 49 58 00 90 00 15 [11:45:24]RAPDU: 90 00 [11:45:24]wFMCommunicate OK [11:45:24]wFMCommunicate request_size=4 [11:45:24]MH_SAM_APDU [11:45:24]CAPDU: 80 0D 03 02 [11:45:24]Write to MH i2c: E2 08 00 4A 58 80 0D 03 02 00 00 00 00 1D [11:45:24]Write i2c OK [11:45:24]MH_I2C_Read... [11:45:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:45:24]Read from MH i2c: E2 [11:45:24]MH_I2C_Read... [11:45:24]Read from MH i2c: E2 0B 00 [11:45:24]MH_I2C_Read... [11:45:24]Read from MH i2c: E2 0B 00 4A 58 00 7E A8 76 6E D0 1D D8 A3 90 00 90 [11:45:24]RAPDU: 7E A8 76 6E D0 1D D8 A3 90 00 [11:45:24]wFMCommunicate OK [11:45:24]SAM_PROTO_SignData done [11:45:24]FM_MakeSignedData done [11:45:24]CreateOFDProtocolMessage [11:45:24]wFMCommunicate request_size=4 [11:45:24]MH_SAM_APDU [11:45:24]CAPDU: 80 11 00 00 [11:45:24]Write to MH i2c: E2 08 00 4B 58 80 11 00 00 00 00 00 00 1D [11:45:24]Write i2c OK [11:45:24]MH_I2C_Read... [11:45:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:24]Read from MH i2c: E2 [11:45:24]MH_I2C_Read... [11:45:24]Read from MH i2c: E2 17 00 [11:45:24]MH_I2C_Read... [11:45:24]Read from MH i2c: E2 17 00 4B 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6F [11:45:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:45:24]wFMCommunicate OK [11:45:24]CreateOFDProtocolMessage done [11:45:24]OFDSenderStorePacket 111623 [11:45:24]StoreOFDPacket docnum=111623 [11:45:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 BD 58 04 01 EB A9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4C 13 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AD 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 73 16 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 07 B4 01 00 35 04 06 00 A2 60 0E 4F C4 A6 7E A8 76 6E D0 1D D8 A3 [11:45:24]CheckFolder [11:45:24]dirname=/storage/ofd_packets [11:45:24]CheckFolder done [11:45:24]ProducePacketName [11:45:24]name=ofd_packets/00111623 [11:45:24]NVStorageSaveData ofd_packets/00111623 [11:45:24]File name is /storage/ofd_packets/00111623 [11:45:24]Write 298 bytes [11:45:24]NVStorageSaveData done [11:45:24]OFDSenderStorePacket done [11:45:24]KKMCreateOFDPacket done [11:45:24]NVStorageSaveData kkm_last_timestamp [11:45:24]File name is /storage/kkm_last_timestamp [11:45:24]Write 4 bytes [11:45:24]NVStorageSaveData done [11:45:24]ExternCall_PrintAddStr [11:45:24]wPrintStart [11:45:24]Write to MH i2c: 01 00 00 4C 58 A4 [11:45:24]Write i2c OK [11:45:24]MH_I2C_Read... [11:45:24]Read from MH i2c: 01 [11:45:24]MH_I2C_Read... [11:45:24]Read from MH i2c: 01 07 00 [11:45:24]MH_I2C_Read... [11:45:24]Read from MH i2c: 01 07 00 4C 58 00 00 00 00 00 FF 0F B9 [11:45:24]RasterBufferAndPrint [11:45:24]line Счет N : (1)320222 [11:45:24]line ИНН: 02508201610067 [11:45:24]line Контрольно-Кассовый Чек [11:45:24]line ПРОДАЖА [11:45:24]line ТРК (МРК, ГНК) : 22 [11:45:24]line Товар: 2710194210 [11:45:24]line ДТ-К-5 [11:45:24]line 4.940 * 72.90 [11:45:24]line = 360.13 [11:45:24]line НДС 12% НСП 1% [11:45:24]line > о реализуемом товаре [11:45:24]line ОКРУГЛЕНИЕ: -0.13 [11:45:24]line ИТОГО: 360.00 [11:45:24]line Внесено: 360.00 [11:45:24]line СДАЧА: 0.00 [11:45:24]line НСП 1% : 3.19 [11:45:24]line НДС 12% : 38.24 [11:45:24]line Наличными: 360.00 [11:45:24]line Безнал.: 0.00 [11:45:24]line Место: АЗС № 65 "Партнер Нефть" [11:45:24]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:45:24]line СНО: Общий режим [11:45:24]line Чек 73 20.06.2024 11:45 [11:45:24]line Смена: 389 ФФД: 1.0 [11:45:24]line ЗНМ: 0300000198 [11:45:24]line РНМ: 0000000000092771 [11:45:24]line Версия ККМ: 001 [11:45:24]line ФМ: 0000000000875083 [11:45:24]line ФД: 111623 [11:45:24]line ФПД: 178533440668838 [11:45:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T114555&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111623&fm=178533440668838&tin=02508201610067®Number=0000000000092771&sum=36000 [11:45:24]OFD Sender: Processing packet 111623 [packets to send 38, broken 37] [11:45:24]ProducePacketName [11:45:24]name=ofd_packets/00111623 [11:45:24]OFD Sender: To server: pG, [11:45:24]CommunicateWithHost lk.salyk.kg:30040 [11:45:24]ConnectInit lk.salyk.kg [11:45:24]written 0, free lines is 4095 [11:45:24]Connected sock=10 [11:45:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 BD 58 04 01 EB A9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4C 13 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AD 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 73 16 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 07 B4 01 00 35 04 06 00 A2 60 0E 4F C4 A6 7E A8 76 6E D0 1D D8 A3 [11:45:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 98 11 47 00 73 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 07 B4 01 00 F4 03 04 00 BF AD 73 66 B6 04 01 00 00 45 1A F6 5A A5 7D 35 EC [11:45:25]CommunicateWithHost err = 0 [11:45:25]CheckOFDResponse [11:45:25]1017 (14) - 77093643461234 [11:45:25]1041 (16) - 0000000000875083 [11:45:25]1040 (4) - 111623 [11:45:25]1012 (4) - 20.06.2024 04:19 [11:45:25]1206 (1) - 0 [11:45:25]OFD Sender: Remove packet 111623 [11:45:25]ProducePacketName [11:45:25]name=ofd_packets/00111623 [11:45:25]NVStorageDeleteData [11:45:25]Write to MH i2c: 01 00 00 77 58 CF [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 77 58 00 00 00 00 00 CC 0C AE [11:45:25]RasterBufferAndPrint [11:45:25]line [11:45:25]line [11:45:25]line [11:45:25]line [11:45:25]line [11:45:25]written 0, free lines is 3282 [11:45:25]MH_Cut [11:45:25]Write to MH i2c: D1 01 00 7E 58 01 A8 [11:45:25]Write i2c OK [11:45:25]MH_I2C_Read... [11:45:25]Read from MH i2c: D1 [11:45:25]MH_I2C_Read... [11:45:25]Read from MH i2c: D1 01 00 [11:45:25]MH_I2C_Read... [11:45:25]Read from MH i2c: D1 01 00 7E 58 00 A7 [11:45:25]Write to MH i2c: 01 00 00 7F 58 D7 [11:45:25]Write i2c OK [11:45:25]MH_I2C_Read... [11:45:25]OFD Sender: No OFD packet to send [11:45:25]*** Cut start [11:45:26]*** Partial cut [11:45:26]*** CUTSNS_PIN = 1 [11:45:26]*** CUTSNS_PIN = 0 [11:45:26]*** Brake cut motor [11:45:26]Read from MH i2c: 01 [11:45:26]MH_I2C_Read... [11:45:26]*** Stop cut motor [11:45:26]*** Cut end [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 7F 58 00 00 00 00 00 FF 0F EC [11:45:26]process_action close_receipt done [11:45:26]requested_data is exist [11:45:26]produce_requested_data [11:45:26]requested_item fm.sn is exist - process it [11:45:26]wFMCommunicate request_size=4 [11:45:26]MH_SAM_APDU [11:45:26]CAPDU: 80 11 00 00 [11:45:26]Write to MH i2c: E2 08 00 80 58 80 11 00 00 00 00 00 00 52 [11:45:26]Write i2c OK [11:45:26]MH_I2C_Read... [11:45:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:26]Read from MH i2c: E2 [11:45:26]MH_I2C_Read... [11:45:26]Read from MH i2c: E2 17 00 [11:45:26]MH_I2C_Read... [11:45:26]Read from MH i2c: E2 17 00 80 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A4 [11:45:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:45:26]wFMCommunicate OK [11:45:26]requested_item fd.num is exist - process it [11:45:26]SAM_PROTO_GetFieldsCounters [11:45:26]wFMCommunicate request_size=4 [11:45:26]MH_SAM_APDU [11:45:26]CAPDU: 80 13 00 00 [11:45:26]Write to MH i2c: E2 08 00 81 58 80 13 00 00 00 00 00 00 55 [11:45:26]Write i2c OK [11:45:26]MH_I2C_Read... [11:45:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:26]Read from MH i2c: E2 [11:45:26]MH_I2C_Read... [11:45:26]Read from MH i2c: E2 62 00 [11:45:26]MH_I2C_Read... [11:45:26]Read from MH i2c: E2 62 00 81 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 07 B4 01 00 0E 04 04 00 85 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 93 [11:45:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 07 B4 01 00 0E 04 04 00 85 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 [11:45:26]wFMCommunicate OK [11:45:26]SAM_PROTO_GetFieldsCounters done [11:45:26]requested_item shift.num is exist - process it [11:45:26]requested_item shift.opened is exist - process it [11:45:26]req_shift_opened [11:45:26]FM_GetShiftState [11:45:26]SAM_PROTO_GetShiftState [11:45:26]wFMCommunicate request_size=4 [11:45:26]MH_SAM_APDU [11:45:26]CAPDU: 80 13 01 00 [11:45:26]Write to MH i2c: E2 08 00 82 58 80 13 01 00 00 00 00 00 57 [11:45:26]Write i2c OK [11:45:26]MH_I2C_Read... [11:45:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:26]Read from MH i2c: E2 [11:45:26]MH_I2C_Read... [11:45:26]Read from MH i2c: E2 0E 00 [11:45:26]MH_I2C_Read... [11:45:26]Read from MH i2c: E2 0E 00 82 58 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 D2 [11:45:26]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:45:26]wFMCommunicate OK [11:45:26]SAM_PROTO_GetShiftState done [11:45:26]FM_GetShiftState done [11:45:26]req_shift_opened done [11:45:26]requested_item shift.open_date is exist - process it [11:45:26]req_shift_open_date [11:45:26]req_shift_open_date done [11:45:26]produce_requested_data done [11:45:26]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111623,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [11:45:26]process_action_free close_receipt [11:45:26]json_value_free [11:45:26]json_value_free done [11:45:26]process_json_proto returns [11:45:26]Send response to host [11:45:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111623,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [11:45:26]free response buf [11:45:26]execute_script done [11:45:26]execute_script returns [11:45:26]free content buf [11:45:26]Sock 9.Close socket [11:45:26]Sock 9.Thread stoped [11:45:30]OFD Sender: No OFD packet to send [11:45:35]OFD Sender: No OFD packet to send [11:45:40]OFD Sender: No OFD packet to send [11:45:45]OFD Sender: No OFD packet to send [11:45:50]OFD Sender: No OFD packet to send [11:45:55]OFD Sender: No OFD packet to send [11:46:00]OFD Sender: No OFD packet to send [11:46:04]accept exits with 7 [11:46:04]New connection [11:46:04]New thread 3067321700 created [11:46:04]Thread 3067465060 joined [11:46:04]Waiting for new connection... [11:46:04] Sock 7.Parse request [11:46:04]Sock 7.Check first char [11:46:04]Sock 7.First char is OK [11:46:04]request: POST /json_proto HTTP/1.0 [11:46:04]Method: POST [11:46:04]URL: /json_proto [11:46:04]Method is POST - this is cgi request [11:46:04]url: /json_proto [11:46:04]query_string will be loaded in cgi processing [11:46:04]execute_cgi json_proto POST (null) [11:46:04]execute_cgi path=json_proto method=POST [11:46:04]POST find Content-Length [11:46:04]Host: 172.17.59.68:8080 [11:46:04]Content-Length: 674 [11:46:04]Content-Type: application/json [11:46:04] [11:46:04]POST finish read [11:46:04]Found Content-Length = 674 [11:46:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:04]execute_script... [11:46: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)320223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:04]POST & json_proto [11:46:04]process_json_proto [11:46:04]json parsed OK: [11:46:04]protocol is kg_v1.0 [11:46:04]action value=close_receipt [11:46:04]process_action close_receipt [11:46:04]cmd_close_receipt [11:46:04]MH_GetDate [11:46:04]Write to MH i2c: F0 00 00 83 58 CA [11:46:04]Write i2c OK [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: F0 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: F0 09 00 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: F0 09 00 83 58 00 9D 16 74 66 BC EC 60 65 CD [11:46:04]GetLastDocTimeStamp 1718883955 [11:46:04]current date 1718883997 [11:46:04]FM_GetShiftState [11:46:04]SAM_PROTO_GetShiftState [11:46:04]wFMCommunicate request_size=4 [11:46:04]MH_SAM_APDU [11:46:04]CAPDU: 80 13 01 00 [11:46:04]Write to MH i2c: E2 08 00 84 58 80 13 01 00 00 00 00 00 59 [11:46:04]Write i2c OK [11:46:04]MH_I2C_Read... [11:46:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:04]Read from MH i2c: E2 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: E2 0E 00 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: E2 0E 00 84 58 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 D4 [11:46:04]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:46:04]wFMCommunicate OK [11:46:04]SAM_PROTO_GetShiftState done [11:46:04]FM_GetShiftState done [11:46:04]opened in 1718847247 [11:46:04]opened+sec_in_day 1718933647 [11:46:04]quantity*price = 50009 [11:46:04]sum+1 = 50010 [11:46:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 74 20.06.2024 11:46 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111624 ФПД: 94829997528453 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T114637&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111624&fm=94829997528453&tin=02508201610067®Number=0000000000092771&sum=50000 [11:46:05]StoreToDocumentArchive [11:46:05]shift 389 fd 111624 [11:46:05]save to /storage/0389/doc_00111624 [11:46:05]save last doc name /storage/0389/doc_00111624 to /storage/kkm_last_doc_name [11:46:05]save OK [11:46:05]Clear old archive folders... [11:46:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:46:05]tlvbuf is 00F30450 [11:46:05]SAM_PROTO_ClearQueue [11:46:05]wFMCommunicate request_size=4 [11:46:05]MH_SAM_APDU [11:46:05]CAPDU: 80 09 00 00 [11:46:05]Write to MH i2c: E2 08 00 91 58 80 09 00 00 00 00 00 00 5B [11:46:05]Write i2c OK [11:46:05]MH_I2C_Read... [11:46:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:05]Read from MH i2c: E2 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: E2 03 00 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: E2 03 00 91 58 00 90 00 5D [11:46:05]RAPDU: 90 00 [11:46:05]wFMCommunicate OK [11:46:05]SAM_PROTO_ClearQueue done [11:46:05]KKMCreateOFDPacket [11:46:05]OFDProtocolAddRootSTLVToBuf [11:46:05]FM_MakeSignedData [11:46:05]FM_MakeSignedData [11:46:05]SAM_PROTO_SignData [11:46:05]wFMCommunicate request_size=4 [11:46:05]MH_SAM_APDU [11:46:05]CAPDU: 80 0D 01 02 [11:46:05]Write to MH i2c: E2 08 00 92 58 80 0D 01 02 00 00 00 00 63 [11:46:05]Write i2c OK [11:46:05]MH_I2C_Read... [11:46:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:05]Read from MH i2c: E2 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: E2 03 00 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: E2 03 00 92 58 00 90 00 5E [11:46:05]RAPDU: 90 00 [11:46:05]wFMCommunicate OK [11:46:05]wFMCommunicate request_size=255 [11:46:05]MH_SAM_APDU [11:46:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 9D 16 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 08 B4 01 00 35 04 06 00 56 3F 54 51 [11:46:05]Write to MH i2c: E2 02 01 93 58 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 9D 16 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 08 B4 01 00 35 04 06 00 56 3F 54 51 00 00 61 [11:46:05]Write i2c OK [11:46:05]MH_I2C_Read... [11:46:05]OFD Sender: No OFD packet to send [11:46:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:05]Read from MH i2c: E2 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: E2 03 00 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: E2 03 00 93 58 00 90 00 5F [11:46:05]RAPDU: 90 00 [11:46:05]wFMCommunicate OK [11:46:05]wFMCommunicate request_size=7 [11:46:05]MH_SAM_APDU [11:46:05]CAPDU: 80 0D 02 02 02 15 85 [11:46:05]Write to MH i2c: E2 0A 00 94 58 80 0D 02 02 02 00 15 85 00 00 04 [11:46:05]Write i2c OK [11:46:05]MH_I2C_Read... [11:46:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:05]Read from MH i2c: E2 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: E2 03 00 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: E2 03 00 94 58 00 90 00 60 [11:46:05]RAPDU: 90 00 [11:46:05]wFMCommunicate OK [11:46:05]wFMCommunicate request_size=4 [11:46:05]MH_SAM_APDU [11:46:05]CAPDU: 80 0D 03 02 [11:46:05]Write to MH i2c: E2 08 00 95 58 80 0D 03 02 00 00 00 00 68 [11:46:05]Write i2c OK [11:46:05]MH_I2C_Read... [11:46:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:05]Read from MH i2c: E2 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: E2 0B 00 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: E2 0B 00 95 58 00 FB F8 0E 5A 77 06 19 DC 90 00 36 [11:46:05]RAPDU: FB F8 0E 5A 77 06 19 DC 90 00 [11:46:05]wFMCommunicate OK [11:46:05]SAM_PROTO_SignData done [11:46:05]FM_MakeSignedData done [11:46:05]CreateOFDProtocolMessage [11:46:05]wFMCommunicate request_size=4 [11:46:05]MH_SAM_APDU [11:46:05]CAPDU: 80 11 00 00 [11:46:05]Write to MH i2c: E2 08 00 96 58 80 11 00 00 00 00 00 00 68 [11:46:05]Write i2c OK [11:46:05]MH_I2C_Read... [11:46:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:05]Read from MH i2c: E2 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: E2 17 00 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: E2 17 00 96 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BA [11:46:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:46:05]wFMCommunicate OK [11:46:05]CreateOFDProtocolMessage done [11:46:05]OFDSenderStorePacket 111624 [11:46:05]StoreOFDPacket docnum=111624 [11:46:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 4C 95 04 01 D0 F2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 9D 16 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 08 B4 01 00 35 04 06 00 56 3F 54 51 15 85 FB F8 0E 5A 77 06 19 DC [11:46:05]CheckFolder [11:46:05]dirname=/storage/ofd_packets [11:46:05]CheckFolder done [11:46:05]ProducePacketName [11:46:05]name=ofd_packets/00111624 [11:46:05]NVStorageSaveData ofd_packets/00111624 [11:46:05]File name is /storage/ofd_packets/00111624 [11:46:05]Write 298 bytes [11:46:05]NVStorageSaveData done [11:46:05]OFDSenderStorePacket done [11:46:05]KKMCreateOFDPacket done [11:46:05]NVStorageSaveData kkm_last_timestamp [11:46:05]File name is /storage/kkm_last_timestamp [11:46:05]Write 4 bytes [11:46:05]NVStorageSaveData done [11:46:05]ExternCall_PrintAddStr [11:46:05]wPrintStart [11:46:05]Write to MH i2c: 01 00 00 97 58 EF [11:46:05]Write i2c OK [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: 01 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: 01 07 00 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: 01 07 00 97 58 00 00 00 00 00 FF 0F 04 [11:46:05]RasterBufferAndPrint [11:46:05]line Счет N : (1)320223 [11:46:05]line ИНН: 02508201610067 [11:46:05]line Контрольно-Кассовый Чек [11:46:05]line ПРОДАЖА [11:46:05]line ТРК (МРК, ГНК) : 22 [11:46:05]line Товар: 2710194210 [11:46:05]line ДТ-К-5 [11:46:05]line 6.860 * 72.90 [11:46:05]line = 500.09 [11:46:05]line НДС 12% НСП 1% [11:46:05]line > о реализуемом товаре [11:46:05]line ОКРУГЛЕНИЕ: -0.09 [11:46:05]line ИТОГО: 500.00 [11:46:05]line Внесено: 500.00 [11:46:05]line СДАЧА: 0.00 [11:46:05]line НСП 1% : 4.43 [11:46:05]line НДС 12% : 53.11 [11:46:05]line Наличными: 500.00 [11:46:05]line Безнал.: 0.00 [11:46:05]line Место: АЗС № 65 "Партнер Нефть" [11:46:05]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:46:05]line СНО: Общий режим [11:46:05]line Чек 74 20.06.2024 11:46 [11:46:05]line Смена: 389 ФФД: 1.0 [11:46:05]line ЗНМ: 0300000198 [11:46:05]line РНМ: 0000000000092771 [11:46:05]line Версия ККМ: 001 [11:46:05]line ФМ: 0000000000875083 [11:46:05]line ФД: 111624 [11:46:05]line ФПД: 94829997528453 [11:46:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T114637&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111624&fm=94829997528453&tin=02508201610067®Number=0000000000092771&sum=50000 [11:46:06]OFD Sender: Processing packet 111624 [packets to send 38, broken 37] [11:46:06]ProducePacketName [11:46:06]name=ofd_packets/00111624 [11:46:06]OFD Sender: To server: pG, [11:46:06]CommunicateWithHost lk.salyk.kg:30040 [11:46:06]ConnectInit lk.salyk.kg [11:46:06]written 0, free lines is 4095 [11:46:06]Connected sock=10 [11:46:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 4C 95 04 01 D0 F2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 9D 16 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 08 B4 01 00 35 04 06 00 56 3F 54 51 15 85 FB F8 0E 5A 77 06 19 DC [11:46:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 FE 55 47 00 1F 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 08 B4 01 00 F4 03 04 00 E8 AD 73 66 B6 04 01 00 00 7A 20 42 45 B8 64 40 60 [11:46:06]CommunicateWithHost err = 0 [11:46:06]CheckOFDResponse [11:46:06]1017 (14) - 77093643461234 [11:46:06]1041 (16) - 0000000000875083 [11:46:06]1040 (4) - 111624 [11:46:06]1012 (4) - 20.06.2024 04:19 [11:46:06]1206 (1) - 0 [11:46:06]OFD Sender: Remove packet 111624 [11:46:06]ProducePacketName [11:46:06]name=ofd_packets/00111624 [11:46:06]NVStorageDeleteData [11:46:06]Write to MH i2c: 01 00 00 C2 58 1A [11:46:06]Write i2c OK [11:46:06]MH_I2C_Read... [11:46:06]Read from MH i2c: 01 [11:46:06]MH_I2C_Read... [11:46:06]Read from MH i2c: 01 07 00 [11:46:06]MH_I2C_Read... [11:46:06]Read from MH i2c: 01 07 00 C2 58 00 00 00 00 00 D0 0C FD [11:46:06]RasterBufferAndPrint [11:46:06]line [11:46:06]line [11:46:06]line [11:46:06]line [11:46:06]line [11:46:06]written 0, free lines is 3288 [11:46:06]MH_Cut [11:46:06]Write to MH i2c: D1 01 00 C9 58 01 F3 [11:46:06]Write i2c OK [11:46:06]MH_I2C_Read... [11:46:06]Read from MH i2c: D1 [11:46:06]MH_I2C_Read... [11:46:06]Read from MH i2c: D1 01 00 [11:46:06]MH_I2C_Read... [11:46:06]Read from MH i2c: D1 01 00 C9 58 00 F2 [11:46:06]Write to MH i2c: 01 00 00 CA 58 22 [11:46:06]Write i2c OK [11:46:06]MH_I2C_Read... [11:46:06]OFD Sender: No OFD packet to send [11:46:07]*** Cut start [11:46:07]*** Partial cut [11:46:07]*** CUTSNS_PIN = 1 [11:46:07]*** CUTSNS_PIN = 0 [11:46:07]*** Brake cut motor [11:46:07]Read from MH i2c: 01 [11:46:07]MH_I2C_Read... [11:46:07]*** Stop cut motor [11:46:07]*** Cut end [11:46:07]Read from MH i2c: 01 07 00 [11:46:07]MH_I2C_Read... [11:46:07]Read from MH i2c: 01 07 00 CA 58 00 00 00 00 00 FF 0F 37 [11:46:07]process_action close_receipt done [11:46:07]requested_data is exist [11:46:07]produce_requested_data [11:46:07]requested_item fm.sn is exist - process it [11:46:07]wFMCommunicate request_size=4 [11:46:07]MH_SAM_APDU [11:46:07]CAPDU: 80 11 00 00 [11:46:07]Write to MH i2c: E2 08 00 CB 58 80 11 00 00 00 00 00 00 9D [11:46:07]Write i2c OK [11:46:07]MH_I2C_Read... [11:46:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:08]Read from MH i2c: E2 [11:46:08]MH_I2C_Read... [11:46:08]Read from MH i2c: E2 17 00 [11:46:08]MH_I2C_Read... [11:46:08]Read from MH i2c: E2 17 00 CB 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EF [11:46:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:46:08]wFMCommunicate OK [11:46:08]requested_item fd.num is exist - process it [11:46:08]SAM_PROTO_GetFieldsCounters [11:46:08]wFMCommunicate request_size=4 [11:46:08]MH_SAM_APDU [11:46:08]CAPDU: 80 13 00 00 [11:46:08]Write to MH i2c: E2 08 00 CC 58 80 13 00 00 00 00 00 00 A0 [11:46:08]Write i2c OK [11:46:08]MH_I2C_Read... [11:46:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:08]Read from MH i2c: E2 [11:46:08]MH_I2C_Read... [11:46:08]Read from MH i2c: E2 62 00 [11:46:08]MH_I2C_Read... [11:46:08]Read from MH i2c: E2 62 00 CC 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 08 B4 01 00 0E 04 04 00 85 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 E2 [11:46:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 08 B4 01 00 0E 04 04 00 85 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 [11:46:08]wFMCommunicate OK [11:46:08]SAM_PROTO_GetFieldsCounters done [11:46:08]requested_item shift.num is exist - process it [11:46:08]requested_item shift.opened is exist - process it [11:46:08]req_shift_opened [11:46:08]FM_GetShiftState [11:46:08]SAM_PROTO_GetShiftState [11:46:08]wFMCommunicate request_size=4 [11:46:08]MH_SAM_APDU [11:46:08]CAPDU: 80 13 01 00 [11:46:08]Write to MH i2c: E2 08 00 CD 58 80 13 01 00 00 00 00 00 A2 [11:46:08]Write i2c OK [11:46:08]MH_I2C_Read... [11:46:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:08]Read from MH i2c: E2 [11:46:08]MH_I2C_Read... [11:46:08]Read from MH i2c: E2 0E 00 [11:46:08]MH_I2C_Read... [11:46:08]Read from MH i2c: E2 0E 00 CD 58 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 1D [11:46:08]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:46:08]wFMCommunicate OK [11:46:08]SAM_PROTO_GetShiftState done [11:46:08]FM_GetShiftState done [11:46:08]req_shift_opened done [11:46:08]requested_item shift.open_date is exist - process it [11:46:08]req_shift_open_date [11:46:08]req_shift_open_date done [11:46:08]produce_requested_data done [11:46:08]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111624,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [11:46:08]process_action_free close_receipt [11:46:08]json_value_free [11:46:08]json_value_free done [11:46:08]process_json_proto returns [11:46:08]Send response to host [11:46:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111624,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [11:46:08]free response buf [11:46:08]execute_script done [11:46:08]execute_script returns [11:46:08]free content buf [11:46:08]Sock 7.Close socket [11:46:08]Sock 7.Thread stoped [11:46:11]OFD Sender: No OFD packet to send [11:46:16]OFD Sender: No OFD packet to send [11:46:21]OFD Sender: No OFD packet to send [11:46:26]OFD Sender: No OFD packet to send [11:46:31]OFD Sender: No OFD packet to send [11:46:36]OFD Sender: No OFD packet to send [11:46:41]OFD Sender: No OFD packet to send [11:46:46]OFD Sender: No OFD packet to send [11:46:51]OFD Sender: No OFD packet to send [11:46:56]OFD Sender: No OFD packet to send [11:47:01]OFD Sender: No OFD packet to send [11:47:06]OFD Sender: No OFD packet to send [11:47:11]OFD Sender: No OFD packet to send [11:47:16]OFD Sender: No OFD packet to send [11:47:21]OFD Sender: No OFD packet to send [11:47:26]OFD Sender: No OFD packet to send [11:47:31]OFD Sender: No OFD packet to send [11:47: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:16]accept exits with 9 [11:48:16]New connection [11:48:16]New thread 3067465060 created [11:48:16]Thread 3067321700 joined [11:48:16]Waiting for new connection... [11:48:16] Sock 9.Parse request [11:48:16]Sock 9.Check first char [11:48:16]Sock 9.First char is OK [11:48:16]request: POST /json_proto HTTP/1.0 [11:48:16]Method: POST [11:48:16]URL: /json_proto [11:48:16]Method is POST - this is cgi request [11:48:16]url: /json_proto [11:48:16]query_string will be loaded in cgi processing [11:48:16]execute_cgi json_proto POST (null) [11:48:16]execute_cgi path=json_proto method=POST [11:48:16]POST find Content-Length [11:48:16]Host: 172.17.59.68:8080 [11:48:16]Content-Length: 677 [11:48:16]Content-Type: application/json [11:48:16] [11:48:16]POST finish read [11:48:16]Found Content-Length = 677 [11:48:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 5.420, "sum" : 400.54, "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:48:16]execute_script... [11:48:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 5.420, "sum" : 400.54, "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:48:16]POST & json_proto [11:48:16]process_json_proto [11:48:16]json parsed OK: [11:48:16]protocol is kg_v1.0 [11:48:16]action value=close_receipt [11:48:16]process_action close_receipt [11:48:16]cmd_close_receipt [11:48:16]MH_GetDate [11:48:16]Write to MH i2c: F0 00 00 CE 58 15 [11:48:16]Write i2c OK [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: F0 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: F0 09 00 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: F0 09 00 CE 58 00 21 17 74 66 BC EC 60 65 9D [11:48:16]GetLastDocTimeStamp 1718883997 [11:48:16]current date 1718884129 [11:48:16]FM_GetShiftState [11:48:16]SAM_PROTO_GetShiftState [11:48:16]wFMCommunicate request_size=4 [11:48:16]MH_SAM_APDU [11:48:16]CAPDU: 80 13 01 00 [11:48:16]Write to MH i2c: E2 08 00 CF 58 80 13 01 00 00 00 00 00 A4 [11:48:16]Write i2c OK [11:48:16]MH_I2C_Read... [11:48:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:16]Read from MH i2c: E2 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: E2 0E 00 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: E2 0E 00 CF 58 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 1F [11:48:16]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:48:16]wFMCommunicate OK [11:48:16]SAM_PROTO_GetShiftState done [11:48:16]FM_GetShiftState done [11:48:16]opened in 1718847247 [11:48:16]opened+sec_in_day 1718933647 [11:48:16]quantity*price = 40053 [11:48:16]sum+1 = 40055 [11:48:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 75 20.06.2024 11:48 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111625 ФПД: 8911787839441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T114849&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111625&fm=8911787839441&tin=02508201610067®Number=0000000000092771&sum=40000 [11:48:17]StoreToDocumentArchive [11:48:17]shift 389 fd 111625 [11:48:17]save to /storage/0389/doc_00111625 [11:48:17]save last doc name /storage/0389/doc_00111625 to /storage/kkm_last_doc_name [11:48:17]save OK [11:48:17]Clear old archive folders... [11:48:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:48:17]tlvbuf is 00F3B990 [11:48:17]SAM_PROTO_ClearQueue [11:48:17]wFMCommunicate request_size=4 [11:48:17]MH_SAM_APDU [11:48:17]CAPDU: 80 09 00 00 [11:48:17]Write to MH i2c: E2 08 00 DC 58 80 09 00 00 00 00 00 00 A6 [11:48:17]Write i2c OK [11:48:17]MH_I2C_Read... [11:48:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:18]Read from MH i2c: E2 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 03 00 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 03 00 DC 58 00 90 00 A8 [11:48:18]RAPDU: 90 00 [11:48:18]wFMCommunicate OK [11:48:18]SAM_PROTO_ClearQueue done [11:48:18]KKMCreateOFDPacket [11:48:18]OFDProtocolAddRootSTLVToBuf [11:48:18]FM_MakeSignedData [11:48:18]FM_MakeSignedData [11:48:18]SAM_PROTO_SignData [11:48:18]wFMCommunicate request_size=4 [11:48:18]MH_SAM_APDU [11:48:18]CAPDU: 80 0D 01 02 [11:48:18]Write to MH i2c: E2 08 00 DD 58 80 0D 01 02 00 00 00 00 AE [11:48:18]Write i2c OK [11:48:18]MH_I2C_Read... [11:48:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:18]Read from MH i2c: E2 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 03 00 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 03 00 DD 58 00 90 00 A9 [11:48:18]RAPDU: 90 00 [11:48:18]wFMCommunicate OK [11:48:18]wFMCommunicate request_size=255 [11:48:18]MH_SAM_APDU [11:48: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 2C 15 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 76 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 9D 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 4B 00 00 00 F4 03 04 00 21 17 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 09 B4 01 00 35 04 06 00 08 [11:48:18]Write to MH i2c: E2 02 01 DE 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2C 15 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 76 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 9D 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 4B 00 00 00 F4 03 04 00 21 17 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 09 B4 01 00 35 04 06 00 08 00 00 7A [11:48:18]Write i2c OK [11:48:18]MH_I2C_Read... [11:48:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:18]Read from MH i2c: E2 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 03 00 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 03 00 DE 58 00 90 00 AA [11:48:18]RAPDU: 90 00 [11:48:18]wFMCommunicate OK [11:48:18]wFMCommunicate request_size=10 [11:48:18]MH_SAM_APDU [11:48:18]CAPDU: 80 0D 02 02 05 1A EF F2 CF D1 [11:48:18]Write to MH i2c: E2 0D 00 DF 58 80 0D 02 02 05 00 1A EF F2 CF D1 00 00 56 [11:48:18]Write i2c OK [11:48:18]MH_I2C_Read... [11:48:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:18]Read from MH i2c: E2 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 03 00 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 03 00 DF 58 00 90 00 AB [11:48:18]RAPDU: 90 00 [11:48:18]wFMCommunicate OK [11:48:18]wFMCommunicate request_size=4 [11:48:18]MH_SAM_APDU [11:48:18]CAPDU: 80 0D 03 02 [11:48:18]Write to MH i2c: E2 08 00 E0 58 80 0D 03 02 00 00 00 00 B3 [11:48:18]Write i2c OK [11:48:18]MH_I2C_Read... [11:48:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:18]Read from MH i2c: E2 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 0B 00 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 0B 00 E0 58 00 ED 5D 03 49 66 7D 7A 8B 90 00 32 [11:48:18]RAPDU: ED 5D 03 49 66 7D 7A 8B 90 00 [11:48:18]wFMCommunicate OK [11:48:18]SAM_PROTO_SignData done [11:48:18]FM_MakeSignedData done [11:48:18]CreateOFDProtocolMessage [11:48:18]wFMCommunicate request_size=4 [11:48:18]MH_SAM_APDU [11:48:18]CAPDU: 80 11 00 00 [11:48:18]Write to MH i2c: E2 08 00 E1 58 80 11 00 00 00 00 00 00 B3 [11:48:18]Write i2c OK [11:48:18]MH_I2C_Read... [11:48:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:18]Read from MH i2c: E2 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 17 00 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 17 00 E1 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 05 [11:48:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:48:18]wFMCommunicate OK [11:48:18]CreateOFDProtocolMessage done [11:48:18]OFDSenderStorePacket 111625 [11:48:18]StoreOFDPacket docnum=111625 [11:48:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F9 02 07 01 63 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2C 15 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 76 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 9D 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 4B 00 00 00 F4 03 04 00 21 17 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 09 B4 01 00 35 04 06 00 08 1A EF F2 CF D1 ED 5D 03 49 66 7D 7A 8B [11:48:18]CheckFolder [11:48:18]dirname=/storage/ofd_packets [11:48:18]CheckFolder done [11:48:18]ProducePacketName [11:48:18]name=ofd_packets/00111625 [11:48:18]NVStorageSaveData ofd_packets/00111625 [11:48:18]File name is /storage/ofd_packets/00111625 [11:48:18]Write 301 bytes [11:48:18]NVStorageSaveData done [11:48:18]OFDSenderStorePacket done [11:48:18]KKMCreateOFDPacket done [11:48:18]NVStorageSaveData kkm_last_timestamp [11:48:18]File name is /storage/kkm_last_timestamp [11:48:18]Write 4 bytes [11:48:18]NVStorageSaveData done [11:48:18]ExternCall_PrintAddStr [11:48:18]wPrintStart [11:48:18]Write to MH i2c: 01 00 00 E2 58 3A [11:48:18]Write i2c OK [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: 01 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: 01 07 00 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: 01 07 00 E2 58 00 00 00 00 00 FF 0F 4F [11:48:18]RasterBufferAndPrint [11:48:18]line Счет N : (1)320225 [11:48:18]line ИНН: 02508201610067 [11:48:18]line Контрольно-Кассовый Чек [11:48:18]line ПРОДАЖА [11:48:18]line ТРК (МРК, ГНК) : 12 [11:48:18]line Товар: 2710124500 [11:48:18]line Аи-95-К-5 [11:48:18]line 5.420 * 73.90 [11:48:18]line = 400.54 [11:48:18]line НДС 12% НСП 1% [11:48:18]line > о реализуемом товаре [11:48:18]line ОКРУГЛЕНИЕ: -0.54 [11:48:18]line ИТОГО: 400.00 [11:48:18]line Внесено: 400.00 [11:48:18]line СДАЧА: 0.00 [11:48:18]line НСП 1% : 3.54 [11:48:18]line НДС 12% : 42.53 [11:48:18]line Наличными: 400.00 [11:48:18]line Безнал.: 0.00 [11:48:18]line Место: АЗС № 65 "Партнер Нефть" [11:48:18]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:48:18]line СНО: Общий режим [11:48:18]line Чек 75 20.06.2024 11:48 [11:48:18]line Смена: 389 ФФД: 1.0 [11:48:18]line ЗНМ: 0300000198 [11:48:18]line РНМ: 0000000000092771 [11:48:18]line Версия ККМ: 001 [11:48:18]line ФМ: 0000000000875083 [11:48:18]line ФД: 111625 [11:48:18]line ФПД: 8911787839441 [11:48:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T114849&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111625&fm=8911787839441&tin=02508201610067®Number=0000000000092771&sum=40000 [11:48:18]OFD Sender: Processing packet 111625 [packets to send 38, broken 37] [11:48:18]ProducePacketName [11:48:18]name=ofd_packets/00111625 [11:48:18]OFD Sender: To server: pG, [11:48:18]CommunicateWithHost lk.salyk.kg:30040 [11:48:18]ConnectInit lk.salyk.kg [11:48:18]written 0, free lines is 4095 [11:48:18]Connected sock=10 [11:48:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F9 02 07 01 63 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2C 15 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 76 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 9D 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 4B 00 00 00 F4 03 04 00 21 17 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 09 B4 01 00 35 04 06 00 08 1A EF F2 CF D1 ED 5D 03 49 66 7D 7A 8B [11:48:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 AA AB 47 00 76 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 09 B4 01 00 F4 03 04 00 6D AE 73 66 B6 04 01 00 00 92 48 21 1E 58 49 44 0C [11:48:19]CommunicateWithHost err = 0 [11:48:19]CheckOFDResponse [11:48:19]1017 (14) - 77093643461234 [11:48:19]1041 (16) - 0000000000875083 [11:48:19]1040 (4) - 111625 [11:48:19]1012 (4) - 20.06.2024 04:22 [11:48:19]1206 (1) - 0 [11:48:19]OFD Sender: Remove packet 111625 [11:48:19]ProducePacketName [11:48:19]name=ofd_packets/00111625 [11:48:19]NVStorageDeleteData [11:48:19]Write to MH i2c: 01 00 00 0D 59 66 [11:48:19]Write i2c OK [11:48:19]MH_I2C_Read... [11:48:19]Read from MH i2c: 01 [11:48:19]MH_I2C_Read... [11:48:19]Read from MH i2c: 01 07 00 [11:48:19]MH_I2C_Read... [11:48:19]Read from MH i2c: 01 07 00 0D 59 00 00 00 00 00 C2 0C 3B [11:48:19]RasterBufferAndPrint [11:48:19]line [11:48:19]line [11:48:19]line [11:48:19]line [11:48:19]line [11:48:19]written 0, free lines is 3275 [11:48:19]MH_Cut [11:48:19]Write to MH i2c: D1 01 00 14 59 01 3F [11:48:19]Write i2c OK [11:48:19]MH_I2C_Read... [11:48:19]Read from MH i2c: D1 [11:48:19]MH_I2C_Read... [11:48:19]Read from MH i2c: D1 01 00 [11:48:19]MH_I2C_Read... [11:48:19]Read from MH i2c: D1 01 00 14 59 00 3E [11:48:19]Write to MH i2c: 01 00 00 15 59 6E [11:48:19]Write i2c OK [11:48:19]MH_I2C_Read... [11:48:19]OFD Sender: No OFD packet to send [11:48:20]*** Cut start [11:48:20]*** Partial cut [11:48:20]*** CUTSNS_PIN = 1 [11:48:20]*** CUTSNS_PIN = 0 [11:48:20]*** Brake cut motor [11:48:20]Read from MH i2c: 01 [11:48:20]MH_I2C_Read... [11:48:20]*** Stop cut motor [11:48:20]*** Cut end [11:48:20]Read from MH i2c: 01 07 00 [11:48:20]MH_I2C_Read... [11:48:20]Read from MH i2c: 01 07 00 15 59 00 00 00 00 00 FF 0F 83 [11:48:20]process_action close_receipt done [11:48:20]requested_data is exist [11:48:20]produce_requested_data [11:48:20]requested_item fm.sn is exist - process it [11:48:20]wFMCommunicate request_size=4 [11:48:20]MH_SAM_APDU [11:48:20]CAPDU: 80 11 00 00 [11:48:20]Write to MH i2c: E2 08 00 16 59 80 11 00 00 00 00 00 00 E9 [11:48:20]Write i2c OK [11:48:20]MH_I2C_Read... [11:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:20]Read from MH i2c: E2 [11:48:20]MH_I2C_Read... [11:48:20]Read from MH i2c: E2 17 00 [11:48:20]MH_I2C_Read... [11:48:20]Read from MH i2c: E2 17 00 16 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3B [11:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:48:20]wFMCommunicate OK [11:48:20]requested_item fd.num is exist - process it [11:48:20]SAM_PROTO_GetFieldsCounters [11:48:20]wFMCommunicate request_size=4 [11:48:20]MH_SAM_APDU [11:48:20]CAPDU: 80 13 00 00 [11:48:20]Write to MH i2c: E2 08 00 17 59 80 13 00 00 00 00 00 00 EC [11:48:20]Write i2c OK [11:48:20]MH_I2C_Read... [11:48:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:20]Read from MH i2c: E2 [11:48:20]MH_I2C_Read... [11:48:20]Read from MH i2c: E2 62 00 [11:48:20]MH_I2C_Read... [11:48:20]Read from MH i2c: E2 62 00 17 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 09 B4 01 00 0E 04 04 00 85 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 32 [11:48:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 09 B4 01 00 0E 04 04 00 85 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 [11:48:20]wFMCommunicate OK [11:48:20]SAM_PROTO_GetFieldsCounters done [11:48:20]requested_item shift.num is exist - process it [11:48:20]requested_item shift.opened is exist - process it [11:48:20]req_shift_opened [11:48:20]FM_GetShiftState [11:48:20]SAM_PROTO_GetShiftState [11:48:20]wFMCommunicate request_size=4 [11:48:20]MH_SAM_APDU [11:48:20]CAPDU: 80 13 01 00 [11:48:20]Write to MH i2c: E2 08 00 18 59 80 13 01 00 00 00 00 00 EE [11:48:20]Write i2c OK [11:48:20]MH_I2C_Read... [11:48:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:20]Read from MH i2c: E2 [11:48:20]MH_I2C_Read... [11:48:20]Read from MH i2c: E2 0E 00 [11:48:20]MH_I2C_Read... [11:48:20]Read from MH i2c: E2 0E 00 18 59 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 69 [11:48:20]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:48:20]wFMCommunicate OK [11:48:20]SAM_PROTO_GetShiftState done [11:48:20]FM_GetShiftState done [11:48:20]req_shift_opened done [11:48:20]requested_item shift.open_date is exist - process it [11:48:20]req_shift_open_date [11:48:20]req_shift_open_date done [11:48:20]produce_requested_data done [11:48:20]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111625,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [11:48:20]process_action_free close_receipt [11:48:20]json_value_free [11:48:20]json_value_free done [11:48:20]process_json_proto returns [11:48:20]Send response to host [11:48:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111625,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [11:48:20]free response buf [11:48:20]execute_script done [11:48:20]execute_script returns [11:48:20]free content buf [11:48:20]Sock 9.Close socket [11:48:20]Sock 9.Thread stoped [11:48:24]OFD Sender: No OFD packet to send [11:48:29]OFD Sender: No OFD packet to send [11:48:34]OFD Sender: No OFD packet to send [11:48:39]OFD Sender: No OFD packet to send [11:48:44]OFD Sender: No OFD packet to send [11:48:49]OFD Sender: No OFD packet to send [11:48:54]OFD Sender: No OFD packet to send [11:48:59]OFD Sender: No OFD packet to send [11:49:04]OFD Sender: No OFD packet to send [11:49:09]OFD Sender: No OFD packet to send [11:49:14]OFD Sender: No OFD packet to send [11:49:19]OFD Sender: No OFD packet to send [11:49:24]OFD Sender: No OFD packet to send [11:49:29]OFD Sender: No OFD packet to send [11:49:34]OFD Sender: No OFD packet to send [11:49:39]OFD Sender: No OFD packet to send [11:49:44]OFD Sender: No OFD packet to send [11:49:49]OFD Sender: No OFD packet to send [11:49:54]OFD Sender: No OFD packet to send [11:49:59]OFD Sender: No OFD packet to send [11:50:04]OFD Sender: No OFD packet to send [11:50:09]OFD Sender: No OFD packet to send [11:50:14]OFD Sender: No OFD packet to send [11:50:17]accept exits with 7 [11:50:17]New connection [11:50:17]New thread 3067321700 created [11:50:17]Thread 3067465060 joined [11:50:17]Waiting for new connection... [11:50:17] Sock 7.Parse request [11:50:17]Sock 7.Check first char [11:50:17]Sock 7.First char is OK [11:50:17]request: POST /json_proto HTTP/1.0 [11:50:17]Method: POST [11:50:17]URL: /json_proto [11:50:17]Method is POST - this is cgi request [11:50:17]url: /json_proto [11:50:17]query_string will be loaded in cgi processing [11:50:17]execute_cgi json_proto POST (null) [11:50:17]execute_cgi path=json_proto method=POST [11:50:17]POST find Content-Length [11:50:17]Host: 172.17.59.68:8080 [11:50:17]Content-Length: 677 [11:50:17]Content-Type: application/json [11:50:17] [11:50:17]POST finish read [11:50:17]Found Content-Length = 677 [11:50:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.130, "sum" : 340.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:17]execute_script... [11:50: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)320226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.130, "sum" : 340.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:17]POST & json_proto [11:50:17]process_json_proto [11:50:17]json parsed OK: [11:50:17]protocol is kg_v1.0 [11:50:17]action value=close_receipt [11:50:17]process_action close_receipt [11:50:17]cmd_close_receipt [11:50:17]MH_GetDate [11:50:17]Write to MH i2c: F0 00 00 19 59 61 [11:50:17]Write i2c OK [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: F0 [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: F0 09 00 [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: F0 09 00 19 59 00 9A 17 74 66 BC EC 60 65 62 [11:50:17]GetLastDocTimeStamp 1718884129 [11:50:17]current date 1718884250 [11:50:17]FM_GetShiftState [11:50:17]SAM_PROTO_GetShiftState [11:50:17]wFMCommunicate request_size=4 [11:50:17]MH_SAM_APDU [11:50:17]CAPDU: 80 13 01 00 [11:50:17]Write to MH i2c: E2 08 00 1A 59 80 13 01 00 00 00 00 00 F0 [11:50:17]Write i2c OK [11:50:17]MH_I2C_Read... [11:50:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:17]Read from MH i2c: E2 [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: E2 0E 00 [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: E2 0E 00 1A 59 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 6B [11:50:17]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:50:17]wFMCommunicate OK [11:50:17]SAM_PROTO_GetShiftState done [11:50:17]FM_GetShiftState done [11:50:17]opened in 1718847247 [11:50:17]opened+sec_in_day 1718933647 [11:50:17]quantity*price = 34063 [11:50:17]sum+1 = 34064 [11:50:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.17 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 76 20.06.2024 11:50 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111626 ФПД: 167113692357029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T115050&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111626&fm=167113692357029&tin=02508201610067®Number=0000000000092771&sum=34000 [11:50:18]StoreToDocumentArchive [11:50:18]shift 389 fd 111626 [11:50:18]save to /storage/0389/doc_00111626 [11:50:18]save last doc name /storage/0389/doc_00111626 to /storage/kkm_last_doc_name [11:50:18]save OK [11:50:18]Clear old archive folders... [11:50:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:50:18]tlvbuf is B6FD2070 [11:50:18]SAM_PROTO_ClearQueue [11:50:18]wFMCommunicate request_size=4 [11:50:18]MH_SAM_APDU [11:50:18]CAPDU: 80 09 00 00 [11:50:18]Write to MH i2c: E2 08 00 27 59 80 09 00 00 00 00 00 00 F2 [11:50:18]Write i2c OK [11:50:18]MH_I2C_Read... [11:50:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:18]Read from MH i2c: E2 [11:50:18]MH_I2C_Read... [11:50:18]Read from MH i2c: E2 03 00 [11:50:18]MH_I2C_Read... [11:50:18]Read from MH i2c: E2 03 00 27 59 00 90 00 F4 [11:50:18]RAPDU: 90 00 [11:50:18]wFMCommunicate OK [11:50:18]SAM_PROTO_ClearQueue done [11:50:18]KKMCreateOFDPacket [11:50:18]OFDProtocolAddRootSTLVToBuf [11:50:18]FM_MakeSignedData [11:50:18]FM_MakeSignedData [11:50:18]SAM_PROTO_SignData [11:50:18]wFMCommunicate request_size=4 [11:50:18]MH_SAM_APDU [11:50:18]CAPDU: 80 0D 01 02 [11:50:18]Write to MH i2c: E2 08 00 28 59 80 0D 01 02 00 00 00 00 FA [11:50:18]Write i2c OK [11:50:18]MH_I2C_Read... [11:50:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:19]Read from MH i2c: E2 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: E2 03 00 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: E2 03 00 28 59 00 90 00 F5 [11:50:19]RAPDU: 90 00 [11:50:19]wFMCommunicate OK [11:50:19]wFMCommunicate request_size=255 [11:50:19]MH_SAM_APDU [11:50: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 0A 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 9A 17 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0A B4 01 00 35 04 06 00 97 [11:50:19]Write to MH i2c: E2 02 01 29 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 9A 17 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0A B4 01 00 35 04 06 00 97 00 00 77 [11:50:19]Write i2c OK [11:50:19]MH_I2C_Read... [11:50:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:19]Read from MH i2c: E2 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: E2 03 00 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: E2 03 00 29 59 00 90 00 F6 [11:50:19]RAPDU: 90 00 [11:50:19]wFMCommunicate OK [11:50:19]wFMCommunicate request_size=10 [11:50:19]MH_SAM_APDU [11:50:19]CAPDU: 80 0D 02 02 05 FD 30 45 21 A5 [11:50:19]Write to MH i2c: E2 0D 00 2A 59 80 0D 02 02 05 00 FD 30 45 21 A5 00 00 3F [11:50:19]Write i2c OK [11:50:19]MH_I2C_Read... [11:50:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:19]Read from MH i2c: E2 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: E2 03 00 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: E2 03 00 2A 59 00 90 00 F7 [11:50:19]RAPDU: 90 00 [11:50:19]wFMCommunicate OK [11:50:19]wFMCommunicate request_size=4 [11:50:19]MH_SAM_APDU [11:50:19]CAPDU: 80 0D 03 02 [11:50:19]Write to MH i2c: E2 08 00 2B 59 80 0D 03 02 00 00 00 00 FF [11:50:19]Write i2c OK [11:50:19]MH_I2C_Read... [11:50:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:19]Read from MH i2c: E2 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: E2 0B 00 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: E2 0B 00 2B 59 00 80 FC 29 DD 76 9C 11 93 90 00 38 [11:50:19]RAPDU: 80 FC 29 DD 76 9C 11 93 90 00 [11:50:19]wFMCommunicate OK [11:50:19]SAM_PROTO_SignData done [11:50:19]FM_MakeSignedData done [11:50:19]CreateOFDProtocolMessage [11:50:19]wFMCommunicate request_size=4 [11:50:19]MH_SAM_APDU [11:50:19]CAPDU: 80 11 00 00 [11:50:19]Write to MH i2c: E2 08 00 2C 59 80 11 00 00 00 00 00 00 FF [11:50:19]Write i2c OK [11:50:19]MH_I2C_Read... [11:50:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:19]Read from MH i2c: E2 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: E2 17 00 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: E2 17 00 2C 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 51 [11:50:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:50:19]wFMCommunicate OK [11:50:19]CreateOFDProtocolMessage done [11:50:19]OFDSenderStorePacket 111626 [11:50:19]StoreOFDPacket docnum=111626 [11:50:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D0 D1 07 01 98 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 0A 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 9A 17 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0A B4 01 00 35 04 06 00 97 FD 30 45 21 A5 80 FC 29 DD 76 9C 11 93 [11:50:19]CheckFolder [11:50:19]dirname=/storage/ofd_packets [11:50:19]CheckFolder done [11:50:19]ProducePacketName [11:50:19]name=ofd_packets/00111626 [11:50:19]NVStorageSaveData ofd_packets/00111626 [11:50:19]File name is /storage/ofd_packets/00111626 [11:50:19]Write 301 bytes [11:50:19]NVStorageSaveData done [11:50:19]OFDSenderStorePacket done [11:50:19]KKMCreateOFDPacket done [11:50:19]NVStorageSaveData kkm_last_timestamp [11:50:19]File name is /storage/kkm_last_timestamp [11:50:19]Write 4 bytes [11:50:19]NVStorageSaveData done [11:50:19]ExternCall_PrintAddStr [11:50:19]wPrintStart [11:50:19]Write to MH i2c: 01 00 00 2D 59 86 [11:50:19]Write i2c OK [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: 01 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: 01 07 00 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: 01 07 00 2D 59 00 00 00 00 00 FF 0F 9B [11:50:19]RasterBufferAndPrint [11:50:19]line Счет N : (1)320226 [11:50:19]line ИНН: 02508201610067 [11:50:19]line Контрольно-Кассовый Чек [11:50:19]line ПРОДАЖА [11:50:19]line ТРК (МРК, ГНК) : 11 [11:50:19]line Товар: 2710124130 [11:50:19]line Аи-92-К-5 [11:50:19]line 5.130 * 66.40 [11:50:19]line = 340.63 [11:50:19]line НДС 12% НСП 1% [11:50:19]line > о реализуемом товаре [11:50:19]line ОКРУГЛЕНИЕ: -0.63 [11:50:19]line ИТОГО: 340.00 [11:50:19]line Внесено: 340.00 [11:50:19]line СДАЧА: 0.00 [11:50:19]line НСП 1% : 3.01 [11:50:19]line НДС 12% : 36.17 [11:50:19]line Наличными: 340.00 [11:50:19]line Безнал.: 0.00 [11:50:19]line Место: АЗС № 65 "Партнер Нефть" [11:50:19]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:50:19]line СНО: Общий режим [11:50:19]line Чек 76 20.06.2024 11:50 [11:50:19]line Смена: 389 ФФД: 1.0 [11:50:19]line ЗНМ: 0300000198 [11:50:19]line РНМ: 0000000000092771 [11:50:19]line Версия ККМ: 001 [11:50:19]line ФМ: 0000000000875083 [11:50:19]line ФД: 111626 [11:50:19]line ФПД: 167113692357029 [11:50:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T115050&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111626&fm=167113692357029&tin=02508201610067®Number=0000000000092771&sum=34000 [11:50:19]OFD Sender: Processing packet 111626 [packets to send 38, broken 37] [11:50:19]ProducePacketName [11:50:19]name=ofd_packets/00111626 [11:50:19]OFD Sender: To server: pG, [11:50:19]CommunicateWithHost lk.salyk.kg:30040 [11:50:19]ConnectInit lk.salyk.kg [11:50:19]written 0, free lines is 4095 [11:50:19]Connected sock=10 [11:50:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D0 D1 07 01 98 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 0A 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 9A 17 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0A B4 01 00 35 04 06 00 97 FD 30 45 21 A5 80 FC 29 DD 76 9C 11 93 [11:50:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 53 4C 47 00 08 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0A B4 01 00 F4 03 04 00 E6 AE 73 66 B6 04 01 00 00 72 C6 F3 CA 6E 25 AC 09 [11:50:20]CommunicateWithHost err = 0 [11:50:20]CheckOFDResponse [11:50:20]1017 (14) - 77093643461234 [11:50:20]1041 (16) - 0000000000875083 [11:50:20]1040 (4) - 111626 [11:50:20]1012 (4) - 20.06.2024 04:24 [11:50:20]1206 (1) - 0 [11:50:20]OFD Sender: Remove packet 111626 [11:50:20]ProducePacketName [11:50:20]name=ofd_packets/00111626 [11:50:20]NVStorageDeleteData [11:50:20]Write to MH i2c: 01 00 00 58 59 B1 [11:50:20]Write i2c OK [11:50:20]MH_I2C_Read... [11:50:20]Read from MH i2c: 01 [11:50:20]MH_I2C_Read... [11:50:20]Read from MH i2c: 01 07 00 [11:50:20]MH_I2C_Read... [11:50:20]Read from MH i2c: 01 07 00 58 59 00 00 00 00 00 C8 0C 8C [11:50:20]RasterBufferAndPrint [11:50:20]line [11:50:20]line [11:50:20]line [11:50:20]line [11:50:20]line [11:50:20]written 0, free lines is 3278 [11:50:20]MH_Cut [11:50:20]Write to MH i2c: D1 01 00 5F 59 01 8A [11:50:20]Write i2c OK [11:50:20]MH_I2C_Read... [11:50:20]Read from MH i2c: D1 [11:50:20]MH_I2C_Read... [11:50:20]Read from MH i2c: D1 01 00 [11:50:20]MH_I2C_Read... [11:50:20]Read from MH i2c: D1 01 00 5F 59 00 89 [11:50:20]Write to MH i2c: 01 00 00 60 59 B9 [11:50:20]Write i2c OK [11:50:20]MH_I2C_Read... [11:50:20]OFD Sender: No OFD packet to send [11:50:21]*** Cut start [11:50:21]*** Partial cut [11:50:21]*** CUTSNS_PIN = 1 [11:50:21]*** CUTSNS_PIN = 0 [11:50:21]*** Brake cut motor [11:50:21]Read from MH i2c: 01 [11:50:21]MH_I2C_Read... [11:50:21]*** Stop cut motor [11:50:21]*** Cut end [11:50:21]Read from MH i2c: 01 07 00 [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: 01 07 00 60 59 00 00 00 00 00 FF 0F CE [11:50:21]process_action close_receipt done [11:50:21]requested_data is exist [11:50:21]produce_requested_data [11:50:21]requested_item fm.sn is exist - process it [11:50:21]wFMCommunicate request_size=4 [11:50:21]MH_SAM_APDU [11:50:21]CAPDU: 80 11 00 00 [11:50:21]Write to MH i2c: E2 08 00 61 59 80 11 00 00 00 00 00 00 34 [11:50:21]Write i2c OK [11:50:21]MH_I2C_Read... [11:50:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:21]Read from MH i2c: E2 [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: E2 17 00 [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: E2 17 00 61 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 86 [11:50:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:50:21]wFMCommunicate OK [11:50:21]requested_item fd.num is exist - process it [11:50:21]SAM_PROTO_GetFieldsCounters [11:50:21]wFMCommunicate request_size=4 [11:50:21]MH_SAM_APDU [11:50:21]CAPDU: 80 13 00 00 [11:50:21]Write to MH i2c: E2 08 00 62 59 80 13 00 00 00 00 00 00 37 [11:50:21]Write i2c OK [11:50:21]MH_I2C_Read... [11:50:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:21]Read from MH i2c: E2 [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: E2 62 00 [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: E2 62 00 62 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0A B4 01 00 0E 04 04 00 85 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 81 [11:50:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0A B4 01 00 0E 04 04 00 85 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 [11:50:21]wFMCommunicate OK [11:50:21]SAM_PROTO_GetFieldsCounters done [11:50:21]requested_item shift.num is exist - process it [11:50:21]requested_item shift.opened is exist - process it [11:50:21]req_shift_opened [11:50:21]FM_GetShiftState [11:50:21]SAM_PROTO_GetShiftState [11:50:21]wFMCommunicate request_size=4 [11:50:21]MH_SAM_APDU [11:50:21]CAPDU: 80 13 01 00 [11:50:21]Write to MH i2c: E2 08 00 63 59 80 13 01 00 00 00 00 00 39 [11:50:21]Write i2c OK [11:50:21]MH_I2C_Read... [11:50:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:21]Read from MH i2c: E2 [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: E2 0E 00 [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: E2 0E 00 63 59 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 B4 [11:50:21]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:50:21]wFMCommunicate OK [11:50:21]SAM_PROTO_GetShiftState done [11:50:21]FM_GetShiftState done [11:50:21]req_shift_opened done [11:50:21]requested_item shift.open_date is exist - process it [11:50:21]req_shift_open_date [11:50:21]req_shift_open_date done [11:50:21]produce_requested_data done [11:50:21]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111626,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [11:50:21]process_action_free close_receipt [11:50:21]json_value_free [11:50:21]json_value_free done [11:50:21]process_json_proto returns [11:50:21]Send response to host [11:50:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111626,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [11:50:21]free response buf [11:50:21]execute_script done [11:50:21]execute_script returns [11:50:21]free content buf [11:50:21]Sock 7.Close socket [11:50:21]Sock 7.Thread stoped [11:50:22]accept exits with 9 [11:50:22]New connection [11:50:22]New thread 3067465060 created [11:50:22]Thread 3067321700 joined [11:50:22]Waiting for new connection... [11:50:22] Sock 9.Parse request [11:50:22]Sock 9.Check first char [11:50:22]Sock 9.First char is OK [11:50:22]request: POST /json_proto HTTP/1.0 [11:50:22]Method: POST [11:50:22]URL: /json_proto [11:50:22]Method is POST - this is cgi request [11:50:22]url: /json_proto [11:50:22]query_string will be loaded in cgi processing [11:50:22]execute_cgi json_proto POST (null) [11:50:22]execute_cgi path=json_proto method=POST [11:50:22]POST find Content-Length [11:50:22]Host: 172.17.59.68:8080 [11:50:22]Content-Length: 1211 [11:50:22]Content-Type: application/json [11:50:22] [11:50:22]POST finish read [11:50:22]Found Content-Length = 1211 [11:50:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0435\u0439\u0448\u0435\u043D\u0431\u0435\u043A\u043E\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)320224\u000A20.06.2024 10:18\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 7290.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A54590\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:22]execute_script... [11:50:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0435\u0439\u0448\u0435\u043D\u0431\u0435\u043A\u043E\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)320224\u000A20.06.2024 10:18\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 7290.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A54590\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:22]POST & json_proto [11:50:22]process_json_proto [11:50:22]json parsed OK: [11:50:22]protocol is kg_v1.0 [11:50:22]action value=print_text [11:50:22]process_action print_text [11:50:22]cmd_print_text [11:50:22]ExternCall_PrintAddStr [11:50:22]wPrintStart [11:50:22]Write to MH i2c: 01 00 00 64 59 BD [11:50:22]Write i2c OK [11:50:22]MH_I2C_Read... [11:50:22]Read from MH i2c: 01 [11:50:22]MH_I2C_Read... [11:50:22]Read from MH i2c: 01 07 00 [11:50:22]MH_I2C_Read... [11:50:22]Read from MH i2c: 01 07 00 64 59 00 00 00 00 00 FF 0F D2 [11:50:22]RasterBufferAndPrint [11:50:22]line *****ТОВАРНЫЙ ЧЕК***** [11:50:22]line АЗС 65 [11:50:22]line Партнер нефть [11:50:22]line 02508201610067 [11:50:22]line Кассир : Бейшенбеков А. [11:50:22]line Счет N : (1)320224 [11:50:22]line 20.06.2024 10:18 [11:50:22]line ПРОДАЖА [11:50:22]line ТРК (МРК, ГНК): 22 [11:50:22]line Вид ГСМ : 2710194210 [11:50:22]line ДТ-К-5 [11:50:22]line 100.000 x 72.90 [11:50:22]line ИТОГ: 7290.00 [11:50:22]line Тип оплаты: Талоны: Топливная Карта [11:50:22]line 54590 [11:50:22]line ______________________ [11:50:22]line (подпись) [11:50:22]written 0, free lines is 4095 [11:50:22]Write to MH i2c: 01 00 00 79 59 D2 [11:50:22]Write i2c OK [11:50:22]MH_I2C_Read... [11:50:22]Read from MH i2c: 01 [11:50:22]MH_I2C_Read... [11:50:22]Read from MH i2c: 01 07 00 [11:50:22]MH_I2C_Read... [11:50:22]Read from MH i2c: 01 07 00 79 59 00 00 00 00 00 F4 0D DA [11:50:22]RasterBufferAndPrint [11:50:22]line [11:50:22]line [11:50:22]line [11:50:22]line [11:50:22]line [11:50:22]written 0, free lines is 3575 [11:50:22]MH_Cut [11:50:22]Write to MH i2c: D1 01 00 80 59 01 AB [11:50:22]Write i2c OK [11:50:22]MH_I2C_Read... [11:50:22]Read from MH i2c: D1 [11:50:22]MH_I2C_Read... [11:50:22]Read from MH i2c: D1 01 00 [11:50:22]MH_I2C_Read... [11:50:22]Read from MH i2c: D1 01 00 80 59 00 AA [11:50:22]Write to MH i2c: 01 00 00 81 59 DA [11:50:22]Write i2c OK [11:50:22]MH_I2C_Read... [11:50:22]*** Cut start [11:50:22]*** Partial cut [11:50:22]*** CUTSNS_PIN = 1 [11:50:22]*** CUTSNS_PIN = 0 [11:50:23]*** Brake cut motor [11:50:23]Read from MH i2c: 01 [11:50:23]MH_I2C_Read... [11:50:23]*** Stop cut motor [11:50:23]*** Cut end [11:50:23]Read from MH i2c: 01 07 00 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: 01 07 00 81 59 00 00 00 00 00 FF 0F EF [11:50:23]process_action print_text done [11:50:23]requested_data is exist [11:50:23]produce_requested_data [11:50:23]requested_item fm.sn is exist - process it [11:50:23]wFMCommunicate request_size=4 [11:50:23]MH_SAM_APDU [11:50:23]CAPDU: 80 11 00 00 [11:50:23]Write to MH i2c: E2 08 00 82 59 80 11 00 00 00 00 00 00 55 [11:50:23]Write i2c OK [11:50:23]MH_I2C_Read... [11:50:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:23]Read from MH i2c: E2 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: E2 17 00 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: E2 17 00 82 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A7 [11:50:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:50:23]wFMCommunicate OK [11:50:23]requested_item fd.num is exist - process it [11:50:23]SAM_PROTO_GetFieldsCounters [11:50:23]wFMCommunicate request_size=4 [11:50:23]MH_SAM_APDU [11:50:23]CAPDU: 80 13 00 00 [11:50:23]Write to MH i2c: E2 08 00 83 59 80 13 00 00 00 00 00 00 58 [11:50:23]Write i2c OK [11:50:23]MH_I2C_Read... [11:50:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:23]Read from MH i2c: E2 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: E2 62 00 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: E2 62 00 83 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0A B4 01 00 0E 04 04 00 85 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 A2 [11:50:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0A B4 01 00 0E 04 04 00 85 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 [11:50:23]wFMCommunicate OK [11:50:23]SAM_PROTO_GetFieldsCounters done [11:50:23]requested_item shift.num is exist - process it [11:50:23]requested_item shift.opened is exist - process it [11:50:23]req_shift_opened [11:50:23]FM_GetShiftState [11:50:23]SAM_PROTO_GetShiftState [11:50:23]wFMCommunicate request_size=4 [11:50:23]MH_SAM_APDU [11:50:23]CAPDU: 80 13 01 00 [11:50:23]Write to MH i2c: E2 08 00 84 59 80 13 01 00 00 00 00 00 5A [11:50:23]Write i2c OK [11:50:23]MH_I2C_Read... [11:50:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:23]Read from MH i2c: E2 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: E2 0E 00 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: E2 0E 00 84 59 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 D5 [11:50:23]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:50:23]wFMCommunicate OK [11:50:23]SAM_PROTO_GetShiftState done [11:50:23]FM_GetShiftState done [11:50:23]req_shift_opened done [11:50:23]requested_item shift.open_date is exist - process it [11:50:23]req_shift_open_date [11:50:23]req_shift_open_date done [11:50:23]produce_requested_data done [11:50:23]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111626,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [11:50:23]process_action_free print_text [11:50:23]json_value_free [11:50:23]json_value_free done [11:50:23]process_json_proto returns [11:50:23]Send response to host [11:50:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111626,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [11:50:23]free response buf [11:50:23]execute_script done [11:50:23]execute_script returns [11:50:23]free content buf [11:50:23]Sock 9.Close socket [11:50:23]Sock 9.Thread stoped [11:50:25]OFD Sender: No OFD packet to send [11:50:30]OFD Sender: No OFD packet to send [11:50:35]OFD Sender: No OFD packet to send [11:50:40]OFD Sender: No OFD packet to send [11:50:45]OFD Sender: No OFD packet to send [11:50:50]OFD Sender: No OFD packet to send [11:50:55]OFD Sender: No OFD packet to send [11:51:00]OFD Sender: No OFD packet to send [11:51:05]OFD Sender: No OFD packet to send [11:51:10]OFD Sender: No OFD packet to send [11:51:15]OFD Sender: No OFD packet to send [11:51:20]OFD Sender: No OFD packet to send [11:51:25]OFD Sender: No OFD packet to send [11:51:30]OFD Sender: No OFD packet to send [11:51:35]OFD Sender: No OFD packet to send [11:51:40]OFD Sender: No OFD packet to send [11:51:45]OFD Sender: No OFD packet to send [11:51:50]OFD Sender: No OFD packet to send [11:51:52]accept exits with 7 [11:51:52]New connection [11:51:52]New thread 3067321700 created [11:51:52]Thread 3067465060 joined [11:51:52]Waiting for new connection... [11:51:52] Sock 7.Parse request [11:51:52]Sock 7.Check first char [11:51:52]Sock 7.First char is OK [11:51:52]request: POST /json_proto HTTP/1.0 [11:51:52]Method: POST [11:51:52]URL: /json_proto [11:51:52]Method is POST - this is cgi request [11:51:52]url: /json_proto [11:51:52]query_string will be loaded in cgi processing [11:51:52]execute_cgi json_proto POST (null) [11:51:52]execute_cgi path=json_proto method=POST [11:51:52]POST find Content-Length [11:51:52]Host: 172.17.59.68:8080 [11:51:52]Content-Length: 802 [11:51:52]Content-Type: application/json [11:51:52] [11:51:52]POST finish read [11:51:52]Found Content-Length = 802 [11:51:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:52]execute_script... [11:51: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)320227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:52]POST & json_proto [11:51:52]process_json_proto [11:51:52]json parsed OK: [11:51:52]protocol is kg_v1.0 [11:51:52]action value=close_receipt [11:51:52]process_action close_receipt [11:51:52]cmd_close_receipt [11:51:52]MH_GetDate [11:51:52]Write to MH i2c: F0 00 00 85 59 CD [11:51:52]Write i2c OK [11:51:52]MH_I2C_Read... [11:51:52]Read from MH i2c: F0 [11:51:52]MH_I2C_Read... [11:51:52]Read from MH i2c: F0 09 00 [11:51:52]MH_I2C_Read... [11:51:52]Read from MH i2c: F0 09 00 85 59 00 F9 17 74 66 BC EC 60 65 2D [11:51:52]GetLastDocTimeStamp 1718884250 [11:51:52]current date 1718884345 [11:51:52]FM_GetShiftState [11:51:52]SAM_PROTO_GetShiftState [11:51:52]wFMCommunicate request_size=4 [11:51:52]MH_SAM_APDU [11:51:52]CAPDU: 80 13 01 00 [11:51:52]Write to MH i2c: E2 08 00 86 59 80 13 01 00 00 00 00 00 5C [11:51:52]Write i2c OK [11:51:52]MH_I2C_Read... [11:51:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:52]Read from MH i2c: E2 [11:51:52]MH_I2C_Read... [11:51:52]Read from MH i2c: E2 0E 00 [11:51:52]MH_I2C_Read... [11:51:52]Read from MH i2c: E2 0E 00 86 59 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 D7 [11:51:52]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:51:52]wFMCommunicate OK [11:51:52]SAM_PROTO_GetShiftState done [11:51:52]FM_GetShiftState done [11:51:52]opened in 1718847247 [11:51:52]opened+sec_in_day 1718933647 [11:51:52]quantity*price = 50009 [11:51:52]sum+1 = 50010 [11:51:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.09 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.09 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 77 20.06.2024 11:52 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111627 ФПД: 78589165908778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T115225&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111627&fm=78589165908778&tin=02508201610067®Number=0000000000092771&sum=50009 [11:51:53]StoreToDocumentArchive [11:51:53]shift 389 fd 111627 [11:51:53]save to /storage/0389/doc_00111627 [11:51:53]save last doc name /storage/0389/doc_00111627 to /storage/kkm_last_doc_name [11:51:53]save OK [11:51:53]Clear old archive folders... [11:51:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:51:53]tlvbuf is 00F641E0 [11:51:53]SAM_PROTO_ClearQueue [11:51:53]wFMCommunicate request_size=4 [11:51:53]MH_SAM_APDU [11:51:53]CAPDU: 80 09 00 00 [11:51:53]Write to MH i2c: E2 08 00 93 59 80 09 00 00 00 00 00 00 5E [11:51:53]Write i2c OK [11:51:53]MH_I2C_Read... [11:51:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:53]Read from MH i2c: E2 [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: E2 03 00 [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: E2 03 00 93 59 00 90 00 60 [11:51:53]RAPDU: 90 00 [11:51:53]wFMCommunicate OK [11:51:53]SAM_PROTO_ClearQueue done [11:51:53]KKMCreateOFDPacket [11:51:53]OFDProtocolAddRootSTLVToBuf [11:51:53]FM_MakeSignedData [11:51:53]FM_MakeSignedData [11:51:53]SAM_PROTO_SignData [11:51:53]wFMCommunicate request_size=4 [11:51:53]MH_SAM_APDU [11:51:53]CAPDU: 80 0D 01 02 [11:51:53]Write to MH i2c: E2 08 00 94 59 80 0D 01 02 00 00 00 00 66 [11:51:53]Write i2c OK [11:51:53]MH_I2C_Read... [11:51:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:53]Read from MH i2c: E2 [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: E2 03 00 [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: E2 03 00 94 59 00 90 00 61 [11:51:53]RAPDU: 90 00 [11:51:53]wFMCommunicate OK [11:51:53]wFMCommunicate request_size=255 [11:51:53]MH_SAM_APDU [11:51:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 F9 17 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0B B4 01 00 35 04 06 00 47 79 F7 51 [11:51:53]Write to MH i2c: E2 02 01 95 59 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 F9 17 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0B B4 01 00 35 04 06 00 47 79 F7 51 00 00 A7 [11:51:53]Write i2c OK [11:51:53]MH_I2C_Read... [11:51:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:54]Read from MH i2c: E2 [11:51:54]MH_I2C_Read... [11:51:54]Read from MH i2c: E2 03 00 [11:51:54]MH_I2C_Read... [11:51:54]Read from MH i2c: E2 03 00 95 59 00 90 00 62 [11:51:54]RAPDU: 90 00 [11:51:54]wFMCommunicate OK [11:51:54]wFMCommunicate request_size=7 [11:51:54]MH_SAM_APDU [11:51:54]CAPDU: 80 0D 02 02 02 33 2A [11:51:54]Write to MH i2c: E2 0A 00 96 59 80 0D 02 02 02 00 33 2A 00 00 CA [11:51:54]Write i2c OK [11:51:54]MH_I2C_Read... [11:51:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:54]Read from MH i2c: E2 [11:51:54]MH_I2C_Read... [11:51:54]Read from MH i2c: E2 03 00 [11:51:54]MH_I2C_Read... [11:51:54]Read from MH i2c: E2 03 00 96 59 00 90 00 63 [11:51:54]RAPDU: 90 00 [11:51:54]wFMCommunicate OK [11:51:54]wFMCommunicate request_size=4 [11:51:54]MH_SAM_APDU [11:51:54]CAPDU: 80 0D 03 02 [11:51:54]Write to MH i2c: E2 08 00 97 59 80 0D 03 02 00 00 00 00 6B [11:51:54]Write i2c OK [11:51:54]MH_I2C_Read... [11:51:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:54]Read from MH i2c: E2 [11:51:54]MH_I2C_Read... [11:51:54]Read from MH i2c: E2 0B 00 [11:51:54]MH_I2C_Read... [11:51:54]Read from MH i2c: E2 0B 00 97 59 00 2E 68 0E 9B C9 93 C3 0E 90 00 D8 [11:51:54]RAPDU: 2E 68 0E 9B C9 93 C3 0E 90 00 [11:51:54]wFMCommunicate OK [11:51:54]SAM_PROTO_SignData done [11:51:54]FM_MakeSignedData done [11:51:54]CreateOFDProtocolMessage [11:51:54]wFMCommunicate request_size=4 [11:51:54]MH_SAM_APDU [11:51:54]CAPDU: 80 11 00 00 [11:51:54]Write to MH i2c: E2 08 00 98 59 80 11 00 00 00 00 00 00 6B [11:51:54]Write i2c OK [11:51:54]MH_I2C_Read... [11:51:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:54]Read from MH i2c: E2 [11:51:54]MH_I2C_Read... [11:51:54]Read from MH i2c: E2 17 00 [11:51:54]MH_I2C_Read... [11:51:54]Read from MH i2c: E2 17 00 98 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BD [11:51:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:51:54]wFMCommunicate OK [11:51:54]CreateOFDProtocolMessage done [11:51:54]OFDSenderStorePacket 111627 [11:51:54]StoreOFDPacket docnum=111627 [11:51:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 CE 9F 04 01 B4 0A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 F9 17 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0B B4 01 00 35 04 06 00 47 79 F7 51 33 2A 2E 68 0E 9B C9 93 C3 0E [11:51:54]CheckFolder [11:51:54]dirname=/storage/ofd_packets [11:51:54]CheckFolder done [11:51:54]ProducePacketName [11:51:54]name=ofd_packets/00111627 [11:51:54]NVStorageSaveData ofd_packets/00111627 [11:51:54]File name is /storage/ofd_packets/00111627 [11:51:54]Write 298 bytes [11:51:54]NVStorageSaveData done [11:51:54]OFDSenderStorePacket done [11:51:54]KKMCreateOFDPacket done [11:51:54]NVStorageSaveData kkm_last_timestamp [11:51:54]File name is /storage/kkm_last_timestamp [11:51:54]Write 4 bytes [11:51:54]NVStorageSaveData done [11:51:54]ExternCall_PrintAddStr [11:51:54]wPrintStart [11:51:54]Write to MH i2c: 01 00 00 99 59 F2 [11:51:54]Write i2c OK [11:51:54]MH_I2C_Read... [11:51:54]Read from MH i2c: 01 [11:51:54]MH_I2C_Read... [11:51:54]Read from MH i2c: 01 07 00 [11:51:54]MH_I2C_Read... [11:51:54]Read from MH i2c: 01 07 00 99 59 00 00 00 00 00 FF 0F 07 [11:51:54]RasterBufferAndPrint [11:51:54]line Счет N : (1)320227 [11:51:54]line ИНН: 02508201610067 [11:51:54]line Контрольно-Кассовый Чек [11:51:54]line ПРОДАЖА [11:51:54]line ТРК (МРК, ГНК) : 22 [11:51:54]line Товар: 2710194210 [11:51:54]line ДТ-К-5 [11:51:54]line 6.860 * 72.90 [11:51:54]line = 500.09 [11:51:54]line НДС 12% НСП 1% [11:51:54]line > о реализуемом товаре [11:51:54]line ИТОГО: 500.09 [11:51:54]line НСП 1% : 4.43 [11:51:54]line НДС 12% : 53.11 [11:51:54]line Наличными: 0.00 [11:51:54]line Безнал.: 500.09 [11:51:54]line Место: АЗС № 65 "Партнер Нефть" [11:51:54]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:51:54]line СНО: Общий режим [11:51:54]line Чек 77 20.06.2024 11:52 [11:51:54]line Смена: 389 ФФД: 1.0 [11:51:54]line ЗНМ: 0300000198 [11:51:54]line РНМ: 0000000000092771 [11:51:54]line Версия ККМ: 001 [11:51:54]line Платежная система: О! деньги [11:51:54]line ФМ: 0000000000875083 [11:51:54]line ФД: 111627 [11:51:54]line ФПД: 78589165908778 [11:51:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T115225&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111627&fm=78589165908778&tin=02508201610067®Number=0000000000092771&sum=50009 [11:51:54]OFD Sender: Processing packet 111627 [packets to send 38, broken 37] [11:51:54]ProducePacketName [11:51:54]name=ofd_packets/00111627 [11:51:54]OFD Sender: To server: pG, [11:51:54]CommunicateWithHost lk.salyk.kg:30040 [11:51:54]ConnectInit lk.salyk.kg [11:51:54]written 0, free lines is 4095 [11:51:54]Connected sock=10 [11:51:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 CE 9F 04 01 B4 0A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 F9 17 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0B B4 01 00 35 04 06 00 47 79 F7 51 33 2A 2E 68 0E 9B C9 93 C3 0E [11:51:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 03 E5 47 00 A7 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 35 30 38 33 10 04 04 00 0B B4 01 00 F4 03 04 00 44 AF 73 66 B6 04 01 00 00 FA 42 65 C0 BD 74 EE D5 [11:51:54]CommunicateWithHost err = 0 [11:51:54]CheckOFDResponse [11:51:54]1017 (14) - 77093643461234 [11:51:54]1041 (16) - 0000000000875083 [11:51:54]1040 (4) - 111627 [11:51:54]1012 (4) - 20.06.2024 04:25 [11:51:54]1206 (1) - 0 [11:51:54]OFD Sender: Remove packet 111627 [11:51:54]ProducePacketName [11:51:54]name=ofd_packets/00111627 [11:51:54]NVStorageDeleteData [11:51:54]Write to MH i2c: 01 00 00 C3 59 1C [11:51:54]Write i2c OK [11:51:54]MH_I2C_Read... [11:51:54]Read from MH i2c: 01 [11:51:54]MH_I2C_Read... [11:51:54]Read from MH i2c: 01 07 00 [11:51:54]MH_I2C_Read... [11:51:54]Read from MH i2c: 01 07 00 C3 59 00 00 00 00 00 DA 0C 09 [11:51:54]RasterBufferAndPrint [11:51:54]line [11:51:54]line [11:51:54]line [11:51:54]line [11:51:54]line [11:51:54]written 0, free lines is 3297 [11:51:54]MH_Cut [11:51:54]Write to MH i2c: D1 01 00 CA 59 01 F5 [11:51:54]Write i2c OK [11:51:54]MH_I2C_Read... [11:51:54]Read from MH i2c: D1 [11:51:54]MH_I2C_Read... [11:51:54]Read from MH i2c: D1 01 00 [11:51:54]MH_I2C_Read... [11:51:54]Read from MH i2c: D1 01 00 CA 59 00 F4 [11:51:54]Write to MH i2c: 01 00 00 CB 59 24 [11:51:54]Write i2c OK [11:51:54]MH_I2C_Read... [11:51:55]OFD Sender: No OFD packet to send [11:51:55]*** Cut start [11:51:55]*** Partial cut [11:51:55]*** CUTSNS_PIN = 1 [11:51:55]*** CUTSNS_PIN = 0 [11:51:55]*** Brake cut motor [11:51:56]Read from MH i2c: 01 [11:51:56]MH_I2C_Read... [11:51:56]*** Stop cut motor [11:51:56]*** Cut end [11:51:56]Read from MH i2c: 01 07 00 [11:51:56]MH_I2C_Read... [11:51:56]Read from MH i2c: 01 07 00 CB 59 00 00 00 00 00 FF 0F 39 [11:51:56]process_action close_receipt done [11:51:56]requested_data is exist [11:51:56]produce_requested_data [11:51:56]requested_item fm.sn is exist - process it [11:51:56]wFMCommunicate request_size=4 [11:51:56]MH_SAM_APDU [11:51:56]CAPDU: 80 11 00 00 [11:51:56]Write to MH i2c: E2 08 00 CC 59 80 11 00 00 00 00 00 00 9F [11:51:56]Write i2c OK [11:51:56]MH_I2C_Read... [11:51:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:56]Read from MH i2c: E2 [11:51:56]MH_I2C_Read... [11:51:56]Read from MH i2c: E2 17 00 [11:51:56]MH_I2C_Read... [11:51:56]Read from MH i2c: E2 17 00 CC 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F1 [11:51:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:51:56]wFMCommunicate OK [11:51:56]requested_item fd.num is exist - process it [11:51:56]SAM_PROTO_GetFieldsCounters [11:51:56]wFMCommunicate request_size=4 [11:51:56]MH_SAM_APDU [11:51:56]CAPDU: 80 13 00 00 [11:51:56]Write to MH i2c: E2 08 00 CD 59 80 13 00 00 00 00 00 00 A2 [11:51:56]Write i2c OK [11:51:56]MH_I2C_Read... [11:51:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:56]Read from MH i2c: E2 [11:51:56]MH_I2C_Read... [11:51:56]Read from MH i2c: E2 62 00 [11:51:56]MH_I2C_Read... [11:51:56]Read from MH i2c: E2 62 00 CD 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0B B4 01 00 0E 04 04 00 85 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 F0 [11:51:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0B B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:51:56]wFMCommunicate OK [11:51:56]SAM_PROTO_GetFieldsCounters done [11:51:56]requested_item shift.num is exist - process it [11:51:56]requested_item shift.opened is exist - process it [11:51:56]req_shift_opened [11:51:56]FM_GetShiftState [11:51:56]SAM_PROTO_GetShiftState [11:51:56]wFMCommunicate request_size=4 [11:51:56]MH_SAM_APDU [11:51:56]CAPDU: 80 13 01 00 [11:51:56]Write to MH i2c: E2 08 00 CE 59 80 13 01 00 00 00 00 00 A4 [11:51:56]Write i2c OK [11:51:56]MH_I2C_Read... [11:51:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:56]Read from MH i2c: E2 [11:51:56]MH_I2C_Read... [11:51:56]Read from MH i2c: E2 0E 00 [11:51:56]MH_I2C_Read... [11:51:56]Read from MH i2c: E2 0E 00 CE 59 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 1F [11:51:56]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:51:56]wFMCommunicate OK [11:51:56]SAM_PROTO_GetShiftState done [11:51:56]FM_GetShiftState done [11:51:56]req_shift_opened done [11:51:56]requested_item shift.open_date is exist - process it [11:51:56]req_shift_open_date [11:51:56]req_shift_open_date done [11:51:56]produce_requested_data done [11:51:56]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111627,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [11:51:56]process_action_free close_receipt [11:51:56]json_value_free [11:51:56]json_value_free done [11:51:56]process_json_proto returns [11:51:56]Send response to host [11:51:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111627,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [11:51:56]free response buf [11:51:56]execute_script done [11:51:56]execute_script returns [11:51:56]free content buf [11:51:56]Sock 7.Close socket [11:51:56]Sock 7.Thread stoped [11:52:00]OFD Sender: No OFD packet to send [11:52:05]OFD Sender: No OFD packet to send [11:52:10]OFD Sender: No OFD packet to send [11:52:15]OFD Sender: No OFD packet to send [11:52:20]OFD Sender: No OFD packet to send [11:52:25]OFD Sender: No OFD packet to send [11:52:30]OFD Sender: No OFD packet to send [11:52:35]OFD Sender: No OFD packet to send [11:52:40]OFD Sender: No OFD packet to send [11:52:45]OFD Sender: No OFD packet to send [11:52:50]OFD Sender: No OFD packet to send [11:52:55]OFD Sender: No OFD packet to send [11:53:00]OFD Sender: No OFD packet to send [11:53:05]OFD Sender: No OFD packet to send [11:53:10]OFD Sender: No OFD packet to send [11:53:15]OFD Sender: No OFD packet to send [11:53:20]OFD Sender: No OFD packet to send [11:53:25]OFD Sender: No OFD packet to send [11:53:30]OFD Sender: No OFD packet to send [11:53:35]OFD Sender: No OFD packet to send [11:53:40]OFD Sender: No OFD packet to send [11:53:45]OFD Sender: No OFD packet to send [11:53:50]OFD Sender: No OFD packet to send [11:53:55]OFD Sender: No OFD packet to send [11:54:00]OFD Sender: No OFD packet to send [11:54:05]OFD Sender: No OFD packet to send [11:54:10]OFD Sender: No OFD packet to send [11:54:15]OFD Sender: No OFD packet to send [11:54:20]OFD Sender: No OFD packet to send [11:54:25]OFD Sender: No OFD packet to send [11:54:30]OFD Sender: No OFD packet to send [11:54:35]OFD Sender: No OFD packet to send [11:54:38]accept exits with 9 [11:54:38]New connection [11:54:38]New thread 3067465060 created [11:54:38]Thread 3067321700 joined [11:54:38]Waiting for new connection... [11:54:38] Sock 9.Parse request [11:54:38]Sock 9.Check first char [11:54:38]Sock 9.First char is OK [11:54:38]request: POST /json_proto HTTP/1.0 [11:54:38]Method: POST [11:54:38]URL: /json_proto [11:54:38]Method is POST - this is cgi request [11:54:38]url: /json_proto [11:54:38]query_string will be loaded in cgi processing [11:54:38]execute_cgi json_proto POST (null) [11:54:38]execute_cgi path=json_proto method=POST [11:54:38]POST find Content-Length [11:54:38]Host: 172.17.59.68:8080 [11:54:38]Content-Length: 802 [11:54:38]Content-Type: application/json [11:54:38] [11:54:38]POST finish read [11:54:38]Found Content-Length = 802 [11:54:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 2.060, "sum" : 150.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 150.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:38]execute_script... [11:54:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 2.060, "sum" : 150.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 150.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:38]POST & json_proto [11:54:38]process_json_proto [11:54:38]json parsed OK: [11:54:38]protocol is kg_v1.0 [11:54:38]action value=close_receipt [11:54:38]process_action close_receipt [11:54:38]cmd_close_receipt [11:54:38]MH_GetDate [11:54:38]Write to MH i2c: F0 00 00 CF 59 17 [11:54:38]Write i2c OK [11:54:38]MH_I2C_Read... [11:54:38]Read from MH i2c: F0 [11:54:38]MH_I2C_Read... [11:54:38]Read from MH i2c: F0 09 00 [11:54:38]MH_I2C_Read... [11:54:38]Read from MH i2c: F0 09 00 CF 59 00 9F 18 74 66 BC EC 60 65 1E [11:54:38]GetLastDocTimeStamp 1718884345 [11:54:38]current date 1718884511 [11:54:38]FM_GetShiftState [11:54:38]SAM_PROTO_GetShiftState [11:54:38]wFMCommunicate request_size=4 [11:54:38]MH_SAM_APDU [11:54:38]CAPDU: 80 13 01 00 [11:54:38]Write to MH i2c: E2 08 00 D0 59 80 13 01 00 00 00 00 00 A6 [11:54:38]Write i2c OK [11:54:38]MH_I2C_Read... [11:54:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:38]Read from MH i2c: E2 [11:54:38]MH_I2C_Read... [11:54:38]Read from MH i2c: E2 0E 00 [11:54:38]MH_I2C_Read... [11:54:38]Read from MH i2c: E2 0E 00 D0 59 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 21 [11:54:38]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:54:38]wFMCommunicate OK [11:54:38]SAM_PROTO_GetShiftState done [11:54:38]FM_GetShiftState done [11:54:38]opened in 1718847247 [11:54:38]opened+sec_in_day 1718933647 [11:54:38]quantity*price = 15017 [11:54:38]sum+1 = 15018 [11:54:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.17 НСП 1% : 1.33 НДС 12% : 15.95 Наличными: 0.00 Безнал.: 150.17 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 78 20.06.2024 11:55 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111628 ФПД: 18079755392062 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T115511&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111628&fm=18079755392062&tin=02508201610067®Number=0000000000092771&sum=15017 [11:54:39]StoreToDocumentArchive [11:54:39]shift 389 fd 111628 [11:54:39]save to /storage/0389/doc_00111628 [11:54:39]save last doc name /storage/0389/doc_00111628 to /storage/kkm_last_doc_name [11:54:39]save OK [11:54:39]Clear old archive folders... [11:54:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:54:39]tlvbuf is 00F1E480 [11:54:39]SAM_PROTO_ClearQueue [11:54:39]wFMCommunicate request_size=4 [11:54:39]MH_SAM_APDU [11:54:39]CAPDU: 80 09 00 00 [11:54:39]Write to MH i2c: E2 08 00 DD 59 80 09 00 00 00 00 00 00 A8 [11:54:39]Write i2c OK [11:54:39]MH_I2C_Read... [11:54:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:39]Read from MH i2c: E2 [11:54:39]MH_I2C_Read... [11:54:39]Read from MH i2c: E2 03 00 [11:54:39]MH_I2C_Read... [11:54:39]Read from MH i2c: E2 03 00 DD 59 00 90 00 AA [11:54:39]RAPDU: 90 00 [11:54:39]wFMCommunicate OK [11:54:39]SAM_PROTO_ClearQueue done [11:54:39]KKMCreateOFDPacket [11:54:39]OFDProtocolAddRootSTLVToBuf [11:54:39]FM_MakeSignedData [11:54:39]FM_MakeSignedData [11:54:39]SAM_PROTO_SignData [11:54:39]wFMCommunicate request_size=4 [11:54:39]MH_SAM_APDU [11:54:39]CAPDU: 80 0D 01 02 [11:54:39]Write to MH i2c: E2 08 00 DE 59 80 0D 01 02 00 00 00 00 B0 [11:54:39]Write i2c OK [11:54:39]MH_I2C_Read... [11:54:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:39]Read from MH i2c: E2 [11:54:39]MH_I2C_Read... [11:54:39]Read from MH i2c: E2 03 00 [11:54:39]MH_I2C_Read... [11:54:39]Read from MH i2c: E2 03 00 DE 59 00 90 00 AB [11:54:39]RAPDU: 90 00 [11:54:39]wFMCommunicate OK [11:54:39]wFMCommunicate request_size=255 [11:54:39]MH_SAM_APDU [11:54:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 08 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A9 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A9 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 9F 18 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0C B4 01 00 35 04 06 00 10 71 85 65 [11:54:39]Write to MH i2c: E2 02 01 DF 59 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 08 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A9 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A9 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 9F 18 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0C B4 01 00 35 04 06 00 10 71 85 65 00 00 B7 [11:54:39]Write i2c OK [11:54:39]MH_I2C_Read... [11:54:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:39]Read from MH i2c: E2 [11:54:39]MH_I2C_Read... [11:54:39]Read from MH i2c: E2 03 00 [11:54:39]MH_I2C_Read... [11:54:39]Read from MH i2c: E2 03 00 DF 59 00 90 00 AC [11:54:39]RAPDU: 90 00 [11:54:39]wFMCommunicate OK [11:54:39]wFMCommunicate request_size=7 [11:54:39]MH_SAM_APDU [11:54:39]CAPDU: 80 0D 02 02 02 D4 3E [11:54:39]Write to MH i2c: E2 0A 00 E0 59 80 0D 02 02 02 00 D4 3E 00 00 C9 [11:54:39]Write i2c OK [11:54:39]MH_I2C_Read... [11:54:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:39]Read from MH i2c: E2 [11:54:39]MH_I2C_Read... [11:54:39]Read from MH i2c: E2 03 00 [11:54:39]MH_I2C_Read... [11:54:39]Read from MH i2c: E2 03 00 E0 59 00 90 00 AD [11:54:39]RAPDU: 90 00 [11:54:39]wFMCommunicate OK [11:54:39]wFMCommunicate request_size=4 [11:54:39]MH_SAM_APDU [11:54:39]CAPDU: 80 0D 03 02 [11:54:39]Write to MH i2c: E2 08 00 E1 59 80 0D 03 02 00 00 00 00 B5 [11:54:39]Write i2c OK [11:54:39]MH_I2C_Read... [11:54:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:39]Read from MH i2c: E2 [11:54:39]MH_I2C_Read... [11:54:39]Read from MH i2c: E2 0B 00 [11:54:39]MH_I2C_Read... [11:54:39]Read from MH i2c: E2 0B 00 E1 59 00 D4 2A E8 65 21 6A 5B 86 90 00 6D [11:54:39]RAPDU: D4 2A E8 65 21 6A 5B 86 90 00 [11:54:39]wFMCommunicate OK [11:54:39]SAM_PROTO_SignData done [11:54:39]FM_MakeSignedData done [11:54:39]CreateOFDProtocolMessage [11:54:39]wFMCommunicate request_size=4 [11:54:39]MH_SAM_APDU [11:54:39]CAPDU: 80 11 00 00 [11:54:39]Write to MH i2c: E2 08 00 E2 59 80 11 00 00 00 00 00 00 B5 [11:54:39]Write i2c OK [11:54:39]MH_I2C_Read... [11:54:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:39]Read from MH i2c: E2 [11:54:39]MH_I2C_Read... [11:54:39]Read from MH i2c: E2 17 00 [11:54:39]MH_I2C_Read... [11:54:39]Read from MH i2c: E2 17 00 E2 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 07 [11:54:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:54:39]wFMCommunicate OK [11:54:39]CreateOFDProtocolMessage done [11:54:39]OFDSenderStorePacket 111628 [11:54:39]StoreOFDPacket docnum=111628 [11:54:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 E3 78 04 01 D9 77 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 08 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A9 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A9 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 9F 18 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0C B4 01 00 35 04 06 00 10 71 85 65 D4 3E D4 2A E8 65 21 6A 5B 86 [11:54:39]CheckFolder [11:54:39]dirname=/storage/ofd_packets [11:54:39]CheckFolder done [11:54:39]ProducePacketName [11:54:39]name=ofd_packets/00111628 [11:54:39]NVStorageSaveData ofd_packets/00111628 [11:54:39]File name is /storage/ofd_packets/00111628 [11:54:39]Write 298 bytes [11:54:39]NVStorageSaveData done [11:54:39]OFDSenderStorePacket done [11:54:39]KKMCreateOFDPacket done [11:54:39]NVStorageSaveData kkm_last_timestamp [11:54:39]File name is /storage/kkm_last_timestamp [11:54:39]Write 4 bytes [11:54:39]NVStorageSaveData done [11:54:39]ExternCall_PrintAddStr [11:54:39]wPrintStart [11:54:39]Write to MH i2c: 01 00 00 E3 59 3C [11:54:39]Write i2c OK [11:54:39]MH_I2C_Read... [11:54:39]Read from MH i2c: 01 [11:54:39]MH_I2C_Read... [11:54:39]Read from MH i2c: 01 07 00 [11:54:39]MH_I2C_Read... [11:54:39]Read from MH i2c: 01 07 00 E3 59 00 00 00 00 00 FF 0F 51 [11:54:39]RasterBufferAndPrint [11:54:39]line Счет N : (1)320228 [11:54:39]line ИНН: 02508201610067 [11:54:39]line Контрольно-Кассовый Чек [11:54:39]line ПРОДАЖА [11:54:39]line ТРК (МРК, ГНК) : 22 [11:54:39]line Товар: 2710194210 [11:54:39]line ДТ-К-5 [11:54:39]line 2.060 * 72.90 [11:54:39]line = 150.17 [11:54:39]line НДС 12% НСП 1% [11:54:39]line > о реализуемом товаре [11:54:39]line ИТОГО: 150.17 [11:54:39]line НСП 1% : 1.33 [11:54:39]line НДС 12% : 15.95 [11:54:39]line Наличными: 0.00 [11:54:39]line Безнал.: 150.17 [11:54:39]line Место: АЗС № 65 "Партнер Нефть" [11:54:39]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:54:39]line СНО: Общий режим [11:54:39]line Чек 78 20.06.2024 11:55 [11:54:39]line Смена: 389 ФФД: 1.0 [11:54:39]line ЗНМ: 0300000198 [11:54:39]line РНМ: 0000000000092771 [11:54:39]line Версия ККМ: 001 [11:54:39]line Платежная система: О! деньги [11:54:39]line ФМ: 0000000000875083 [11:54:39]line ФД: 111628 [11:54:39]line ФПД: 18079755392062 [11:54:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T115511&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111628&fm=18079755392062&tin=02508201610067®Number=0000000000092771&sum=15017 [11:54:40]OFD Sender: Processing packet 111628 [packets to send 38, broken 37] [11:54:40]ProducePacketName [11:54:40]name=ofd_packets/00111628 [11:54:40]OFD Sender: To server: pG, [11:54:40]CommunicateWithHost lk.salyk.kg:30040 [11:54:40]ConnectInit lk.salyk.kg [11:54:40]written 0, free lines is 4095 [11:54:40]Connected sock=10 [11:54:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 E3 78 04 01 D9 77 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 08 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A9 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A9 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 9F 18 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0C B4 01 00 35 04 06 00 10 71 85 65 D4 3E D4 2A E8 65 21 6A 5B 86 [11:54:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3C 7C 47 00 CF 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 35 30 38 33 10 04 04 00 0C B4 01 00 F4 03 04 00 EA AF 73 66 B6 04 01 00 00 FA F9 D5 8F FA F5 84 70 [11:54:40]CommunicateWithHost err = 0 [11:54:40]CheckOFDResponse [11:54:40]1017 (14) - 77093643461234 [11:54:40]1041 (16) - 0000000000875083 [11:54:40]1040 (4) - 111628 [11:54:40]1012 (4) - 20.06.2024 04:28 [11:54:40]1206 (1) - 0 [11:54:40]OFD Sender: Remove packet 111628 [11:54:40]ProducePacketName [11:54:40]name=ofd_packets/00111628 [11:54:40]NVStorageDeleteData [11:54:40]Write to MH i2c: 01 00 00 0D 5A 67 [11:54:40]Write i2c OK [11:54:40]MH_I2C_Read... [11:54:40]Read from MH i2c: 01 [11:54:40]MH_I2C_Read... [11:54:40]Read from MH i2c: 01 07 00 [11:54:40]MH_I2C_Read... [11:54:40]Read from MH i2c: 01 07 00 0D 5A 00 00 00 00 00 D2 0C 4C [11:54:40]RasterBufferAndPrint [11:54:40]line [11:54:40]line [11:54:40]line [11:54:40]line [11:54:40]line [11:54:40]written 0, free lines is 3288 [11:54:40]MH_Cut [11:54:40]Write to MH i2c: D1 01 00 14 5A 01 40 [11:54:40]Write i2c OK [11:54:40]MH_I2C_Read... [11:54:40]Read from MH i2c: D1 [11:54:40]MH_I2C_Read... [11:54:40]Read from MH i2c: D1 01 00 [11:54:40]MH_I2C_Read... [11:54:40]Read from MH i2c: D1 01 00 14 5A 00 3F [11:54:40]Write to MH i2c: 01 00 00 15 5A 6F [11:54:40]Write i2c OK [11:54:40]MH_I2C_Read... [11:54:40]OFD Sender: No OFD packet to send [11:54:41]*** Cut start [11:54:41]*** Partial cut [11:54:41]*** CUTSNS_PIN = 1 [11:54:41]*** CUTSNS_PIN = 0 [11:54:41]*** Brake cut motor [11:54:41]Read from MH i2c: 01 [11:54:41]MH_I2C_Read... [11:54:41]*** Stop cut motor [11:54:41]*** Cut end [11:54:41]Read from MH i2c: 01 07 00 [11:54:41]MH_I2C_Read... [11:54:41]Read from MH i2c: 01 07 00 15 5A 00 00 00 00 00 FF 0F 84 [11:54:41]process_action close_receipt done [11:54:41]requested_data is exist [11:54:41]produce_requested_data [11:54:41]requested_item fm.sn is exist - process it [11:54:41]wFMCommunicate request_size=4 [11:54:41]MH_SAM_APDU [11:54:41]CAPDU: 80 11 00 00 [11:54:41]Write to MH i2c: E2 08 00 16 5A 80 11 00 00 00 00 00 00 EA [11:54:41]Write i2c OK [11:54:41]MH_I2C_Read... [11:54:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:42]Read from MH i2c: E2 [11:54:42]MH_I2C_Read... [11:54:42]Read from MH i2c: E2 17 00 [11:54:42]MH_I2C_Read... [11:54:42]Read from MH i2c: E2 17 00 16 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3C [11:54:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:54:42]wFMCommunicate OK [11:54:42]requested_item fd.num is exist - process it [11:54:42]SAM_PROTO_GetFieldsCounters [11:54:42]wFMCommunicate request_size=4 [11:54:42]MH_SAM_APDU [11:54:42]CAPDU: 80 13 00 00 [11:54:42]Write to MH i2c: E2 08 00 17 5A 80 13 00 00 00 00 00 00 ED [11:54:42]Write i2c OK [11:54:42]MH_I2C_Read... [11:54:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:42]Read from MH i2c: E2 [11:54:42]MH_I2C_Read... [11:54:42]Read from MH i2c: E2 62 00 [11:54:42]MH_I2C_Read... [11:54:42]Read from MH i2c: E2 62 00 17 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0C B4 01 00 0E 04 04 00 85 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 3F [11:54:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0C B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:54:42]wFMCommunicate OK [11:54:42]SAM_PROTO_GetFieldsCounters done [11:54:42]requested_item shift.num is exist - process it [11:54:42]requested_item shift.opened is exist - process it [11:54:42]req_shift_opened [11:54:42]FM_GetShiftState [11:54:42]SAM_PROTO_GetShiftState [11:54:42]wFMCommunicate request_size=4 [11:54:42]MH_SAM_APDU [11:54:42]CAPDU: 80 13 01 00 [11:54:42]Write to MH i2c: E2 08 00 18 5A 80 13 01 00 00 00 00 00 EF [11:54:42]Write i2c OK [11:54:42]MH_I2C_Read... [11:54:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:42]Read from MH i2c: E2 [11:54:42]MH_I2C_Read... [11:54:42]Read from MH i2c: E2 0E 00 [11:54:42]MH_I2C_Read... [11:54:42]Read from MH i2c: E2 0E 00 18 5A 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 6A [11:54:42]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [11:54:42]wFMCommunicate OK [11:54:42]SAM_PROTO_GetShiftState done [11:54:42]FM_GetShiftState done [11:54:42]req_shift_opened done [11:54:42]requested_item shift.open_date is exist - process it [11:54:42]req_shift_open_date [11:54:42]req_shift_open_date done [11:54:42]produce_requested_data done [11:54:42]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111628,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [11:54:42]process_action_free close_receipt [11:54:42]json_value_free [11:54:42]json_value_free done [11:54:42]process_json_proto returns [11:54:42]Send response to host [11:54:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111628,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [11:54:42]free response buf [11:54:42]execute_script done [11:54:42]execute_script returns [11:54:42]free content buf [11:54:42]Sock 9.Close socket [11:54:42]Sock 9.Thread stoped [11:54:45]OFD Sender: No OFD packet to send [11:54:50]OFD Sender: No OFD packet to send [11:54:55]OFD Sender: No OFD packet to send [11:55:00]OFD Sender: No OFD packet to send [11:55:05]OFD Sender: No OFD packet to send [11:55:10]OFD Sender: No OFD packet to send [11:55:15]OFD Sender: No OFD packet to send [11:55:20]OFD Sender: No OFD packet to send [11:55:25]OFD Sender: No OFD packet to send [11:55:30]OFD Sender: No OFD packet to send [11:55:35]OFD Sender: No OFD packet to send [11:55:40]OFD Sender: No OFD packet to send [11:55:45]OFD Sender: No OFD packet to send [11:55:50]OFD Sender: No OFD packet to send [11:55:55]OFD Sender: No OFD packet to send [11:56:00]OFD Sender: No OFD packet to send [11:56:05]OFD Sender: No OFD packet to send [11:56:11]OFD Sender: No OFD packet to send [11:56:16]OFD Sender: No OFD packet to send [11:56:21]OFD Sender: No OFD packet to send [11:56:26]OFD Sender: No OFD packet to send [11:56:31]OFD Sender: No OFD packet to send [11:56:36]OFD Sender: No OFD packet to send [11:56:41]OFD Sender: No OFD packet to send [11:56:46]OFD Sender: No OFD packet to send [11:56:51]OFD Sender: No OFD packet to send [11:56:56]OFD Sender: No OFD packet to send [11:57:01]OFD Sender: No OFD packet to send [11:57:06]OFD Sender: No OFD packet to send [11:57:11]OFD Sender: No OFD packet to send [11:57:16]OFD Sender: No OFD packet to send [11:57:21]OFD Sender: No OFD packet to send [11:57:26]OFD Sender: No OFD packet to send [11:57:31]OFD Sender: No OFD packet to send [11:57:36]OFD Sender: No OFD packet to send [11:57:41]OFD Sender: No OFD packet to send [11:57:46]OFD Sender: No OFD packet to send [11:57:51]OFD Sender: No OFD packet to send [11:57:56]OFD Sender: No OFD packet to send [11:58:01]OFD Sender: No OFD packet to send [11:58:06]OFD Sender: No OFD packet to send [11:58:11]OFD Sender: No OFD packet to send [11:58:16]OFD Sender: No OFD packet to send [11:58:21]OFD Sender: No OFD packet to send [11:58:26]OFD Sender: No OFD packet to send [11:58:31]OFD Sender: No OFD packet to send [11:58:36]OFD Sender: No OFD packet to send [11:58:41]OFD Sender: No OFD packet to send [11:58:46]OFD Sender: No OFD packet to send [11:58:51]OFD Sender: No OFD packet to send [11:58:56]OFD Sender: No OFD packet to send [11:59:01]OFD Sender: No OFD packet to send [11:59:06]OFD Sender: No OFD packet to send [11:59:11]OFD Sender: No OFD packet to send [11:59:16]OFD Sender: No OFD packet to send [11:59:21]OFD Sender: No OFD packet to send [11:59:26]OFD Sender: No OFD packet to send [11:59:31]OFD Sender: No OFD packet to send [11:59:36]OFD Sender: No OFD packet to send [11:59:41]OFD Sender: No OFD packet to send [11:59:46]OFD Sender: No OFD packet to send [11:59:51]OFD Sender: No OFD packet to send [11:59:56]OFD Sender: No OFD packet to send [12:00:01]OFD Sender: No OFD packet to send [12:00:06]OFD Sender: No OFD packet to send [12:00:11]OFD Sender: No OFD packet to send [12:00:16]OFD Sender: No OFD packet to send [12:00:21]OFD Sender: No OFD packet to send [12:00:26]OFD Sender: No OFD packet to send [12:00:31]OFD Sender: No OFD packet to send [12:00:36]OFD Sender: No OFD packet to send [12:00:41]OFD Sender: No OFD packet to send [12:00:46]OFD Sender: No OFD packet to send [12:00:51]OFD Sender: No OFD packet to send [12:00:56]OFD Sender: No OFD packet to send [12:01:01]OFD Sender: No OFD packet to send [12:01:06]OFD Sender: No OFD packet to send [12:01:11]OFD Sender: No OFD packet to send [12:01:16]OFD Sender: No OFD packet to send [12:01:21]OFD Sender: No OFD packet to send [12:01:26]OFD Sender: No OFD packet to send [12:01:31]OFD Sender: No OFD packet to send [12:01:36]OFD Sender: No OFD packet to send [12:01:41]OFD Sender: No OFD packet to send [12:01:46]OFD Sender: No OFD packet to send [12:01:51]OFD Sender: No OFD packet to send [12:01:56]OFD Sender: No OFD packet to send [12:02:01]OFD Sender: No OFD packet to send [12:02:06]OFD Sender: No OFD packet to send [12:02:11]OFD Sender: No OFD packet to send [12:02:16]OFD Sender: No OFD packet to send [12:02:21]OFD Sender: No OFD packet to send [12:02:26]OFD Sender: No OFD packet to send [12:02:31]OFD Sender: No OFD packet to send [12:02:36]OFD Sender: No OFD packet to send [12:02:41]OFD Sender: No OFD packet to send [12:02:42]accept exits with 7 [12:02:42]New connection [12:02:42]New thread 3067321700 created [12:02:42]Thread 3067465060 joined [12:02:42]Waiting for new connection... [12:02:42] Sock 7.Parse request [12:02:42]Sock 7.Check first char [12:02:42]Sock 7.First char is OK [12:02:42]request: POST /json_proto HTTP/1.0 [12:02:42]Method: POST [12:02:42]URL: /json_proto [12:02:42]Method is POST - this is cgi request [12:02:42]url: /json_proto [12:02:42]query_string will be loaded in cgi processing [12:02:42]execute_cgi json_proto POST (null) [12:02:42]execute_cgi path=json_proto method=POST [12:02:42]POST find Content-Length [12:02:42]Host: 172.17.59.68:8080 [12:02:42]Content-Length: 677 [12:02:42]Content-Type: application/json [12:02:42] [12:02:42]POST finish read [12:02:42]Found Content-Length = 677 [12:02:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:42]execute_script... [12:02: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)320229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:42]POST & json_proto [12:02:42]process_json_proto [12:02:42]json parsed OK: [12:02:42]protocol is kg_v1.0 [12:02:42]action value=close_receipt [12:02:42]process_action close_receipt [12:02:42]cmd_close_receipt [12:02:42]MH_GetDate [12:02:42]Write to MH i2c: F0 00 00 19 5A 62 [12:02:42]Write i2c OK [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: F0 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: F0 09 00 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: F0 09 00 19 5A 00 83 1A 74 66 BC EC 60 65 4F [12:02:42]GetLastDocTimeStamp 1718884511 [12:02:42]current date 1718884995 [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 1A 5A 80 13 01 00 00 00 00 00 F1 [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 1A 5A 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 6C [12:02:42]RAPDU: 09 00 01 0F 87 73 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]opened in 1718847247 [12:02:42]opened+sec_in_day 1718933647 [12:02:42]quantity*price = 30012 [12:02:42]sum+1 = 30014 [12:02:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 79 20.06.2024 12:03 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111629 ФПД: 125425731335272 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T120315&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111629&fm=125425731335272&tin=02508201610067®Number=0000000000092771&sum=30000 [12:02:43]StoreToDocumentArchive [12:02:43]shift 389 fd 111629 [12:02:43]save to /storage/0389/doc_00111629 [12:02:43]save last doc name /storage/0389/doc_00111629 to /storage/kkm_last_doc_name [12:02:43]save OK [12:02:43]Clear old archive folders... [12:02:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:02:43]tlvbuf is 00F1E590 [12:02:43]SAM_PROTO_ClearQueue [12:02:43]wFMCommunicate request_size=4 [12:02:43]MH_SAM_APDU [12:02:43]CAPDU: 80 09 00 00 [12:02:43]Write to MH i2c: E2 08 00 27 5A 80 09 00 00 00 00 00 00 F3 [12:02:43]Write i2c OK [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: E2 [12:02:43]MH_I2C_Read... [12:02:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:43]Read from MH i2c: E2 03 00 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: E2 03 00 27 5A 00 90 00 F5 [12:02:43]RAPDU: 90 00 [12:02:43]wFMCommunicate OK [12:02:43]SAM_PROTO_ClearQueue done [12:02:43]KKMCreateOFDPacket [12:02:43]OFDProtocolAddRootSTLVToBuf [12:02:43]FM_MakeSignedData [12:02:43]FM_MakeSignedData [12:02:43]SAM_PROTO_SignData [12:02:43]wFMCommunicate request_size=4 [12:02:43]MH_SAM_APDU [12:02:43]CAPDU: 80 0D 01 02 [12:02:43]Write to MH i2c: E2 08 00 28 5A 80 0D 01 02 00 00 00 00 FB [12:02:43]Write i2c OK [12:02:43]MH_I2C_Read... [12:02:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:43]Read from MH i2c: E2 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: E2 03 00 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: E2 03 00 28 5A 00 90 00 F6 [12:02:43]RAPDU: 90 00 [12:02:43]wFMCommunicate OK [12:02:43]wFMCommunicate request_size=255 [12:02:43]MH_SAM_APDU [12:02: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 83 1A 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0D B4 01 00 35 04 06 00 72 [12:02:43]Write to MH i2c: E2 02 01 29 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 83 1A 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0D B4 01 00 35 04 06 00 72 00 00 CD [12:02:43]Write i2c OK [12:02:43]MH_I2C_Read... [12:02:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:43]Read from MH i2c: E2 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: E2 03 00 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: E2 03 00 29 5A 00 90 00 F7 [12:02:43]RAPDU: 90 00 [12:02:43]wFMCommunicate OK [12:02:43]wFMCommunicate request_size=10 [12:02:43]MH_SAM_APDU [12:02:43]CAPDU: 80 0D 02 02 05 12 F4 29 74 68 [12:02:43]Write to MH i2c: E2 0D 00 2A 5A 80 0D 02 02 05 00 12 F4 29 74 68 00 00 13 [12:02:43]Write i2c OK [12:02:43]MH_I2C_Read... [12:02:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:43]Read from MH i2c: E2 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: E2 03 00 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: E2 03 00 2A 5A 00 90 00 F8 [12:02:43]RAPDU: 90 00 [12:02:43]wFMCommunicate OK [12:02:43]wFMCommunicate request_size=4 [12:02:43]MH_SAM_APDU [12:02:43]CAPDU: 80 0D 03 02 [12:02:43]Write to MH i2c: E2 08 00 2B 5A 80 0D 03 02 00 00 00 00 00 [12:02:43]Write i2c OK [12:02:43]MH_I2C_Read... [12:02:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:43]Read from MH i2c: E2 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: E2 0B 00 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: E2 0B 00 2B 5A 00 F4 56 24 D3 30 D1 32 40 90 00 B5 [12:02:43]RAPDU: F4 56 24 D3 30 D1 32 40 90 00 [12:02:43]wFMCommunicate OK [12:02:43]SAM_PROTO_SignData done [12:02:43]FM_MakeSignedData done [12:02:43]CreateOFDProtocolMessage [12:02:43]wFMCommunicate request_size=4 [12:02:43]MH_SAM_APDU [12:02:43]CAPDU: 80 11 00 00 [12:02:43]Write to MH i2c: E2 08 00 2C 5A 80 11 00 00 00 00 00 00 00 [12:02:43]Write i2c OK [12:02:43]MH_I2C_Read... [12:02:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:43]Read from MH i2c: E2 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: E2 17 00 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: E2 17 00 2C 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 52 [12:02:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:02:43]wFMCommunicate OK [12:02:43]CreateOFDProtocolMessage done [12:02:43]OFDSenderStorePacket 111629 [12:02:43]StoreOFDPacket docnum=111629 [12:02:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 20 8D 07 01 65 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 83 1A 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0D B4 01 00 35 04 06 00 72 12 F4 29 74 68 F4 56 24 D3 30 D1 32 40 [12:02:43]CheckFolder [12:02:43]dirname=/storage/ofd_packets [12:02:43]CheckFolder done [12:02:43]ProducePacketName [12:02:43]name=ofd_packets/00111629 [12:02:43]NVStorageSaveData ofd_packets/00111629 [12:02:43]File name is /storage/ofd_packets/00111629 [12:02:43]Write 301 bytes [12:02:43]NVStorageSaveData done [12:02:43]OFDSenderStorePacket done [12:02:43]KKMCreateOFDPacket done [12:02:43]NVStorageSaveData kkm_last_timestamp [12:02:43]File name is /storage/kkm_last_timestamp [12:02:43]Write 4 bytes [12:02:43]NVStorageSaveData done [12:02:43]ExternCall_PrintAddStr [12:02:43]wPrintStart [12:02:43]Write to MH i2c: 01 00 00 2D 5A 87 [12:02:43]Write i2c OK [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: 01 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: 01 07 00 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: 01 07 00 2D 5A 00 00 00 00 00 FF 0F 9C [12:02:43]RasterBufferAndPrint [12:02:43]line Счет N : (1)320229 [12:02:43]line ИНН: 02508201610067 [12:02:43]line Контрольно-Кассовый Чек [12:02:43]line ПРОДАЖА [12:02:43]line ТРК (МРК, ГНК) : 11 [12:02:43]line Товар: 2710124130 [12:02:43]line Аи-92-К-5 [12:02:43]line 4.520 * 66.40 [12:02:43]line = 300.13 [12:02:43]line НДС 12% НСП 1% [12:02:43]line > о реализуемом товаре [12:02:43]line ОКРУГЛЕНИЕ: -0.13 [12:02:43]line ИТОГО: 300.00 [12:02:43]line Внесено: 300.00 [12:02:43]line СДАЧА: 0.00 [12:02:43]line НСП 1% : 2.66 [12:02:43]line НДС 12% : 31.87 [12:02:43]line Наличными: 300.00 [12:02:43]line Безнал.: 0.00 [12:02:43]line Место: АЗС № 65 "Партнер Нефть" [12:02:43]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:02:43]line СНО: Общий режим [12:02:43]line Чек 79 20.06.2024 12:03 [12:02:43]line Смена: 389 ФФД: 1.0 [12:02:43]line ЗНМ: 0300000198 [12:02:43]line РНМ: 0000000000092771 [12:02:43]line Версия ККМ: 001 [12:02:43]line ФМ: 0000000000875083 [12:02:43]line ФД: 111629 [12:02:43]line ФПД: 125425731335272 [12:02:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T120315&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111629&fm=125425731335272&tin=02508201610067®Number=0000000000092771&sum=30000 [12:02:44]OFD Sender: Processing packet 111629 [packets to send 38, broken 37] [12:02:44]ProducePacketName [12:02:44]name=ofd_packets/00111629 [12:02:44]OFD Sender: To server: pG, [12:02:44]CommunicateWithHost lk.salyk.kg:30040 [12:02:44]ConnectInit lk.salyk.kg [12:02:44]written 0, free lines is 4095 [12:02:44]Connected sock=10 [12:02:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 20 8D 07 01 65 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 83 1A 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0D B4 01 00 35 04 06 00 72 12 F4 29 74 68 F4 56 24 D3 30 D1 32 40 [12:02:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 BB 80 47 00 29 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0D B4 01 00 F4 03 04 00 CE B1 73 66 B6 04 01 00 00 55 F6 5B C4 F3 6C 16 92 [12:02:44]CommunicateWithHost err = 0 [12:02:44]CheckOFDResponse [12:02:44]1017 (14) - 77093643461234 [12:02:44]1041 (16) - 0000000000875083 [12:02:44]1040 (4) - 111629 [12:02:44]1012 (4) - 20.06.2024 04:36 [12:02:44]1206 (1) - 0 [12:02:44]OFD Sender: Remove packet 111629 [12:02:44]ProducePacketName [12:02:44]name=ofd_packets/00111629 [12:02:44]NVStorageDeleteData [12:02:44]Write to MH i2c: 01 00 00 58 5A B2 [12:02:44]Write i2c OK [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: 01 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: 01 07 00 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: 01 07 00 58 5A 00 00 00 00 00 DA 0C 9F [12:02:44]RasterBufferAndPrint [12:02:44]line [12:02:44]line [12:02:44]line [12:02:44]line [12:02:44]line [12:02:44]written 0, free lines is 3298 [12:02:44]MH_Cut [12:02:44]Write to MH i2c: D1 01 00 5F 5A 01 8B [12:02:44]Write i2c OK [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: D1 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: D1 01 00 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: D1 01 00 5F 5A 00 8A [12:02:44]Write to MH i2c: 01 00 00 60 5A BA [12:02:44]Write i2c OK [12:02:44]MH_I2C_Read... [12:02:44]OFD Sender: No OFD packet to send [12:02:45]*** Cut start [12:02:45]*** Partial cut [12:02:45]*** CUTSNS_PIN = 1 [12:02:45]*** CUTSNS_PIN = 0 [12:02:45]*** Brake cut motor [12:02:45]Read from MH i2c: 01 [12:02:45]MH_I2C_Read... [12:02:45]*** Stop cut motor [12:02:45]*** Cut end [12:02:45]Read from MH i2c: 01 07 00 [12:02:45]MH_I2C_Read... [12:02:45]Read from MH i2c: 01 07 00 60 5A 00 00 00 00 00 FF 0F CF [12:02:45]process_action close_receipt done [12:02:45]requested_data is exist [12:02:45]produce_requested_data [12:02:45]requested_item fm.sn is exist - process it [12:02:45]wFMCommunicate request_size=4 [12:02:45]MH_SAM_APDU [12:02:45]CAPDU: 80 11 00 00 [12:02:45]Write to MH i2c: E2 08 00 61 5A 80 11 00 00 00 00 00 00 35 [12:02:45]Write i2c OK [12:02:45]MH_I2C_Read... [12:02:45]*** 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 61 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 87 [12:02:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:02:46]wFMCommunicate OK [12:02:46]requested_item fd.num is exist - process it [12:02:46]SAM_PROTO_GetFieldsCounters [12:02:46]wFMCommunicate request_size=4 [12:02:46]MH_SAM_APDU [12:02:46]CAPDU: 80 13 00 00 [12:02:46]Write to MH i2c: E2 08 00 62 5A 80 13 00 00 00 00 00 00 38 [12:02:46]Write i2c OK [12:02:46]MH_I2C_Read... [12:02:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:46]Read from MH i2c: E2 [12:02:46]MH_I2C_Read... [12:02:46]Read from MH i2c: E2 62 00 [12:02:46]MH_I2C_Read... [12:02:46]Read from MH i2c: E2 62 00 62 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0D B4 01 00 0E 04 04 00 85 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 8E [12:02:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0D B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:02:46]wFMCommunicate OK [12:02:46]SAM_PROTO_GetFieldsCounters done [12:02:46]requested_item shift.num is exist - process it [12:02:46]requested_item shift.opened is exist - process it [12:02:46]req_shift_opened [12:02:46]FM_GetShiftState [12:02:46]SAM_PROTO_GetShiftState [12:02:46]wFMCommunicate request_size=4 [12:02:46]MH_SAM_APDU [12:02:46]CAPDU: 80 13 01 00 [12:02:46]Write to MH i2c: E2 08 00 63 5A 80 13 01 00 00 00 00 00 3A [12:02:46]Write i2c OK [12:02:46]MH_I2C_Read... [12:02:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:46]Read from MH i2c: E2 [12:02:46]MH_I2C_Read... [12:02:46]Read from MH i2c: E2 0E 00 [12:02:46]MH_I2C_Read... [12:02:46]Read from MH i2c: E2 0E 00 63 5A 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 B5 [12:02:46]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:02:46]wFMCommunicate OK [12:02:46]SAM_PROTO_GetShiftState done [12:02:46]FM_GetShiftState done [12:02:46]req_shift_opened done [12:02:46]requested_item shift.open_date is exist - process it [12:02:46]req_shift_open_date [12:02:46]req_shift_open_date done [12:02:46]produce_requested_data done [12:02:46]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111629,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [12:02:46]process_action_free close_receipt [12:02:46]json_value_free [12:02:46]json_value_free done [12:02:46]process_json_proto returns [12:02:46]Send response to host [12:02:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111629,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [12:02:46]free response buf [12:02:46]execute_script done [12:02:46]execute_script returns [12:02:46]free content buf [12:02:46]Sock 7.Close socket [12:02:46]Sock 7.Thread stoped [12:02:49]OFD Sender: No OFD packet to send [12:02:54]OFD Sender: No OFD packet to send [12:02:59]OFD Sender: No OFD packet to send [12:03:04]OFD Sender: No OFD packet to send [12:03:09]OFD Sender: No OFD packet to send [12:03:14]OFD Sender: No OFD packet to send [12:03:19]OFD Sender: No OFD packet to send [12:03:24]OFD Sender: No OFD packet to send [12:03:29]OFD Sender: No OFD packet to send [12:03:32]accept exits with 9 [12:03:32]New connection [12:03:32]New thread 3067465060 created [12:03:32]Thread 3067321700 joined [12:03:32]Waiting for new connection... [12:03:32] Sock 9.Parse request [12:03:32]Sock 9.Check first char [12:03:32]Sock 9.First char is OK [12:03:32]request: POST /json_proto HTTP/1.0 [12:03:32]Method: POST [12:03:32]URL: /json_proto [12:03:32]Method is POST - this is cgi request [12:03:32]url: /json_proto [12:03:32]query_string will be loaded in cgi processing [12:03:32]execute_cgi json_proto POST (null) [12:03:32]execute_cgi path=json_proto method=POST [12:03:32]POST find Content-Length [12:03:32]Host: 172.17.59.68:8080 [12:03:32]Content-Length: 677 [12:03:32]Content-Type: application/json [12:03:32] [12:03:32]POST finish read [12:03:32]Found Content-Length = 677 [12:03:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:32]execute_script... [12:03: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)320230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:32]POST & json_proto [12:03:32]process_json_proto [12:03:32]json parsed OK: [12:03:32]protocol is kg_v1.0 [12:03:32]action value=close_receipt [12:03:32]process_action close_receipt [12:03:32]cmd_close_receipt [12:03:32]MH_GetDate [12:03:32]Write to MH i2c: F0 00 00 64 5A AD [12:03:32]Write i2c OK [12:03:32]MH_I2C_Read... [12:03:32]Read from MH i2c: F0 [12:03:32]MH_I2C_Read... [12:03:32]Read from MH i2c: F0 09 00 [12:03:32]MH_I2C_Read... [12:03:32]Read from MH i2c: F0 09 00 64 5A 00 B6 1A 74 66 BC EC 60 65 CD [12:03:32]GetLastDocTimeStamp 1718884995 [12:03:32]current date 1718885046 [12:03:32]FM_GetShiftState [12:03:32]SAM_PROTO_GetShiftState [12:03:32]wFMCommunicate request_size=4 [12:03:32]MH_SAM_APDU [12:03:32]CAPDU: 80 13 01 00 [12:03:32]Write to MH i2c: E2 08 00 65 5A 80 13 01 00 00 00 00 00 3C [12:03:32]Write i2c OK [12:03:32]MH_I2C_Read... [12:03:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:32]Read from MH i2c: E2 [12:03:32]MH_I2C_Read... [12:03:32]Read from MH i2c: E2 0E 00 [12:03:32]MH_I2C_Read... [12:03:32]Read from MH i2c: E2 0E 00 65 5A 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 B7 [12:03:32]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:03:32]wFMCommunicate OK [12:03:32]SAM_PROTO_GetShiftState done [12:03:32]FM_GetShiftState done [12:03:32]opened in 1718847247 [12:03:32]opened+sec_in_day 1718933647 [12:03:32]quantity*price = 30012 [12:03:32]sum+1 = 30014 [12:03:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 80 20.06.2024 12:04 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111630 ФПД: 158369545093152 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T120406&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111630&fm=158369545093152&tin=02508201610067®Number=0000000000092771&sum=30000 [12:03:33]StoreToDocumentArchive [12:03:33]shift 389 fd 111630 [12:03:33]save to /storage/0389/doc_00111630 [12:03:33]save last doc name /storage/0389/doc_00111630 to /storage/kkm_last_doc_name [12:03:33]save OK [12:03:33]Clear old archive folders... [12:03:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:03:33]tlvbuf is 00F3B940 [12:03:33]SAM_PROTO_ClearQueue [12:03:33]wFMCommunicate request_size=4 [12:03:33]MH_SAM_APDU [12:03:33]CAPDU: 80 09 00 00 [12:03:33]Write to MH i2c: E2 08 00 72 5A 80 09 00 00 00 00 00 00 3E [12:03:33]Write i2c OK [12:03:33]MH_I2C_Read... [12:03:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:33]Read from MH i2c: E2 [12:03:33]MH_I2C_Read... [12:03:33]Read from MH i2c: E2 03 00 [12:03:33]MH_I2C_Read... [12:03:33]Read from MH i2c: E2 03 00 72 5A 00 90 00 40 [12:03:33]RAPDU: 90 00 [12:03:33]wFMCommunicate OK [12:03:33]SAM_PROTO_ClearQueue done [12:03:33]KKMCreateOFDPacket [12:03:33]OFDProtocolAddRootSTLVToBuf [12:03:33]FM_MakeSignedData [12:03:33]FM_MakeSignedData [12:03:33]SAM_PROTO_SignData [12:03:33]wFMCommunicate request_size=4 [12:03:33]MH_SAM_APDU [12:03:33]CAPDU: 80 0D 01 02 [12:03:33]Write to MH i2c: E2 08 00 73 5A 80 0D 01 02 00 00 00 00 46 [12:03:33]Write i2c OK [12:03:33]MH_I2C_Read... [12:03:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:33]Read from MH i2c: E2 [12:03:33]MH_I2C_Read... [12:03:33]Read from MH i2c: E2 03 00 [12:03:33]MH_I2C_Read... [12:03:33]Read from MH i2c: E2 03 00 73 5A 00 90 00 41 [12:03:33]RAPDU: 90 00 [12:03:33]wFMCommunicate OK [12:03:33]wFMCommunicate request_size=255 [12:03:33]MH_SAM_APDU [12:03: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 B6 1A 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0E B4 01 00 35 04 06 00 90 [12:03:34]Write to MH i2c: E2 02 01 74 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 B6 1A 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0E B4 01 00 35 04 06 00 90 00 00 6B [12:03:34]Write i2c OK [12:03:34]MH_I2C_Read... [12:03:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:34]Read from MH i2c: E2 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 03 00 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 03 00 74 5A 00 90 00 42 [12:03:34]RAPDU: 90 00 [12:03:34]wFMCommunicate OK [12:03:34]wFMCommunicate request_size=10 [12:03:34]MH_SAM_APDU [12:03:34]CAPDU: 80 0D 02 02 05 09 48 7A 80 20 [12:03:34]Write to MH i2c: E2 0D 00 75 5A 80 0D 02 02 05 00 09 48 7A 80 20 00 00 BE [12:03:34]Write i2c OK [12:03:34]MH_I2C_Read... [12:03:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:34]Read from MH i2c: E2 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 03 00 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 03 00 75 5A 00 90 00 43 [12:03:34]RAPDU: 90 00 [12:03:34]wFMCommunicate OK [12:03:34]wFMCommunicate request_size=4 [12:03:34]MH_SAM_APDU [12:03:34]CAPDU: 80 0D 03 02 [12:03:34]Write to MH i2c: E2 08 00 76 5A 80 0D 03 02 00 00 00 00 4B [12:03:34]Write i2c OK [12:03:34]MH_I2C_Read... [12:03:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:34]Read from MH i2c: E2 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 0B 00 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 0B 00 76 5A 00 1B 85 47 0D A8 93 E4 B4 90 00 13 [12:03:34]RAPDU: 1B 85 47 0D A8 93 E4 B4 90 00 [12:03:34]wFMCommunicate OK [12:03:34]SAM_PROTO_SignData done [12:03:34]FM_MakeSignedData done [12:03:34]CreateOFDProtocolMessage [12:03:34]wFMCommunicate request_size=4 [12:03:34]MH_SAM_APDU [12:03:34]CAPDU: 80 11 00 00 [12:03:34]Write to MH i2c: E2 08 00 77 5A 80 11 00 00 00 00 00 00 4B [12:03:34]Write i2c OK [12:03:34]MH_I2C_Read... [12:03:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:34]Read from MH i2c: E2 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 17 00 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 17 00 77 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9D [12:03:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:03:34]wFMCommunicate OK [12:03:34]CreateOFDProtocolMessage done [12:03:34]OFDSenderStorePacket 111630 [12:03:34]StoreOFDPacket docnum=111630 [12:03:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 71 D3 07 01 40 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 B6 1A 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0E B4 01 00 35 04 06 00 90 09 48 7A 80 20 1B 85 47 0D A8 93 E4 B4 [12:03:34]CheckFolder [12:03:34]dirname=/storage/ofd_packets [12:03:34]CheckFolder done [12:03:34]ProducePacketName [12:03:34]name=ofd_packets/00111630 [12:03:34]NVStorageSaveData ofd_packets/00111630 [12:03:34]File name is /storage/ofd_packets/00111630 [12:03:34]Write 301 bytes [12:03:34]NVStorageSaveData done [12:03:34]OFDSenderStorePacket done [12:03:34]KKMCreateOFDPacket done [12:03:34]NVStorageSaveData kkm_last_timestamp [12:03:34]File name is /storage/kkm_last_timestamp [12:03:34]Write 4 bytes [12:03:34]NVStorageSaveData done [12:03:34]ExternCall_PrintAddStr [12:03:34]wPrintStart [12:03:34]Write to MH i2c: 01 00 00 78 5A D2 [12:03:34]Write i2c OK [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: 01 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: 01 07 00 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: 01 07 00 78 5A 00 00 00 00 00 FF 0F E7 [12:03:34]RasterBufferAndPrint [12:03:34]line Счет N : (1)320230 [12:03:34]line ИНН: 02508201610067 [12:03:34]line Контрольно-Кассовый Чек [12:03:34]line ПРОДАЖА [12:03:34]line ТРК (МРК, ГНК) : 11 [12:03:34]line Товар: 2710124130 [12:03:34]line Аи-92-К-5 [12:03:34]line 4.520 * 66.40 [12:03:34]line = 300.13 [12:03:34]line НДС 12% НСП 1% [12:03:34]line > о реализуемом товаре [12:03:34]line ОКРУГЛЕНИЕ: -0.13 [12:03:34]line ИТОГО: 300.00 [12:03:34]line Внесено: 300.00 [12:03:34]line СДАЧА: 0.00 [12:03:34]line НСП 1% : 2.66 [12:03:34]line НДС 12% : 31.87 [12:03:34]line Наличными: 300.00 [12:03:34]line Безнал.: 0.00 [12:03:34]line Место: АЗС № 65 "Партнер Нефть" [12:03:34]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:03:34]line СНО: Общий режим [12:03:34]line Чек 80 20.06.2024 12:04 [12:03:34]line Смена: 389 ФФД: 1.0 [12:03:34]line ЗНМ: 0300000198 [12:03:34]line РНМ: 0000000000092771 [12:03:34]line Версия ККМ: 001 [12:03:34]line ФМ: 0000000000875083 [12:03:34]line ФД: 111630 [12:03:34]line ФПД: 158369545093152 [12:03:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T120406&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111630&fm=158369545093152&tin=02508201610067®Number=0000000000092771&sum=30000 [12:03:34]OFD Sender: Processing packet 111630 [packets to send 38, broken 37] [12:03:34]ProducePacketName [12:03:34]name=ofd_packets/00111630 [12:03:34]OFD Sender: To server: pG, [12:03:34]CommunicateWithHost lk.salyk.kg:30040 [12:03:34]ConnectInit lk.salyk.kg [12:03:34]written 0, free lines is 4095 [12:03:34]Connected sock=10 [12:03:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 71 D3 07 01 40 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 B6 1A 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0E B4 01 00 35 04 06 00 90 09 48 7A 80 20 1B 85 47 0D A8 93 E4 B4 [12:03:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 48 B9 47 00 A6 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0E B4 01 00 F4 03 04 00 01 B2 73 66 B6 04 01 00 00 47 94 A3 39 A6 10 76 30 [12:03:35]CommunicateWithHost err = 0 [12:03:35]CheckOFDResponse [12:03:35]1017 (14) - 77093643461234 [12:03:35]1041 (16) - 0000000000875083 [12:03:35]1040 (4) - 111630 [12:03:35]1012 (4) - 20.06.2024 04:37 [12:03:35]1206 (1) - 0 [12:03:35]OFD Sender: Remove packet 111630 [12:03:35]ProducePacketName [12:03:35]name=ofd_packets/00111630 [12:03:35]NVStorageDeleteData [12:03:35]Write to MH i2c: 01 00 00 A3 5A FD [12:03:35]Write i2c OK [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: 01 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: 01 07 00 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: 01 07 00 A3 5A 00 00 00 00 00 CE 0C DE [12:03:35]RasterBufferAndPrint [12:03:35]line [12:03:35]line [12:03:35]line [12:03:35]line [12:03:35]line [12:03:35]written 0, free lines is 3287 [12:03:35]MH_Cut [12:03:35]Write to MH i2c: D1 01 00 AA 5A 01 D6 [12:03:35]Write i2c OK [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: D1 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: D1 01 00 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: D1 01 00 AA 5A 00 D5 [12:03:35]Write to MH i2c: 01 00 00 AB 5A 05 [12:03:35]Write i2c OK [12:03:35]MH_I2C_Read... [12:03:35]OFD Sender: No OFD packet to send [12:03:35]*** Cut start [12:03:35]*** Partial cut [12:03:35]*** CUTSNS_PIN = 1 [12:03:36]*** CUTSNS_PIN = 0 [12:03:36]*** Brake cut motor [12:03:36]Read from MH i2c: 01 [12:03:36]MH_I2C_Read... [12:03:36]*** Stop cut motor [12:03:36]*** Cut end [12:03:36]Read from MH i2c: 01 07 00 [12:03:36]MH_I2C_Read... [12:03:36]Read from MH i2c: 01 07 00 AB 5A 00 00 00 00 00 FF 0F 1A [12:03:36]process_action close_receipt done [12:03:36]requested_data is exist [12:03:36]produce_requested_data [12:03:36]requested_item fm.sn is exist - process it [12:03:36]wFMCommunicate request_size=4 [12:03:36]MH_SAM_APDU [12:03:36]CAPDU: 80 11 00 00 [12:03:36]Write to MH i2c: E2 08 00 AC 5A 80 11 00 00 00 00 00 00 80 [12:03:36]Write i2c OK [12:03:36]MH_I2C_Read... [12:03:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:36]Read from MH i2c: E2 [12:03:36]MH_I2C_Read... [12:03:36]Read from MH i2c: E2 17 00 [12:03:36]MH_I2C_Read... [12:03:36]Read from MH i2c: E2 17 00 AC 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D2 [12:03:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:03:36]wFMCommunicate OK [12:03:36]requested_item fd.num is exist - process it [12:03:36]SAM_PROTO_GetFieldsCounters [12:03:36]wFMCommunicate request_size=4 [12:03:36]MH_SAM_APDU [12:03:36]CAPDU: 80 13 00 00 [12:03:36]Write to MH i2c: E2 08 00 AD 5A 80 13 00 00 00 00 00 00 83 [12:03:36]Write i2c OK [12:03:36]MH_I2C_Read... [12:03:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:36]Read from MH i2c: E2 [12:03:36]MH_I2C_Read... [12:03:36]Read from MH i2c: E2 62 00 [12:03:36]MH_I2C_Read... [12:03:36]Read from MH i2c: E2 62 00 AD 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0E B4 01 00 0E 04 04 00 85 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 DD [12:03:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0E B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:03:36]wFMCommunicate OK [12:03:36]SAM_PROTO_GetFieldsCounters done [12:03:36]requested_item shift.num is exist - process it [12:03:36]requested_item shift.opened is exist - process it [12:03:36]req_shift_opened [12:03:36]FM_GetShiftState [12:03:36]SAM_PROTO_GetShiftState [12:03:36]wFMCommunicate request_size=4 [12:03:36]MH_SAM_APDU [12:03:36]CAPDU: 80 13 01 00 [12:03:36]Write to MH i2c: E2 08 00 AE 5A 80 13 01 00 00 00 00 00 85 [12:03:36]Write i2c OK [12:03:36]MH_I2C_Read... [12:03:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:36]Read from MH i2c: E2 [12:03:36]MH_I2C_Read... [12:03:36]Read from MH i2c: E2 0E 00 [12:03:36]MH_I2C_Read... [12:03:36]Read from MH i2c: E2 0E 00 AE 5A 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 00 [12:03:36]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:03:36]wFMCommunicate OK [12:03:36]SAM_PROTO_GetShiftState done [12:03:36]FM_GetShiftState done [12:03:36]req_shift_opened done [12:03:36]requested_item shift.open_date is exist - process it [12:03:36]req_shift_open_date [12:03:36]req_shift_open_date done [12:03:36]produce_requested_data done [12:03:36]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111630,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [12:03:36]process_action_free close_receipt [12:03:36]json_value_free [12:03:36]json_value_free done [12:03:36]process_json_proto returns [12:03:36]Send response to host [12:03:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111630,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [12:03:36]free response buf [12:03:36]execute_script done [12:03:36]execute_script returns [12:03:36]free content buf [12:03:36]Sock 9.Close socket [12:03:36]Sock 9.Thread stoped [12:03:40]OFD Sender: No OFD packet to send [12:03:45]OFD Sender: No OFD packet to send [12:03:50]OFD Sender: No OFD packet to send [12:03:55]OFD Sender: No OFD packet to send [12:04:00]OFD Sender: No OFD packet to send [12:04:05]OFD Sender: No OFD packet to send [12:04:10]OFD Sender: No OFD packet to send [12:04:15]OFD Sender: No OFD packet to send [12:04:20]OFD Sender: No OFD packet to send [12:04:25]OFD Sender: No OFD packet to send [12:04:30]OFD Sender: No OFD packet to send [12:04:35]OFD Sender: No OFD packet to send [12:04:40]OFD Sender: No OFD packet to send [12:04:45]OFD Sender: No OFD packet to send [12:04:50]OFD Sender: No OFD packet to send [12:04:55]OFD Sender: No OFD packet to send [12:05:00]OFD Sender: No OFD packet to send [12:05:05]OFD Sender: No OFD packet to send [12:05:10]OFD Sender: No OFD packet to send [12:05:15]OFD Sender: No OFD packet to send [12:05:20]OFD Sender: No OFD packet to send [12:05:21]accept exits with 7 [12:05:21]New connection [12:05:21]New thread 3067321700 created [12:05:21]Thread 3067465060 joined [12:05:21]Waiting for new connection... [12:05:21] Sock 7.Parse request [12:05:21]Sock 7.Check first char [12:05:21]Sock 7.First char is OK [12:05:21]request: POST /json_proto HTTP/1.0 [12:05:21]Method: POST [12:05:21]URL: /json_proto [12:05:21]Method is POST - this is cgi request [12:05:21]url: /json_proto [12:05:21]query_string will be loaded in cgi processing [12:05:21]execute_cgi json_proto POST (null) [12:05:21]execute_cgi path=json_proto method=POST [12:05:21]POST find Content-Length [12:05:21]Host: 172.17.59.68:8080 [12:05:21]Content-Length: 682 [12:05:21]Content-Type: application/json [12:05:21] [12:05:21]POST finish read [12:05:21]Found Content-Length = 682 [12:05:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:21]execute_script... [12:05:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:21]POST & json_proto [12:05:21]process_json_proto [12:05:21]json parsed OK: [12:05:21]protocol is kg_v1.0 [12:05:21]action value=close_receipt [12:05:21]process_action close_receipt [12:05:21]cmd_close_receipt [12:05:21]MH_GetDate [12:05:21]Write to MH i2c: F0 00 00 AF 5A F8 [12:05:21]Write i2c OK [12:05:21]MH_I2C_Read... [12:05:21]Read from MH i2c: F0 [12:05:21]MH_I2C_Read... [12:05:21]Read from MH i2c: F0 09 00 [12:05:21]MH_I2C_Read... [12:05:21]Read from MH i2c: F0 09 00 AF 5A 00 22 1B 74 66 BC EC 60 65 85 [12:05:21]GetLastDocTimeStamp 1718885046 [12:05:21]current date 1718885154 [12:05:21]FM_GetShiftState [12:05:21]SAM_PROTO_GetShiftState [12:05:21]wFMCommunicate request_size=4 [12:05:21]MH_SAM_APDU [12:05:21]CAPDU: 80 13 01 00 [12:05:21]Write to MH i2c: E2 08 00 B0 5A 80 13 01 00 00 00 00 00 87 [12:05:21]Write i2c OK [12:05:21]MH_I2C_Read... [12:05:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:21]Read from MH i2c: E2 [12:05:21]MH_I2C_Read... [12:05:21]Read from MH i2c: E2 0E 00 [12:05:21]MH_I2C_Read... [12:05:21]Read from MH i2c: E2 0E 00 B0 5A 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 02 [12:05:21]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:05:21]wFMCommunicate OK [12:05:21]SAM_PROTO_GetShiftState done [12:05:21]FM_GetShiftState done [12:05:21]opened in 1718847247 [12:05:21]opened+sec_in_day 1718933647 [12:05:21]quantity*price = 100064 [12:05:21]sum+1 = 100066 [12:05:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 81 20.06.2024 12:05 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111631 ФПД: 218964719436793 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T120554&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111631&fm=218964719436793&tin=02508201610067®Number=0000000000092771&sum=100000 [12:05:22]StoreToDocumentArchive [12:05:22]shift 389 fd 111631 [12:05:22]save to /storage/0389/doc_00111631 [12:05:22]save last doc name /storage/0389/doc_00111631 to /storage/kkm_last_doc_name [12:05:22]save OK [12:05:22]Clear old archive folders... [12:05:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:05:22]tlvbuf is 00F003A0 [12:05:22]SAM_PROTO_ClearQueue [12:05:22]wFMCommunicate request_size=4 [12:05:22]MH_SAM_APDU [12:05:22]CAPDU: 80 09 00 00 [12:05:22]Write to MH i2c: E2 08 00 BD 5A 80 09 00 00 00 00 00 00 89 [12:05:22]Write i2c OK [12:05:22]MH_I2C_Read... [12:05:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:22]Read from MH i2c: E2 [12:05:22]MH_I2C_Read... [12:05:22]Read from MH i2c: E2 03 00 [12:05:22]MH_I2C_Read... [12:05:22]Read from MH i2c: E2 03 00 BD 5A 00 90 00 8B [12:05:22]RAPDU: 90 00 [12:05:22]wFMCommunicate OK [12:05:22]SAM_PROTO_ClearQueue done [12:05:22]KKMCreateOFDPacket [12:05:22]OFDProtocolAddRootSTLVToBuf [12:05:22]FM_MakeSignedData [12:05:22]FM_MakeSignedData [12:05:22]SAM_PROTO_SignData [12:05:22]wFMCommunicate request_size=4 [12:05:22]MH_SAM_APDU [12:05:22]CAPDU: 80 0D 01 02 [12:05:22]Write to MH i2c: E2 08 00 BE 5A 80 0D 01 02 00 00 00 00 91 [12:05:22]Write i2c OK [12:05:22]MH_I2C_Read... [12:05:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:22]Read from MH i2c: E2 [12:05:22]MH_I2C_Read... [12:05:22]Read from MH i2c: E2 03 00 [12:05:22]MH_I2C_Read... [12:05:22]Read from MH i2c: E2 03 00 BE 5A 00 90 00 8C [12:05:22]RAPDU: 90 00 [12:05:22]wFMCommunicate OK [12:05:22]wFMCommunicate request_size=255 [12:05:22]MH_SAM_APDU [12:05: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 22 1B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0F B4 01 00 35 04 06 00 C7 [12:05:22]Write to MH i2c: E2 02 01 BF 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 22 1B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0F B4 01 00 35 04 06 00 C7 00 00 0E [12:05:22]Write i2c OK [12:05:22]MH_I2C_Read... [12:05:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:22]Read from MH i2c: E2 [12:05:22]MH_I2C_Read... [12:05:22]Read from MH i2c: E2 03 00 [12:05:22]MH_I2C_Read... [12:05:22]Read from MH i2c: E2 03 00 BF 5A 00 90 00 8D [12:05:22]RAPDU: 90 00 [12:05:22]wFMCommunicate OK [12:05:22]wFMCommunicate request_size=10 [12:05:22]MH_SAM_APDU [12:05:22]CAPDU: 80 0D 02 02 05 25 B2 52 03 F9 [12:05:22]Write to MH i2c: E2 0D 00 C0 5A 80 0D 02 02 05 00 25 B2 52 03 F9 00 00 C3 [12:05:22]Write i2c OK [12:05:22]MH_I2C_Read... [12:05:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:22]Read from MH i2c: E2 [12:05:22]MH_I2C_Read... [12:05:22]Read from MH i2c: E2 03 00 [12:05:22]MH_I2C_Read... [12:05:22]Read from MH i2c: E2 03 00 C0 5A 00 90 00 8E [12:05:22]RAPDU: 90 00 [12:05:22]wFMCommunicate OK [12:05:22]wFMCommunicate request_size=4 [12:05:22]MH_SAM_APDU [12:05:22]CAPDU: 80 0D 03 02 [12:05:22]Write to MH i2c: E2 08 00 C1 5A 80 0D 03 02 00 00 00 00 96 [12:05:22]Write i2c OK [12:05:22]MH_I2C_Read... [12:05:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:22]Read from MH i2c: E2 [12:05:22]MH_I2C_Read... [12:05:22]Read from MH i2c: E2 0B 00 [12:05:22]MH_I2C_Read... [12:05:22]Read from MH i2c: E2 0B 00 C1 5A 00 A1 CA 61 2E A3 3F 7A 47 90 00 34 [12:05:22]RAPDU: A1 CA 61 2E A3 3F 7A 47 90 00 [12:05:22]wFMCommunicate OK [12:05:22]SAM_PROTO_SignData done [12:05:22]FM_MakeSignedData done [12:05:22]CreateOFDProtocolMessage [12:05:22]wFMCommunicate request_size=4 [12:05:22]MH_SAM_APDU [12:05:22]CAPDU: 80 11 00 00 [12:05:22]Write to MH i2c: E2 08 00 C2 5A 80 11 00 00 00 00 00 00 96 [12:05:22]Write i2c OK [12:05:22]MH_I2C_Read... [12:05:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:22]Read from MH i2c: E2 [12:05:22]MH_I2C_Read... [12:05:22]Read from MH i2c: E2 17 00 [12:05:22]MH_I2C_Read... [12:05:22]Read from MH i2c: E2 17 00 C2 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E8 [12:05:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:05:22]wFMCommunicate OK [12:05:22]CreateOFDProtocolMessage done [12:05:22]OFDSenderStorePacket 111631 [12:05:22]StoreOFDPacket docnum=111631 [12:05:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 02 11 07 01 8C 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 22 1B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0F B4 01 00 35 04 06 00 C7 25 B2 52 03 F9 A1 CA 61 2E A3 3F 7A 47 [12:05:22]CheckFolder [12:05:22]dirname=/storage/ofd_packets [12:05:22]CheckFolder done [12:05:22]ProducePacketName [12:05:22]name=ofd_packets/00111631 [12:05:22]NVStorageSaveData ofd_packets/00111631 [12:05:22]File name is /storage/ofd_packets/00111631 [12:05:22]Write 301 bytes [12:05:22]NVStorageSaveData done [12:05:22]OFDSenderStorePacket done [12:05:22]KKMCreateOFDPacket done [12:05:22]NVStorageSaveData kkm_last_timestamp [12:05:22]File name is /storage/kkm_last_timestamp [12:05:22]Write 4 bytes [12:05:22]NVStorageSaveData done [12:05:22]ExternCall_PrintAddStr [12:05:22]wPrintStart [12:05:22]Write to MH i2c: 01 00 00 C3 5A 1D [12:05:22]Write i2c OK [12:05:22]MH_I2C_Read... [12:05:22]Read from MH i2c: 01 [12:05:22]MH_I2C_Read... [12:05:22]Read from MH i2c: 01 07 00 [12:05:22]MH_I2C_Read... [12:05:22]Read from MH i2c: 01 07 00 C3 5A 00 00 00 00 00 FF 0F 32 [12:05:22]RasterBufferAndPrint [12:05:22]line Счет N : (1)320231 [12:05:22]line ИНН: 02508201610067 [12:05:22]line Контрольно-Кассовый Чек [12:05:22]line ПРОДАЖА [12:05:22]line ТРК (МРК, ГНК) : 11 [12:05:22]line Товар: 2710124130 [12:05:22]line Аи-92-К-5 [12:05:22]line 15.070 * 66.40 [12:05:22]line = 1000.65 [12:05:22]line НДС 12% НСП 1% [12:05:22]line > о реализуемом товаре [12:05:22]line ОКРУГЛЕНИЕ: -0.65 [12:05:22]line ИТОГО: 1000.00 [12:05:22]line Внесено: 1000.00 [12:05:22]line СДАЧА: 0.00 [12:05:22]line НСП 1% : 8.85 [12:05:22]line НДС 12% : 106.26 [12:05:22]line Наличными: 1000.00 [12:05:22]line Безнал.: 0.00 [12:05:22]line Место: АЗС № 65 "Партнер Нефть" [12:05:22]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:05:22]line СНО: Общий режим [12:05:22]line Чек 81 20.06.2024 12:05 [12:05:23]line Смена: 389 ФФД: 1.0 [12:05:23]line ЗНМ: 0300000198 [12:05:23]line РНМ: 0000000000092771 [12:05:23]line Версия ККМ: 001 [12:05:23]line ФМ: 0000000000875083 [12:05:23]line ФД: 111631 [12:05:23]line ФПД: 218964719436793 [12:05:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T120554&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111631&fm=218964719436793&tin=02508201610067®Number=0000000000092771&sum=100000 [12:05:23]OFD Sender: Processing packet 111631 [packets to send 38, broken 37] [12:05:23]ProducePacketName [12:05:23]name=ofd_packets/00111631 [12:05:23]OFD Sender: To server: pG, [12:05:23]CommunicateWithHost lk.salyk.kg:30040 [12:05:23]ConnectInit lk.salyk.kg [12:05:23]written 0, free lines is 4095 [12:05:23]Connected sock=10 [12:05:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 02 11 07 01 8C 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 22 1B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0F B4 01 00 35 04 06 00 C7 25 B2 52 03 F9 A1 CA 61 2E A3 3F 7A 47 [12:05:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 04 74 47 00 BE 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0F B4 01 00 F4 03 04 00 6D B2 73 66 B6 04 01 00 00 C4 32 9F 20 8C 9A 51 D4 [12:05:23]CommunicateWithHost err = 0 [12:05:23]CheckOFDResponse [12:05:23]1017 (14) - 77093643461234 [12:05:23]1041 (16) - 0000000000875083 [12:05:23]1040 (4) - 111631 [12:05:23]1012 (4) - 20.06.2024 04:39 [12:05:23]1206 (1) - 0 [12:05:23]OFD Sender: Remove packet 111631 [12:05:23]ProducePacketName [12:05:23]name=ofd_packets/00111631 [12:05:23]NVStorageDeleteData [12:05:23]Write to MH i2c: 01 00 00 EE 5A 48 [12:05:23]Write i2c OK [12:05:23]MH_I2C_Read... [12:05:23]Read from MH i2c: 01 [12:05:23]MH_I2C_Read... [12:05:23]Read from MH i2c: 01 07 00 [12:05:23]MH_I2C_Read... [12:05:23]Read from MH i2c: 01 07 00 EE 5A 00 00 00 00 00 CD 0C 28 [12:05:23]RasterBufferAndPrint [12:05:23]line [12:05:23]line [12:05:23]line [12:05:23]line [12:05:23]line [12:05:23]written 0, free lines is 3281 [12:05:23]MH_Cut [12:05:23]Write to MH i2c: D1 01 00 F5 5A 01 21 [12:05:23]Write i2c OK [12:05:23]MH_I2C_Read... [12:05:23]Read from MH i2c: D1 [12:05:23]MH_I2C_Read... [12:05:23]Read from MH i2c: D1 01 00 [12:05:23]MH_I2C_Read... [12:05:23]Read from MH i2c: D1 01 00 F5 5A 00 20 [12:05:23]Write to MH i2c: 01 00 00 F6 5A 50 [12:05:23]Write i2c OK [12:05:23]MH_I2C_Read... [12:05:23]OFD Sender: No OFD packet to send [12:05:24]*** Cut start [12:05:24]*** Partial cut [12:05:24]*** CUTSNS_PIN = 1 [12:05:24]*** CUTSNS_PIN = 0 [12:05:24]*** Brake cut motor [12:05:24]Read from MH i2c: 01 [12:05:24]MH_I2C_Read... [12:05:24]*** Stop cut motor [12:05:24]*** Cut end [12:05:24]Read from MH i2c: 01 07 00 [12:05:24]MH_I2C_Read... [12:05:24]Read from MH i2c: 01 07 00 F6 5A 00 00 00 00 00 FF 0F 65 [12:05:24]process_action close_receipt done [12:05:24]requested_data is exist [12:05:24]produce_requested_data [12:05:24]requested_item fm.sn is exist - process it [12:05:24]wFMCommunicate request_size=4 [12:05:24]MH_SAM_APDU [12:05:24]CAPDU: 80 11 00 00 [12:05:24]Write to MH i2c: E2 08 00 F7 5A 80 11 00 00 00 00 00 00 CB [12:05:24]Write i2c OK [12:05:24]MH_I2C_Read... [12:05:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:24]Read from MH i2c: E2 [12:05:24]MH_I2C_Read... [12:05:24]Read from MH i2c: E2 17 00 [12:05:24]MH_I2C_Read... [12:05:24]Read from MH i2c: E2 17 00 F7 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1D [12:05:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:05:24]wFMCommunicate OK [12:05:24]requested_item fd.num is exist - process it [12:05:24]SAM_PROTO_GetFieldsCounters [12:05:24]wFMCommunicate request_size=4 [12:05:24]MH_SAM_APDU [12:05:24]CAPDU: 80 13 00 00 [12:05:24]Write to MH i2c: E2 08 00 F8 5A 80 13 00 00 00 00 00 00 CE [12:05:24]Write i2c OK [12:05:24]MH_I2C_Read... [12:05:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:25]Read from MH i2c: E2 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: E2 62 00 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: E2 62 00 F8 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0F B4 01 00 0E 04 04 00 85 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 2C [12:05:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0F B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:05:25]wFMCommunicate OK [12:05:25]SAM_PROTO_GetFieldsCounters done [12:05:25]requested_item shift.num is exist - process it [12:05:25]requested_item shift.opened is exist - process it [12:05:25]req_shift_opened [12:05:25]FM_GetShiftState [12:05:25]SAM_PROTO_GetShiftState [12:05:25]wFMCommunicate request_size=4 [12:05:25]MH_SAM_APDU [12:05:25]CAPDU: 80 13 01 00 [12:05:25]Write to MH i2c: E2 08 00 F9 5A 80 13 01 00 00 00 00 00 D0 [12:05:25]Write i2c OK [12:05:25]MH_I2C_Read... [12:05:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:25]Read from MH i2c: E2 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: E2 0E 00 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: E2 0E 00 F9 5A 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 4B [12:05:25]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:05:25]wFMCommunicate OK [12:05:25]SAM_PROTO_GetShiftState done [12:05:25]FM_GetShiftState done [12:05:25]req_shift_opened done [12:05:25]requested_item shift.open_date is exist - process it [12:05:25]req_shift_open_date [12:05:25]req_shift_open_date done [12:05:25]produce_requested_data done [12:05:25]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111631,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [12:05:25]process_action_free close_receipt [12:05:25]json_value_free [12:05:25]json_value_free done [12:05:25]process_json_proto returns [12:05:25]Send response to host [12:05:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111631,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [12:05:25]free response buf [12:05:25]execute_script done [12:05:25]execute_script returns [12:05:25]free content buf [12:05:25]Sock 7.Close socket [12:05:25]Sock 7.Thread stoped [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:48]OFD Sender: No OFD packet to send [12:07:53]OFD Sender: No OFD packet to send [12:07:58]OFD Sender: No OFD packet to send [12:08:03]OFD Sender: No OFD packet to send [12:08:08]OFD Sender: No OFD packet to send [12:08:13]OFD Sender: No OFD packet to send [12:08:18]OFD Sender: No OFD packet to send [12:08:23]OFD Sender: No OFD packet to send [12:08:28]OFD Sender: No OFD packet to send [12:08:33]OFD Sender: No OFD packet to send [12:08:38]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:04]OFD Sender: No OFD packet to send [12:09:09]OFD Sender: No OFD packet to send [12:09:14]OFD Sender: No OFD packet to send [12:09:19]OFD Sender: No OFD packet to send [12:09:24]OFD Sender: No OFD packet to send [12:09:29]OFD Sender: No OFD packet to send [12:09:34]OFD Sender: No OFD packet to send [12:09:39]OFD Sender: No OFD packet to send [12:09:44]OFD Sender: No OFD packet to send [12:09:49]OFD Sender: No OFD packet to send [12:09:54]OFD Sender: No OFD packet to send [12:09:59]OFD Sender: No OFD packet to send [12:10:03]accept exits with 9 [12:10:03]New connection [12:10:03]New thread 3067465060 created [12:10:03]Thread 3067321700 joined [12:10:03]Waiting for new connection... [12:10:03] Sock 9.Parse request [12:10:03]Sock 9.Check first char [12:10:03]Sock 9.First char is OK [12:10:03]request: POST /json_proto HTTP/1.0 [12:10:03]Method: POST [12:10:03]URL: /json_proto [12:10:03]Method is POST - this is cgi request [12:10:03]url: /json_proto [12:10:03]query_string will be loaded in cgi processing [12:10:03]execute_cgi json_proto POST (null) [12:10:03]execute_cgi path=json_proto method=POST [12:10:03]POST find Content-Length [12:10:03]Host: 172.17.59.68:8080 [12:10:03]Content-Length: 677 [12:10:03]Content-Type: application/json [12:10:03] [12:10:03]POST finish read [12:10:03]Found Content-Length = 677 [12:10:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:03]execute_script... [12:10: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)320232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:03]POST & json_proto [12:10:03]process_json_proto [12:10:03]json parsed OK: [12:10:03]protocol is kg_v1.0 [12:10:03]action value=close_receipt [12:10:03]process_action close_receipt [12:10:03]cmd_close_receipt [12:10:03]MH_GetDate [12:10:03]Write to MH i2c: F0 00 00 FA 5A 43 [12:10:03]Write i2c OK [12:10:03]MH_I2C_Read... [12:10:03]Read from MH i2c: F0 [12:10:03]MH_I2C_Read... [12:10:03]Read from MH i2c: F0 09 00 [12:10:03]MH_I2C_Read... [12:10:03]Read from MH i2c: F0 09 00 FA 5A 00 3C 1C 74 66 BC EC 60 65 EB [12:10:03]GetLastDocTimeStamp 1718885154 [12:10:03]current date 1718885436 [12:10:03]FM_GetShiftState [12:10:03]SAM_PROTO_GetShiftState [12:10:03]wFMCommunicate request_size=4 [12:10:03]MH_SAM_APDU [12:10:03]CAPDU: 80 13 01 00 [12:10:03]Write to MH i2c: E2 08 00 FB 5A 80 13 01 00 00 00 00 00 D2 [12:10:03]Write i2c OK [12:10:03]MH_I2C_Read... [12:10:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:03]Read from MH i2c: E2 [12:10:03]MH_I2C_Read... [12:10:03]Read from MH i2c: E2 0E 00 [12:10:03]MH_I2C_Read... [12:10:03]Read from MH i2c: E2 0E 00 FB 5A 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 4D [12:10:03]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:10:03]wFMCommunicate OK [12:10:03]SAM_PROTO_GetShiftState done [12:10:03]FM_GetShiftState done [12:10:03]opened in 1718847247 [12:10:03]opened+sec_in_day 1718933647 [12:10:03]quantity*price = 60025 [12:10:03]sum+1 = 60027 [12:10:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 82 20.06.2024 12:10 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111632 ФПД: 243802097308330 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T121036&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111632&fm=243802097308330&tin=02508201610067®Number=0000000000092771&sum=60000 [12:10:04]StoreToDocumentArchive [12:10:04]shift 389 fd 111632 [12:10:04]save to /storage/0389/doc_00111632 [12:10:04]save last doc name /storage/0389/doc_00111632 to /storage/kkm_last_doc_name [12:10:04]save OK [12:10:04]Clear old archive folders... [12:10:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:10:04]tlvbuf is B6E25070 [12:10:04]SAM_PROTO_ClearQueue [12:10:04]wFMCommunicate request_size=4 [12:10:04]MH_SAM_APDU [12:10:04]CAPDU: 80 09 00 00 [12:10:04]Write to MH i2c: E2 08 00 08 5B 80 09 00 00 00 00 00 00 D5 [12:10:04]Write i2c OK [12:10:04]MH_I2C_Read... [12:10:04]Read from MH i2c: E2 [12:10:04]MH_I2C_Read... [12:10:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:04]Read from MH i2c: E2 03 00 [12:10:04]MH_I2C_Read... [12:10:04]Read from MH i2c: E2 03 00 08 5B 00 90 00 D7 [12:10:04]RAPDU: 90 00 [12:10:04]wFMCommunicate OK [12:10:04]SAM_PROTO_ClearQueue done [12:10:04]KKMCreateOFDPacket [12:10:04]OFDProtocolAddRootSTLVToBuf [12:10:04]FM_MakeSignedData [12:10:04]FM_MakeSignedData [12:10:04]SAM_PROTO_SignData [12:10:04]wFMCommunicate request_size=4 [12:10:04]MH_SAM_APDU [12:10:04]CAPDU: 80 0D 01 02 [12:10:04]Write to MH i2c: E2 08 00 09 5B 80 0D 01 02 00 00 00 00 DD [12:10:04]Write i2c OK [12:10:04]MH_I2C_Read... [12:10:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:04]Read from MH i2c: E2 [12:10:04]MH_I2C_Read... [12:10:04]Read from MH i2c: E2 03 00 [12:10:04]MH_I2C_Read... [12:10:04]Read from MH i2c: E2 03 00 09 5B 00 90 00 D8 [12:10:04]RAPDU: 90 00 [12:10:04]wFMCommunicate OK [12:10:04]wFMCommunicate request_size=255 [12:10:04]MH_SAM_APDU [12:10: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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 3C 1C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 10 B4 01 00 35 04 06 00 DD [12:10:04]Write to MH i2c: E2 02 01 0A 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 3C 1C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 10 B4 01 00 35 04 06 00 DD 00 00 1A [12:10:04]Write i2c OK [12:10:04]MH_I2C_Read... [12:10:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:04]Read from MH i2c: E2 [12:10:04]MH_I2C_Read... [12:10:04]Read from MH i2c: E2 03 00 [12:10:04]MH_I2C_Read... [12:10:04]Read from MH i2c: E2 03 00 0A 5B 00 90 00 D9 [12:10:04]RAPDU: 90 00 [12:10:04]wFMCommunicate OK [12:10:04]wFMCommunicate request_size=10 [12:10:04]MH_SAM_APDU [12:10:04]CAPDU: 80 0D 02 02 05 BC 99 67 D2 AA [12:10:04]Write to MH i2c: E2 0D 00 0B 5B 80 0D 02 02 05 00 BC 99 67 D2 AA 00 00 22 [12:10:04]Write i2c OK [12:10:04]MH_I2C_Read... [12:10:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:05]Read from MH i2c: E2 [12:10:05]MH_I2C_Read... [12:10:05]Read from MH i2c: E2 03 00 [12:10:05]MH_I2C_Read... [12:10:05]Read from MH i2c: E2 03 00 0B 5B 00 90 00 DA [12:10:05]RAPDU: 90 00 [12:10:05]wFMCommunicate OK [12:10:05]wFMCommunicate request_size=4 [12:10:05]MH_SAM_APDU [12:10:05]CAPDU: 80 0D 03 02 [12:10:05]Write to MH i2c: E2 08 00 0C 5B 80 0D 03 02 00 00 00 00 E2 [12:10:05]Write i2c OK [12:10:05]MH_I2C_Read... [12:10:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:05]Read from MH i2c: E2 [12:10:05]MH_I2C_Read... [12:10:05]Read from MH i2c: E2 0B 00 [12:10:05]MH_I2C_Read... [12:10:05]Read from MH i2c: E2 0B 00 0C 5B 00 DD 92 F8 BD 11 46 A5 08 90 00 0B [12:10:05]RAPDU: DD 92 F8 BD 11 46 A5 08 90 00 [12:10:05]wFMCommunicate OK [12:10:05]SAM_PROTO_SignData done [12:10:05]FM_MakeSignedData done [12:10:05]CreateOFDProtocolMessage [12:10:05]wFMCommunicate request_size=4 [12:10:05]MH_SAM_APDU [12:10:05]CAPDU: 80 11 00 00 [12:10:05]Write to MH i2c: E2 08 00 0D 5B 80 11 00 00 00 00 00 00 E2 [12:10:05]Write i2c OK [12:10:05]MH_I2C_Read... [12:10:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:05]Read from MH i2c: E2 [12:10:05]MH_I2C_Read... [12:10:05]Read from MH i2c: E2 17 00 [12:10:05]MH_I2C_Read... [12:10:05]Read from MH i2c: E2 17 00 0D 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 34 [12:10:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:10:05]wFMCommunicate OK [12:10:05]CreateOFDProtocolMessage done [12:10:05]OFDSenderStorePacket 111632 [12:10:05]StoreOFDPacket docnum=111632 [12:10:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 89 9A 07 01 86 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 3C 1C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 10 B4 01 00 35 04 06 00 DD BC 99 67 D2 AA DD 92 F8 BD 11 46 A5 08 [12:10:05]CheckFolder [12:10:05]dirname=/storage/ofd_packets [12:10:05]CheckFolder done [12:10:05]ProducePacketName [12:10:05]name=ofd_packets/00111632 [12:10:05]NVStorageSaveData ofd_packets/00111632 [12:10:05]File name is /storage/ofd_packets/00111632 [12:10:05]Write 301 bytes [12:10:05]NVStorageSaveData done [12:10:05]OFDSenderStorePacket done [12:10:05]KKMCreateOFDPacket done [12:10:05]NVStorageSaveData kkm_last_timestamp [12:10:05]File name is /storage/kkm_last_timestamp [12:10:05]Write 4 bytes [12:10:05]NVStorageSaveData done [12:10:05]ExternCall_PrintAddStr [12:10:05]wPrintStart [12:10:05]Write to MH i2c: 01 00 00 0E 5B 69 [12:10:05]Write i2c OK [12:10:05]MH_I2C_Read... [12:10:05]Read from MH i2c: 01 [12:10:05]MH_I2C_Read... [12:10:05]Read from MH i2c: 01 07 00 [12:10:05]MH_I2C_Read... [12:10:05]Read from MH i2c: 01 07 00 0E 5B 00 00 00 00 00 FF 0F 7E [12:10:05]RasterBufferAndPrint [12:10:05]line Счет N : (1)320232 [12:10:05]line ИНН: 02508201610067 [12:10:05]line Контрольно-Кассовый Чек [12:10:05]line ПРОДАЖА [12:10:05]line ТРК (МРК, ГНК) : 11 [12:10:05]line Товар: 2710124130 [12:10:05]line Аи-92-К-5 [12:10:05]line 9.040 * 66.40 [12:10:05]line = 600.26 [12:10:05]line НДС 12% НСП 1% [12:10:05]line > о реализуемом товаре [12:10:05]line ОКРУГЛЕНИЕ: -0.26 [12:10:05]line ИТОГО: 600.00 [12:10:05]line Внесено: 600.00 [12:10:05]line СДАЧА: 0.00 [12:10:05]line НСП 1% : 5.31 [12:10:05]line НДС 12% : 63.74 [12:10:05]line Наличными: 600.00 [12:10:05]line Безнал.: 0.00 [12:10:05]line Место: АЗС № 65 "Партнер Нефть" [12:10:05]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:10:05]line СНО: Общий режим [12:10:05]line Чек 82 20.06.2024 12:10 [12:10:05]line Смена: 389 ФФД: 1.0 [12:10:05]line ЗНМ: 0300000198 [12:10:05]line РНМ: 0000000000092771 [12:10:05]line Версия ККМ: 001 [12:10:05]line ФМ: 0000000000875083 [12:10:05]line ФД: 111632 [12:10:05]line ФПД: 243802097308330 [12:10:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T121036&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111632&fm=243802097308330&tin=02508201610067®Number=0000000000092771&sum=60000 [12:10:05]OFD Sender: Processing packet 111632 [packets to send 38, broken 37] [12:10:05]ProducePacketName [12:10:05]name=ofd_packets/00111632 [12:10:05]OFD Sender: To server: pG, [12:10:05]CommunicateWithHost lk.salyk.kg:30040 [12:10:05]ConnectInit lk.salyk.kg [12:10:05]written 0, free lines is 4095 [12:10:05]Connected sock=10 [12:10:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 89 9A 07 01 86 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 3C 1C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 10 B4 01 00 35 04 06 00 DD BC 99 67 D2 AA DD 92 F8 BD 11 46 A5 08 [12:10:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 0B DB 47 00 4A 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 10 B4 01 00 F4 03 04 00 87 B3 73 66 B6 04 01 00 00 60 D7 BB E8 66 EB 5F 31 [12:10:05]CommunicateWithHost err = 0 [12:10:05]CheckOFDResponse [12:10:05]1017 (14) - 77093643461234 [12:10:05]1041 (16) - 0000000000875083 [12:10:05]1040 (4) - 111632 [12:10:05]1012 (4) - 20.06.2024 04:43 [12:10:05]1206 (1) - 0 [12:10:05]OFD Sender: Remove packet 111632 [12:10:05]ProducePacketName [12:10:05]name=ofd_packets/00111632 [12:10:05]NVStorageDeleteData [12:10:05]Write to MH i2c: 01 00 00 39 5B 94 [12:10:05]Write i2c OK [12:10:05]MH_I2C_Read... [12:10:05]Read from MH i2c: 01 [12:10:05]MH_I2C_Read... [12:10:05]Read from MH i2c: 01 07 00 [12:10:05]MH_I2C_Read... [12:10:05]Read from MH i2c: 01 07 00 39 5B 00 00 00 00 00 D4 0C 7B [12:10:05]RasterBufferAndPrint [12:10:05]line [12:10:05]line [12:10:05]line [12:10:05]line [12:10:05]line [12:10:05]written 0, free lines is 3294 [12:10:05]MH_Cut [12:10:05]Write to MH i2c: D1 01 00 40 5B 01 6D [12:10:05]Write i2c OK [12:10:05]MH_I2C_Read... [12:10:05]Read from MH i2c: D1 [12:10:05]MH_I2C_Read... [12:10:05]Read from MH i2c: D1 01 00 [12:10:05]MH_I2C_Read... [12:10:05]Read from MH i2c: D1 01 00 40 5B 00 6C [12:10:05]Write to MH i2c: 01 00 00 41 5B 9C [12:10:05]Write i2c OK [12:10:05]MH_I2C_Read... [12:10:06]OFD Sender: No OFD packet to send [12:10:06]*** Cut start [12:10:06]*** Partial cut [12:10:06]*** CUTSNS_PIN = 1 [12:10:06]*** CUTSNS_PIN = 0 [12:10:06]*** Brake cut motor [12:10:07]Read from MH i2c: 01 [12:10:07]MH_I2C_Read... [12:10:07]*** Stop cut motor [12:10:07]*** Cut end [12:10:07]Read from MH i2c: 01 07 00 [12:10:07]MH_I2C_Read... [12:10:07]Read from MH i2c: 01 07 00 41 5B 00 00 00 00 00 FF 0F B1 [12:10:07]process_action close_receipt done [12:10:07]requested_data is exist [12:10:07]produce_requested_data [12:10:07]requested_item fm.sn is exist - process it [12:10:07]wFMCommunicate request_size=4 [12:10:07]MH_SAM_APDU [12:10:07]CAPDU: 80 11 00 00 [12:10:07]Write to MH i2c: E2 08 00 42 5B 80 11 00 00 00 00 00 00 17 [12:10:07]Write i2c OK [12:10:07]MH_I2C_Read... [12:10:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:07]Read from MH i2c: E2 [12:10:07]MH_I2C_Read... [12:10:07]Read from MH i2c: E2 17 00 [12:10:07]MH_I2C_Read... [12:10:07]Read from MH i2c: E2 17 00 42 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 69 [12:10:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:10:07]wFMCommunicate OK [12:10:07]requested_item fd.num is exist - process it [12:10:07]SAM_PROTO_GetFieldsCounters [12:10:07]wFMCommunicate request_size=4 [12:10:07]MH_SAM_APDU [12:10:07]CAPDU: 80 13 00 00 [12:10:07]Write to MH i2c: E2 08 00 43 5B 80 13 00 00 00 00 00 00 1A [12:10:07]Write i2c OK [12:10:07]MH_I2C_Read... [12:10:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:07]Read from MH i2c: E2 [12:10:07]MH_I2C_Read... [12:10:07]Read from MH i2c: E2 62 00 [12:10:07]MH_I2C_Read... [12:10:07]Read from MH i2c: E2 62 00 43 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 10 B4 01 00 0E 04 04 00 85 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 7C [12:10:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 10 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:10:07]wFMCommunicate OK [12:10:07]SAM_PROTO_GetFieldsCounters done [12:10:07]requested_item shift.num is exist - process it [12:10:07]requested_item shift.opened is exist - process it [12:10:07]req_shift_opened [12:10:07]FM_GetShiftState [12:10:07]SAM_PROTO_GetShiftState [12:10:07]wFMCommunicate request_size=4 [12:10:07]MH_SAM_APDU [12:10:07]CAPDU: 80 13 01 00 [12:10:07]Write to MH i2c: E2 08 00 44 5B 80 13 01 00 00 00 00 00 1C [12:10:07]Write i2c OK [12:10:07]MH_I2C_Read... [12:10:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:07]Read from MH i2c: E2 [12:10:07]MH_I2C_Read... [12:10:07]Read from MH i2c: E2 0E 00 [12:10:07]MH_I2C_Read... [12:10:07]Read from MH i2c: E2 0E 00 44 5B 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 97 [12:10:07]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:10:07]wFMCommunicate OK [12:10:07]SAM_PROTO_GetShiftState done [12:10:07]FM_GetShiftState done [12:10:07]req_shift_opened done [12:10:07]requested_item shift.open_date is exist - process it [12:10:07]req_shift_open_date [12:10:07]req_shift_open_date done [12:10:07]produce_requested_data done [12:10:07]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111632,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [12:10:07]process_action_free close_receipt [12:10:07]json_value_free [12:10:07]json_value_free done [12:10:07]process_json_proto returns [12:10:07]Send response to host [12:10:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111632,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [12:10:07]free response buf [12:10:07]execute_script done [12:10:07]execute_script returns [12:10:07]free content buf [12:10:07]Sock 9.Close socket [12:10:07]Sock 9.Thread stoped [12:10:11]OFD Sender: No OFD packet to send [12:10:16]OFD Sender: No OFD packet to send [12:10:21]OFD Sender: No OFD packet to send [12:10:26]OFD Sender: No OFD packet to send [12:10:31]OFD Sender: No OFD packet to send [12:10:36]OFD Sender: No OFD packet to send [12:10:41]OFD Sender: No OFD packet to send [12:10:46]OFD Sender: No OFD packet to send [12:10:51]OFD Sender: No OFD packet to send [12:10:56]OFD Sender: No OFD packet to send [12:11:01]OFD Sender: No OFD packet to send [12:11:06]OFD Sender: No OFD packet to send [12:11:11]OFD Sender: No OFD packet to send [12:11:16]OFD Sender: No OFD packet to send [12:11:21]OFD Sender: No OFD packet to send [12:11: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:41]accept exits with 7 [12:11:41]New connection [12:11:41]New thread 3067321700 created [12:11:41]Thread 3067465060 joined [12:11:41]Waiting for new connection... [12:11:41] Sock 7.Parse request [12:11:41]Sock 7.Check first char [12:11:41]Sock 7.First char is OK [12:11:41]request: POST /json_proto HTTP/1.0 [12:11:41]Method: POST [12:11:41]URL: /json_proto [12:11:41]Method is POST - this is cgi request [12:11:41]url: /json_proto [12:11:41]query_string will be loaded in cgi processing [12:11:41]execute_cgi json_proto POST (null) [12:11:41]execute_cgi path=json_proto method=POST [12:11:41]POST find Content-Length [12:11:41]Host: 172.17.59.68:8080 [12:11:41]Content-Length: 674 [12:11:41]Content-Type: application/json [12:11:41] [12:11:41]POST finish read [12:11:41]Found Content-Length = 674 [12:11:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 1.380, "sum" : 100.60, "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" ] } } [12:11:41]execute_script... [12: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)320233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 1.380, "sum" : 100.60, "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" ] } } [12:11:41]POST & json_proto [12:11:41]process_json_proto [12:11:41]json parsed OK: [12:11:41]protocol is kg_v1.0 [12:11:41]action value=close_receipt [12:11:41]process_action close_receipt [12:11:41]cmd_close_receipt [12:11:41]MH_GetDate [12:11:41]Write to MH i2c: F0 00 00 45 5B 8F [12:11:41]Write i2c OK [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: F0 [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: F0 09 00 [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: F0 09 00 45 5B 00 9F 1C 74 66 BC EC 60 65 9A [12:11:41]GetLastDocTimeStamp 1718885436 [12:11:41]current date 1718885535 [12:11:41]FM_GetShiftState [12:11:41]SAM_PROTO_GetShiftState [12:11:41]wFMCommunicate request_size=4 [12:11:41]MH_SAM_APDU [12:11:41]CAPDU: 80 13 01 00 [12:11:41]Write to MH i2c: E2 08 00 46 5B 80 13 01 00 00 00 00 00 1E [12:11:41]Write i2c OK [12:11:41]MH_I2C_Read... [12:11:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:41]Read from MH i2c: E2 [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: E2 0E 00 [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: E2 0E 00 46 5B 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 99 [12:11:41]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:11:41]wFMCommunicate OK [12:11:41]SAM_PROTO_GetShiftState done [12:11:41]FM_GetShiftState done [12:11:41]opened in 1718847247 [12:11:41]opened+sec_in_day 1718933647 [12:11:41]quantity*price = 10060 [12:11:41]sum+1 = 10061 [12:11:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.68 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 83 20.06.2024 12:12 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111633 ФПД: 46289797431093 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T121215&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111633&fm=46289797431093&tin=02508201610067®Number=0000000000092771&sum=10000 [12:11:42]StoreToDocumentArchive [12:11:42]shift 389 fd 111633 [12:11:42]save to /storage/0389/doc_00111633 [12:11:42]save last doc name /storage/0389/doc_00111633 to /storage/kkm_last_doc_name [12:11:42]save OK [12:11:42]Clear old archive folders... [12:11:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:11:42]tlvbuf is 00FF0F50 [12:11:42]SAM_PROTO_ClearQueue [12:11:42]wFMCommunicate request_size=4 [12:11:42]MH_SAM_APDU [12:11:42]CAPDU: 80 09 00 00 [12:11:42]Write to MH i2c: E2 08 00 53 5B 80 09 00 00 00 00 00 00 20 [12:11:42]Write i2c OK [12:11:42]MH_I2C_Read... [12:11:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:42]Read from MH i2c: E2 [12:11:42]MH_I2C_Read... [12:11:42]Read from MH i2c: E2 03 00 [12:11:42]MH_I2C_Read... [12:11:42]Read from MH i2c: E2 03 00 53 5B 00 90 00 22 [12:11:42]RAPDU: 90 00 [12:11:42]wFMCommunicate OK [12:11:42]SAM_PROTO_ClearQueue done [12:11:42]KKMCreateOFDPacket [12:11:42]OFDProtocolAddRootSTLVToBuf [12:11:42]FM_MakeSignedData [12:11:42]FM_MakeSignedData [12:11:42]SAM_PROTO_SignData [12:11:42]wFMCommunicate request_size=4 [12:11:42]MH_SAM_APDU [12:11:42]CAPDU: 80 0D 01 02 [12:11:42]Write to MH i2c: E2 08 00 54 5B 80 0D 01 02 00 00 00 00 28 [12:11:42]Write i2c OK [12:11:42]MH_I2C_Read... [12:11:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:42]Read from MH i2c: E2 [12:11:42]MH_I2C_Read... [12:11:42]Read from MH i2c: E2 03 00 [12:11:42]MH_I2C_Read... [12:11:42]Read from MH i2c: E2 03 00 54 5B 00 90 00 23 [12:11:42]RAPDU: 90 00 [12:11:42]wFMCommunicate OK [12:11:42]wFMCommunicate request_size=255 [12:11:42]MH_SAM_APDU [12:11:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 05 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 4C 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 2C 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 53 00 00 00 F4 03 04 00 9F 1C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 11 B4 01 00 35 04 06 00 2A 19 AE EE [12:11:42]Write to MH i2c: E2 02 01 55 5B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 05 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 4C 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 2C 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 53 00 00 00 F4 03 04 00 9F 1C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 11 B4 01 00 35 04 06 00 2A 19 AE EE 00 00 01 [12:11:42]Write i2c OK [12:11:42]MH_I2C_Read... [12:11:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:43]Read from MH i2c: E2 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: E2 03 00 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: E2 03 00 55 5B 00 90 00 24 [12:11:43]RAPDU: 90 00 [12:11:43]wFMCommunicate OK [12:11:43]wFMCommunicate request_size=7 [12:11:43]MH_SAM_APDU [12:11:43]CAPDU: 80 0D 02 02 02 BF 35 [12:11:43]Write to MH i2c: E2 0A 00 56 5B 80 0D 02 02 02 00 BF 35 00 00 23 [12:11:43]Write i2c OK [12:11:43]MH_I2C_Read... [12:11:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:43]Read from MH i2c: E2 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: E2 03 00 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: E2 03 00 56 5B 00 90 00 25 [12:11:43]RAPDU: 90 00 [12:11:43]wFMCommunicate OK [12:11:43]wFMCommunicate request_size=4 [12:11:43]MH_SAM_APDU [12:11:43]CAPDU: 80 0D 03 02 [12:11:43]Write to MH i2c: E2 08 00 57 5B 80 0D 03 02 00 00 00 00 2D [12:11:43]Write i2c OK [12:11:43]MH_I2C_Read... [12:11:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:43]Read from MH i2c: E2 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: E2 0B 00 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: E2 0B 00 57 5B 00 BD 59 8A 6E 15 D4 4B 9C 90 00 0C [12:11:43]RAPDU: BD 59 8A 6E 15 D4 4B 9C 90 00 [12:11:43]wFMCommunicate OK [12:11:43]SAM_PROTO_SignData done [12:11:43]FM_MakeSignedData done [12:11:43]CreateOFDProtocolMessage [12:11:43]wFMCommunicate request_size=4 [12:11:43]MH_SAM_APDU [12:11:43]CAPDU: 80 11 00 00 [12:11:43]Write to MH i2c: E2 08 00 58 5B 80 11 00 00 00 00 00 00 2D [12:11:43]Write i2c OK [12:11:43]MH_I2C_Read... [12:11:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:43]Read from MH i2c: E2 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: E2 17 00 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: E2 17 00 58 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7F [12:11:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:11:43]wFMCommunicate OK [12:11:43]CreateOFDProtocolMessage done [12:11:43]OFDSenderStorePacket 111633 [12:11:43]StoreOFDPacket docnum=111633 [12:11:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 82 4C 04 01 5C 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 05 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 4C 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 2C 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 53 00 00 00 F4 03 04 00 9F 1C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 11 B4 01 00 35 04 06 00 2A 19 AE EE BF 35 BD 59 8A 6E 15 D4 4B 9C [12:11:43]CheckFolder [12:11:43]dirname=/storage/ofd_packets [12:11:43]CheckFolder done [12:11:43]ProducePacketName [12:11:43]name=ofd_packets/00111633 [12:11:43]NVStorageSaveData ofd_packets/00111633 [12:11:43]File name is /storage/ofd_packets/00111633 [12:11:43]Write 298 bytes [12:11:43]NVStorageSaveData done [12:11:43]OFDSenderStorePacket done [12:11:43]KKMCreateOFDPacket done [12:11:43]NVStorageSaveData kkm_last_timestamp [12:11:43]File name is /storage/kkm_last_timestamp [12:11:43]Write 4 bytes [12:11:43]NVStorageSaveData done [12:11:43]ExternCall_PrintAddStr [12:11:43]wPrintStart [12:11:43]Write to MH i2c: 01 00 00 59 5B B4 [12:11:43]Write i2c OK [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: 01 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: 01 07 00 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: 01 07 00 59 5B 00 00 00 00 00 FF 0F C9 [12:11:43]RasterBufferAndPrint [12:11:43]line Счет N : (1)320233 [12:11:43]line ИНН: 02508201610067 [12:11:43]line Контрольно-Кассовый Чек [12:11:43]line ПРОДАЖА [12:11:43]line ТРК (МРК, ГНК) : 22 [12:11:43]line Товар: 2710194210 [12:11:43]line ДТ-К-5 [12:11:43]line 1.380 * 72.90 [12:11:43]line = 100.60 [12:11:43]line НДС 12% НСП 1% [12:11:43]line > о реализуемом товаре [12:11:43]line ОКРУГЛЕНИЕ: -0.60 [12:11:43]line ИТОГО: 100.00 [12:11:43]line Внесено: 100.00 [12:11:43]line СДАЧА: 0.00 [12:11:43]line НСП 1% : 0.89 [12:11:43]line НДС 12% : 10.68 [12:11:43]line Наличными: 100.00 [12:11:43]line Безнал.: 0.00 [12:11:43]line Место: АЗС № 65 "Партнер Нефть" [12:11:43]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:11:43]line СНО: Общий режим [12:11:43]line Чек 83 20.06.2024 12:12 [12:11:43]line Смена: 389 ФФД: 1.0 [12:11:43]line ЗНМ: 0300000198 [12:11:43]line РНМ: 0000000000092771 [12:11:43]line Версия ККМ: 001 [12:11:43]line ФМ: 0000000000875083 [12:11:43]line ФД: 111633 [12:11:43]line ФПД: 46289797431093 [12:11:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T121215&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111633&fm=46289797431093&tin=02508201610067®Number=0000000000092771&sum=10000 [12:11:43]OFD Sender: Processing packet 111633 [packets to send 38, broken 37] [12:11:43]ProducePacketName [12:11:43]name=ofd_packets/00111633 [12:11:43]OFD Sender: To server: pG, [12:11:43]CommunicateWithHost lk.salyk.kg:30040 [12:11:43]ConnectInit lk.salyk.kg [12:11:43]written 0, free lines is 4095 [12:11:43]Connected sock=10 [12: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 35 30 38 33 0C 01 00 00 82 4C 04 01 5C 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 05 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 4C 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 2C 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 53 00 00 00 F4 03 04 00 9F 1C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 11 B4 01 00 35 04 06 00 2A 19 AE EE BF 35 BD 59 8A 6E 15 D4 4B 9C [12:11:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 41 34 47 00 90 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 35 30 38 33 10 04 04 00 11 B4 01 00 F4 03 04 00 EA B3 73 66 B6 04 01 00 00 77 90 97 2B 5E DB 38 34 [12:11:43]CommunicateWithHost err = 0 [12:11:43]CheckOFDResponse [12:11:43]1017 (14) - 77093643461234 [12:11:43]1041 (16) - 0000000000875083 [12:11:43]1040 (4) - 111633 [12:11:43]1012 (4) - 20.06.2024 04:45 [12:11:43]1206 (1) - 0 [12:11:43]OFD Sender: Remove packet 111633 [12:11:43]ProducePacketName [12:11:43]name=ofd_packets/00111633 [12:11:43]NVStorageDeleteData [12:11:44]Write to MH i2c: 01 00 00 84 5B DF [12:11:44]Write i2c OK [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: 01 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: 01 07 00 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: 01 07 00 84 5B 00 00 00 00 00 CC 0C BE [12:11:44]RasterBufferAndPrint [12:11:44]line [12:11:44]line [12:11:44]line [12:11:44]line [12:11:44]line [12:11:44]written 0, free lines is 3284 [12:11:44]MH_Cut [12:11:44]Write to MH i2c: D1 01 00 8B 5B 01 B8 [12:11:44]Write i2c OK [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: D1 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: D1 01 00 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: D1 01 00 8B 5B 00 B7 [12:11:44]Write to MH i2c: 01 00 00 8C 5B E7 [12:11:44]Write i2c OK [12:11:44]MH_I2C_Read... [12:11:44]OFD Sender: No OFD packet to send [12:11:44]*** Cut start [12:11:44]*** Partial cut [12:11:44]*** CUTSNS_PIN = 1 [12:11:44]*** CUTSNS_PIN = 0 [12:11:45]*** Brake cut motor [12:11:45]Read from MH i2c: 01 [12:11:45]MH_I2C_Read... [12:11:45]*** Stop cut motor [12:11:45]*** Cut end [12:11:45]Read from MH i2c: 01 07 00 [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: 01 07 00 8C 5B 00 00 00 00 00 FF 0F FC [12:11:45]process_action close_receipt done [12:11:45]requested_data is exist [12:11:45]produce_requested_data [12:11:45]requested_item fm.sn is exist - process it [12:11:45]wFMCommunicate request_size=4 [12:11:45]MH_SAM_APDU [12:11:45]CAPDU: 80 11 00 00 [12:11:45]Write to MH i2c: E2 08 00 8D 5B 80 11 00 00 00 00 00 00 62 [12:11:45]Write i2c OK [12:11:45]MH_I2C_Read... [12:11:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:45]Read from MH i2c: E2 [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: E2 17 00 [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: E2 17 00 8D 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B4 [12:11:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:11:45]wFMCommunicate OK [12:11:45]requested_item fd.num is exist - process it [12:11:45]SAM_PROTO_GetFieldsCounters [12:11:45]wFMCommunicate request_size=4 [12:11:45]MH_SAM_APDU [12:11:45]CAPDU: 80 13 00 00 [12:11:45]Write to MH i2c: E2 08 00 8E 5B 80 13 00 00 00 00 00 00 65 [12:11:45]Write i2c OK [12:11:45]MH_I2C_Read... [12:11:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:45]Read from MH i2c: E2 [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: E2 62 00 [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: E2 62 00 8E 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 11 B4 01 00 0E 04 04 00 85 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 CB [12: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 11 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:11:45]wFMCommunicate OK [12:11:45]SAM_PROTO_GetFieldsCounters done [12:11:45]requested_item shift.num is exist - process it [12:11:45]requested_item shift.opened is exist - process it [12:11:45]req_shift_opened [12:11:45]FM_GetShiftState [12:11:45]SAM_PROTO_GetShiftState [12:11:45]wFMCommunicate request_size=4 [12:11:45]MH_SAM_APDU [12:11:45]CAPDU: 80 13 01 00 [12:11:45]Write to MH i2c: E2 08 00 8F 5B 80 13 01 00 00 00 00 00 67 [12:11:45]Write i2c OK [12:11:45]MH_I2C_Read... [12:11:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:45]Read from MH i2c: E2 [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: E2 0E 00 [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: E2 0E 00 8F 5B 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 E2 [12:11:45]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:11:45]wFMCommunicate OK [12:11:45]SAM_PROTO_GetShiftState done [12:11:45]FM_GetShiftState done [12:11:45]req_shift_opened done [12:11:45]requested_item shift.open_date is exist - process it [12:11:45]req_shift_open_date [12:11:45]req_shift_open_date done [12:11:45]produce_requested_data done [12:11:45]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111633,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [12:11:45]process_action_free close_receipt [12:11:45]json_value_free [12:11:45]json_value_free done [12:11:45]process_json_proto returns [12:11:45]Send response to host [12:11:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111633,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [12:11:45]free response buf [12:11:45]execute_script done [12:11:45]execute_script returns [12:11:45]free content buf [12:11:45]Sock 7.Close socket [12:11:45]Sock 7.Thread stoped [12:11:49]OFD Sender: No OFD packet to send [12:11:54]OFD Sender: No OFD packet to send [12:11:59]OFD Sender: No OFD packet to send [12:12:04]OFD Sender: No OFD packet to send [12:12:09]OFD Sender: No OFD packet to send [12:12:14]OFD Sender: No OFD packet to send [12:12:19]OFD Sender: No OFD packet to send [12:12:24]OFD Sender: No OFD packet to send [12:12:29]OFD Sender: No OFD packet to send [12:12:34]OFD Sender: No OFD packet to send [12:12:39]OFD Sender: No OFD packet to send [12:12:44]OFD Sender: No OFD packet to send [12:12:49]OFD Sender: No OFD packet to send [12:12:54]OFD Sender: No OFD packet to send [12:12:59]OFD Sender: No OFD packet to send [12:13:04]OFD Sender: No OFD packet to send [12:13:09]OFD Sender: No OFD packet to send [12:13:14]OFD Sender: No OFD packet to send [12:13:19]OFD Sender: No OFD packet to send [12:13:24]OFD Sender: No OFD packet to send [12:13:29]OFD Sender: No OFD packet to send [12:13:34]OFD Sender: No OFD packet to send [12:13:39]OFD Sender: No OFD packet to send [12:13:44]OFD Sender: No OFD packet to send [12:13:49]OFD Sender: No OFD packet to send [12:13:54]OFD Sender: No OFD packet to send [12:13:59]OFD Sender: No OFD packet to send [12:14:04]OFD Sender: No OFD packet to send [12:14:09]OFD Sender: No OFD packet to send [12:14:14]OFD Sender: No OFD packet to send [12:14:19]OFD Sender: No OFD packet to send [12:14:24]OFD Sender: No OFD packet to send [12:14:29]OFD Sender: No OFD packet to send [12:14:34]OFD Sender: No OFD packet to send [12:14:39]OFD Sender: No OFD packet to send [12:14:44]OFD Sender: No OFD packet to send [12:14:49]OFD Sender: No OFD packet to send [12:14:54]OFD Sender: No OFD packet to send [12:14:59]OFD Sender: No OFD packet to send [12:15:04]OFD Sender: No OFD packet to send [12:15:09]OFD Sender: No OFD packet to send [12:15:14]OFD Sender: No OFD packet to send [12:15:19]OFD Sender: No OFD packet to send [12:15:24]OFD Sender: No OFD packet to send [12:15:29]OFD Sender: No OFD packet to send [12:15:34]OFD Sender: No OFD packet to send [12:15:39]OFD Sender: No OFD packet to send [12:15:44]OFD Sender: No OFD packet to send [12:15:49]OFD Sender: No OFD packet to send [12:15:54]OFD Sender: No OFD packet to send [12:15:59]OFD Sender: No OFD packet to send [12:16:04]OFD Sender: No OFD packet to send [12:16:09]OFD Sender: No OFD packet to send [12:16:14]OFD Sender: No OFD packet to send [12:16:19]OFD Sender: No OFD packet to send [12:16:24]OFD Sender: No OFD packet to send [12:16:29]OFD Sender: No OFD packet to send [12:16:34]OFD Sender: No OFD packet to send [12:16:39]OFD Sender: No OFD packet to send [12:16:44]OFD Sender: No OFD packet to send [12:16:49]OFD Sender: No OFD packet to send [12:16:54]OFD Sender: No OFD packet to send [12:16:59]OFD Sender: No OFD packet to send [12:17:04]OFD Sender: No OFD packet to send [12:17:09]OFD Sender: No OFD packet to send [12:17:14]OFD Sender: No OFD packet to send [12:17:19]OFD Sender: No OFD packet to send [12:17:24]OFD Sender: No OFD packet to send [12:17:29]OFD Sender: No OFD packet to send [12:17:34]OFD Sender: No OFD packet to send [12:17:39]OFD Sender: No OFD packet to send [12:17:44]OFD Sender: No OFD packet to send [12:17:49]OFD Sender: No OFD packet to send [12:17:54]OFD Sender: No OFD packet to send [12:17:59]OFD Sender: No OFD packet to send [12:18:04]OFD Sender: No OFD packet to send [12:18:09]OFD Sender: No OFD packet to send [12:18:14]OFD Sender: No OFD packet to send [12:18:19]OFD Sender: No OFD packet to send [12:18:23]accept exits with 9 [12:18:23]New connection [12:18:23]New thread 3067465060 created [12:18:23]Thread 3067321700 joined [12:18:23]Waiting for new connection... [12:18:23] Sock 9.Parse request [12:18:23]Sock 9.Check first char [12:18:23]Sock 9.First char is OK [12:18:23]request: POST /json_proto HTTP/1.0 [12:18:23]Method: POST [12:18:23]URL: /json_proto [12:18:23]Method is POST - this is cgi request [12:18:23]url: /json_proto [12:18:23]query_string will be loaded in cgi processing [12:18:23]execute_cgi json_proto POST (null) [12:18:23]execute_cgi path=json_proto method=POST [12:18:23]POST find Content-Length [12:18:23]Host: 172.17.59.68:8080 [12:18:23]Content-Length: 677 [12:18:23]Content-Type: application/json [12:18:23] [12:18:23]POST finish read [12:18:23]Found Content-Length = 677 [12:18:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.280, "sum" : 350.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:23]execute_script... [12:18: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)320234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.280, "sum" : 350.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:23]POST & json_proto [12:18:23]process_json_proto [12:18:23]json parsed OK: [12:18:23]protocol is kg_v1.0 [12:18:23]action value=close_receipt [12:18:23]process_action close_receipt [12:18:23]cmd_close_receipt [12:18:23]MH_GetDate [12:18:23]Write to MH i2c: F0 00 00 90 5B DA [12:18:23]Write i2c OK [12:18:23]MH_I2C_Read... [12:18:23]Read from MH i2c: F0 [12:18:23]MH_I2C_Read... [12:18:23]Read from MH i2c: F0 09 00 [12:18:23]MH_I2C_Read... [12:18:23]Read from MH i2c: F0 09 00 90 5B 00 31 1E 74 66 BC EC 60 65 79 [12:18:23]GetLastDocTimeStamp 1718885535 [12:18:23]current date 1718885937 [12:18:23]FM_GetShiftState [12:18:23]SAM_PROTO_GetShiftState [12:18:23]wFMCommunicate request_size=4 [12:18:23]MH_SAM_APDU [12:18:23]CAPDU: 80 13 01 00 [12:18:23]Write to MH i2c: E2 08 00 91 5B 80 13 01 00 00 00 00 00 69 [12:18:23]Write i2c OK [12:18:23]MH_I2C_Read... [12:18:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:23]Read from MH i2c: E2 [12:18:23]MH_I2C_Read... [12:18:23]Read from MH i2c: E2 0E 00 [12:18:23]MH_I2C_Read... [12:18:23]Read from MH i2c: E2 0E 00 91 5B 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 E4 [12:18:23]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:18:23]wFMCommunicate OK [12:18:23]SAM_PROTO_GetShiftState done [12:18:23]FM_GetShiftState done [12:18:23]opened in 1718847247 [12:18:23]opened+sec_in_day 1718933647 [12:18:23]quantity*price = 35059 [12:18:23]sum+1 = 35060 [12:18:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 84 20.06.2024 12:18 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111634 ФПД: 114360721741126 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T121857&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111634&fm=114360721741126&tin=02508201610067®Number=0000000000092771&sum=35000 [12:18:24]StoreToDocumentArchive [12:18:24]shift 389 fd 111634 [12:18:24]save to /storage/0389/doc_00111634 [12:18:24]save last doc name /storage/0389/doc_00111634 to /storage/kkm_last_doc_name [12:18:24]save OK [12:18:24]Clear old archive folders... [12:18:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:18:24]tlvbuf is 00FF11A0 [12:18:24]SAM_PROTO_ClearQueue [12:18:24]wFMCommunicate request_size=4 [12:18:24]MH_SAM_APDU [12:18:24]CAPDU: 80 09 00 00 [12:18:24]Write to MH i2c: E2 08 00 9E 5B 80 09 00 00 00 00 00 00 6B [12:18:24]Write i2c OK [12:18:24]MH_I2C_Read... [12:18:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:24]Read from MH i2c: E2 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: E2 03 00 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: E2 03 00 9E 5B 00 90 00 6D [12:18:24]RAPDU: 90 00 [12:18:24]wFMCommunicate OK [12:18:24]SAM_PROTO_ClearQueue done [12:18:24]KKMCreateOFDPacket [12:18:24]OFDProtocolAddRootSTLVToBuf [12:18:24]FM_MakeSignedData [12:18:24]FM_MakeSignedData [12:18:24]SAM_PROTO_SignData [12:18:24]wFMCommunicate request_size=4 [12:18:24]MH_SAM_APDU [12:18:24]CAPDU: 80 0D 01 02 [12:18:24]Write to MH i2c: E2 08 00 9F 5B 80 0D 01 02 00 00 00 00 73 [12:18:24]Write i2c OK [12:18:24]MH_I2C_Read... [12:18:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:24]Read from MH i2c: E2 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: E2 03 00 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: E2 03 00 9F 5B 00 90 00 6E [12:18:24]RAPDU: 90 00 [12:18:24]wFMCommunicate OK [12:18:24]wFMCommunicate request_size=255 [12:18:24]MH_SAM_APDU [12:18:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 31 1E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 12 B4 01 00 35 04 06 00 68 [12:18:24]Write to MH i2c: E2 02 01 A0 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 31 1E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 12 B4 01 00 35 04 06 00 68 00 00 37 [12:18:24]Write i2c OK [12:18:24]MH_I2C_Read... [12:18:24]OFD Sender: No OFD packet to send [12:18:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:24]Read from MH i2c: E2 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: E2 03 00 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: E2 03 00 A0 5B 00 90 00 6F [12:18:24]RAPDU: 90 00 [12:18:24]wFMCommunicate OK [12:18:24]wFMCommunicate request_size=10 [12:18:24]MH_SAM_APDU [12:18:24]CAPDU: 80 0D 02 02 05 02 AE 32 15 46 [12:18:24]Write to MH i2c: E2 0D 00 A1 5B 80 0D 02 02 05 00 02 AE 32 15 46 00 00 BD [12:18:24]Write i2c OK [12:18:24]MH_I2C_Read... [12:18:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:25]Read from MH i2c: E2 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 03 00 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 03 00 A1 5B 00 90 00 70 [12:18:25]RAPDU: 90 00 [12:18:25]wFMCommunicate OK [12:18:25]wFMCommunicate request_size=4 [12:18:25]MH_SAM_APDU [12:18:25]CAPDU: 80 0D 03 02 [12:18:25]Write to MH i2c: E2 08 00 A2 5B 80 0D 03 02 00 00 00 00 78 [12:18:25]Write i2c OK [12:18:25]MH_I2C_Read... [12:18:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:25]Read from MH i2c: E2 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 0B 00 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 0B 00 A2 5B 00 5A ED 64 34 49 1E FB CB 90 00 85 [12:18:25]RAPDU: 5A ED 64 34 49 1E FB CB 90 00 [12:18:25]wFMCommunicate OK [12:18:25]SAM_PROTO_SignData done [12:18:25]FM_MakeSignedData done [12:18:25]CreateOFDProtocolMessage [12:18:25]wFMCommunicate request_size=4 [12:18:25]MH_SAM_APDU [12:18:25]CAPDU: 80 11 00 00 [12:18:25]Write to MH i2c: E2 08 00 A3 5B 80 11 00 00 00 00 00 00 78 [12:18:25]Write i2c OK [12:18:25]MH_I2C_Read... [12:18:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:25]Read from MH i2c: E2 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 17 00 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 17 00 A3 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CA [12:18:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:18:25]wFMCommunicate OK [12:18:25]CreateOFDProtocolMessage done [12:18:25]OFDSenderStorePacket 111634 [12:18:25]StoreOFDPacket docnum=111634 [12:18:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E3 21 07 01 65 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 31 1E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 12 B4 01 00 35 04 06 00 68 02 AE 32 15 46 5A ED 64 34 49 1E FB CB [12:18:25]CheckFolder [12:18:25]dirname=/storage/ofd_packets [12:18:25]CheckFolder done [12:18:25]ProducePacketName [12:18:25]name=ofd_packets/00111634 [12:18:25]NVStorageSaveData ofd_packets/00111634 [12:18:25]File name is /storage/ofd_packets/00111634 [12:18:25]Write 301 bytes [12:18:25]NVStorageSaveData done [12:18:25]OFDSenderStorePacket done [12:18:25]KKMCreateOFDPacket done [12:18:25]NVStorageSaveData kkm_last_timestamp [12:18:25]File name is /storage/kkm_last_timestamp [12:18:25]Write 4 bytes [12:18:25]NVStorageSaveData done [12:18:25]ExternCall_PrintAddStr [12:18:25]wPrintStart [12:18:25]Write to MH i2c: 01 00 00 A4 5B FF [12:18:25]Write i2c OK [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: 01 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: 01 07 00 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: 01 07 00 A4 5B 00 00 00 00 00 FF 0F 14 [12:18:25]RasterBufferAndPrint [12:18:25]line Счет N : (1)320234 [12:18:25]line ИНН: 02508201610067 [12:18:25]line Контрольно-Кассовый Чек [12:18:25]line ПРОДАЖА [12:18:25]line ТРК (МРК, ГНК) : 11 [12:18:25]line Товар: 2710124130 [12:18:25]line Аи-92-К-5 [12:18:25]line 5.280 * 66.40 [12:18:25]line = 350.59 [12:18:25]line НДС 12% НСП 1% [12:18:25]line > о реализуемом товаре [12:18:25]line ОКРУГЛЕНИЕ: -0.59 [12:18:25]line ИТОГО: 350.00 [12:18:25]line Внесено: 350.00 [12:18:25]line СДАЧА: 0.00 [12:18:25]line НСП 1% : 3.10 [12:18:25]line НДС 12% : 37.23 [12:18:25]line Наличными: 350.00 [12:18:25]line Безнал.: 0.00 [12:18:25]line Место: АЗС № 65 "Партнер Нефть" [12:18:25]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:18:25]line СНО: Общий режим [12:18:25]line Чек 84 20.06.2024 12:18 [12:18:25]line Смена: 389 ФФД: 1.0 [12:18:25]line ЗНМ: 0300000198 [12:18:25]line РНМ: 0000000000092771 [12:18:25]line Версия ККМ: 001 [12:18:25]line ФМ: 0000000000875083 [12:18:25]line ФД: 111634 [12:18:25]line ФПД: 114360721741126 [12:18:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T121857&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111634&fm=114360721741126&tin=02508201610067®Number=0000000000092771&sum=35000 [12:18:25]OFD Sender: Processing packet 111634 [packets to send 38, broken 37] [12:18:25]ProducePacketName [12:18:25]name=ofd_packets/00111634 [12:18:25]OFD Sender: To server: pG, [12:18:25]CommunicateWithHost lk.salyk.kg:30040 [12:18:25]ConnectInit lk.salyk.kg [12:18:25]written 0, free lines is 4095 [12:18:25]Connected sock=10 [12:18:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E3 21 07 01 65 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 31 1E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 12 B4 01 00 35 04 06 00 68 02 AE 32 15 46 5A ED 64 34 49 1E FB CB [12:18:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 BD 9E 47 00 BF DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 12 B4 01 00 F4 03 04 00 7B B5 73 66 B6 04 01 00 00 B7 B9 54 32 43 E5 46 7D [12:18:25]CommunicateWithHost err = 0 [12:18:25]CheckOFDResponse [12:18:25]1017 (14) - 77093643461234 [12:18:25]1041 (16) - 0000000000875083 [12:18:25]1040 (4) - 111634 [12:18:25]1012 (4) - 20.06.2024 04:52 [12:18:25]1206 (1) - 0 [12:18:25]OFD Sender: Remove packet 111634 [12:18:25]ProducePacketName [12:18:25]name=ofd_packets/00111634 [12:18:25]NVStorageDeleteData [12:18:25]Write to MH i2c: 01 00 00 CF 5B 2A [12:18:25]Write i2c OK [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: 01 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: 01 07 00 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: 01 07 00 CF 5B 00 00 00 00 00 C6 0C 03 [12:18:25]RasterBufferAndPrint [12:18:25]line [12:18:25]line [12:18:25]line [12:18:25]line [12:18:25]line [12:18:25]written 0, free lines is 3276 [12:18:25]MH_Cut [12:18:25]Write to MH i2c: D1 01 00 D6 5B 01 03 [12:18:25]Write i2c OK [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: D1 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: D1 01 00 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: D1 01 00 D6 5B 00 02 [12:18:25]Write to MH i2c: 01 00 00 D7 5B 32 [12:18:25]Write i2c OK [12:18:25]MH_I2C_Read... [12:18:26]OFD Sender: No OFD packet to send [12:18:26]*** Cut start [12:18:26]*** Partial cut [12:18:26]*** CUTSNS_PIN = 1 [12:18:26]*** CUTSNS_PIN = 0 [12:18:26]*** Brake cut motor [12:18:27]Read from MH i2c: 01 [12:18:27]MH_I2C_Read... [12:18:27]*** Stop cut motor [12:18:27]*** Cut end [12:18:27]Read from MH i2c: 01 07 00 [12:18:27]MH_I2C_Read... [12:18:27]Read from MH i2c: 01 07 00 D7 5B 00 00 00 00 00 FF 0F 47 [12:18:27]process_action close_receipt done [12:18:27]requested_data is exist [12:18:27]produce_requested_data [12:18:27]requested_item fm.sn is exist - process it [12:18:27]wFMCommunicate request_size=4 [12:18:27]MH_SAM_APDU [12:18:27]CAPDU: 80 11 00 00 [12:18:27]Write to MH i2c: E2 08 00 D8 5B 80 11 00 00 00 00 00 00 AD [12:18:27]Write i2c OK [12:18:27]MH_I2C_Read... [12:18:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:27]Read from MH i2c: E2 [12:18:27]MH_I2C_Read... [12:18:27]Read from MH i2c: E2 17 00 [12:18:27]MH_I2C_Read... [12:18:27]Read from MH i2c: E2 17 00 D8 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FF [12:18:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:18:27]wFMCommunicate OK [12:18:27]requested_item fd.num is exist - process it [12:18:27]SAM_PROTO_GetFieldsCounters [12:18:27]wFMCommunicate request_size=4 [12:18:27]MH_SAM_APDU [12:18:27]CAPDU: 80 13 00 00 [12:18:27]Write to MH i2c: E2 08 00 D9 5B 80 13 00 00 00 00 00 00 B0 [12:18:27]Write i2c OK [12:18:27]MH_I2C_Read... [12:18:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:27]Read from MH i2c: E2 [12:18:27]MH_I2C_Read... [12:18:27]Read from MH i2c: E2 62 00 [12:18:27]MH_I2C_Read... [12:18:27]Read from MH i2c: E2 62 00 D9 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 12 B4 01 00 0E 04 04 00 85 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 1A [12:18:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 12 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:18:27]wFMCommunicate OK [12:18:27]SAM_PROTO_GetFieldsCounters done [12:18:27]requested_item shift.num is exist - process it [12:18:27]requested_item shift.opened is exist - process it [12:18:27]req_shift_opened [12:18:27]FM_GetShiftState [12:18:27]SAM_PROTO_GetShiftState [12:18:27]wFMCommunicate request_size=4 [12:18:27]MH_SAM_APDU [12:18:27]CAPDU: 80 13 01 00 [12:18:27]Write to MH i2c: E2 08 00 DA 5B 80 13 01 00 00 00 00 00 B2 [12:18:27]Write i2c OK [12:18:27]MH_I2C_Read... [12:18:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:27]Read from MH i2c: E2 [12:18:27]MH_I2C_Read... [12:18:27]Read from MH i2c: E2 0E 00 [12:18:27]MH_I2C_Read... [12:18:27]Read from MH i2c: E2 0E 00 DA 5B 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 2D [12:18:27]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:18:27]wFMCommunicate OK [12:18:27]SAM_PROTO_GetShiftState done [12:18:27]FM_GetShiftState done [12:18:27]req_shift_opened done [12:18:27]requested_item shift.open_date is exist - process it [12:18:27]req_shift_open_date [12:18:27]req_shift_open_date done [12:18:27]produce_requested_data done [12:18:27]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111634,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [12:18:27]process_action_free close_receipt [12:18:27]json_value_free [12:18:27]json_value_free done [12:18:27]process_json_proto returns [12:18:27]Send response to host [12:18:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111634,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [12:18:27]free response buf [12:18:27]execute_script done [12:18:27]execute_script returns [12:18:27]free content buf [12:18:27]Sock 9.Close socket [12:18:27]Sock 9.Thread stoped [12:18:31]OFD Sender: No OFD packet to send [12:18:36]OFD Sender: No OFD packet to send [12:18:41]OFD Sender: No OFD packet to send [12:18:46]OFD Sender: No OFD packet to send [12:18:51]OFD Sender: No OFD packet to send [12:18:56]OFD Sender: No OFD packet to send [12:19:01]OFD Sender: No OFD packet to send [12:19:06]OFD Sender: No OFD packet to send [12:19:07]accept exits with 7 [12:19:07]New connection [12:19:07]New thread 3067321700 created [12:19:07]Thread 3067465060 joined [12:19:07]Waiting for new connection... [12:19:07] Sock 7.Parse request [12:19:07]Sock 7.Check first char [12:19:07]Sock 7.First char is OK [12:19:07]request: POST /json_proto HTTP/1.0 [12:19:07]Method: POST [12:19:07]URL: /json_proto [12:19:07]Method is POST - this is cgi request [12:19:07]url: /json_proto [12:19:07]query_string will be loaded in cgi processing [12:19:07]execute_cgi json_proto POST (null) [12:19:07]execute_cgi path=json_proto method=POST [12:19:07]POST find Content-Length [12:19:07]Host: 172.17.59.68:8080 [12:19:07]Content-Length: 678 [12:19:07]Content-Type: application/json [12:19:07] [12:19:07]POST finish read [12:19:07]Found Content-Length = 678 [12:19:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:07]execute_script... [12:19: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)320235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:07]POST & json_proto [12:19:07]process_json_proto [12:19:07]json parsed OK: [12:19:07]protocol is kg_v1.0 [12:19:07]action value=close_receipt [12:19:07]process_action close_receipt [12:19:07]cmd_close_receipt [12:19:07]MH_GetDate [12:19:07]Write to MH i2c: F0 00 00 DB 5B 25 [12:19:07]Write i2c OK [12:19:07]MH_I2C_Read... [12:19:07]Read from MH i2c: F0 [12:19:07]MH_I2C_Read... [12:19:07]Read from MH i2c: F0 09 00 [12:19:07]MH_I2C_Read... [12:19:07]Read from MH i2c: F0 09 00 DB 5B 00 5C 1E 74 66 BC EC 60 65 EF [12:19:07]GetLastDocTimeStamp 1718885937 [12:19:07]current date 1718885980 [12:19:07]FM_GetShiftState [12:19:07]SAM_PROTO_GetShiftState [12:19:07]wFMCommunicate request_size=4 [12:19:07]MH_SAM_APDU [12:19:07]CAPDU: 80 13 01 00 [12:19:07]Write to MH i2c: E2 08 00 DC 5B 80 13 01 00 00 00 00 00 B4 [12:19:07]Write i2c OK [12:19:07]MH_I2C_Read... [12:19:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:07]Read from MH i2c: E2 [12:19:07]MH_I2C_Read... [12:19:07]Read from MH i2c: E2 0E 00 [12:19:07]MH_I2C_Read... [12:19:07]Read from MH i2c: E2 0E 00 DC 5B 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 2F [12:19:07]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:19:07]wFMCommunicate OK [12:19:07]SAM_PROTO_GetShiftState done [12:19:07]FM_GetShiftState done [12:19:07]opened in 1718847247 [12:19:07]opened+sec_in_day 1718933647 [12:19:07]quantity*price = 70052 [12:19:07]sum+1 = 70053 [12:19:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 85 20.06.2024 12:19 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111635 ФПД: 80155022679478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T121940&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111635&fm=80155022679478&tin=02508201610067®Number=0000000000092771&sum=70000 [12:19:08]StoreToDocumentArchive [12:19:08]shift 389 fd 111635 [12:19:08]save to /storage/0389/doc_00111635 [12:19:08]save last doc name /storage/0389/doc_00111635 to /storage/kkm_last_doc_name [12:19:08]save OK [12:19:08]Clear old archive folders... [12:19:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:19:08]tlvbuf is 00FA28B0 [12:19:08]SAM_PROTO_ClearQueue [12:19:08]wFMCommunicate request_size=4 [12:19:08]MH_SAM_APDU [12:19:08]CAPDU: 80 09 00 00 [12:19:08]Write to MH i2c: E2 08 00 E9 5B 80 09 00 00 00 00 00 00 B6 [12:19:08]Write i2c OK [12:19:08]MH_I2C_Read... [12:19:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:08]Read from MH i2c: E2 [12:19:08]MH_I2C_Read... [12:19:08]Read from MH i2c: E2 03 00 [12:19:08]MH_I2C_Read... [12:19:08]Read from MH i2c: E2 03 00 E9 5B 00 90 00 B8 [12:19:08]RAPDU: 90 00 [12:19:08]wFMCommunicate OK [12:19:08]SAM_PROTO_ClearQueue done [12:19:08]KKMCreateOFDPacket [12:19:08]OFDProtocolAddRootSTLVToBuf [12:19:08]FM_MakeSignedData [12:19:08]FM_MakeSignedData [12:19:08]SAM_PROTO_SignData [12:19:08]wFMCommunicate request_size=4 [12:19:08]MH_SAM_APDU [12:19:08]CAPDU: 80 0D 01 02 [12:19:08]Write to MH i2c: E2 08 00 EA 5B 80 0D 01 02 00 00 00 00 BE [12:19:08]Write i2c OK [12:19:08]MH_I2C_Read... [12:19:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:08]Read from MH i2c: E2 [12:19:08]MH_I2C_Read... [12:19:08]Read from MH i2c: E2 03 00 [12:19:08]MH_I2C_Read... [12:19:08]Read from MH i2c: E2 03 00 EA 5B 00 90 00 B9 [12:19:08]RAPDU: 90 00 [12:19:08]wFMCommunicate OK [12:19:08]wFMCommunicate request_size=255 [12:19:08]MH_SAM_APDU [12:19: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 5C 1E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 13 B4 01 00 35 04 06 00 48 [12:19:08]Write to MH i2c: E2 02 01 EB 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 5C 1E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 13 B4 01 00 35 04 06 00 48 00 00 C3 [12:19:08]Write i2c OK [12:19:08]MH_I2C_Read... [12:19:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:08]Read from MH i2c: E2 [12:19:08]MH_I2C_Read... [12:19:08]Read from MH i2c: E2 03 00 [12:19:08]MH_I2C_Read... [12:19:08]Read from MH i2c: E2 03 00 EB 5B 00 90 00 BA [12:19:08]RAPDU: 90 00 [12:19:08]wFMCommunicate OK [12:19:08]wFMCommunicate request_size=10 [12:19:08]MH_SAM_APDU [12:19:08]CAPDU: 80 0D 02 02 05 E6 8B A7 5D B6 [12:19:08]Write to MH i2c: E2 0D 00 EC 5B 80 0D 02 02 05 00 E6 8B A7 5D B6 00 00 F6 [12:19:08]Write i2c OK [12:19:08]MH_I2C_Read... [12:19:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:08]Read from MH i2c: E2 [12:19:08]MH_I2C_Read... [12:19:08]Read from MH i2c: E2 03 00 [12:19:08]MH_I2C_Read... [12:19:08]Read from MH i2c: E2 03 00 EC 5B 00 90 00 BB [12:19:08]RAPDU: 90 00 [12:19:08]wFMCommunicate OK [12:19:08]wFMCommunicate request_size=4 [12:19:08]MH_SAM_APDU [12:19:08]CAPDU: 80 0D 03 02 [12:19:08]Write to MH i2c: E2 08 00 ED 5B 80 0D 03 02 00 00 00 00 C3 [12:19:08]Write i2c OK [12:19:08]MH_I2C_Read... [12:19:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:08]Read from MH i2c: E2 [12:19:08]MH_I2C_Read... [12:19:08]Read from MH i2c: E2 0B 00 [12:19:08]MH_I2C_Read... [12:19:08]Read from MH i2c: E2 0B 00 ED 5B 00 36 9A 5D 56 78 09 C0 95 90 00 1D [12:19:08]RAPDU: 36 9A 5D 56 78 09 C0 95 90 00 [12:19:08]wFMCommunicate OK [12:19:08]SAM_PROTO_SignData done [12:19:08]FM_MakeSignedData done [12:19:08]CreateOFDProtocolMessage [12:19:08]wFMCommunicate request_size=4 [12:19:08]MH_SAM_APDU [12:19:08]CAPDU: 80 11 00 00 [12:19:08]Write to MH i2c: E2 08 00 EE 5B 80 11 00 00 00 00 00 00 C3 [12:19:08]Write i2c OK [12:19:08]MH_I2C_Read... [12:19:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:08]Read from MH i2c: E2 [12:19:08]MH_I2C_Read... [12:19:08]Read from MH i2c: E2 17 00 [12:19:08]MH_I2C_Read... [12:19:08]Read from MH i2c: E2 17 00 EE 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 15 [12:19:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:19:08]wFMCommunicate OK [12:19:08]CreateOFDProtocolMessage done [12:19:08]OFDSenderStorePacket 111635 [12:19:08]StoreOFDPacket docnum=111635 [12:19:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3F 9B 07 01 30 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 5C 1E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 13 B4 01 00 35 04 06 00 48 E6 8B A7 5D B6 36 9A 5D 56 78 09 C0 95 [12:19:08]CheckFolder [12:19:08]dirname=/storage/ofd_packets [12:19:08]CheckFolder done [12:19:08]ProducePacketName [12:19:08]name=ofd_packets/00111635 [12:19:08]NVStorageSaveData ofd_packets/00111635 [12:19:08]File name is /storage/ofd_packets/00111635 [12:19:08]Write 301 bytes [12:19:08]NVStorageSaveData done [12:19:08]OFDSenderStorePacket done [12:19:08]KKMCreateOFDPacket done [12:19:08]NVStorageSaveData kkm_last_timestamp [12:19:08]File name is /storage/kkm_last_timestamp [12:19:08]Write 4 bytes [12:19:08]NVStorageSaveData done [12:19:08]ExternCall_PrintAddStr [12:19:08]wPrintStart [12:19:08]Write to MH i2c: 01 00 00 EF 5B 4A [12:19:08]Write i2c OK [12:19:08]MH_I2C_Read... [12:19:08]Read from MH i2c: 01 [12:19:08]MH_I2C_Read... [12:19:08]Read from MH i2c: 01 07 00 [12:19:08]MH_I2C_Read... [12:19:08]Read from MH i2c: 01 07 00 EF 5B 00 00 00 00 00 FF 0F 5F [12:19:08]RasterBufferAndPrint [12:19:08]line Счет N : (1)320235 [12:19:08]line ИНН: 02508201610067 [12:19:08]line Контрольно-Кассовый Чек [12:19:08]line ПРОДАЖА [12:19:08]line ТРК (МРК, ГНК) : 11 [12:19:08]line Товар: 2710124130 [12:19:08]line Аи-92-К-5 [12:19:08]line 10.550 * 66.40 [12:19:08]line = 700.52 [12:19:08]line НДС 12% НСП 1% [12:19:08]line > о реализуемом товаре [12:19:08]line ОКРУГЛЕНИЕ: -0.52 [12:19:08]line ИТОГО: 700.00 [12:19:08]line Внесено: 700.00 [12:19:08]line СДАЧА: 0.00 [12:19:08]line НСП 1% : 6.20 [12:19:08]line НДС 12% : 74.39 [12:19:08]line Наличными: 700.00 [12:19:08]line Безнал.: 0.00 [12:19:08]line Место: АЗС № 65 "Партнер Нефть" [12:19:08]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:19:08]line СНО: Общий режим [12:19:08]line Чек 85 20.06.2024 12:19 [12:19:08]line Смена: 389 ФФД: 1.0 [12:19:08]line ЗНМ: 0300000198 [12:19:08]line РНМ: 0000000000092771 [12:19:08]line Версия ККМ: 001 [12:19:08]line ФМ: 0000000000875083 [12:19:08]line ФД: 111635 [12:19:08]line ФПД: 80155022679478 [12:19:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T121940&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111635&fm=80155022679478&tin=02508201610067®Number=0000000000092771&sum=70000 [12:19:09]OFD Sender: Processing packet 111635 [packets to send 38, broken 37] [12:19:09]ProducePacketName [12:19:09]name=ofd_packets/00111635 [12:19:09]OFD Sender: To server: pG, [12:19:09]CommunicateWithHost lk.salyk.kg:30040 [12:19:09]ConnectInit lk.salyk.kg [12:19:09]written 0, free lines is 4095 [12:19:09]Connected sock=10 [12:19:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3F 9B 07 01 30 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 5C 1E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 13 B4 01 00 35 04 06 00 48 E6 8B A7 5D B6 36 9A 5D 56 78 09 C0 95 [12:19:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 14 A4 47 00 B8 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 13 B4 01 00 F4 03 04 00 A7 B5 73 66 B6 04 01 00 00 86 88 FA AB 23 07 99 19 [12:19:09]CommunicateWithHost err = 0 [12:19:09]CheckOFDResponse [12:19:09]1017 (14) - 77093643461234 [12:19:09]1041 (16) - 0000000000875083 [12:19:09]1040 (4) - 111635 [12:19:09]1012 (4) - 20.06.2024 04:52 [12:19:09]1206 (1) - 0 [12:19:09]OFD Sender: Remove packet 111635 [12:19:09]ProducePacketName [12:19:09]name=ofd_packets/00111635 [12:19:09]NVStorageDeleteData [12:19:09]Write to MH i2c: 01 00 00 1A 5C 76 [12:19:09]Write i2c OK [12:19:09]MH_I2C_Read... [12:19:09]Read from MH i2c: 01 [12:19:09]MH_I2C_Read... [12:19:09]Read from MH i2c: 01 07 00 [12:19:09]MH_I2C_Read... [12:19:09]Read from MH i2c: 01 07 00 1A 5C 00 00 00 00 00 CD 0C 56 [12:19:09]RasterBufferAndPrint [12:19:09]line [12:19:09]line [12:19:09]line [12:19:09]line [12:19:09]line [12:19:09]written 0, free lines is 3283 [12:19:09]MH_Cut [12:19:09]Write to MH i2c: D1 01 00 21 5C 01 4F [12:19:09]Write i2c OK [12:19:09]MH_I2C_Read... [12:19:09]Read from MH i2c: D1 [12:19:09]MH_I2C_Read... [12:19:09]Read from MH i2c: D1 01 00 [12:19:09]MH_I2C_Read... [12:19:09]Read from MH i2c: D1 01 00 21 5C 00 4E [12:19:09]Write to MH i2c: 01 00 00 22 5C 7E [12:19:09]Write i2c OK [12:19:09]MH_I2C_Read... [12:19:09]OFD Sender: No OFD packet to send [12:19:10]*** Cut start [12:19:10]*** Partial cut [12:19:10]*** CUTSNS_PIN = 1 [12:19:10]*** CUTSNS_PIN = 0 [12:19:10]*** Brake cut motor [12:19:10]Read from MH i2c: 01 [12:19:10]MH_I2C_Read... [12:19:10]*** Stop cut motor [12:19:10]*** Cut end [12:19:10]Read from MH i2c: 01 07 00 [12:19:10]MH_I2C_Read... [12:19:10]Read from MH i2c: 01 07 00 22 5C 00 00 00 00 00 FF 0F 93 [12:19:10]process_action close_receipt done [12:19:10]requested_data is exist [12:19:10]produce_requested_data [12:19:10]requested_item fm.sn is exist - process it [12:19:10]wFMCommunicate request_size=4 [12:19:10]MH_SAM_APDU [12:19:10]CAPDU: 80 11 00 00 [12:19:10]Write to MH i2c: E2 08 00 23 5C 80 11 00 00 00 00 00 00 F9 [12:19:10]Write i2c OK [12:19:10]MH_I2C_Read... [12:19:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:10]Read from MH i2c: E2 [12:19:10]MH_I2C_Read... [12:19:10]Read from MH i2c: E2 17 00 [12:19:10]MH_I2C_Read... [12:19:10]Read from MH i2c: E2 17 00 23 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4B [12:19:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:19:10]wFMCommunicate OK [12:19:10]requested_item fd.num is exist - process it [12:19:10]SAM_PROTO_GetFieldsCounters [12:19:10]wFMCommunicate request_size=4 [12:19:10]MH_SAM_APDU [12:19:10]CAPDU: 80 13 00 00 [12:19:10]Write to MH i2c: E2 08 00 24 5C 80 13 00 00 00 00 00 00 FC [12:19:10]Write i2c OK [12:19:10]MH_I2C_Read... [12:19:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:11]Read from MH i2c: E2 [12:19:11]MH_I2C_Read... [12:19:11]Read from MH i2c: E2 62 00 [12:19:11]MH_I2C_Read... [12:19:11]Read from MH i2c: E2 62 00 24 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 13 B4 01 00 0E 04 04 00 85 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 6A [12:19:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 13 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:19:11]wFMCommunicate OK [12:19:11]SAM_PROTO_GetFieldsCounters done [12:19:11]requested_item shift.num is exist - process it [12:19:11]requested_item shift.opened is exist - process it [12:19:11]req_shift_opened [12:19:11]FM_GetShiftState [12:19:11]SAM_PROTO_GetShiftState [12:19:11]wFMCommunicate request_size=4 [12:19:11]MH_SAM_APDU [12:19:11]CAPDU: 80 13 01 00 [12:19:11]Write to MH i2c: E2 08 00 25 5C 80 13 01 00 00 00 00 00 FE [12:19:11]Write i2c OK [12:19:11]MH_I2C_Read... [12:19:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:11]Read from MH i2c: E2 [12:19:11]MH_I2C_Read... [12:19:11]Read from MH i2c: E2 0E 00 [12:19:11]MH_I2C_Read... [12:19:11]Read from MH i2c: E2 0E 00 25 5C 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 79 [12:19:11]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:19:11]wFMCommunicate OK [12:19:11]SAM_PROTO_GetShiftState done [12:19:11]FM_GetShiftState done [12:19:11]req_shift_opened done [12:19:11]requested_item shift.open_date is exist - process it [12:19:11]req_shift_open_date [12:19:11]req_shift_open_date done [12:19:11]produce_requested_data done [12:19:11]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111635,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [12:19:11]process_action_free close_receipt [12:19:11]json_value_free [12:19:11]json_value_free done [12:19:11]process_json_proto returns [12:19:11]Send response to host [12:19:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111635,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [12:19:11]free response buf [12:19:11]execute_script done [12:19:11]execute_script returns [12:19:11]free content buf [12:19:11]Sock 7.Close socket [12:19:11]Sock 7.Thread stoped [12:19:14]OFD Sender: No OFD packet to send [12:19:19]OFD Sender: No OFD packet to send [12:19:24]OFD Sender: No OFD packet to send [12:19:29]OFD Sender: No OFD packet to send [12:19:34]OFD Sender: No OFD packet to send [12:19:39]OFD Sender: No OFD packet to send [12:19:44]OFD Sender: No OFD packet to send [12:19:49]OFD Sender: No OFD packet to send [12:19:54]OFD Sender: No OFD packet to send [12:19:59]OFD Sender: No OFD packet to send [12:20:04]accept exits with 9 [12:20:04]New connection [12:20:04]New thread 3067465060 created [12:20:04]Thread 3067321700 joined [12:20:04]Waiting for new connection... [12:20:04] Sock 9.Parse request [12:20:04]Sock 9.Check first char [12:20:04]Sock 9.First char is OK [12:20:04]request: POST /json_proto HTTP/1.0 [12:20:04]Method: POST [12:20:04]URL: /json_proto [12:20:04]Method is POST - this is cgi request [12:20:04]url: /json_proto [12:20:04]query_string will be loaded in cgi processing [12:20:04]execute_cgi json_proto POST (null) [12:20:04]execute_cgi path=json_proto method=POST [12:20:04]POST find Content-Length [12:20:04]Host: 172.17.59.68:8080 [12:20:04]Content-Length: 682 [12:20:04]Content-Type: application/json [12:20:04] [12:20:04]POST finish read [12:20:04]Found Content-Length = 682 [12:20:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:04]execute_script... [12:20:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:04]POST & json_proto [12:20:04]process_json_proto [12:20:04]json parsed OK: [12:20:04]protocol is kg_v1.0 [12:20:04]action value=close_receipt [12:20:04]process_action close_receipt [12:20:04]cmd_close_receipt [12:20:04]MH_GetDate [12:20:04]Write to MH i2c: F0 00 00 26 5C 71 [12:20:04]Write i2c OK [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: F0 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: F0 09 00 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: F0 09 00 26 5C 00 96 1E 74 66 BC EC 60 65 75 [12:20:04]GetLastDocTimeStamp 1718885980 [12:20:04]current date 1718886038 [12:20:04]FM_GetShiftState [12:20:04]SAM_PROTO_GetShiftState [12:20:04]wFMCommunicate request_size=4 [12:20:04]MH_SAM_APDU [12:20:04]CAPDU: 80 13 01 00 [12:20:04]Write to MH i2c: E2 08 00 27 5C 80 13 01 00 00 00 00 00 00 [12:20:04]Write i2c OK [12:20:04]MH_I2C_Read... [12:20:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:04]Read from MH i2c: E2 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: E2 0E 00 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: E2 0E 00 27 5C 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 7B [12:20:04]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:20:04]wFMCommunicate OK [12:20:04]SAM_PROTO_GetShiftState done [12:20:04]FM_GetShiftState done [12:20:04]opened in 1718847247 [12:20:04]opened+sec_in_day 1718933647 [12:20:04]quantity*price = 100060 [12:20:04]sum+1 = 100062 [12:20:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 86 20.06.2024 12:20 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111636 ФПД: 88626151612662 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T122038&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111636&fm=88626151612662&tin=02508201610067®Number=0000000000092771&sum=100000 [12:20:05]StoreToDocumentArchive [12:20:05]shift 389 fd 111636 [12:20:05]save to /storage/0389/doc_00111636 [12:20:05]save last doc name /storage/0389/doc_00111636 to /storage/kkm_last_doc_name [12:20:05]save OK [12:20:05]Clear old archive folders... [12:20:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:20:05]tlvbuf is B6FD2010 [12:20:05]SAM_PROTO_ClearQueue [12:20:05]wFMCommunicate request_size=4 [12:20:05]MH_SAM_APDU [12:20:05]CAPDU: 80 09 00 00 [12:20:05]Write to MH i2c: E2 08 00 34 5C 80 09 00 00 00 00 00 00 02 [12:20:05]Write i2c OK [12:20:05]MH_I2C_Read... [12:20:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:05]Read from MH i2c: E2 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: E2 03 00 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: E2 03 00 34 5C 00 90 00 04 [12:20:05]RAPDU: 90 00 [12:20:05]wFMCommunicate OK [12:20:05]SAM_PROTO_ClearQueue done [12:20:05]KKMCreateOFDPacket [12:20:05]OFDProtocolAddRootSTLVToBuf [12:20:05]FM_MakeSignedData [12:20:05]FM_MakeSignedData [12:20:05]SAM_PROTO_SignData [12:20:05]wFMCommunicate request_size=4 [12:20:05]MH_SAM_APDU [12:20:05]CAPDU: 80 0D 01 02 [12:20:05]Write to MH i2c: E2 08 00 35 5C 80 0D 01 02 00 00 00 00 0A [12:20:05]Write i2c OK [12:20:05]MH_I2C_Read... [12:20:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:05]Read from MH i2c: E2 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: E2 03 00 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: E2 03 00 35 5C 00 90 00 05 [12:20:05]RAPDU: 90 00 [12:20:05]wFMCommunicate OK [12:20:05]wFMCommunicate request_size=255 [12:20:05]MH_SAM_APDU [12:20:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 96 1E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 14 B4 01 00 35 04 06 00 50 [12:20:05]Write to MH i2c: E2 02 01 36 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 96 1E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 14 B4 01 00 35 04 06 00 50 00 00 82 [12:20:05]Write i2c OK [12:20:05]MH_I2C_Read... [12:20:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:06]Read from MH i2c: E2 [12:20:06]MH_I2C_Read... [12:20:06]Read from MH i2c: E2 03 00 [12:20:06]MH_I2C_Read... [12:20:06]Read from MH i2c: E2 03 00 36 5C 00 90 00 06 [12:20:06]RAPDU: 90 00 [12:20:06]wFMCommunicate OK [12:20:06]wFMCommunicate request_size=10 [12:20:06]MH_SAM_APDU [12:20:06]CAPDU: 80 0D 02 02 05 9A E2 48 E0 F6 [12:20:06]Write to MH i2c: E2 0D 00 37 5C 80 0D 02 02 05 00 9A E2 48 E0 F6 00 00 B1 [12:20:06]Write i2c OK [12:20:06]MH_I2C_Read... [12:20:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:06]Read from MH i2c: E2 [12:20:06]MH_I2C_Read... [12:20:06]Read from MH i2c: E2 03 00 [12:20:06]MH_I2C_Read... [12:20:06]Read from MH i2c: E2 03 00 37 5C 00 90 00 07 [12:20:06]RAPDU: 90 00 [12:20:06]wFMCommunicate OK [12:20:06]wFMCommunicate request_size=4 [12:20:06]MH_SAM_APDU [12:20:06]CAPDU: 80 0D 03 02 [12:20:06]Write to MH i2c: E2 08 00 38 5C 80 0D 03 02 00 00 00 00 0F [12:20:06]Write i2c OK [12:20:06]MH_I2C_Read... [12:20:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:06]Read from MH i2c: E2 [12:20:06]MH_I2C_Read... [12:20:06]Read from MH i2c: E2 0B 00 [12:20:06]MH_I2C_Read... [12:20:06]Read from MH i2c: E2 0B 00 38 5C 00 79 08 38 7E 52 3B 14 1C 90 00 04 [12:20:06]RAPDU: 79 08 38 7E 52 3B 14 1C 90 00 [12:20:06]wFMCommunicate OK [12:20:06]SAM_PROTO_SignData done [12:20:06]FM_MakeSignedData done [12:20:06]CreateOFDProtocolMessage [12:20:06]wFMCommunicate request_size=4 [12:20:06]MH_SAM_APDU [12:20:06]CAPDU: 80 11 00 00 [12:20:06]Write to MH i2c: E2 08 00 39 5C 80 11 00 00 00 00 00 00 0F [12:20:06]Write i2c OK [12:20:06]MH_I2C_Read... [12:20:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:06]Read from MH i2c: E2 [12:20:06]MH_I2C_Read... [12:20:06]Read from MH i2c: E2 17 00 [12:20:06]MH_I2C_Read... [12:20:06]Read from MH i2c: E2 17 00 39 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 61 [12:20:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:20:06]wFMCommunicate OK [12:20:06]CreateOFDProtocolMessage done [12:20:06]OFDSenderStorePacket 111636 [12:20:06]StoreOFDPacket docnum=111636 [12:20:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C5 67 07 01 B1 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 96 1E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 14 B4 01 00 35 04 06 00 50 9A E2 48 E0 F6 79 08 38 7E 52 3B 14 1C [12:20:06]CheckFolder [12:20:06]dirname=/storage/ofd_packets [12:20:06]CheckFolder done [12:20:06]ProducePacketName [12:20:06]name=ofd_packets/00111636 [12:20:06]NVStorageSaveData ofd_packets/00111636 [12:20:06]File name is /storage/ofd_packets/00111636 [12:20:06]Write 301 bytes [12:20:06]NVStorageSaveData done [12:20:06]OFDSenderStorePacket done [12:20:06]KKMCreateOFDPacket done [12:20:06]NVStorageSaveData kkm_last_timestamp [12:20:06]File name is /storage/kkm_last_timestamp [12:20:06]Write 4 bytes [12:20:06]NVStorageSaveData done [12:20:06]ExternCall_PrintAddStr [12:20:06]wPrintStart [12:20:06]Write to MH i2c: 01 00 00 3A 5C 96 [12:20:06]Write i2c OK [12:20:06]MH_I2C_Read... [12:20:06]Read from MH i2c: 01 [12:20:06]MH_I2C_Read... [12:20:06]Read from MH i2c: 01 07 00 [12:20:06]MH_I2C_Read... [12:20:06]Read from MH i2c: 01 07 00 3A 5C 00 00 00 00 00 FF 0F AB [12:20:06]RasterBufferAndPrint [12:20:06]line Счет N : (1)320236 [12:20:06]line ИНН: 02508201610067 [12:20:06]line Контрольно-Кассовый Чек [12:20:06]line ПРОДАЖА [12:20:06]line ТРК (МРК, ГНК) : 12 [12:20:06]line Товар: 2710124500 [12:20:06]line Аи-95-К-5 [12:20:06]line 13.540 * 73.90 [12:20:06]line = 1000.61 [12:20:06]line НДС 12% НСП 1% [12:20:06]line > о реализуемом товаре [12:20:06]line ОКРУГЛЕНИЕ: -0.61 [12:20:06]line ИТОГО: 1000.00 [12:20:06]line Внесено: 1000.00 [12:20:06]line СДАЧА: 0.00 [12:20:06]line НСП 1% : 8.85 [12:20:06]line НДС 12% : 106.26 [12:20:06]line Наличными: 1000.00 [12:20:06]line Безнал.: 0.00 [12:20:06]line Место: АЗС № 65 "Партнер Нефть" [12:20:06]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:20:06]line СНО: Общий режим [12:20:06]line Чек 86 20.06.2024 12:20 [12:20:06]line Смена: 389 ФФД: 1.0 [12:20:06]line ЗНМ: 0300000198 [12:20:06]line РНМ: 0000000000092771 [12:20:06]line Версия ККМ: 001 [12:20:06]line ФМ: 0000000000875083 [12:20:06]line ФД: 111636 [12:20:06]line ФПД: 88626151612662 [12:20:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T122038&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111636&fm=88626151612662&tin=02508201610067®Number=0000000000092771&sum=100000 [12:20:06]OFD Sender: Processing packet 111636 [packets to send 38, broken 37] [12:20:06]ProducePacketName [12:20:06]name=ofd_packets/00111636 [12:20:06]OFD Sender: To server: pG, [12:20:06]CommunicateWithHost lk.salyk.kg:30040 [12:20:06]ConnectInit lk.salyk.kg [12:20:06]written 0, free lines is 4095 [12:20:06]Connected sock=10 [12:20:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C5 67 07 01 B1 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 96 1E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 14 B4 01 00 35 04 06 00 50 9A E2 48 E0 F6 79 08 38 7E 52 3B 14 1C [12:20:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 AC 20 47 00 9D 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 35 30 38 33 10 04 04 00 14 B4 01 00 F4 03 04 00 E1 B5 73 66 B6 04 01 00 00 CE 53 7E 49 58 F5 5B 12 [12:20:06]CommunicateWithHost err = 0 [12:20:06]CheckOFDResponse [12:20:06]1017 (14) - 77093643461234 [12:20:06]1041 (16) - 0000000000875083 [12:20:06]1040 (4) - 111636 [12:20:06]1012 (4) - 20.06.2024 04:53 [12:20:06]1206 (1) - 0 [12:20:06]OFD Sender: Remove packet 111636 [12:20:06]ProducePacketName [12:20:06]name=ofd_packets/00111636 [12:20:06]NVStorageDeleteData [12:20:07]Write to MH i2c: 01 00 00 65 5C C1 [12:20:07]Write i2c OK [12:20:07]MH_I2C_Read... [12:20:07]Read from MH i2c: 01 [12:20:07]MH_I2C_Read... [12:20:07]Read from MH i2c: 01 07 00 [12:20:07]MH_I2C_Read... [12:20:07]Read from MH i2c: 01 07 00 65 5C 00 00 00 00 00 D4 0C A8 [12:20:07]RasterBufferAndPrint [12:20:07]line [12:20:07]line [12:20:07]line [12:20:07]line [12:20:07]line [12:20:07]written 0, free lines is 3288 [12:20:07]MH_Cut [12:20:07]Write to MH i2c: D1 01 00 6C 5C 01 9A [12:20:07]Write i2c OK [12:20:07]MH_I2C_Read... [12:20:07]Read from MH i2c: D1 [12:20:07]MH_I2C_Read... [12:20:07]Read from MH i2c: D1 01 00 [12:20:07]MH_I2C_Read... [12:20:07]Read from MH i2c: D1 01 00 6C 5C 00 99 [12:20:07]Write to MH i2c: 01 00 00 6D 5C C9 [12:20:07]Write i2c OK [12:20:07]MH_I2C_Read... [12:20:07]OFD Sender: No OFD packet to send [12:20:07]*** Cut start [12:20:07]*** Partial cut [12:20:07]*** CUTSNS_PIN = 1 [12:20:07]*** CUTSNS_PIN = 0 [12:20:08]*** Brake cut motor [12:20:08]Read from MH i2c: 01 [12:20:08]MH_I2C_Read... [12:20:08]*** Stop cut motor [12:20:08]*** Cut end [12:20:08]Read from MH i2c: 01 07 00 [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: 01 07 00 6D 5C 00 00 00 00 00 FF 0F DE [12:20:08]process_action close_receipt done [12:20:08]requested_data is exist [12:20:08]produce_requested_data [12:20:08]requested_item fm.sn is exist - process it [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 6E 5C 80 11 00 00 00 00 00 00 44 [12:20:08]Write i2c OK [12:20:08]MH_I2C_Read... [12:20:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:08]Read from MH i2c: E2 [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: E2 17 00 [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: E2 17 00 6E 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 96 [12:20:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:20:08]wFMCommunicate OK [12:20:08]requested_item fd.num is exist - process it [12:20:08]SAM_PROTO_GetFieldsCounters [12:20:08]wFMCommunicate request_size=4 [12:20:08]MH_SAM_APDU [12:20:08]CAPDU: 80 13 00 00 [12:20:08]Write to MH i2c: E2 08 00 6F 5C 80 13 00 00 00 00 00 00 47 [12:20:08]Write i2c OK [12:20:08]MH_I2C_Read... [12:20:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:08]Read from MH i2c: E2 [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: E2 62 00 [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: E2 62 00 6F 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 14 B4 01 00 0E 04 04 00 85 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 B9 [12:20:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 14 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:20:08]wFMCommunicate OK [12:20:08]SAM_PROTO_GetFieldsCounters done [12:20:08]requested_item shift.num is exist - process it [12:20:08]requested_item shift.opened is exist - process it [12:20:08]req_shift_opened [12:20:08]FM_GetShiftState [12:20:08]SAM_PROTO_GetShiftState [12:20:08]wFMCommunicate request_size=4 [12:20:08]MH_SAM_APDU [12:20:08]CAPDU: 80 13 01 00 [12:20:08]Write to MH i2c: E2 08 00 70 5C 80 13 01 00 00 00 00 00 49 [12:20:08]Write i2c OK [12:20:08]MH_I2C_Read... [12:20:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:08]Read from MH i2c: E2 [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: E2 0E 00 [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: E2 0E 00 70 5C 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 C4 [12:20:08]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:20:08]wFMCommunicate OK [12:20:08]SAM_PROTO_GetShiftState done [12:20:08]FM_GetShiftState done [12:20:08]req_shift_opened done [12:20:08]requested_item shift.open_date is exist - process it [12:20:08]req_shift_open_date [12:20:08]req_shift_open_date done [12:20:08]produce_requested_data done [12:20:08]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111636,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [12:20:08]process_action_free close_receipt [12:20:08]json_value_free [12:20:08]json_value_free done [12:20:08]process_json_proto returns [12:20:08]Send response to host [12:20:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111636,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [12:20:08]free response buf [12:20:08]execute_script done [12:20:08]execute_script returns [12:20:08]free content buf [12:20:08]Sock 9.Close socket [12:20:08]Sock 9.Thread stoped [12:20:12]OFD Sender: No OFD packet to send [12:20:17]OFD Sender: No OFD packet to send [12:20:22]OFD Sender: No OFD packet to send [12:20:27]OFD Sender: No OFD packet to send [12:20:32]OFD Sender: No OFD packet to send [12:20:37]OFD Sender: No OFD packet to send [12:20:42]OFD Sender: No OFD packet to send [12:20:47]OFD Sender: No OFD packet to send [12:20:52]OFD Sender: No OFD packet to send [12:20:57]OFD Sender: No OFD packet to send [12:21:02]OFD Sender: No OFD packet to send [12:21:07]OFD Sender: No OFD packet to send [12:21:12]OFD Sender: No OFD packet to send [12:21:17]OFD Sender: No OFD packet to send [12:21:22]OFD Sender: No OFD packet to send [12:21:26]accept exits with 7 [12:21:26]New connection [12:21:26]New thread 3067321700 created [12:21:26]Thread 3067465060 joined [12:21:26]Waiting for new connection... [12:21:26] Sock 7.Parse request [12:21:26]Sock 7.Check first char [12:21:26]Sock 7.First char is OK [12:21:26]request: POST /json_proto HTTP/1.0 [12:21:26]Method: POST [12:21:26]URL: /json_proto [12:21:26]Method is POST - this is cgi request [12:21:26]url: /json_proto [12:21:26]query_string will be loaded in cgi processing [12:21:26]execute_cgi json_proto POST (null) [12:21:26]execute_cgi path=json_proto method=POST [12:21:26]POST find Content-Length [12:21:26]Host: 172.17.59.68:8080 [12:21:26]Content-Length: 677 [12:21:26]Content-Type: application/json [12:21:26] [12:21:26]POST finish read [12:21:26]Found Content-Length = 677 [12:21:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:26]execute_script... [12:21: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)320237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:26]POST & json_proto [12:21:26]process_json_proto [12:21:26]json parsed OK: [12:21:26]protocol is kg_v1.0 [12:21:26]action value=close_receipt [12:21:26]process_action close_receipt [12:21:26]cmd_close_receipt [12:21:26]MH_GetDate [12:21:26]Write to MH i2c: F0 00 00 71 5C BC [12:21:26]Write i2c OK [12:21:26]MH_I2C_Read... [12:21:26]Read from MH i2c: F0 [12:21:26]MH_I2C_Read... [12:21:26]Read from MH i2c: F0 09 00 [12:21:26]MH_I2C_Read... [12:21:26]Read from MH i2c: F0 09 00 71 5C 00 E8 1E 74 66 BC EC 60 65 12 [12:21:26]GetLastDocTimeStamp 1718886038 [12:21:26]current date 1718886120 [12:21:26]FM_GetShiftState [12:21:26]SAM_PROTO_GetShiftState [12:21:26]wFMCommunicate request_size=4 [12:21:26]MH_SAM_APDU [12:21:26]CAPDU: 80 13 01 00 [12:21:26]Write to MH i2c: E2 08 00 72 5C 80 13 01 00 00 00 00 00 4B [12:21:26]Write i2c OK [12:21:26]MH_I2C_Read... [12:21:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:26]Read from MH i2c: E2 [12:21:26]MH_I2C_Read... [12:21:26]Read from MH i2c: E2 0E 00 [12:21:26]MH_I2C_Read... [12:21:26]Read from MH i2c: E2 0E 00 72 5C 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 C6 [12:21:26]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:21:26]wFMCommunicate OK [12:21:26]SAM_PROTO_GetShiftState done [12:21:26]FM_GetShiftState done [12:21:26]opened in 1718847247 [12:21:26]opened+sec_in_day 1718933647 [12:21:26]quantity*price = 50065 [12:21:26]sum+1 = 50067 [12:21:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 87 20.06.2024 12:22 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111637 ФПД: 193902816743815 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T122200&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111637&fm=193902816743815&tin=02508201610067®Number=0000000000092771&sum=50000 [12:21:28]StoreToDocumentArchive [12:21:28]shift 389 fd 111637 [12:21:28]save to /storage/0389/doc_00111637 [12:21:28]save last doc name /storage/0389/doc_00111637 to /storage/kkm_last_doc_name [12:21:28]save OK [12:21:28]Clear old archive folders... [12:21:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:21:28]tlvbuf is 010356D0 [12:21:28]SAM_PROTO_ClearQueue [12:21:28]wFMCommunicate request_size=4 [12:21:28]MH_SAM_APDU [12:21:28]CAPDU: 80 09 00 00 [12:21:28]Write to MH i2c: E2 08 00 7F 5C 80 09 00 00 00 00 00 00 4D [12:21:28]Write i2c OK [12:21:28]MH_I2C_Read... [12:21:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:21:28]Read from MH i2c: E2 [12:21:28]MH_I2C_Read... [12:21:28]Read from MH i2c: E2 03 00 [12:21:28]MH_I2C_Read... [12:21:28]Read from MH i2c: E2 03 00 7F 5C 00 90 00 4F [12:21:28]RAPDU: 90 00 [12:21:28]wFMCommunicate OK [12:21:28]SAM_PROTO_ClearQueue done [12:21:28]KKMCreateOFDPacket [12:21:28]OFDProtocolAddRootSTLVToBuf [12:21:28]FM_MakeSignedData [12:21:28]FM_MakeSignedData [12:21:28]SAM_PROTO_SignData [12:21:28]wFMCommunicate request_size=4 [12:21:28]MH_SAM_APDU [12:21:28]CAPDU: 80 0D 01 02 [12:21:28]Write to MH i2c: E2 08 00 80 5C 80 0D 01 02 00 00 00 00 55 [12:21:28]Write i2c OK [12:21:28]MH_I2C_Read... [12:21:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:21:28]Read from MH i2c: E2 [12:21:28]MH_I2C_Read... [12:21:28]Read from MH i2c: E2 03 00 [12:21:28]MH_I2C_Read... [12:21:28]Read from MH i2c: E2 03 00 80 5C 00 90 00 50 [12:21:28]RAPDU: 90 00 [12:21:28]wFMCommunicate OK [12:21:28]wFMCommunicate request_size=255 [12:21:28]MH_SAM_APDU [12:21: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 E8 1E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 15 B4 01 00 35 04 06 00 B0 [12:21:28]Write to MH i2c: E2 02 01 81 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 E8 1E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 15 B4 01 00 35 04 06 00 B0 00 00 40 [12:21:28]Write i2c OK [12:21:28]MH_I2C_Read... [12:21:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:28]Read from MH i2c: E2 [12:21:28]MH_I2C_Read... [12:21:28]Read from MH i2c: E2 03 00 [12:21:28]MH_I2C_Read... [12:21:28]Read from MH i2c: E2 03 00 81 5C 00 90 00 51 [12:21:28]RAPDU: 90 00 [12:21:28]wFMCommunicate OK [12:21:28]wFMCommunicate request_size=10 [12:21:28]MH_SAM_APDU [12:21:28]CAPDU: 80 0D 02 02 05 5A 84 83 51 87 [12:21:28]Write to MH i2c: E2 0D 00 82 5C 80 0D 02 02 05 00 5A 84 83 51 87 00 00 9B [12:21:28]Write i2c OK [12:21:28]MH_I2C_Read... [12:21:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:28]Read from MH i2c: E2 [12:21:28]MH_I2C_Read... [12:21:28]Read from MH i2c: E2 03 00 [12:21:28]MH_I2C_Read... [12:21:28]Read from MH i2c: E2 03 00 82 5C 00 90 00 52 [12:21:28]RAPDU: 90 00 [12:21:28]wFMCommunicate OK [12:21:28]wFMCommunicate request_size=4 [12:21:28]MH_SAM_APDU [12:21:28]CAPDU: 80 0D 03 02 [12:21:28]Write to MH i2c: E2 08 00 83 5C 80 0D 03 02 00 00 00 00 5A [12:21:28]Write i2c OK [12:21:28]MH_I2C_Read... [12:21:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:21:28]Read from MH i2c: E2 [12:21:28]MH_I2C_Read... [12:21:28]Read from MH i2c: E2 0B 00 [12:21:28]MH_I2C_Read... [12:21:28]Read from MH i2c: E2 0B 00 83 5C 00 86 DA 23 5F 8F 41 AF 66 90 00 22 [12:21:28]RAPDU: 86 DA 23 5F 8F 41 AF 66 90 00 [12:21:28]wFMCommunicate OK [12:21:28]SAM_PROTO_SignData done [12:21:28]FM_MakeSignedData done [12:21:28]CreateOFDProtocolMessage [12:21:28]wFMCommunicate request_size=4 [12:21:28]MH_SAM_APDU [12:21:28]CAPDU: 80 11 00 00 [12:21:28]Write to MH i2c: E2 08 00 84 5C 80 11 00 00 00 00 00 00 5A [12:21:28]Write i2c OK [12:21:28]MH_I2C_Read... [12:21:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:28]Read from MH i2c: E2 [12:21:28]MH_I2C_Read... [12:21:28]Read from MH i2c: E2 17 00 [12:21:28]MH_I2C_Read... [12:21:28]Read from MH i2c: E2 17 00 84 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AC [12:21:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:21:28]wFMCommunicate OK [12:21:28]CreateOFDProtocolMessage done [12:21:28]OFDSenderStorePacket 111637 [12:21:28]StoreOFDPacket docnum=111637 [12:21:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 33 6E 07 01 2C 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 E8 1E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 15 B4 01 00 35 04 06 00 B0 5A 84 83 51 87 86 DA 23 5F 8F 41 AF 66 [12:21:28]CheckFolder [12:21:28]dirname=/storage/ofd_packets [12:21:28]CheckFolder done [12:21:28]ProducePacketName [12:21:28]name=ofd_packets/00111637 [12:21:28]NVStorageSaveData ofd_packets/00111637 [12:21:28]File name is /storage/ofd_packets/00111637 [12:21:28]Write 301 bytes [12:21:28]NVStorageSaveData done [12:21:28]OFDSenderStorePacket done [12:21:28]KKMCreateOFDPacket done [12:21:28]NVStorageSaveData kkm_last_timestamp [12:21:28]File name is /storage/kkm_last_timestamp [12:21:28]Write 4 bytes [12:21:28]NVStorageSaveData done [12:21:28]ExternCall_PrintAddStr [12:21:28]wPrintStart [12:21:28]Write to MH i2c: 01 00 00 85 5C E1 [12:21:28]Write i2c OK [12:21:28]MH_I2C_Read... [12:21:28]Read from MH i2c: 01 [12:21:28]MH_I2C_Read... [12:21:28]Read from MH i2c: 01 07 00 [12:21:28]MH_I2C_Read... [12:21:28]Read from MH i2c: 01 07 00 85 5C 00 00 00 00 00 FF 0F F6 [12:21:28]RasterBufferAndPrint [12:21:28]line Счет N : (1)320237 [12:21:28]line ИНН: 02508201610067 [12:21:28]line Контрольно-Кассовый Чек [12:21:28]line ПРОДАЖА [12:21:28]line ТРК (МРК, ГНК) : 11 [12:21:28]line Товар: 2710124130 [12:21:28]line Аи-92-К-5 [12:21:28]line 7.540 * 66.40 [12:21:28]line = 500.66 [12:21:28]line НДС 12% НСП 1% [12:21:28]line > о реализуемом товаре [12:21:28]line ОКРУГЛЕНИЕ: -0.66 [12:21:28]line ИТОГО: 500.00 [12:21:28]line Внесено: 500.00 [12:21:28]line СДАЧА: 0.00 [12:21:28]line НСП 1% : 4.43 [12:21:28]line НДС 12% : 53.17 [12:21:28]line Наличными: 500.00 [12:21:28]line Безнал.: 0.00 [12:21:28]line Место: АЗС № 65 "Партнер Нефть" [12:21:28]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:21:28]line СНО: Общий режим [12:21:28]line Чек 87 20.06.2024 12:22 [12:21:28]line Смена: 389 ФФД: 1.0 [12:21:28]line ЗНМ: 0300000198 [12:21:28]line РНМ: 0000000000092771 [12:21:28]line Версия ККМ: 001 [12:21:28]line ФМ: 0000000000875083 [12:21:28]line ФД: 111637 [12:21:28]line ФПД: 193902816743815 [12:21:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T122200&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111637&fm=193902816743815&tin=02508201610067®Number=0000000000092771&sum=50000 [12:21:28]OFD Sender: Processing packet 111637 [packets to send 38, broken 37] [12:21:28]ProducePacketName [12:21:28]name=ofd_packets/00111637 [12:21:28]OFD Sender: To server: pG, [12:21:28]CommunicateWithHost lk.salyk.kg:30040 [12:21:28]ConnectInit lk.salyk.kg [12:21:28]written 0, free lines is 4095 [12:21:29]Connected sock=10 [12:21:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 33 6E 07 01 2C 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 E8 1E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 15 B4 01 00 35 04 06 00 B0 5A 84 83 51 87 86 DA 23 5F 8F 41 AF 66 [12:21:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 11 20 47 00 7D 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 15 B4 01 00 F4 03 04 00 33 B6 73 66 B6 04 01 00 00 5B D2 AB A4 94 E6 62 B0 [12:21:29]CommunicateWithHost err = 0 [12:21:29]CheckOFDResponse [12:21:29]1017 (14) - 77093643461234 [12:21:29]1041 (16) - 0000000000875083 [12:21:29]1040 (4) - 111637 [12:21:29]1012 (4) - 20.06.2024 04:55 [12:21:29]1206 (1) - 0 [12:21:29]OFD Sender: Remove packet 111637 [12:21:29]ProducePacketName [12:21:29]name=ofd_packets/00111637 [12:21:29]NVStorageDeleteData [12:21:29]Write to MH i2c: 01 00 00 B0 5C 0C [12:21:29]Write i2c OK [12:21:29]MH_I2C_Read... [12:21:29]Read from MH i2c: 01 [12:21:29]MH_I2C_Read... [12:21:29]Read from MH i2c: 01 07 00 [12:21:29]MH_I2C_Read... [12:21:29]Read from MH i2c: 01 07 00 B0 5C 00 00 00 00 00 C2 0C E1 [12:21:29]RasterBufferAndPrint [12:21:29]line [12:21:29]line [12:21:29]line [12:21:29]line [12:21:29]line [12:21:29]written 0, free lines is 3275 [12:21:29]MH_Cut [12:21:29]Write to MH i2c: D1 01 00 B7 5C 01 E5 [12:21:29]Write i2c OK [12:21:29]MH_I2C_Read... [12:21:29]Read from MH i2c: D1 [12:21:29]MH_I2C_Read... [12:21:29]Read from MH i2c: D1 01 00 [12:21:29]MH_I2C_Read... [12:21:29]Read from MH i2c: D1 01 00 B7 5C 00 E4 [12:21:29]Write to MH i2c: 01 00 00 B8 5C 14 [12:21:29]Write i2c OK [12:21:29]MH_I2C_Read... [12:21:29]OFD Sender: No OFD packet to send [12:21:30]*** Cut start [12:21:30]*** Partial cut [12:21:30]*** CUTSNS_PIN = 1 [12:21:30]*** CUTSNS_PIN = 0 [12:21:30]*** Brake cut motor [12:21:30]Read from MH i2c: 01 [12:21:30]MH_I2C_Read... [12:21:30]*** Stop cut motor [12:21:30]*** Cut end [12:21:30]Read from MH i2c: 01 07 00 [12:21:30]MH_I2C_Read... [12:21:30]Read from MH i2c: 01 07 00 B8 5C 00 00 00 00 00 FF 0F 29 [12:21:30]process_action close_receipt done [12:21:30]requested_data is exist [12:21:30]produce_requested_data [12:21:30]requested_item fm.sn is exist - process it [12:21:30]wFMCommunicate request_size=4 [12:21:30]MH_SAM_APDU [12:21:30]CAPDU: 80 11 00 00 [12:21:30]Write to MH i2c: E2 08 00 B9 5C 80 11 00 00 00 00 00 00 8F [12:21:30]Write i2c OK [12:21:30]MH_I2C_Read... [12:21:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:30]Read from MH i2c: E2 [12:21:30]MH_I2C_Read... [12:21:30]Read from MH i2c: E2 17 00 [12:21:30]MH_I2C_Read... [12:21:30]Read from MH i2c: E2 17 00 B9 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E1 [12:21:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:21:30]wFMCommunicate OK [12:21:30]requested_item fd.num is exist - process it [12:21:30]SAM_PROTO_GetFieldsCounters [12:21:30]wFMCommunicate request_size=4 [12:21:30]MH_SAM_APDU [12:21:30]CAPDU: 80 13 00 00 [12:21:30]Write to MH i2c: E2 08 00 BA 5C 80 13 00 00 00 00 00 00 92 [12:21:30]Write i2c OK [12:21:30]MH_I2C_Read... [12:21:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:30]Read from MH i2c: E2 [12:21:30]MH_I2C_Read... [12:21:30]Read from MH i2c: E2 62 00 [12:21:30]MH_I2C_Read... [12:21:30]Read from MH i2c: E2 62 00 BA 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 15 B4 01 00 0E 04 04 00 85 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 08 [12:21:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 15 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:21:30]wFMCommunicate OK [12:21:30]SAM_PROTO_GetFieldsCounters done [12:21:30]requested_item shift.num is exist - process it [12:21:30]requested_item shift.opened is exist - process it [12:21:30]req_shift_opened [12:21:30]FM_GetShiftState [12:21:30]SAM_PROTO_GetShiftState [12:21:30]wFMCommunicate request_size=4 [12:21:30]MH_SAM_APDU [12:21:30]CAPDU: 80 13 01 00 [12:21:30]Write to MH i2c: E2 08 00 BB 5C 80 13 01 00 00 00 00 00 94 [12:21:30]Write i2c OK [12:21:30]MH_I2C_Read... [12:21:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:31]Read from MH i2c: E2 [12:21:31]MH_I2C_Read... [12:21:31]Read from MH i2c: E2 0E 00 [12:21:31]MH_I2C_Read... [12:21:31]Read from MH i2c: E2 0E 00 BB 5C 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 0F [12:21:31]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:21:31]wFMCommunicate OK [12:21:31]SAM_PROTO_GetShiftState done [12:21:31]FM_GetShiftState done [12:21:31]req_shift_opened done [12:21:31]requested_item shift.open_date is exist - process it [12:21:31]req_shift_open_date [12:21:31]req_shift_open_date done [12:21:31]produce_requested_data done [12:21:31]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111637,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [12:21:31]process_action_free close_receipt [12:21:31]json_value_free [12:21:31]json_value_free done [12:21:31]process_json_proto returns [12:21:31]Send response to host [12:21:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111637,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [12:21:31]free response buf [12:21:31]execute_script done [12:21:31]execute_script returns [12:21:31]free content buf [12:21:31]Sock 7.Close socket [12:21:31]Sock 7.Thread stoped [12:21:34]OFD Sender: No OFD packet to send [12:21:39]OFD Sender: No OFD packet to send [12:21:44]OFD Sender: No OFD packet to send [12:21:49]OFD Sender: No OFD packet to send [12:21:52]accept exits with 9 [12:21:52]New connection [12:21:52]New thread 3067465060 created [12:21:52]Thread 3067321700 joined [12:21:52]Waiting for new connection... [12:21:52] Sock 9.Parse request [12:21:52]Sock 9.Check first char [12:21:52]Sock 9.First char is OK [12:21:52]request: POST /json_proto HTTP/1.0 [12:21:52]Method: POST [12:21:52]URL: /json_proto [12:21:52]Method is POST - this is cgi request [12:21:52]url: /json_proto [12:21:52]query_string will be loaded in cgi processing [12:21:52]execute_cgi json_proto POST (null) [12:21:52]execute_cgi path=json_proto method=POST [12:21:52]POST find Content-Length [12:21:52]Host: 172.17.59.68:8080 [12:21:52]Content-Length: 677 [12:21:52]Content-Type: application/json [12:21:52] [12:21:52]POST finish read [12:21:52]Found Content-Length = 677 [12:21:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:52]execute_script... [12:21: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)320238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:52]POST & json_proto [12:21:52]process_json_proto [12:21:52]json parsed OK: [12:21:52]protocol is kg_v1.0 [12:21:52]action value=close_receipt [12:21:52]process_action close_receipt [12:21:52]cmd_close_receipt [12:21:52]MH_GetDate [12:21:52]Write to MH i2c: F0 00 00 BC 5C 07 [12:21:52]Write i2c OK [12:21:52]MH_I2C_Read... [12:21:52]Read from MH i2c: F0 [12:21:52]MH_I2C_Read... [12:21:52]Read from MH i2c: F0 09 00 [12:21:52]MH_I2C_Read... [12:21:52]Read from MH i2c: F0 09 00 BC 5C 00 02 1F 74 66 BC EC 60 65 78 [12:21:52]GetLastDocTimeStamp 1718886120 [12:21:52]current date 1718886146 [12:21:52]FM_GetShiftState [12:21:52]SAM_PROTO_GetShiftState [12:21:52]wFMCommunicate request_size=4 [12:21:52]MH_SAM_APDU [12:21:52]CAPDU: 80 13 01 00 [12:21:52]Write to MH i2c: E2 08 00 BD 5C 80 13 01 00 00 00 00 00 96 [12:21:52]Write i2c OK [12:21:52]MH_I2C_Read... [12:21:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:53]Read from MH i2c: E2 [12:21:53]MH_I2C_Read... [12:21:53]Read from MH i2c: E2 0E 00 [12:21:53]MH_I2C_Read... [12:21:53]Read from MH i2c: E2 0E 00 BD 5C 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 11 [12:21:53]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:21:53]wFMCommunicate OK [12:21:53]SAM_PROTO_GetShiftState done [12:21:53]FM_GetShiftState done [12:21:53]opened in 1718847247 [12:21:53]opened+sec_in_day 1718933647 [12:21:53]quantity*price = 30012 [12:21:53]sum+1 = 30014 [12:21:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 88 20.06.2024 12:22 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111638 ФПД: 223572089007635 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T122226&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111638&fm=223572089007635&tin=02508201610067®Number=0000000000092771&sum=30000 [12:21:54]StoreToDocumentArchive [12:21:54]shift 389 fd 111638 [12:21:54]save to /storage/0389/doc_00111638 [12:21:54]save last doc name /storage/0389/doc_00111638 to /storage/kkm_last_doc_name [12:21:54]save OK [12:21:54]Clear old archive folders... [12:21:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:21:54]tlvbuf is 01018890 [12:21:54]SAM_PROTO_ClearQueue [12:21:54]wFMCommunicate request_size=4 [12:21:54]MH_SAM_APDU [12:21:54]CAPDU: 80 09 00 00 [12:21:54]Write to MH i2c: E2 08 00 CA 5C 80 09 00 00 00 00 00 00 98 [12:21:54]Write i2c OK [12:21:54]MH_I2C_Read... [12:21:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:21:54]Read from MH i2c: E2 [12:21:54]MH_I2C_Read... [12:21:54]Read from MH i2c: E2 03 00 [12:21:54]MH_I2C_Read... [12:21:54]Read from MH i2c: E2 03 00 CA 5C 00 90 00 9A [12:21:54]RAPDU: 90 00 [12:21:54]wFMCommunicate OK [12:21:54]SAM_PROTO_ClearQueue done [12:21:54]KKMCreateOFDPacket [12:21:54]OFDProtocolAddRootSTLVToBuf [12:21:54]FM_MakeSignedData [12:21:54]FM_MakeSignedData [12:21:54]SAM_PROTO_SignData [12:21:54]wFMCommunicate request_size=4 [12:21:54]MH_SAM_APDU [12:21:54]CAPDU: 80 0D 01 02 [12:21:54]Write to MH i2c: E2 08 00 CB 5C 80 0D 01 02 00 00 00 00 A0 [12:21:54]Write i2c OK [12:21:54]MH_I2C_Read... [12:21:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:21:54]Read from MH i2c: E2 [12:21:54]MH_I2C_Read... [12:21:54]Read from MH i2c: E2 03 00 [12:21:54]MH_I2C_Read... [12:21:54]Read from MH i2c: E2 03 00 CB 5C 00 90 00 9B [12:21:54]RAPDU: 90 00 [12:21:54]wFMCommunicate OK [12:21:54]wFMCommunicate request_size=255 [12:21:54]MH_SAM_APDU [12:21: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 02 1F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 16 B4 01 00 35 04 06 00 CB [12:21:54]Write to MH i2c: E2 02 01 CC 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 02 1F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 16 B4 01 00 35 04 06 00 CB 00 00 61 [12:21:54]Write i2c OK [12:21:54]MH_I2C_Read... [12:21:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:54]Read from MH i2c: E2 [12:21:54]MH_I2C_Read... [12:21:54]Read from MH i2c: E2 03 00 [12:21:54]MH_I2C_Read... [12:21:54]Read from MH i2c: E2 03 00 CC 5C 00 90 00 9C [12:21:54]RAPDU: 90 00 [12:21:54]wFMCommunicate OK [12:21:54]wFMCommunicate request_size=10 [12:21:54]MH_SAM_APDU [12:21:54]CAPDU: 80 0D 02 02 05 56 6E F2 6E 13 [12:21:54]Write to MH i2c: E2 0D 00 CD 5C 80 0D 02 02 05 00 56 6E F2 6E 13 00 00 E4 [12:21:54]Write i2c OK [12:21:54]MH_I2C_Read... [12:21:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:54]Read from MH i2c: E2 [12:21:54]MH_I2C_Read... [12:21:54]Read from MH i2c: E2 03 00 [12:21:54]MH_I2C_Read... [12:21:54]Read from MH i2c: E2 03 00 CD 5C 00 90 00 9D [12:21:54]RAPDU: 90 00 [12:21:54]wFMCommunicate OK [12:21:54]wFMCommunicate request_size=4 [12:21:54]MH_SAM_APDU [12:21:54]CAPDU: 80 0D 03 02 [12:21:54]Write to MH i2c: E2 08 00 CE 5C 80 0D 03 02 00 00 00 00 A5 [12:21:54]Write i2c OK [12:21:54]MH_I2C_Read... [12:21:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:21:54]Read from MH i2c: E2 [12:21:54]MH_I2C_Read... [12:21:54]Read from MH i2c: E2 0B 00 [12:21:54]MH_I2C_Read... [12:21:54]Read from MH i2c: E2 0B 00 CE 5C 00 60 9E 51 24 D3 01 EB 1D 90 00 F5 [12:21:54]RAPDU: 60 9E 51 24 D3 01 EB 1D 90 00 [12:21:54]wFMCommunicate OK [12:21:54]SAM_PROTO_SignData done [12:21:54]FM_MakeSignedData done [12:21:54]CreateOFDProtocolMessage [12:21:54]wFMCommunicate request_size=4 [12:21:54]MH_SAM_APDU [12:21:54]CAPDU: 80 11 00 00 [12:21:54]Write to MH i2c: E2 08 00 CF 5C 80 11 00 00 00 00 00 00 A5 [12:21:54]Write i2c OK [12:21:54]MH_I2C_Read... [12:21:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:54]Read from MH i2c: E2 [12:21:54]MH_I2C_Read... [12:21:54]Read from MH i2c: E2 17 00 [12:21:54]MH_I2C_Read... [12:21:54]Read from MH i2c: E2 17 00 CF 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F7 [12:21:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:21:54]wFMCommunicate OK [12:21:54]CreateOFDProtocolMessage done [12:21:54]OFDSenderStorePacket 111638 [12:21:54]StoreOFDPacket docnum=111638 [12:21:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C8 F3 07 01 D8 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 02 1F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 16 B4 01 00 35 04 06 00 CB 56 6E F2 6E 13 60 9E 51 24 D3 01 EB 1D [12:21:54]CheckFolder [12:21:54]dirname=/storage/ofd_packets [12:21:54]CheckFolder done [12:21:54]ProducePacketName [12:21:54]name=ofd_packets/00111638 [12:21:54]NVStorageSaveData ofd_packets/00111638 [12:21:54]File name is /storage/ofd_packets/00111638 [12:21:54]Write 301 bytes [12:21:54]NVStorageSaveData done [12:21:54]OFDSenderStorePacket done [12:21:54]KKMCreateOFDPacket done [12:21:54]NVStorageSaveData kkm_last_timestamp [12:21:54]File name is /storage/kkm_last_timestamp [12:21:54]Write 4 bytes [12:21:54]NVStorageSaveData done [12:21:54]ExternCall_PrintAddStr [12:21:54]wPrintStart [12:21:54]Write to MH i2c: 01 00 00 D0 5C 2C [12:21:54]Write i2c OK [12:21:54]MH_I2C_Read... [12:21:54]Read from MH i2c: 01 [12:21:54]MH_I2C_Read... [12:21:54]Read from MH i2c: 01 07 00 [12:21:54]MH_I2C_Read... [12:21:54]Read from MH i2c: 01 07 00 D0 5C 00 00 00 00 00 FF 0F 41 [12:21:54]RasterBufferAndPrint [12:21:54]line Счет N : (1)320238 [12:21:54]line ИНН: 02508201610067 [12:21:54]line Контрольно-Кассовый Чек [12:21:54]line ПРОДАЖА [12:21:54]line ТРК (МРК, ГНК) : 11 [12:21:54]line Товар: 2710124130 [12:21:54]line Аи-92-К-5 [12:21:54]line 4.520 * 66.40 [12:21:54]line = 300.13 [12:21:54]line НДС 12% НСП 1% [12:21:54]line > о реализуемом товаре [12:21:54]line ОКРУГЛЕНИЕ: -0.13 [12:21:54]line ИТОГО: 300.00 [12:21:54]line Внесено: 300.00 [12:21:54]line СДАЧА: 0.00 [12:21:54]line НСП 1% : 2.66 [12:21:54]line НДС 12% : 31.87 [12:21:54]line Наличными: 300.00 [12:21:54]line Безнал.: 0.00 [12:21:54]line Место: АЗС № 65 "Партнер Нефть" [12:21:54]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:21:54]line СНО: Общий режим [12:21:54]line Чек 88 20.06.2024 12:22 [12:21:54]line Смена: 389 ФФД: 1.0 [12:21:54]line ЗНМ: 0300000198 [12:21:54]line РНМ: 0000000000092771 [12:21:54]line Версия ККМ: 001 [12:21:54]line ФМ: 0000000000875083 [12:21:54]line ФД: 111638 [12:21:54]line ФПД: 223572089007635 [12:21:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T122226&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111638&fm=223572089007635&tin=02508201610067®Number=0000000000092771&sum=30000 [12:21:55]OFD Sender: Processing packet 111638 [packets to send 38, broken 37] [12:21:55]ProducePacketName [12:21:55]name=ofd_packets/00111638 [12:21:55]OFD Sender: To server: pG, [12:21:55]CommunicateWithHost lk.salyk.kg:30040 [12:21:55]ConnectInit lk.salyk.kg [12:21:55]written 0, free lines is 4095 [12:21:55]Connected sock=10 [12:21:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C8 F3 07 01 D8 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 02 1F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 16 B4 01 00 35 04 06 00 CB 56 6E F2 6E 13 60 9E 51 24 D3 01 EB 1D [12:21:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 66 C1 47 00 B7 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 16 B4 01 00 F4 03 04 00 4D B6 73 66 B6 04 01 00 00 21 F3 BB 0E 27 CC C7 79 [12:21:55]CommunicateWithHost err = 0 [12:21:55]CheckOFDResponse [12:21:55]1017 (14) - 77093643461234 [12:21:55]1041 (16) - 0000000000875083 [12:21:55]1040 (4) - 111638 [12:21:55]1012 (4) - 20.06.2024 04:55 [12:21:55]1206 (1) - 0 [12:21:55]OFD Sender: Remove packet 111638 [12:21:55]ProducePacketName [12:21:55]name=ofd_packets/00111638 [12:21:55]NVStorageDeleteData [12:21:55]Write to MH i2c: 01 00 00 FB 5C 57 [12:21:55]Write i2c OK [12:21:55]MH_I2C_Read... [12:21:55]Read from MH i2c: 01 [12:21:55]MH_I2C_Read... [12:21:55]Read from MH i2c: 01 07 00 [12:21:55]MH_I2C_Read... [12:21:55]Read from MH i2c: 01 07 00 FB 5C 00 00 00 00 00 D7 0C 41 [12:21:55]RasterBufferAndPrint [12:21:55]line [12:21:55]line [12:21:55]line [12:21:55]line [12:21:55]line [12:21:55]written 0, free lines is 3294 [12:21:55]MH_Cut [12:21:55]Write to MH i2c: D1 01 00 02 5D 01 31 [12:21:55]Write i2c OK [12:21:55]MH_I2C_Read... [12:21:55]Read from MH i2c: D1 [12:21:55]MH_I2C_Read... [12:21:55]Read from MH i2c: D1 01 00 [12:21:55]MH_I2C_Read... [12:21:55]Read from MH i2c: D1 01 00 02 5D 00 30 [12:21:55]Write to MH i2c: 01 00 00 03 5D 60 [12:21:55]Write i2c OK [12:21:55]MH_I2C_Read... [12:21:55]OFD Sender: No OFD packet to send [12:21:56]*** Cut start [12:21:56]*** Partial cut [12:21:56]*** CUTSNS_PIN = 1 [12:21:56]*** CUTSNS_PIN = 0 [12:21:56]*** Brake cut motor [12:21:56]Read from MH i2c: 01 [12:21:56]MH_I2C_Read... [12:21:56]*** Stop cut motor [12:21:56]*** Cut end [12:21:56]Read from MH i2c: 01 07 00 [12:21:56]MH_I2C_Read... [12:21:56]Read from MH i2c: 01 07 00 03 5D 00 00 00 00 00 FF 0F 75 [12:21:56]process_action close_receipt done [12:21:56]requested_data is exist [12:21:56]produce_requested_data [12:21:56]requested_item fm.sn is exist - process it [12:21:56]wFMCommunicate request_size=4 [12:21:56]MH_SAM_APDU [12:21:56]CAPDU: 80 11 00 00 [12:21:56]Write to MH i2c: E2 08 00 04 5D 80 11 00 00 00 00 00 00 DB [12:21:56]Write i2c OK [12:21:56]MH_I2C_Read... [12:21:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:56]Read from MH i2c: E2 [12:21:56]MH_I2C_Read... [12:21:56]Read from MH i2c: E2 17 00 [12:21:56]MH_I2C_Read... [12:21:56]Read from MH i2c: E2 17 00 04 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2D [12:21:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:21:56]wFMCommunicate OK [12:21:56]requested_item fd.num is exist - process it [12:21:56]SAM_PROTO_GetFieldsCounters [12:21:56]wFMCommunicate request_size=4 [12:21:56]MH_SAM_APDU [12:21:56]CAPDU: 80 13 00 00 [12:21:56]Write to MH i2c: E2 08 00 05 5D 80 13 00 00 00 00 00 00 DE [12:21:56]Write i2c OK [12:21:56]MH_I2C_Read... [12:21:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:57]Read from MH i2c: E2 [12:21:57]MH_I2C_Read... [12:21:57]Read from MH i2c: E2 62 00 [12:21:57]MH_I2C_Read... [12:21:57]Read from MH i2c: E2 62 00 05 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 16 B4 01 00 0E 04 04 00 85 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 58 [12:21:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 16 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:21:57]wFMCommunicate OK [12:21:57]SAM_PROTO_GetFieldsCounters done [12:21:57]requested_item shift.num is exist - process it [12:21:57]requested_item shift.opened is exist - process it [12:21:57]req_shift_opened [12:21:57]FM_GetShiftState [12:21:57]SAM_PROTO_GetShiftState [12:21:57]wFMCommunicate request_size=4 [12:21:57]MH_SAM_APDU [12:21:57]CAPDU: 80 13 01 00 [12:21:57]Write to MH i2c: E2 08 00 06 5D 80 13 01 00 00 00 00 00 E0 [12:21:57]Write i2c OK [12:21:57]MH_I2C_Read... [12:21:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:57]Read from MH i2c: E2 [12:21:57]MH_I2C_Read... [12:21:57]Read from MH i2c: E2 0E 00 [12:21:57]MH_I2C_Read... [12:21:57]Read from MH i2c: E2 0E 00 06 5D 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 5B [12:21:57]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:21:57]wFMCommunicate OK [12:21:57]SAM_PROTO_GetShiftState done [12:21:57]FM_GetShiftState done [12:21:57]req_shift_opened done [12:21:57]requested_item shift.open_date is exist - process it [12:21:57]req_shift_open_date [12:21:57]req_shift_open_date done [12:21:57]produce_requested_data done [12:21:57]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111638,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [12:21:57]process_action_free close_receipt [12:21:57]json_value_free [12:21:57]json_value_free done [12:21:57]process_json_proto returns [12:21:57]Send response to host [12:21:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111638,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [12:21:57]free response buf [12:21:57]execute_script done [12:21:57]execute_script returns [12:21:57]free content buf [12:21:57]Sock 9.Close socket [12:21:57]Sock 9.Thread stoped [12:22:00]OFD Sender: No OFD packet to send [12:22:05]OFD Sender: No OFD packet to send [12:22:10]OFD Sender: No OFD packet to send [12:22:15]OFD Sender: No OFD packet to send [12:22:20]OFD Sender: No OFD packet to send [12:22:25]OFD Sender: No OFD packet to send [12:22:30]OFD Sender: No OFD packet to send [12:22:35]OFD Sender: No OFD packet to send [12:22:40]OFD Sender: No OFD packet to send [12:22:45]OFD Sender: No OFD packet to send [12:22:50]OFD Sender: No OFD packet to send [12:22:55]OFD Sender: No OFD packet to send [12:23:00]OFD Sender: No OFD packet to send [12:23:05]OFD Sender: No OFD packet to send [12:23:10]OFD Sender: No OFD packet to send [12:23:15]OFD Sender: No OFD packet to send [12:23:20]OFD Sender: No OFD packet to send [12:23:25]OFD Sender: No OFD packet to send [12:23:30]OFD Sender: No OFD packet to send [12:23:35]OFD Sender: No OFD packet to send [12:23:40]OFD Sender: No OFD packet to send [12:23:45]OFD Sender: No OFD packet to send [12:23:50]OFD Sender: No OFD packet to send [12:23:55]OFD Sender: No OFD packet to send [12:24:00]OFD Sender: No OFD packet to send [12:24:05]OFD Sender: No OFD packet to send [12:24:10]OFD Sender: No OFD packet to send [12:24:15]OFD Sender: No OFD packet to send [12:24:20]OFD Sender: No OFD packet to send [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:45]OFD Sender: No OFD packet to send [12:24:50]OFD Sender: No OFD packet to send [12:24:55]OFD Sender: No OFD packet to send [12:25:00]OFD Sender: No OFD packet to send [12:25:05]OFD Sender: No OFD packet to send [12:25:10]OFD Sender: No OFD packet to send [12:25:15]OFD Sender: No OFD packet to send [12:25:20]OFD Sender: No OFD packet to send [12:25:25]OFD Sender: No OFD packet to send [12:25:30]OFD Sender: No OFD packet to send [12:25:35]OFD Sender: No OFD packet to send [12:25:40]OFD Sender: No OFD packet to send [12:25:46]OFD Sender: No OFD packet to send [12:25:51]OFD Sender: No OFD packet to send [12:25:56]OFD Sender: No OFD packet to send [12:26:01]OFD Sender: No OFD packet to send [12:26:06]OFD Sender: No OFD packet to send [12:26:11]OFD Sender: No OFD packet to send [12:26:16]OFD Sender: No OFD packet to send [12:26:21]OFD Sender: No OFD packet to send [12:26:26]OFD Sender: No OFD packet to send [12:26:31]OFD Sender: No OFD packet to send [12:26:36]OFD Sender: No OFD packet to send [12:26:41]OFD Sender: No OFD packet to send [12:26:46]OFD Sender: No OFD packet to send [12:26:51]OFD Sender: No OFD packet to send [12:26:56]OFD Sender: No OFD packet to send [12:27:01]OFD Sender: No OFD packet to send [12:27:06]OFD Sender: No OFD packet to send [12:27:11]OFD Sender: No OFD packet to send [12:27:16]OFD Sender: No OFD packet to send [12:27:21]OFD Sender: No OFD packet to send [12:27:26]OFD Sender: No OFD packet to send [12:27:31]OFD Sender: No OFD packet to send [12:27:36]OFD Sender: No OFD packet to send [12:27:41]OFD Sender: No OFD packet to send [12:27:46]OFD Sender: No OFD packet to send [12:27:51]OFD Sender: No OFD packet to send [12:27:56]OFD Sender: No OFD packet to send [12:28:01]OFD Sender: No OFD packet to send [12:28:05]accept exits with 7 [12:28:05]New connection [12:28:05]New thread 3067321700 created [12:28:05]Thread 3067465060 joined [12:28:05]Waiting for new connection... [12:28:05] Sock 7.Parse request [12:28:05]Sock 7.Check first char [12:28:05]Sock 7.First char is OK [12:28:05]request: POST /json_proto HTTP/1.0 [12:28:05]Method: POST [12:28:05]URL: /json_proto [12:28:05]Method is POST - this is cgi request [12:28:05]url: /json_proto [12:28:05]query_string will be loaded in cgi processing [12:28:05]execute_cgi json_proto POST (null) [12:28:05]execute_cgi path=json_proto method=POST [12:28:05]POST find Content-Length [12:28:05]Host: 172.17.59.68:8080 [12:28:05]Content-Length: 806 [12:28:05]Content-Type: application/json [12:28:05] [12:28:05]POST finish read [12:28:05]Found Content-Length = 806 [12:28:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 11.150, "sum" : 740.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 740.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:05]execute_script... [12:28: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)320239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 11.150, "sum" : 740.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 740.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:05]POST & json_proto [12:28:05]process_json_proto [12:28:05]json parsed OK: [12:28:05]protocol is kg_v1.0 [12:28:05]action value=close_receipt [12:28:05]process_action close_receipt [12:28:05]cmd_close_receipt [12:28:05]MH_GetDate [12:28:05]Write to MH i2c: F0 00 00 07 5D 53 [12:28:05]Write i2c OK [12:28:05]MH_I2C_Read... [12:28:05]Read from MH i2c: F0 [12:28:05]MH_I2C_Read... [12:28:05]Read from MH i2c: F0 09 00 [12:28:05]MH_I2C_Read... [12:28:05]Read from MH i2c: F0 09 00 07 5D 00 77 20 74 66 BC EC 60 65 3A [12:28:05]GetLastDocTimeStamp 1718886146 [12:28:05]current date 1718886519 [12:28:05]FM_GetShiftState [12:28:05]SAM_PROTO_GetShiftState [12:28:05]wFMCommunicate request_size=4 [12:28:05]MH_SAM_APDU [12:28:05]CAPDU: 80 13 01 00 [12:28:05]Write to MH i2c: E2 08 00 08 5D 80 13 01 00 00 00 00 00 E2 [12:28:05]Write i2c OK [12:28:05]MH_I2C_Read... [12:28:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:05]Read from MH i2c: E2 [12:28:05]MH_I2C_Read... [12:28:05]Read from MH i2c: E2 0E 00 [12:28:05]MH_I2C_Read... [12:28:05]Read from MH i2c: E2 0E 00 08 5D 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 5D [12:28:05]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:28:05]wFMCommunicate OK [12:28:05]SAM_PROTO_GetShiftState done [12:28:05]FM_GetShiftState done [12:28:05]opened in 1718847247 [12:28:05]opened+sec_in_day 1718933647 [12:28:05]quantity*price = 74036 [12:28:05]sum+1 = 74037 [12:28:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 740.36 НСП 1% : 6.55 НДС 12% : 78.62 Наличными: 0.00 Безнал.: 740.36 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 89 20.06.2024 12:28 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111639 ФПД: 61728992307462 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T122839&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111639&fm=61728992307462&tin=02508201610067®Number=0000000000092771&sum=74036 [12:28:06]StoreToDocumentArchive [12:28:06]shift 389 fd 111639 [12:28:06]save to /storage/0389/doc_00111639 [12:28:06]save last doc name /storage/0389/doc_00111639 to /storage/kkm_last_doc_name [12:28:06]save OK [12:28:06]Clear old archive folders... [12:28:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:28:06]tlvbuf is 00F304F0 [12:28:06]SAM_PROTO_ClearQueue [12:28:06]wFMCommunicate request_size=4 [12:28:06]MH_SAM_APDU [12:28:06]CAPDU: 80 09 00 00 [12:28:06]Write to MH i2c: E2 08 00 15 5D 80 09 00 00 00 00 00 00 E4 [12:28:06]Write i2c OK [12:28:06]MH_I2C_Read... [12:28:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:28:06]Read from MH i2c: E2 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 03 00 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 03 00 15 5D 00 90 00 E6 [12:28:06]RAPDU: 90 00 [12:28:06]wFMCommunicate OK [12:28:06]SAM_PROTO_ClearQueue done [12:28:06]KKMCreateOFDPacket [12:28:06]OFDProtocolAddRootSTLVToBuf [12:28:06]FM_MakeSignedData [12:28:06]FM_MakeSignedData [12:28:06]SAM_PROTO_SignData [12:28:06]wFMCommunicate request_size=4 [12:28:06]MH_SAM_APDU [12:28:06]CAPDU: 80 0D 01 02 [12:28:06]Write to MH i2c: E2 08 00 16 5D 80 0D 01 02 00 00 00 00 EC [12:28:06]Write i2c OK [12:28:06]MH_I2C_Read... [12:28:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:28:06]Read from MH i2c: E2 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 03 00 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 03 00 16 5D 00 90 00 E7 [12:28:06]RAPDU: 90 00 [12:28:06]wFMCommunicate OK [12:28:06]wFMCommunicate request_size=255 [12:28:06]MH_SAM_APDU [12:28: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 8E 2B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 34 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 77 20 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 17 B4 01 00 35 04 06 00 38 [12:28:06]Write to MH i2c: E2 02 01 17 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 2B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 34 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 77 20 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 17 B4 01 00 35 04 06 00 38 00 00 73 [12:28:06]Write i2c OK [12:28:06]MH_I2C_Read... [12:28:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:06]Read from MH i2c: E2 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 03 00 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 03 00 17 5D 00 90 00 E8 [12:28:06]RAPDU: 90 00 [12:28:06]wFMCommunicate OK [12:28:06]wFMCommunicate request_size=10 [12:28:06]MH_SAM_APDU [12:28:06]CAPDU: 80 0D 02 02 05 24 66 A8 A9 06 [12:28:06]Write to MH i2c: E2 0D 00 18 5D 80 0D 02 02 05 00 24 66 A8 A9 06 00 00 DA [12:28:06]Write i2c OK [12:28:06]MH_I2C_Read... [12:28:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:06]Read from MH i2c: E2 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 03 00 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 03 00 18 5D 00 90 00 E9 [12:28:06]RAPDU: 90 00 [12:28:06]wFMCommunicate OK [12:28:06]wFMCommunicate request_size=4 [12:28:06]MH_SAM_APDU [12:28:06]CAPDU: 80 0D 03 02 [12:28:06]Write to MH i2c: E2 08 00 19 5D 80 0D 03 02 00 00 00 00 F1 [12:28:06]Write i2c OK [12:28:06]MH_I2C_Read... [12:28:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:28:06]Read from MH i2c: E2 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 0B 00 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 0B 00 19 5D 00 4B 7E D1 8E C1 9D A9 B8 90 00 D9 [12:28:06]RAPDU: 4B 7E D1 8E C1 9D A9 B8 90 00 [12:28:06]wFMCommunicate OK [12:28:06]SAM_PROTO_SignData done [12:28:06]FM_MakeSignedData done [12:28:06]CreateOFDProtocolMessage [12:28:06]wFMCommunicate request_size=4 [12:28:06]MH_SAM_APDU [12:28:06]CAPDU: 80 11 00 00 [12:28:06]Write to MH i2c: E2 08 00 1A 5D 80 11 00 00 00 00 00 00 F1 [12:28:06]Write i2c OK [12:28:06]MH_I2C_Read... [12:28:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:06]Read from MH i2c: E2 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 17 00 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 17 00 1A 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 43 [12:28:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:28:06]wFMCommunicate OK [12:28:06]CreateOFDProtocolMessage done [12:28:06]OFDSenderStorePacket 111639 [12:28:06]StoreOFDPacket docnum=111639 [12:28:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 75 03 07 01 15 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 2B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 34 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 77 20 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 17 B4 01 00 35 04 06 00 38 24 66 A8 A9 06 4B 7E D1 8E C1 9D A9 B8 [12:28:06]CheckFolder [12:28:06]dirname=/storage/ofd_packets [12:28:06]CheckFolder done [12:28:06]ProducePacketName [12:28:06]name=ofd_packets/00111639 [12:28:06]NVStorageSaveData ofd_packets/00111639 [12:28:06]File name is /storage/ofd_packets/00111639 [12:28:06]Write 301 bytes [12:28:06]NVStorageSaveData done [12:28:06]OFDSenderStorePacket done [12:28:06]KKMCreateOFDPacket done [12:28:06]NVStorageSaveData kkm_last_timestamp [12:28:06]File name is /storage/kkm_last_timestamp [12:28:06]Write 4 bytes [12:28:06]NVStorageSaveData done [12:28:06]ExternCall_PrintAddStr [12:28:06]wPrintStart [12:28:06]Write to MH i2c: 01 00 00 1B 5D 78 [12:28:06]Write i2c OK [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: 01 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: 01 07 00 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: 01 07 00 1B 5D 00 00 00 00 00 FF 0F 8D [12:28:06]RasterBufferAndPrint [12:28:06]line Счет N : (1)320239 [12:28:06]line ИНН: 02508201610067 [12:28:06]line Контрольно-Кассовый Чек [12:28:06]line ПРОДАЖА [12:28:06]line ТРК (МРК, ГНК) : 11 [12:28:06]line Товар: 2710124130 [12:28:06]line Аи-92-К-5 [12:28:06]line 11.150 * 66.40 [12:28:06]line = 740.36 [12:28:06]line НДС 12% НСП 1% [12:28:06]line > о реализуемом товаре [12:28:06]line ИТОГО: 740.36 [12:28:06]line НСП 1% : 6.55 [12:28:06]line НДС 12% : 78.62 [12:28:06]line Наличными: 0.00 [12:28:06]line Безнал.: 740.36 [12:28:06]line Место: АЗС № 65 "Партнер Нефть" [12:28:06]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:28:06]line СНО: Общий режим [12:28:06]line Чек 89 20.06.2024 12:28 [12:28:06]line Смена: 389 ФФД: 1.0 [12:28:06]line ЗНМ: 0300000198 [12:28:06]line РНМ: 0000000000092771 [12:28:06]line Версия ККМ: 001 [12:28:06]line Платежная система: О! деньги [12:28:06]line ФМ: 0000000000875083 [12:28:06]line ФД: 111639 [12:28:06]line ФПД: 61728992307462 [12:28:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T122839&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111639&fm=61728992307462&tin=02508201610067®Number=0000000000092771&sum=74036 [12:28:07]written 0, free lines is 4095 [12:28:07]OFD Sender: Processing packet 111639 [packets to send 38, broken 37] [12:28:07]ProducePacketName [12:28:07]name=ofd_packets/00111639 [12:28:07]OFD Sender: To server: pG, [12:28:07]CommunicateWithHost lk.salyk.kg:30040 [12:28:07]ConnectInit lk.salyk.kg [12:28:07]Connected sock=10 [12:28:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 75 03 07 01 15 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 2B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 34 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 77 20 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 17 B4 01 00 35 04 06 00 38 24 66 A8 A9 06 4B 7E D1 8E C1 9D A9 B8 [12:28:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 67 FF 47 00 42 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 17 B4 01 00 F4 03 04 00 C1 B7 73 66 B6 04 01 00 00 E4 CF FA 69 FB C3 92 BB [12:28:07]CommunicateWithHost err = 0 [12:28:07]CheckOFDResponse [12:28:07]1017 (14) - 77093643461234 [12:28:07]1041 (16) - 0000000000875083 [12:28:07]1040 (4) - 111639 [12:28:07]1012 (4) - 20.06.2024 05:01 [12:28:07]1206 (1) - 0 [12:28:07]OFD Sender: Remove packet 111639 [12:28:07]ProducePacketName [12:28:07]name=ofd_packets/00111639 [12:28:07]NVStorageDeleteData [12:28:07]Write to MH i2c: 01 00 00 45 5D A2 [12:28:07]Write i2c OK [12:28:07]MH_I2C_Read... [12:28:07]Read from MH i2c: 01 [12:28:07]MH_I2C_Read... [12:28:07]Read from MH i2c: 01 07 00 [12:28:07]MH_I2C_Read... [12:28:07]Read from MH i2c: 01 07 00 45 5D 00 00 00 00 00 E4 0C 99 [12:28:07]RasterBufferAndPrint [12:28:07]line [12:28:07]line [12:28:07]line [12:28:07]line [12:28:07]line [12:28:07]written 0, free lines is 3307 [12:28:07]MH_Cut [12:28:07]Write to MH i2c: D1 01 00 4C 5D 01 7B [12:28:07]Write i2c OK [12:28:07]MH_I2C_Read... [12:28:07]Read from MH i2c: D1 [12:28:07]MH_I2C_Read... [12:28:07]Read from MH i2c: D1 01 00 [12:28:07]MH_I2C_Read... [12:28:07]Read from MH i2c: D1 01 00 4C 5D 00 7A [12:28:07]Write to MH i2c: 01 00 00 4D 5D AA [12:28:07]Write i2c OK [12:28:07]MH_I2C_Read... [12:28:08]OFD Sender: No OFD packet to send [12:28:08]*** Cut start [12:28:08]*** Partial cut [12:28:08]*** CUTSNS_PIN = 1 [12:28:08]*** CUTSNS_PIN = 0 [12:28:08]*** Brake cut motor [12:28:09]Read from MH i2c: 01 [12:28:09]MH_I2C_Read... [12:28:09]*** Stop cut motor [12:28:09]*** Cut end [12:28:09]Read from MH i2c: 01 07 00 [12:28:09]MH_I2C_Read... [12:28:09]Read from MH i2c: 01 07 00 4D 5D 00 00 00 00 00 FF 0F BF [12:28:09]process_action close_receipt done [12:28:09]requested_data is exist [12:28:09]produce_requested_data [12:28:09]requested_item fm.sn is exist - process it [12:28:09]wFMCommunicate request_size=4 [12:28:09]MH_SAM_APDU [12:28:09]CAPDU: 80 11 00 00 [12:28:09]Write to MH i2c: E2 08 00 4E 5D 80 11 00 00 00 00 00 00 25 [12:28:09]Write i2c OK [12:28:09]MH_I2C_Read... [12:28:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:09]Read from MH i2c: E2 [12:28:09]MH_I2C_Read... [12:28:09]Read from MH i2c: E2 17 00 [12:28:09]MH_I2C_Read... [12:28:09]Read from MH i2c: E2 17 00 4E 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 77 [12:28:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:28:09]wFMCommunicate OK [12:28:09]requested_item fd.num is exist - process it [12:28:09]SAM_PROTO_GetFieldsCounters [12:28:09]wFMCommunicate request_size=4 [12:28:09]MH_SAM_APDU [12:28:09]CAPDU: 80 13 00 00 [12:28:09]Write to MH i2c: E2 08 00 4F 5D 80 13 00 00 00 00 00 00 28 [12:28:09]Write i2c OK [12:28:09]MH_I2C_Read... [12:28:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:09]Read from MH i2c: E2 [12:28:09]MH_I2C_Read... [12:28:09]Read from MH i2c: E2 62 00 [12:28:09]MH_I2C_Read... [12:28:09]Read from MH i2c: E2 62 00 4F 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 17 B4 01 00 0E 04 04 00 85 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 A6 [12:28:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 17 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:28:09]wFMCommunicate OK [12:28:09]SAM_PROTO_GetFieldsCounters done [12:28:09]requested_item shift.num is exist - process it [12:28:09]requested_item shift.opened is exist - process it [12:28:09]req_shift_opened [12:28:09]FM_GetShiftState [12:28:09]SAM_PROTO_GetShiftState [12:28:09]wFMCommunicate request_size=4 [12:28:09]MH_SAM_APDU [12:28:09]CAPDU: 80 13 01 00 [12:28:09]Write to MH i2c: E2 08 00 50 5D 80 13 01 00 00 00 00 00 2A [12:28:09]Write i2c OK [12:28:09]MH_I2C_Read... [12:28:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:09]Read from MH i2c: E2 [12:28:09]MH_I2C_Read... [12:28:09]Read from MH i2c: E2 0E 00 [12:28:09]MH_I2C_Read... [12:28:09]Read from MH i2c: E2 0E 00 50 5D 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 A5 [12:28:09]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:28:09]wFMCommunicate OK [12:28:09]SAM_PROTO_GetShiftState done [12:28:09]FM_GetShiftState done [12:28:09]req_shift_opened done [12:28:09]requested_item shift.open_date is exist - process it [12:28:09]req_shift_open_date [12:28:09]req_shift_open_date done [12:28:09]produce_requested_data done [12:28:09]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111639,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [12:28:09]process_action_free close_receipt [12:28:09]json_value_free [12:28:09]json_value_free done [12:28:09]process_json_proto returns [12:28:09]Send response to host [12:28:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111639,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [12:28:09]free response buf [12:28:09]execute_script done [12:28:09]execute_script returns [12:28:09]free content buf [12:28:09]Sock 7.Close socket [12:28:09]Sock 7.Thread stoped [12:28:13]OFD Sender: No OFD packet to send [12:28:18]OFD Sender: No OFD packet to send [12:28:23]OFD Sender: No OFD packet to send [12:28:28]OFD Sender: No OFD packet to send [12:28:33]OFD Sender: No OFD packet to send [12:28:38]OFD Sender: No OFD packet to send [12:28:43]OFD Sender: No OFD packet to send [12:28:48]OFD Sender: No OFD packet to send [12:28:53]OFD Sender: No OFD packet to send [12:28:58]OFD Sender: No OFD packet to send [12:29:03]OFD Sender: No OFD packet to send [12:29:08]OFD Sender: No OFD packet to send [12:29:13]OFD Sender: No OFD packet to send [12:29:18]OFD Sender: No OFD packet to send [12:29:23]OFD Sender: No OFD packet to send [12:29:28]OFD Sender: No OFD packet to send [12:29:33]OFD Sender: No OFD packet to send [12:29:38]OFD Sender: No OFD packet to send [12:29:43]OFD Sender: No OFD packet to send [12:29:48]OFD Sender: No OFD packet to send [12:29:53]OFD Sender: No OFD packet to send [12:29:58]OFD Sender: No OFD packet to send [12:30:03]OFD Sender: No OFD packet to send [12:30:08]OFD Sender: No OFD packet to send [12:30:13]OFD Sender: No OFD packet to send [12:30:18]OFD Sender: No OFD packet to send [12:30:23]OFD Sender: No OFD packet to send [12:30:28]OFD Sender: No OFD packet to send [12:30:33]OFD Sender: No OFD packet to send [12:30:38]OFD Sender: No OFD packet to send [12:30:43]OFD Sender: No OFD packet to send [12:30:48]OFD Sender: No OFD packet to send [12:30:53]OFD Sender: No OFD packet to send [12:30:58]OFD Sender: No OFD packet to send [12:31:03]OFD Sender: No OFD packet to send [12:31:08]OFD Sender: No OFD packet to send [12:31:13]OFD Sender: No OFD packet to send [12:31:18]OFD Sender: No OFD packet to send [12:31:23]OFD Sender: No OFD packet to send [12:31:28]OFD Sender: No OFD packet to send [12:31:33]OFD Sender: No OFD packet to send [12:31:38]OFD Sender: No OFD packet to send [12:31:43]OFD Sender: No OFD packet to send [12:31:48]OFD Sender: No OFD packet to send [12:31:53]OFD Sender: No OFD packet to send [12:31:58]OFD Sender: No OFD packet to send [12:32:03]OFD Sender: No OFD packet to send [12:32:08]OFD Sender: No OFD packet to send [12:32:13]OFD Sender: No OFD packet to send [12:32:18]OFD Sender: No OFD packet to send [12:32:23]OFD Sender: No OFD packet to send [12:32:28]OFD Sender: No OFD packet to send [12:32:33]OFD Sender: No OFD packet to send [12:32:38]OFD Sender: No OFD packet to send [12:32:43]OFD Sender: No OFD packet to send [12:32:48]OFD Sender: No OFD packet to send [12:32:53]OFD Sender: No OFD packet to send [12:32:58]OFD Sender: No OFD packet to send [12:33:03]OFD Sender: No OFD packet to send [12:33:08]OFD Sender: No OFD packet to send [12:33:13]OFD Sender: No OFD packet to send [12:33:18]OFD Sender: No OFD packet to send [12:33:23]OFD Sender: No OFD packet to send [12:33:28]OFD Sender: No OFD packet to send [12:33:33]OFD Sender: No OFD packet to send [12:33:38]OFD Sender: No OFD packet to send [12:33:43]OFD Sender: No OFD packet to send [12:33:48]OFD Sender: No OFD packet to send [12:33:53]OFD Sender: No OFD packet to send [12:33:58]OFD Sender: No OFD packet to send [12:34:03]OFD Sender: No OFD packet to send [12:34:08]OFD Sender: No OFD packet to send [12:34:13]OFD Sender: No OFD packet to send [12:34:18]OFD Sender: No OFD packet to send [12:34:23]OFD Sender: No OFD packet to send [12:34:28]OFD Sender: No OFD packet to send [12:34:33]OFD Sender: No OFD packet to send [12:34:38]OFD Sender: No OFD packet to send [12:34:43]OFD Sender: No OFD packet to send [12:34:48]OFD Sender: No OFD packet to send [12:34:53]OFD Sender: No OFD packet to send [12:34:58]OFD Sender: No OFD packet to send [12:35:03]OFD Sender: No OFD packet to send [12:35:08]OFD Sender: No OFD packet to send [12:35:13]OFD Sender: No OFD packet to send [12:35:18]OFD Sender: No OFD packet to send [12:35:23]OFD Sender: No OFD packet to send [12:35:28]OFD Sender: No OFD packet to send [12:35:33]OFD Sender: No OFD packet to send [12:35:38]OFD Sender: No OFD packet to send [12:35:43]OFD Sender: No OFD packet to send [12:35:48]OFD Sender: No OFD packet to send [12:35:53]OFD Sender: No OFD packet to send [12:35:58]OFD Sender: No OFD packet to send [12:36:03]OFD Sender: No OFD packet to send [12:36:08]OFD Sender: No OFD packet to send [12:36:13]OFD Sender: No OFD packet to send [12:36:18]OFD Sender: No OFD packet to send [12:36:23]OFD Sender: No OFD packet to send [12:36:28]OFD Sender: No OFD packet to send [12:36:33]OFD Sender: No OFD packet to send [12:36:38]OFD Sender: No OFD packet to send [12:36:43]OFD Sender: No OFD packet to send [12:36:48]OFD Sender: No OFD packet to send [12:36:53]OFD Sender: No OFD packet to send [12:36:58]OFD Sender: No OFD packet to send [12:37:03]OFD Sender: No OFD packet to send [12:37:08]OFD Sender: No OFD packet to send [12:37:13]OFD Sender: No OFD packet to send [12:37:18]OFD Sender: No OFD packet to send [12:37:23]OFD Sender: No OFD packet to send [12:37:28]OFD Sender: No OFD packet to send [12:37:33]OFD Sender: No OFD packet to send [12:37:38]OFD Sender: No OFD packet to send [12:37:43]OFD Sender: No OFD packet to send [12:37:48]OFD Sender: No OFD packet to send [12:37:53]OFD Sender: No OFD packet to send [12:37:58]OFD Sender: No OFD packet to send [12:38:03]OFD Sender: No OFD packet to send [12:38:08]OFD Sender: No OFD packet to send [12:38:13]OFD Sender: No OFD packet to send [12:38:18]accept exits with 9 [12:38:18]New connection [12:38:18]New thread 3067465060 created [12:38:18]Thread 3067321700 joined [12:38:18]Waiting for new connection... [12:38:18] Sock 9.Parse request [12:38:18]Sock 9.Check first char [12:38:18]Sock 9.First char is OK [12:38:18]request: POST /json_proto HTTP/1.0 [12:38:18]Method: POST [12:38:18]URL: /json_proto [12:38:18]Method is POST - this is cgi request [12:38:18]url: /json_proto [12:38:18]query_string will be loaded in cgi processing [12:38:18]execute_cgi json_proto POST (null) [12:38:18]execute_cgi path=json_proto method=POST [12:38:18]POST find Content-Length [12:38:18]Host: 172.17.59.68:8080 [12:38:18]Content-Length: 808 [12:38:18]Content-Type: application/json [12:38:18] [12:38:18]POST finish read [12:38:18]Found Content-Length = 808 [12:38:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 37.660, "sum" : 2500.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:18]execute_script... [12:38: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)320240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 37.660, "sum" : 2500.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:18]POST & json_proto [12:38:18]process_json_proto [12:38:18]json parsed OK: [12:38:18]protocol is kg_v1.0 [12:38:18]action value=close_receipt [12:38:18]process_action close_receipt [12:38:18]cmd_close_receipt [12:38:18]MH_GetDate [12:38:18]Write to MH i2c: F0 00 00 51 5D 9D [12:38:18]Write i2c OK [12:38:18]MH_I2C_Read... [12:38:18]Read from MH i2c: F0 [12:38:18]MH_I2C_Read... [12:38:18]Read from MH i2c: F0 09 00 [12:38:18]MH_I2C_Read... [12:38:18]Read from MH i2c: F0 09 00 51 5D 00 DC 22 74 66 BC EC 60 65 EB [12:38:18]GetLastDocTimeStamp 1718886519 [12:38:18]current date 1718887132 [12:38:18]FM_GetShiftState [12:38:18]SAM_PROTO_GetShiftState [12:38:18]wFMCommunicate request_size=4 [12:38:18]MH_SAM_APDU [12:38:18]CAPDU: 80 13 01 00 [12:38:18]Write to MH i2c: E2 08 00 52 5D 80 13 01 00 00 00 00 00 2C [12:38:18]Write i2c OK [12:38:18]MH_I2C_Read... [12:38:18]OFD Sender: No OFD packet to send [12:38:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:18]Read from MH i2c: E2 [12:38:18]MH_I2C_Read... [12:38:18]Read from MH i2c: E2 0E 00 [12:38:18]MH_I2C_Read... [12:38:18]Read from MH i2c: E2 0E 00 52 5D 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 A7 [12:38:18]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:38:18]wFMCommunicate OK [12:38:18]SAM_PROTO_GetShiftState done [12:38:18]FM_GetShiftState done [12:38:18]opened in 1718847247 [12:38:18]opened+sec_in_day 1718933647 [12:38:18]quantity*price = 250062 [12:38:18]sum+1 = 250063 [12:38:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.62 НСП 1% : 22.13 НДС 12% : 265.55 Наличными: 0.00 Безнал.: 2500.62 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 90 20.06.2024 12:38 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111640 ФПД: 68994388890732 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T123852&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111640&fm=68994388890732&tin=02508201610067®Number=0000000000092771&sum=250062 [12:38:19]StoreToDocumentArchive [12:38:19]shift 389 fd 111640 [12:38:19]save to /storage/0389/doc_00111640 [12:38:19]save last doc name /storage/0389/doc_00111640 to /storage/kkm_last_doc_name [12:38:19]save OK [12:38:19]Clear old archive folders... [12:38:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:38:19]tlvbuf is 00F00230 [12:38:19]SAM_PROTO_ClearQueue [12:38:19]wFMCommunicate request_size=4 [12:38:19]MH_SAM_APDU [12:38:19]CAPDU: 80 09 00 00 [12:38:19]Write to MH i2c: E2 08 00 5F 5D 80 09 00 00 00 00 00 00 2E [12:38:19]Write i2c OK [12:38:19]MH_I2C_Read... [12:38:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:19]Read from MH i2c: E2 [12:38:19]MH_I2C_Read... [12:38:19]Read from MH i2c: E2 03 00 [12:38:19]MH_I2C_Read... [12:38:19]Read from MH i2c: E2 03 00 5F 5D 00 90 00 30 [12:38:19]RAPDU: 90 00 [12:38:19]wFMCommunicate OK [12:38:19]SAM_PROTO_ClearQueue done [12:38:19]KKMCreateOFDPacket [12:38:19]OFDProtocolAddRootSTLVToBuf [12:38:19]FM_MakeSignedData [12:38:19]FM_MakeSignedData [12:38:19]SAM_PROTO_SignData [12:38:19]wFMCommunicate request_size=4 [12:38:19]MH_SAM_APDU [12:38:19]CAPDU: 80 0D 01 02 [12:38:19]Write to MH i2c: E2 08 00 60 5D 80 0D 01 02 00 00 00 00 36 [12:38:19]Write i2c OK [12:38:19]MH_I2C_Read... [12:38:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:19]Read from MH i2c: E2 [12:38:19]MH_I2C_Read... [12:38:19]Read from MH i2c: E2 03 00 [12:38:19]MH_I2C_Read... [12:38:19]Read from MH i2c: E2 03 00 60 5D 00 90 00 31 [12:38:19]RAPDU: 90 00 [12:38:19]wFMCommunicate OK [12:38:19]wFMCommunicate request_size=255 [12:38:19]MH_SAM_APDU [12:38: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 1C 93 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CE D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CE 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 BB 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CE D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 DC 22 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 18 B4 01 00 35 04 06 00 3E [12:38:19]Write to MH i2c: E2 02 01 61 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 93 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CE D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CE 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 BB 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CE D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 DC 22 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 18 B4 01 00 35 04 06 00 3E 00 00 6D [12:38:19]Write i2c OK [12:38:19]MH_I2C_Read... [12:38:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:20]Read from MH i2c: E2 [12:38:20]MH_I2C_Read... [12:38:20]Read from MH i2c: E2 03 00 [12:38:20]MH_I2C_Read... [12:38:20]Read from MH i2c: E2 03 00 61 5D 00 90 00 32 [12:38:20]RAPDU: 90 00 [12:38:20]wFMCommunicate OK [12:38:20]wFMCommunicate request_size=10 [12:38:20]MH_SAM_APDU [12:38:20]CAPDU: 80 0D 02 02 05 C0 02 0A 94 6C [12:38:20]Write to MH i2c: E2 0D 00 62 5D 80 0D 02 02 05 00 C0 02 0A 94 6C 00 00 0F [12:38:20]Write i2c OK [12:38:20]MH_I2C_Read... [12:38:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:20]Read from MH i2c: E2 [12:38:20]MH_I2C_Read... [12:38:20]Read from MH i2c: E2 03 00 [12:38:20]MH_I2C_Read... [12:38:20]Read from MH i2c: E2 03 00 62 5D 00 90 00 33 [12:38:20]RAPDU: 90 00 [12:38:20]wFMCommunicate OK [12:38:20]wFMCommunicate request_size=4 [12:38:20]MH_SAM_APDU [12:38:20]CAPDU: 80 0D 03 02 [12:38:20]Write to MH i2c: E2 08 00 63 5D 80 0D 03 02 00 00 00 00 3B [12:38:20]Write i2c OK [12:38:20]MH_I2C_Read... [12:38:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:20]Read from MH i2c: E2 [12:38:20]MH_I2C_Read... [12:38:20]Read from MH i2c: E2 0B 00 [12:38:20]MH_I2C_Read... [12:38:20]Read from MH i2c: E2 0B 00 63 5D 00 6E A9 44 33 C5 0A 55 AD 90 00 9B [12:38:20]RAPDU: 6E A9 44 33 C5 0A 55 AD 90 00 [12:38:20]wFMCommunicate OK [12:38:20]SAM_PROTO_SignData done [12:38:20]FM_MakeSignedData done [12:38:20]CreateOFDProtocolMessage [12:38:20]wFMCommunicate request_size=4 [12:38:20]MH_SAM_APDU [12:38:20]CAPDU: 80 11 00 00 [12:38:20]Write to MH i2c: E2 08 00 64 5D 80 11 00 00 00 00 00 00 3B [12:38:20]Write i2c OK [12:38:20]MH_I2C_Read... [12:38:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:20]Read from MH i2c: E2 [12:38:20]MH_I2C_Read... [12:38:20]Read from MH i2c: E2 17 00 [12:38:20]MH_I2C_Read... [12:38:20]Read from MH i2c: E2 17 00 64 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8D [12:38:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:38:20]wFMCommunicate OK [12:38:20]CreateOFDProtocolMessage done [12:38:20]OFDSenderStorePacket 111640 [12:38:20]StoreOFDPacket docnum=111640 [12:38:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F2 77 07 01 6B 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 1C 93 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CE D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CE 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 BB 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CE D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 DC 22 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 18 B4 01 00 35 04 06 00 3E C0 02 0A 94 6C 6E A9 44 33 C5 0A 55 AD [12:38:20]CheckFolder [12:38:20]dirname=/storage/ofd_packets [12:38:20]CheckFolder done [12:38:20]ProducePacketName [12:38:20]name=ofd_packets/00111640 [12:38:20]NVStorageSaveData ofd_packets/00111640 [12:38:20]File name is /storage/ofd_packets/00111640 [12:38:20]Write 301 bytes [12:38:20]NVStorageSaveData done [12:38:20]OFDSenderStorePacket done [12:38:20]KKMCreateOFDPacket done [12:38:20]NVStorageSaveData kkm_last_timestamp [12:38:20]File name is /storage/kkm_last_timestamp [12:38:20]Write 4 bytes [12:38:20]NVStorageSaveData done [12:38:20]ExternCall_PrintAddStr [12:38:20]wPrintStart [12:38:20]Write to MH i2c: 01 00 00 65 5D C2 [12:38:20]Write i2c OK [12:38:20]MH_I2C_Read... [12:38:20]Read from MH i2c: 01 [12:38:20]MH_I2C_Read... [12:38:20]Read from MH i2c: 01 07 00 [12:38:20]MH_I2C_Read... [12:38:20]Read from MH i2c: 01 07 00 65 5D 00 00 00 00 00 FF 0F D7 [12:38:20]RasterBufferAndPrint [12:38:20]line Счет N : (1)320240 [12:38:20]line ИНН: 02508201610067 [12:38:20]line Контрольно-Кассовый Чек [12:38:20]line ПРОДАЖА [12:38:20]line ТРК (МРК, ГНК) : 11 [12:38:20]line Товар: 2710124130 [12:38:20]line Аи-92-К-5 [12:38:20]line 37.660 * 66.40 [12:38:20]line = 2500.62 [12:38:20]line НДС 12% НСП 1% [12:38:20]line > о реализуемом товаре [12:38:20]line ИТОГО: 2500.62 [12:38:20]line НСП 1% : 22.13 [12:38:20]line НДС 12% : 265.55 [12:38:20]line Наличными: 0.00 [12:38:20]line Безнал.: 2500.62 [12:38:20]line Место: АЗС № 65 "Партнер Нефть" [12:38:20]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:38:20]line СНО: Общий режим [12:38:20]line Чек 90 20.06.2024 12:38 [12:38:20]line Смена: 389 ФФД: 1.0 [12:38:20]line ЗНМ: 0300000198 [12:38:20]line РНМ: 0000000000092771 [12:38:20]line Версия ККМ: 001 [12:38:20]line Платежная система: О! деньги [12:38:20]line ФМ: 0000000000875083 [12:38:20]line ФД: 111640 [12:38:20]line ФПД: 68994388890732 [12:38:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T123852&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111640&fm=68994388890732&tin=02508201610067®Number=0000000000092771&sum=250062 [12:38:20]written 0, free lines is 4095 [12:38:20]OFD Sender: Processing packet 111640 [packets to send 38, broken 37] [12:38:20]ProducePacketName [12:38:20]name=ofd_packets/00111640 [12:38:20]OFD Sender: To server: pG, [12:38:20]CommunicateWithHost lk.salyk.kg:30040 [12:38:20]ConnectInit lk.salyk.kg [12:38:20]Connected sock=11 [12:38:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F2 77 07 01 6B 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 1C 93 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CE D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CE 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 BB 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CE D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 DC 22 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 18 B4 01 00 35 04 06 00 3E C0 02 0A 94 6C 6E A9 44 33 C5 0A 55 AD [12:38:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 37 FC 47 00 30 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 35 30 38 33 10 04 04 00 18 B4 01 00 F4 03 04 00 26 BA 73 66 B6 04 01 00 00 15 BE 84 F9 18 CE EE AC [12:38:20]CommunicateWithHost err = 0 [12:38:20]CheckOFDResponse [12:38:20]1017 (14) - 77093643461234 [12:38:20]1041 (16) - 0000000000875083 [12:38:20]1040 (4) - 111640 [12:38:20]1012 (4) - 20.06.2024 05:12 [12:38:20]1206 (1) - 0 [12:38:20]OFD Sender: Remove packet 111640 [12:38:20]ProducePacketName [12:38:20]name=ofd_packets/00111640 [12:38:20]NVStorageDeleteData [12:38:20]Write to MH i2c: 01 00 00 8F 5D EC [12:38:20]Write i2c OK [12:38:20]MH_I2C_Read... [12:38:20]Read from MH i2c: 01 [12:38:20]MH_I2C_Read... [12:38:20]Read from MH i2c: 01 07 00 [12:38:20]MH_I2C_Read... [12:38:20]Read from MH i2c: 01 07 00 8F 5D 00 00 00 00 00 EC 0C EB [12:38:20]RasterBufferAndPrint [12:38:20]line [12:38:20]line [12:38:20]line [12:38:20]line [12:38:20]line [12:38:20]written 0, free lines is 3312 [12:38:20]MH_Cut [12:38:20]Write to MH i2c: D1 01 00 96 5D 01 C5 [12:38:20]Write i2c OK [12:38:20]MH_I2C_Read... [12:38:20]Read from MH i2c: D1 [12:38:20]MH_I2C_Read... [12:38:20]Read from MH i2c: D1 01 00 [12:38:20]MH_I2C_Read... [12:38:20]Read from MH i2c: D1 01 00 96 5D 00 C4 [12:38:20]Write to MH i2c: 01 00 00 97 5D F4 [12:38:20]Write i2c OK [12:38:20]MH_I2C_Read... [12:38:21]OFD Sender: No OFD packet to send [12:38:21]*** Cut start [12:38:21]*** Partial cut [12:38:21]*** CUTSNS_PIN = 1 [12:38:21]*** CUTSNS_PIN = 0 [12:38:21]*** Brake cut motor [12:38:22]Read from MH i2c: 01 [12:38:22]MH_I2C_Read... [12:38:22]*** Stop cut motor [12:38:22]*** Cut end [12:38:22]Read from MH i2c: 01 07 00 [12:38:22]MH_I2C_Read... [12:38:22]Read from MH i2c: 01 07 00 97 5D 00 00 00 00 00 FF 0F 09 [12:38:22]process_action close_receipt done [12:38:22]requested_data is exist [12:38:22]produce_requested_data [12:38:22]requested_item fm.sn is exist - process it [12:38:22]wFMCommunicate request_size=4 [12:38:22]MH_SAM_APDU [12:38:22]CAPDU: 80 11 00 00 [12:38:22]Write to MH i2c: E2 08 00 98 5D 80 11 00 00 00 00 00 00 6F [12:38:22]Write i2c OK [12:38:22]MH_I2C_Read... [12:38:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:22]Read from MH i2c: E2 [12:38:22]MH_I2C_Read... [12:38:22]Read from MH i2c: E2 17 00 [12:38:22]MH_I2C_Read... [12:38:22]Read from MH i2c: E2 17 00 98 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C1 [12:38:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:38:22]wFMCommunicate OK [12:38:22]requested_item fd.num is exist - process it [12:38:22]SAM_PROTO_GetFieldsCounters [12:38:22]wFMCommunicate request_size=4 [12:38:22]MH_SAM_APDU [12:38:22]CAPDU: 80 13 00 00 [12:38:22]Write to MH i2c: E2 08 00 99 5D 80 13 00 00 00 00 00 00 72 [12:38:22]Write i2c OK [12:38:22]MH_I2C_Read... [12:38:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:22]Read from MH i2c: E2 [12:38:22]MH_I2C_Read... [12:38:22]Read from MH i2c: E2 62 00 [12:38:22]MH_I2C_Read... [12:38:22]Read from MH i2c: E2 62 00 99 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 18 B4 01 00 0E 04 04 00 85 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 F4 [12:38:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 18 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:38:22]wFMCommunicate OK [12:38:22]SAM_PROTO_GetFieldsCounters done [12:38:22]requested_item shift.num is exist - process it [12:38:22]requested_item shift.opened is exist - process it [12:38:22]req_shift_opened [12:38:22]FM_GetShiftState [12:38:22]SAM_PROTO_GetShiftState [12:38:22]wFMCommunicate request_size=4 [12:38:22]MH_SAM_APDU [12:38:22]CAPDU: 80 13 01 00 [12:38:22]Write to MH i2c: E2 08 00 9A 5D 80 13 01 00 00 00 00 00 74 [12:38:22]Write i2c OK [12:38:22]MH_I2C_Read... [12:38:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:22]Read from MH i2c: E2 [12:38:22]MH_I2C_Read... [12:38:22]Read from MH i2c: E2 0E 00 [12:38:22]MH_I2C_Read... [12:38:22]Read from MH i2c: E2 0E 00 9A 5D 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 EF [12:38:22]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:38:22]wFMCommunicate OK [12:38:22]SAM_PROTO_GetShiftState done [12:38:22]FM_GetShiftState done [12:38:22]req_shift_opened done [12:38:22]requested_item shift.open_date is exist - process it [12:38:22]req_shift_open_date [12:38:22]req_shift_open_date done [12:38:22]produce_requested_data done [12:38:22]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111640,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [12:38:22]process_action_free close_receipt [12:38:22]json_value_free [12:38:22]json_value_free done [12:38:22]process_json_proto returns [12:38:22]Send response to host [12:38:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111640,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [12:38:22]free response buf [12:38:22]execute_script done [12:38:22]execute_script returns [12:38:22]free content buf [12:38:22]Sock 9.Close socket [12:38:22]Sock 9.Thread stoped [12:38:26]OFD Sender: No OFD packet to send [12:38:31]OFD Sender: No OFD packet to send [12:38:36]OFD Sender: No OFD packet to send [12:38:41]OFD Sender: No OFD packet to send [12:38:46]OFD Sender: No OFD packet to send [12:38:51]OFD Sender: No OFD packet to send [12:38:56]OFD Sender: No OFD packet to send [12:39:01]OFD Sender: No OFD packet to send [12:39:03]accept exits with 7 [12:39:03]New connection [12:39:03]New thread 3067321700 created [12:39:03]Thread 3067465060 joined [12:39:03]Waiting for new connection... [12:39:03] Sock 7.Parse request [12:39:03]Sock 7.Check first char [12:39:03]Sock 7.First char is OK [12:39:03]request: POST /json_proto HTTP/1.0 [12:39:03]Method: POST [12:39:03]URL: /json_proto [12:39:03]Method is POST - this is cgi request [12:39:03]url: /json_proto [12:39:03]query_string will be loaded in cgi processing [12:39:03]execute_cgi json_proto POST (null) [12:39:03]execute_cgi path=json_proto method=POST [12:39:03]POST find Content-Length [12:39:03]Host: 172.17.59.68:8080 [12:39:03]Content-Length: 677 [12:39:03]Content-Type: application/json [12:39:03] [12:39:03]POST finish read [12:39:03]Found Content-Length = 677 [12:39:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:03]execute_script... [12:39: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)320241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:03]POST & json_proto [12:39:03]process_json_proto [12:39:03]json parsed OK: [12:39:03]protocol is kg_v1.0 [12:39:03]action value=close_receipt [12:39:03]process_action close_receipt [12:39:03]cmd_close_receipt [12:39:03]MH_GetDate [12:39:03]Write to MH i2c: F0 00 00 9B 5D E7 [12:39:03]Write i2c OK [12:39:03]MH_I2C_Read... [12:39:03]Read from MH i2c: F0 [12:39:03]MH_I2C_Read... [12:39:03]Read from MH i2c: F0 09 00 [12:39:03]MH_I2C_Read... [12:39:03]Read from MH i2c: F0 09 00 9B 5D 00 09 23 74 66 BC EC 60 65 63 [12:39:03]GetLastDocTimeStamp 1718887132 [12:39:03]current date 1718887177 [12:39:03]FM_GetShiftState [12:39:03]SAM_PROTO_GetShiftState [12:39:03]wFMCommunicate request_size=4 [12:39:03]MH_SAM_APDU [12:39:03]CAPDU: 80 13 01 00 [12:39:03]Write to MH i2c: E2 08 00 9C 5D 80 13 01 00 00 00 00 00 76 [12:39:03]Write i2c OK [12:39:03]MH_I2C_Read... [12:39:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:03]Read from MH i2c: E2 [12:39:03]MH_I2C_Read... [12:39:03]Read from MH i2c: E2 0E 00 [12:39:03]MH_I2C_Read... [12:39:03]Read from MH i2c: E2 0E 00 9C 5D 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 F1 [12:39:03]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:39:03]wFMCommunicate OK [12:39:03]SAM_PROTO_GetShiftState done [12:39:03]FM_GetShiftState done [12:39:03]opened in 1718847247 [12:39:03]opened+sec_in_day 1718933647 [12:39:03]quantity*price = 50065 [12:39:03]sum+1 = 50067 [12:39:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 91 20.06.2024 12:39 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111641 ФПД: 208411200530424 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T123937&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111641&fm=208411200530424&tin=02508201610067®Number=0000000000092771&sum=50000 [12:39:04]StoreToDocumentArchive [12:39:04]shift 389 fd 111641 [12:39:04]save to /storage/0389/doc_00111641 [12:39:04]save last doc name /storage/0389/doc_00111641 to /storage/kkm_last_doc_name [12:39:04]save OK [12:39:04]Clear old archive folders... [12:39:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:39:04]tlvbuf is 010356D0 [12:39:04]SAM_PROTO_ClearQueue [12:39:04]wFMCommunicate request_size=4 [12:39:04]MH_SAM_APDU [12:39:04]CAPDU: 80 09 00 00 [12:39:04]Write to MH i2c: E2 08 00 A9 5D 80 09 00 00 00 00 00 00 78 [12:39:04]Write i2c OK [12:39:04]MH_I2C_Read... [12:39:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:39:04]Read from MH i2c: E2 [12:39:04]MH_I2C_Read... [12:39:04]Read from MH i2c: E2 03 00 [12:39:04]MH_I2C_Read... [12:39:04]Read from MH i2c: E2 03 00 A9 5D 00 90 00 7A [12:39:04]RAPDU: 90 00 [12:39:04]wFMCommunicate OK [12:39:04]SAM_PROTO_ClearQueue done [12:39:04]KKMCreateOFDPacket [12:39:04]OFDProtocolAddRootSTLVToBuf [12:39:04]FM_MakeSignedData [12:39:04]FM_MakeSignedData [12:39:04]SAM_PROTO_SignData [12:39:04]wFMCommunicate request_size=4 [12:39:04]MH_SAM_APDU [12:39:04]CAPDU: 80 0D 01 02 [12:39:04]Write to MH i2c: E2 08 00 AA 5D 80 0D 01 02 00 00 00 00 80 [12:39:04]Write i2c OK [12:39:04]MH_I2C_Read... [12:39:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:39:04]Read from MH i2c: E2 [12:39:04]MH_I2C_Read... [12:39:04]Read from MH i2c: E2 03 00 [12:39:04]MH_I2C_Read... [12:39:04]Read from MH i2c: E2 03 00 AA 5D 00 90 00 7B [12:39:04]RAPDU: 90 00 [12:39:04]wFMCommunicate OK [12:39:04]wFMCommunicate request_size=255 [12:39:04]MH_SAM_APDU [12:39:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 09 23 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 19 B4 01 00 35 04 06 00 BD [12:39:04]Write to MH i2c: E2 02 01 AB 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 09 23 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 19 B4 01 00 35 04 06 00 BD 00 00 A6 [12:39:04]Write i2c OK [12:39:04]MH_I2C_Read... [12:39:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:04]Read from MH i2c: E2 [12:39:04]MH_I2C_Read... [12:39:04]Read from MH i2c: E2 03 00 [12:39:04]MH_I2C_Read... [12:39:04]Read from MH i2c: E2 03 00 AB 5D 00 90 00 7C [12:39:04]RAPDU: 90 00 [12:39:04]wFMCommunicate OK [12:39:04]wFMCommunicate request_size=10 [12:39:04]MH_SAM_APDU [12:39:04]CAPDU: 80 0D 02 02 05 8C 83 93 27 F8 [12:39:04]Write to MH i2c: E2 0D 00 AC 5D 80 0D 02 02 05 00 8C 83 93 27 F8 00 00 4E [12:39:04]Write i2c OK [12:39:04]MH_I2C_Read... [12:39:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:04]Read from MH i2c: E2 [12:39:04]MH_I2C_Read... [12:39:04]Read from MH i2c: E2 03 00 [12:39:04]MH_I2C_Read... [12:39:04]Read from MH i2c: E2 03 00 AC 5D 00 90 00 7D [12:39:04]RAPDU: 90 00 [12:39:04]wFMCommunicate OK [12:39:04]wFMCommunicate request_size=4 [12:39:04]MH_SAM_APDU [12:39:04]CAPDU: 80 0D 03 02 [12:39:04]Write to MH i2c: E2 08 00 AD 5D 80 0D 03 02 00 00 00 00 85 [12:39:04]Write i2c OK [12:39:04]MH_I2C_Read... [12:39:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:39:04]Read from MH i2c: E2 [12:39:04]MH_I2C_Read... [12:39:04]Read from MH i2c: E2 0B 00 [12:39:04]MH_I2C_Read... [12:39:04]Read from MH i2c: E2 0B 00 AD 5D 00 78 EA 31 35 93 EE AC 6E 90 00 E9 [12:39:04]RAPDU: 78 EA 31 35 93 EE AC 6E 90 00 [12:39:04]wFMCommunicate OK [12:39:04]SAM_PROTO_SignData done [12:39:04]FM_MakeSignedData done [12:39:04]CreateOFDProtocolMessage [12:39:04]wFMCommunicate request_size=4 [12:39:04]MH_SAM_APDU [12:39:04]CAPDU: 80 11 00 00 [12:39:04]Write to MH i2c: E2 08 00 AE 5D 80 11 00 00 00 00 00 00 85 [12:39:04]Write i2c OK [12:39:04]MH_I2C_Read... [12:39:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:04]Read from MH i2c: E2 [12:39:04]MH_I2C_Read... [12:39:04]Read from MH i2c: E2 17 00 [12:39:04]MH_I2C_Read... [12:39:04]Read from MH i2c: E2 17 00 AE 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D7 [12:39:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:39:04]wFMCommunicate OK [12:39:04]CreateOFDProtocolMessage done [12:39:04]OFDSenderStorePacket 111641 [12:39:04]StoreOFDPacket docnum=111641 [12:39:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7E 68 07 01 89 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 09 23 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 19 B4 01 00 35 04 06 00 BD 8C 83 93 27 F8 78 EA 31 35 93 EE AC 6E [12:39:04]CheckFolder [12:39:04]dirname=/storage/ofd_packets [12:39:04]CheckFolder done [12:39:04]ProducePacketName [12:39:04]name=ofd_packets/00111641 [12:39:04]NVStorageSaveData ofd_packets/00111641 [12:39:04]File name is /storage/ofd_packets/00111641 [12:39:04]Write 301 bytes [12:39:04]NVStorageSaveData done [12:39:04]OFDSenderStorePacket done [12:39:04]KKMCreateOFDPacket done [12:39:04]NVStorageSaveData kkm_last_timestamp [12:39:04]File name is /storage/kkm_last_timestamp [12:39:04]Write 4 bytes [12:39:04]NVStorageSaveData done [12:39:04]ExternCall_PrintAddStr [12:39:04]wPrintStart [12:39:04]Write to MH i2c: 01 00 00 AF 5D 0C [12:39:04]Write i2c OK [12:39:04]MH_I2C_Read... [12:39:04]Read from MH i2c: 01 [12:39:04]MH_I2C_Read... [12:39:04]Read from MH i2c: 01 07 00 [12:39:04]MH_I2C_Read... [12:39:04]Read from MH i2c: 01 07 00 AF 5D 00 00 00 00 00 FF 0F 21 [12:39:04]RasterBufferAndPrint [12:39:04]line Счет N : (1)320241 [12:39:04]line ИНН: 02508201610067 [12:39:04]line Контрольно-Кассовый Чек [12:39:04]line ПРОДАЖА [12:39:04]line ТРК (МРК, ГНК) : 11 [12:39:04]line Товар: 2710124130 [12:39:04]line Аи-92-К-5 [12:39:04]line 7.540 * 66.40 [12:39:04]line = 500.66 [12:39:04]line НДС 12% НСП 1% [12:39:04]line > о реализуемом товаре [12:39:04]line ОКРУГЛЕНИЕ: -0.66 [12:39:04]line ИТОГО: 500.00 [12:39:04]line Внесено: 500.00 [12:39:04]line СДАЧА: 0.00 [12:39:04]line НСП 1% : 4.43 [12:39:04]line НДС 12% : 53.17 [12:39:04]line Наличными: 500.00 [12:39:04]line Безнал.: 0.00 [12:39:04]line Место: АЗС № 65 "Партнер Нефть" [12:39:04]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:39:04]line СНО: Общий режим [12:39:04]line Чек 91 20.06.2024 12:39 [12:39:04]line Смена: 389 ФФД: 1.0 [12:39:04]line ЗНМ: 0300000198 [12:39:04]line РНМ: 0000000000092771 [12:39:04]line Версия ККМ: 001 [12:39:04]line ФМ: 0000000000875083 [12:39:04]line ФД: 111641 [12:39:04]line ФПД: 208411200530424 [12:39:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T123937&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111641&fm=208411200530424&tin=02508201610067®Number=0000000000092771&sum=50000 [12:39:04]written 0, free lines is 4095 [12:39:04]OFD Sender: Processing packet 111641 [packets to send 38, broken 37] [12:39:04]ProducePacketName [12:39:04]name=ofd_packets/00111641 [12:39:04]OFD Sender: To server: pG, [12:39:04]CommunicateWithHost lk.salyk.kg:30040 [12:39:04]ConnectInit lk.salyk.kg [12:39:04]Connected sock=10 [12:39:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7E 68 07 01 89 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 09 23 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 19 B4 01 00 35 04 06 00 BD 8C 83 93 27 F8 78 EA 31 35 93 EE AC 6E [12:39:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 DB 7F 47 00 E1 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 19 B4 01 00 F4 03 04 00 53 BA 73 66 B6 04 01 00 00 47 44 7C 59 A7 C8 C0 53 [12:39:05]CommunicateWithHost err = 0 [12:39:05]CheckOFDResponse [12:39:05]1017 (14) - 77093643461234 [12:39:05]1041 (16) - 0000000000875083 [12:39:05]1040 (4) - 111641 [12:39:05]1012 (4) - 20.06.2024 05:12 [12:39:05]1206 (1) - 0 [12:39:05]OFD Sender: Remove packet 111641 [12:39:05]ProducePacketName [12:39:05]name=ofd_packets/00111641 [12:39:05]NVStorageDeleteData [12:39:05]Write to MH i2c: 01 00 00 DA 5D 37 [12:39:05]Write i2c OK [12:39:05]MH_I2C_Read... [12:39:05]Read from MH i2c: 01 [12:39:05]MH_I2C_Read... [12:39:05]Read from MH i2c: 01 07 00 [12:39:05]MH_I2C_Read... [12:39:05]Read from MH i2c: 01 07 00 DA 5D 00 00 00 00 00 CC 0C 16 [12:39:05]RasterBufferAndPrint [12:39:05]line [12:39:05]line [12:39:05]line [12:39:05]line [12:39:05]line [12:39:05]written 0, free lines is 3284 [12:39:05]MH_Cut [12:39:05]Write to MH i2c: D1 01 00 E1 5D 01 10 [12:39:05]Write i2c OK [12:39:05]MH_I2C_Read... [12:39:05]Read from MH i2c: D1 [12:39:05]MH_I2C_Read... [12:39:05]Read from MH i2c: D1 01 00 [12:39:05]MH_I2C_Read... [12:39:05]Read from MH i2c: D1 01 00 E1 5D 00 0F [12:39:05]Write to MH i2c: 01 00 00 E2 5D 3F [12:39:05]Write i2c OK [12:39:05]MH_I2C_Read... [12:39:05]OFD Sender: No OFD packet to send [12:39:06]*** Cut start [12:39:06]*** Partial cut [12:39:06]*** CUTSNS_PIN = 1 [12:39:06]*** CUTSNS_PIN = 0 [12:39:06]*** Brake cut motor [12:39:06]Read from MH i2c: 01 [12:39:06]MH_I2C_Read... [12:39:06]*** Stop cut motor [12:39:06]*** Cut end [12:39:06]Read from MH i2c: 01 07 00 [12:39:06]MH_I2C_Read... [12:39:06]Read from MH i2c: 01 07 00 E2 5D 00 00 00 00 00 FF 0F 54 [12:39:06]process_action close_receipt done [12:39:06]requested_data is exist [12:39:06]produce_requested_data [12:39:06]requested_item fm.sn is exist - process it [12:39:06]wFMCommunicate request_size=4 [12:39:06]MH_SAM_APDU [12:39:06]CAPDU: 80 11 00 00 [12:39:06]Write to MH i2c: E2 08 00 E3 5D 80 11 00 00 00 00 00 00 BA [12:39:06]Write i2c OK [12:39:06]MH_I2C_Read... [12:39:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:06]Read from MH i2c: E2 [12:39:06]MH_I2C_Read... [12:39:06]Read from MH i2c: E2 17 00 [12:39:06]MH_I2C_Read... [12:39:06]Read from MH i2c: E2 17 00 E3 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0C [12:39:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:39:06]wFMCommunicate OK [12:39:06]requested_item fd.num is exist - process it [12:39:06]SAM_PROTO_GetFieldsCounters [12:39:06]wFMCommunicate request_size=4 [12:39:06]MH_SAM_APDU [12:39:06]CAPDU: 80 13 00 00 [12:39:06]Write to MH i2c: E2 08 00 E4 5D 80 13 00 00 00 00 00 00 BD [12:39:06]Write i2c OK [12:39:06]MH_I2C_Read... [12:39:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:39:06]Read from MH i2c: E2 [12:39:06]MH_I2C_Read... [12:39:06]Read from MH i2c: E2 62 00 [12:39:06]MH_I2C_Read... [12:39:06]Read from MH i2c: E2 62 00 E4 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 19 B4 01 00 0E 04 04 00 85 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 43 [12:39:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 19 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:39:06]wFMCommunicate OK [12:39:06]SAM_PROTO_GetFieldsCounters done [12:39:06]requested_item shift.num is exist - process it [12:39:06]requested_item shift.opened is exist - process it [12:39:06]req_shift_opened [12:39:06]FM_GetShiftState [12:39:06]SAM_PROTO_GetShiftState [12:39:06]wFMCommunicate request_size=4 [12:39:06]MH_SAM_APDU [12:39:06]CAPDU: 80 13 01 00 [12:39:06]Write to MH i2c: E2 08 00 E5 5D 80 13 01 00 00 00 00 00 BF [12:39:06]Write i2c OK [12:39:06]MH_I2C_Read... [12:39:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:06]Read from MH i2c: E2 [12:39:06]MH_I2C_Read... [12:39:06]Read from MH i2c: E2 0E 00 [12:39:06]MH_I2C_Read... [12:39:06]Read from MH i2c: E2 0E 00 E5 5D 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 3A [12:39:06]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:39:06]wFMCommunicate OK [12:39:06]SAM_PROTO_GetShiftState done [12:39:06]FM_GetShiftState done [12:39:06]req_shift_opened done [12:39:06]requested_item shift.open_date is exist - process it [12:39:06]req_shift_open_date [12:39:06]req_shift_open_date done [12:39:06]produce_requested_data done [12:39:06]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111641,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [12:39:06]process_action_free close_receipt [12:39:06]json_value_free [12:39:06]json_value_free done [12:39:06]process_json_proto returns [12:39:06]Send response to host [12:39:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111641,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [12:39:06]free response buf [12:39:06]execute_script done [12:39:06]execute_script returns [12:39:06]free content buf [12:39:06]Sock 7.Close socket [12:39:06]Sock 7.Thread stoped [12:39:10]OFD Sender: No OFD packet to send [12:39:15]OFD Sender: No OFD packet to send [12:39:20]OFD Sender: No OFD packet to send [12:39:25]OFD Sender: No OFD packet to send [12:39:30]OFD Sender: No OFD packet to send [12:39:35]OFD Sender: No OFD packet to send [12:39:40]OFD Sender: No OFD packet to send [12:39:45]OFD Sender: No OFD packet to send [12:39:50]OFD Sender: No OFD packet to send [12:39:55]OFD Sender: No OFD packet to send [12:39:57]accept exits with 9 [12:39:57]New connection [12:39:57]New thread 3067465060 created [12:39:57]Thread 3067321700 joined [12:39:57]Waiting for new connection... [12:39:57] Sock 9.Parse request [12:39:57]Sock 9.Check first char [12:39:57]Sock 9.First char is OK [12:39:57]request: POST /json_proto HTTP/1.0 [12:39:57]Method: POST [12:39:57]URL: /json_proto [12:39:57]Method is POST - this is cgi request [12:39:57]url: /json_proto [12:39:57]query_string will be loaded in cgi processing [12:39:57]execute_cgi json_proto POST (null) [12:39:57]execute_cgi path=json_proto method=POST [12:39:57]POST find Content-Length [12:39:57]Host: 172.17.59.68:8080 [12:39:57]Content-Length: 677 [12:39:57]Content-Type: application/json [12:39:57] [12:39:57]POST finish read [12:39:57]Found Content-Length = 677 [12:39:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:57]execute_script... [12: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)320242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:57]POST & json_proto [12:39:57]process_json_proto [12:39:57]json parsed OK: [12:39:57]protocol is kg_v1.0 [12:39:57]action value=close_receipt [12:39:57]process_action close_receipt [12:39:57]cmd_close_receipt [12:39:57]MH_GetDate [12:39:57]Write to MH i2c: F0 00 00 E6 5D 32 [12:39:57]Write i2c OK [12:39:57]MH_I2C_Read... [12:39:57]Read from MH i2c: F0 [12:39:57]MH_I2C_Read... [12:39:57]Read from MH i2c: F0 09 00 [12:39:57]MH_I2C_Read... [12:39:57]Read from MH i2c: F0 09 00 E6 5D 00 3F 23 74 66 BC EC 60 65 E4 [12:39:57]GetLastDocTimeStamp 1718887177 [12:39:57]current date 1718887231 [12:39:57]FM_GetShiftState [12:39:57]SAM_PROTO_GetShiftState [12:39:57]wFMCommunicate request_size=4 [12:39:57]MH_SAM_APDU [12:39:57]CAPDU: 80 13 01 00 [12:39:57]Write to MH i2c: E2 08 00 E7 5D 80 13 01 00 00 00 00 00 C1 [12:39:57]Write i2c OK [12:39:57]MH_I2C_Read... [12:39:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:57]Read from MH i2c: E2 [12:39:57]MH_I2C_Read... [12:39:57]Read from MH i2c: E2 0E 00 [12:39:57]MH_I2C_Read... [12:39:57]Read from MH i2c: E2 0E 00 E7 5D 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 3C [12:39:57]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:39:57]wFMCommunicate OK [12:39:57]SAM_PROTO_GetShiftState done [12:39:57]FM_GetShiftState done [12:39:57]opened in 1718847247 [12:39:57]opened+sec_in_day 1718933647 [12:39:57]quantity*price = 60025 [12:39:57]sum+1 = 60027 [12:39:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 92 20.06.2024 12:40 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111642 ФПД: 5909141919052 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T124031&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111642&fm=5909141919052&tin=02508201610067®Number=0000000000092771&sum=60000 [12:39:58]StoreToDocumentArchive [12:39:58]shift 389 fd 111642 [12:39:58]save to /storage/0389/doc_00111642 [12:39:58]save last doc name /storage/0389/doc_00111642 to /storage/kkm_last_doc_name [12:39:58]save OK [12:39:58]Clear old archive folders... [12:39:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:39:58]tlvbuf is 010356D0 [12:39:58]SAM_PROTO_ClearQueue [12:39:58]wFMCommunicate request_size=4 [12:39:58]MH_SAM_APDU [12:39:58]CAPDU: 80 09 00 00 [12:39:58]Write to MH i2c: E2 08 00 F4 5D 80 09 00 00 00 00 00 00 C3 [12:39:58]Write i2c OK [12:39:58]MH_I2C_Read... [12:39:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:39:58]Read from MH i2c: E2 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: E2 03 00 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: E2 03 00 F4 5D 00 90 00 C5 [12:39:58]RAPDU: 90 00 [12:39:58]wFMCommunicate OK [12:39:58]SAM_PROTO_ClearQueue done [12:39:58]KKMCreateOFDPacket [12:39:58]OFDProtocolAddRootSTLVToBuf [12:39:58]FM_MakeSignedData [12:39:58]FM_MakeSignedData [12:39:58]SAM_PROTO_SignData [12:39:58]wFMCommunicate request_size=4 [12:39:58]MH_SAM_APDU [12:39:58]CAPDU: 80 0D 01 02 [12:39:58]Write to MH i2c: E2 08 00 F5 5D 80 0D 01 02 00 00 00 00 CB [12:39:58]Write i2c OK [12:39:58]MH_I2C_Read... [12:39:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:39:58]Read from MH i2c: E2 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: E2 03 00 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: E2 03 00 F5 5D 00 90 00 C6 [12:39:58]RAPDU: 90 00 [12:39:58]wFMCommunicate OK [12:39:58]wFMCommunicate request_size=255 [12:39:58]MH_SAM_APDU [12:39: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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 3F 23 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1A B4 01 00 35 04 06 00 05 [12:39:58]Write to MH i2c: E2 02 01 F6 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 3F 23 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1A B4 01 00 35 04 06 00 05 00 00 4E [12:39:58]Write i2c OK [12:39:58]MH_I2C_Read... [12:39:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:58]Read from MH i2c: E2 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: E2 03 00 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: E2 03 00 F6 5D 00 90 00 C7 [12:39:58]RAPDU: 90 00 [12:39:58]wFMCommunicate OK [12:39:58]wFMCommunicate request_size=10 [12:39:58]MH_SAM_APDU [12:39:58]CAPDU: 80 0D 02 02 05 5F D4 4E 15 4C [12:39:58]Write to MH i2c: E2 0D 00 F7 5D 80 0D 02 02 05 00 5F D4 4E 15 4C 00 00 BA [12:39:58]Write i2c OK [12:39:58]MH_I2C_Read... [12:39:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:58]Read from MH i2c: E2 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: E2 03 00 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: E2 03 00 F7 5D 00 90 00 C8 [12:39:58]RAPDU: 90 00 [12:39:58]wFMCommunicate OK [12:39:58]wFMCommunicate request_size=4 [12:39:58]MH_SAM_APDU [12:39:58]CAPDU: 80 0D 03 02 [12:39:58]Write to MH i2c: E2 08 00 F8 5D 80 0D 03 02 00 00 00 00 D0 [12:39:58]Write i2c OK [12:39:58]MH_I2C_Read... [12:39:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:39:58]Read from MH i2c: E2 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: E2 0B 00 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: E2 0B 00 F8 5D 00 5C 13 0B 9F 8A D3 83 3D 90 00 07 [12:39:58]RAPDU: 5C 13 0B 9F 8A D3 83 3D 90 00 [12:39:58]wFMCommunicate OK [12:39:58]SAM_PROTO_SignData done [12:39:58]FM_MakeSignedData done [12:39:58]CreateOFDProtocolMessage [12:39:58]wFMCommunicate request_size=4 [12:39:58]MH_SAM_APDU [12:39:58]CAPDU: 80 11 00 00 [12:39:58]Write to MH i2c: E2 08 00 F9 5D 80 11 00 00 00 00 00 00 D0 [12:39:58]Write i2c OK [12:39:58]MH_I2C_Read... [12:39:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:58]Read from MH i2c: E2 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: E2 17 00 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: E2 17 00 F9 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 22 [12:39:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:39:58]wFMCommunicate OK [12:39:58]CreateOFDProtocolMessage done [12:39:58]OFDSenderStorePacket 111642 [12:39:58]StoreOFDPacket docnum=111642 [12:39:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 21 15 07 01 21 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 3F 23 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1A B4 01 00 35 04 06 00 05 5F D4 4E 15 4C 5C 13 0B 9F 8A D3 83 3D [12:39:58]CheckFolder [12:39:58]dirname=/storage/ofd_packets [12:39:58]CheckFolder done [12:39:58]ProducePacketName [12:39:58]name=ofd_packets/00111642 [12:39:58]NVStorageSaveData ofd_packets/00111642 [12:39:58]File name is /storage/ofd_packets/00111642 [12:39:58]Write 301 bytes [12:39:58]NVStorageSaveData done [12:39:58]OFDSenderStorePacket done [12:39:58]KKMCreateOFDPacket done [12:39:58]NVStorageSaveData kkm_last_timestamp [12:39:58]File name is /storage/kkm_last_timestamp [12:39:58]Write 4 bytes [12:39:58]NVStorageSaveData done [12:39:58]ExternCall_PrintAddStr [12:39:58]wPrintStart [12:39:58]Write to MH i2c: 01 00 00 FA 5D 57 [12:39:58]Write i2c OK [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: 01 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: 01 07 00 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: 01 07 00 FA 5D 00 00 00 00 00 FF 0F 6C [12:39:58]RasterBufferAndPrint [12:39:58]line Счет N : (1)320242 [12:39:58]line ИНН: 02508201610067 [12:39:58]line Контрольно-Кассовый Чек [12:39:58]line ПРОДАЖА [12:39:58]line ТРК (МРК, ГНК) : 11 [12:39:58]line Товар: 2710124130 [12:39:58]line Аи-92-К-5 [12:39:58]line 9.040 * 66.40 [12:39:58]line = 600.26 [12:39:58]line НДС 12% НСП 1% [12:39:58]line > о реализуемом товаре [12:39:58]line ОКРУГЛЕНИЕ: -0.26 [12:39:58]line ИТОГО: 600.00 [12:39:58]line Внесено: 600.00 [12:39:58]line СДАЧА: 0.00 [12:39:58]line НСП 1% : 5.31 [12:39:58]line НДС 12% : 63.74 [12:39:58]line Наличными: 600.00 [12:39:58]line Безнал.: 0.00 [12:39:58]line Место: АЗС № 65 "Партнер Нефть" [12:39:58]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:39:58]line СНО: Общий режим [12:39:58]line Чек 92 20.06.2024 12:40 [12:39:58]line Смена: 389 ФФД: 1.0 [12:39:58]line ЗНМ: 0300000198 [12:39:58]line РНМ: 0000000000092771 [12:39:58]line Версия ККМ: 001 [12:39:58]line ФМ: 0000000000875083 [12:39:58]line ФД: 111642 [12:39:58]line ФПД: 5909141919052 [12:39:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T124031&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111642&fm=5909141919052&tin=02508201610067®Number=0000000000092771&sum=60000 [12:39:59]OFD Sender: Processing packet 111642 [packets to send 38, broken 37] [12:39:59]ProducePacketName [12:39:59]name=ofd_packets/00111642 [12:39:59]OFD Sender: To server: pG, [12:39:59]CommunicateWithHost lk.salyk.kg:30040 [12:39:59]ConnectInit lk.salyk.kg [12:39:59]written 0, free lines is 4095 [12:39:59]Connected sock=10 [12: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 35 30 38 33 0F 01 00 00 21 15 07 01 21 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 3F 23 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1A B4 01 00 35 04 06 00 05 5F D4 4E 15 4C 5C 13 0B 9F 8A D3 83 3D [12:39:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 BD 4F 47 00 5B 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1A B4 01 00 F4 03 04 00 89 BA 73 66 B6 04 01 00 00 86 5A 4A BF 2A EA 66 F3 [12:39:59]CommunicateWithHost err = 0 [12:39:59]CheckOFDResponse [12:39:59]1017 (14) - 77093643461234 [12:39:59]1041 (16) - 0000000000875083 [12:39:59]1040 (4) - 111642 [12:39:59]1012 (4) - 20.06.2024 05:13 [12:39:59]1206 (1) - 0 [12:39:59]OFD Sender: Remove packet 111642 [12:39:59]ProducePacketName [12:39:59]name=ofd_packets/00111642 [12:39:59]NVStorageDeleteData [12:39:59]Write to MH i2c: 01 00 00 25 5E 83 [12:39:59]Write i2c OK [12:39:59]MH_I2C_Read... [12:39:59]Read from MH i2c: 01 [12:39:59]MH_I2C_Read... [12:39:59]Read from MH i2c: 01 07 00 [12:39:59]MH_I2C_Read... [12:39:59]Read from MH i2c: 01 07 00 25 5E 00 00 00 00 00 EF 0C 85 [12:39:59]RasterBufferAndPrint [12:39:59]line [12:39:59]line [12:39:59]line [12:39:59]line [12:39:59]line [12:39:59]written 0, free lines is 3317 [12:39:59]MH_Cut [12:39:59]Write to MH i2c: D1 01 00 2C 5E 01 5C [12:39:59]Write i2c OK [12:39:59]MH_I2C_Read... [12:39:59]Read from MH i2c: D1 [12:39:59]MH_I2C_Read... [12:39:59]Read from MH i2c: D1 01 00 [12:39:59]MH_I2C_Read... [12:39:59]Read from MH i2c: D1 01 00 2C 5E 00 5B [12:39:59]Write to MH i2c: 01 00 00 2D 5E 8B [12:39:59]Write i2c OK [12:39:59]MH_I2C_Read... [12:39:59]OFD Sender: No OFD packet to send [12:40:00]*** Cut start [12:40:00]*** Partial cut [12:40:00]*** CUTSNS_PIN = 1 [12:40:00]*** CUTSNS_PIN = 0 [12:40:00]*** Brake cut motor [12:40:00]Read from MH i2c: 01 [12:40:00]MH_I2C_Read... [12:40:00]*** Stop cut motor [12:40:00]*** Cut end [12:40:00]Read from MH i2c: 01 07 00 [12:40:00]MH_I2C_Read... [12:40:00]Read from MH i2c: 01 07 00 2D 5E 00 00 00 00 00 FF 0F A0 [12:40:00]process_action close_receipt done [12:40:00]requested_data is exist [12:40:00]produce_requested_data [12:40:00]requested_item fm.sn is exist - process it [12:40:00]wFMCommunicate request_size=4 [12:40:00]MH_SAM_APDU [12:40:00]CAPDU: 80 11 00 00 [12:40:00]Write to MH i2c: E2 08 00 2E 5E 80 11 00 00 00 00 00 00 06 [12:40:00]Write i2c OK [12:40:00]MH_I2C_Read... [12:40:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:00]Read from MH i2c: E2 [12:40:00]MH_I2C_Read... [12:40:00]Read from MH i2c: E2 17 00 [12:40:00]MH_I2C_Read... [12:40:00]Read from MH i2c: E2 17 00 2E 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 58 [12:40:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:40:00]wFMCommunicate OK [12:40:00]requested_item fd.num is exist - process it [12:40:00]SAM_PROTO_GetFieldsCounters [12:40:00]wFMCommunicate request_size=4 [12:40:00]MH_SAM_APDU [12:40:00]CAPDU: 80 13 00 00 [12:40:00]Write to MH i2c: E2 08 00 2F 5E 80 13 00 00 00 00 00 00 09 [12:40:00]Write i2c OK [12:40:00]MH_I2C_Read... [12:40:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:01]Read from MH i2c: E2 [12:40:01]MH_I2C_Read... [12:40:01]Read from MH i2c: E2 62 00 [12:40:01]MH_I2C_Read... [12:40:01]Read from MH i2c: E2 62 00 2F 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1A B4 01 00 0E 04 04 00 85 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 93 [12: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1A B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:40:01]wFMCommunicate OK [12:40:01]SAM_PROTO_GetFieldsCounters done [12:40:01]requested_item shift.num is exist - process it [12:40:01]requested_item shift.opened is exist - process it [12:40:01]req_shift_opened [12:40:01]FM_GetShiftState [12:40:01]SAM_PROTO_GetShiftState [12:40:01]wFMCommunicate request_size=4 [12:40:01]MH_SAM_APDU [12:40:01]CAPDU: 80 13 01 00 [12:40:01]Write to MH i2c: E2 08 00 30 5E 80 13 01 00 00 00 00 00 0B [12:40:01]Write i2c OK [12:40:01]MH_I2C_Read... [12:40:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:01]Read from MH i2c: E2 [12:40:01]MH_I2C_Read... [12:40:01]Read from MH i2c: E2 0E 00 [12:40:01]MH_I2C_Read... [12:40:01]Read from MH i2c: E2 0E 00 30 5E 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 86 [12:40:01]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:40:01]wFMCommunicate OK [12:40:01]SAM_PROTO_GetShiftState done [12:40:01]FM_GetShiftState done [12:40:01]req_shift_opened done [12:40:01]requested_item shift.open_date is exist - process it [12:40:01]req_shift_open_date [12:40:01]req_shift_open_date done [12:40:01]produce_requested_data done [12:40:01]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111642,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [12:40:01]process_action_free close_receipt [12:40:01]json_value_free [12:40:01]json_value_free done [12:40:01]process_json_proto returns [12:40:01]Send response to host [12:40:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111642,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [12:40:01]free response buf [12:40:01]execute_script done [12:40:01]execute_script returns [12:40:01]free content buf [12:40:01]Sock 9.Close socket [12:40:01]Sock 9.Thread stoped [12:40:04]OFD Sender: No OFD packet to send [12:40:09]OFD Sender: No OFD packet to send [12:40:14]OFD Sender: No OFD packet to send [12:40:19]OFD Sender: No OFD packet to send [12:40:24]OFD Sender: No OFD packet to send [12:40:29]OFD Sender: No OFD packet to send [12:40:34]OFD Sender: No OFD packet to send [12:40:39]OFD Sender: No OFD packet to send [12:40:44]OFD Sender: No OFD packet to send [12:40:49]OFD Sender: No OFD packet to send [12:40:54]OFD Sender: No OFD packet to send [12:40:59]OFD Sender: No OFD packet to send [12:41:04]OFD Sender: No OFD packet to send [12:41:09]OFD Sender: No OFD packet to send [12:41:14]OFD Sender: No OFD packet to send [12:41:19]OFD Sender: No OFD packet to send [12:41:24]OFD Sender: No OFD packet to send [12:41:29]OFD Sender: No OFD packet to send [12:41:34]OFD Sender: No OFD packet to send [12:41:39]OFD Sender: No OFD packet to send [12:41:43]accept exits with 7 [12:41:43]New connection [12:41:43]New thread 3067321700 created [12:41:43]Thread 3067465060 joined [12:41:43]Waiting for new connection... [12:41:43] Sock 7.Parse request [12:41:43]Sock 7.Check first char [12:41:43]Sock 7.First char is OK [12:41:43]request: POST /json_proto HTTP/1.0 [12:41:43]Method: POST [12:41:43]URL: /json_proto [12:41:43]Method is POST - this is cgi request [12:41:43]url: /json_proto [12:41:43]query_string will be loaded in cgi processing [12:41:43]execute_cgi json_proto POST (null) [12:41:43]execute_cgi path=json_proto method=POST [12:41:43]POST find Content-Length [12:41:43]Host: 172.17.59.68:8080 [12:41:43]Content-Length: 682 [12:41:43]Content-Type: application/json [12:41:43] [12:41:43]POST finish read [12:41:43]Found Content-Length = 682 [12:41:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:43]execute_script... [12:41: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)320243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:43]POST & json_proto [12:41:43]process_json_proto [12:41:43]json parsed OK: [12:41:43]protocol is kg_v1.0 [12:41:43]action value=close_receipt [12:41:43]process_action close_receipt [12:41:43]cmd_close_receipt [12:41:43]MH_GetDate [12:41:43]Write to MH i2c: F0 00 00 31 5E 7E [12:41:43]Write i2c OK [12:41:43]MH_I2C_Read... [12:41:43]Read from MH i2c: F0 [12:41:43]MH_I2C_Read... [12:41:43]Read from MH i2c: F0 09 00 [12:41:43]MH_I2C_Read... [12:41:43]Read from MH i2c: F0 09 00 31 5E 00 A9 23 74 66 BC EC 60 65 9A [12:41:43]GetLastDocTimeStamp 1718887231 [12:41:43]current date 1718887337 [12:41:43]FM_GetShiftState [12:41:43]SAM_PROTO_GetShiftState [12:41:43]wFMCommunicate request_size=4 [12:41:43]MH_SAM_APDU [12:41:43]CAPDU: 80 13 01 00 [12:41:43]Write to MH i2c: E2 08 00 32 5E 80 13 01 00 00 00 00 00 0D [12:41:43]Write i2c OK [12:41:43]MH_I2C_Read... [12:41:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:43]Read from MH i2c: E2 [12:41:43]MH_I2C_Read... [12:41:43]Read from MH i2c: E2 0E 00 [12:41:43]MH_I2C_Read... [12:41:43]Read from MH i2c: E2 0E 00 32 5E 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 88 [12:41:43]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:41:43]wFMCommunicate OK [12:41:43]SAM_PROTO_GetShiftState done [12:41:43]FM_GetShiftState done [12:41:43]opened in 1718847247 [12:41:43]opened+sec_in_day 1718933647 [12:41:43]quantity*price = 100064 [12:41:43]sum+1 = 100066 [12:41:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 93 20.06.2024 12:42 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111643 ФПД: 185049431012213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T124217&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111643&fm=185049431012213&tin=02508201610067®Number=0000000000092771&sum=100000 [12:41:44]StoreToDocumentArchive [12:41:44]shift 389 fd 111643 [12:41:44]save to /storage/0389/doc_00111643 [12:41:44]save last doc name /storage/0389/doc_00111643 to /storage/kkm_last_doc_name [12:41:44]save OK [12:41:44]Clear old archive folders... [12:41:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:41:44]tlvbuf is 00F502E0 [12:41:44]SAM_PROTO_ClearQueue [12:41:44]wFMCommunicate request_size=4 [12:41:44]MH_SAM_APDU [12:41:44]CAPDU: 80 09 00 00 [12:41:44]Write to MH i2c: E2 08 00 3F 5E 80 09 00 00 00 00 00 00 0F [12:41:44]Write i2c OK [12:41:44]MH_I2C_Read... [12:41:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:41:44]Read from MH i2c: E2 [12:41:44]MH_I2C_Read... [12:41:44]Read from MH i2c: E2 03 00 [12:41:44]MH_I2C_Read... [12:41:44]Read from MH i2c: E2 03 00 3F 5E 00 90 00 11 [12:41:44]RAPDU: 90 00 [12:41:44]wFMCommunicate OK [12:41:44]SAM_PROTO_ClearQueue done [12:41:44]KKMCreateOFDPacket [12:41:44]OFDProtocolAddRootSTLVToBuf [12:41:44]FM_MakeSignedData [12:41:44]FM_MakeSignedData [12:41:44]SAM_PROTO_SignData [12:41:44]wFMCommunicate request_size=4 [12:41:44]MH_SAM_APDU [12:41:44]CAPDU: 80 0D 01 02 [12:41:44]Write to MH i2c: E2 08 00 40 5E 80 0D 01 02 00 00 00 00 17 [12:41:44]Write i2c OK [12:41:44]MH_I2C_Read... [12:41:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:41:45]OFD Sender: No OFD packet to send [12:41:45]Read from MH i2c: E2 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: E2 03 00 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: E2 03 00 40 5E 00 90 00 12 [12:41:45]RAPDU: 90 00 [12:41:45]wFMCommunicate OK [12:41:45]wFMCommunicate request_size=255 [12:41:45]MH_SAM_APDU [12:41:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 A9 23 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1B B4 01 00 35 04 06 00 A8 [12:41:45]Write to MH i2c: E2 02 01 41 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 A9 23 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1B B4 01 00 35 04 06 00 A8 00 00 1C [12:41:45]Write i2c OK [12:41:45]MH_I2C_Read... [12:41:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:45]Read from MH i2c: E2 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: E2 03 00 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: E2 03 00 41 5E 00 90 00 13 [12:41:45]RAPDU: 90 00 [12:41:45]wFMCommunicate OK [12:41:45]wFMCommunicate request_size=10 [12:41:45]MH_SAM_APDU [12:41:45]CAPDU: 80 0D 02 02 05 4D 2D 99 F3 75 [12:41:45]Write to MH i2c: E2 0D 00 42 5E 80 0D 02 02 05 00 4D 2D 99 F3 75 00 00 9F [12:41:45]Write i2c OK [12:41:45]MH_I2C_Read... [12:41:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:45]Read from MH i2c: E2 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: E2 03 00 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: E2 03 00 42 5E 00 90 00 14 [12:41:45]RAPDU: 90 00 [12:41:45]wFMCommunicate OK [12:41:45]wFMCommunicate request_size=4 [12:41:45]MH_SAM_APDU [12:41:45]CAPDU: 80 0D 03 02 [12:41:45]Write to MH i2c: E2 08 00 43 5E 80 0D 03 02 00 00 00 00 1C [12:41:45]Write i2c OK [12:41:45]MH_I2C_Read... [12:41:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:41:45]Read from MH i2c: E2 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: E2 0B 00 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: E2 0B 00 43 5E 00 E4 DE F6 9C 3C F5 00 DD 90 00 7F [12:41:45]RAPDU: E4 DE F6 9C 3C F5 00 DD 90 00 [12:41:45]wFMCommunicate OK [12:41:45]SAM_PROTO_SignData done [12:41:45]FM_MakeSignedData done [12:41:45]CreateOFDProtocolMessage [12:41:45]wFMCommunicate request_size=4 [12:41:45]MH_SAM_APDU [12:41:45]CAPDU: 80 11 00 00 [12:41:45]Write to MH i2c: E2 08 00 44 5E 80 11 00 00 00 00 00 00 1C [12:41:45]Write i2c OK [12:41:45]MH_I2C_Read... [12:41:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:45]Read from MH i2c: E2 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: E2 17 00 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: E2 17 00 44 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6E [12:41:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:41:45]wFMCommunicate OK [12:41:45]CreateOFDProtocolMessage done [12:41:45]OFDSenderStorePacket 111643 [12:41:45]StoreOFDPacket docnum=111643 [12:41:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1F 78 07 01 C3 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 A9 23 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1B B4 01 00 35 04 06 00 A8 4D 2D 99 F3 75 E4 DE F6 9C 3C F5 00 DD [12:41:45]CheckFolder [12:41:45]dirname=/storage/ofd_packets [12:41:45]CheckFolder done [12:41:45]ProducePacketName [12:41:45]name=ofd_packets/00111643 [12:41:45]NVStorageSaveData ofd_packets/00111643 [12:41:45]File name is /storage/ofd_packets/00111643 [12:41:45]Write 301 bytes [12:41:45]NVStorageSaveData done [12:41:45]OFDSenderStorePacket done [12:41:45]KKMCreateOFDPacket done [12:41:45]NVStorageSaveData kkm_last_timestamp [12:41:45]File name is /storage/kkm_last_timestamp [12:41:45]Write 4 bytes [12:41:45]NVStorageSaveData done [12:41:45]ExternCall_PrintAddStr [12:41:45]wPrintStart [12:41:45]Write to MH i2c: 01 00 00 45 5E A3 [12:41:45]Write i2c OK [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: 01 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: 01 07 00 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: 01 07 00 45 5E 00 00 00 00 00 FF 0F B8 [12:41:45]RasterBufferAndPrint [12:41:45]line Счет N : (1)320243 [12:41:45]line ИНН: 02508201610067 [12:41:45]line Контрольно-Кассовый Чек [12:41:45]line ПРОДАЖА [12:41:45]line ТРК (МРК, ГНК) : 11 [12:41:45]line Товар: 2710124130 [12:41:45]line Аи-92-К-5 [12:41:45]line 15.070 * 66.40 [12:41:45]line = 1000.65 [12:41:45]line НДС 12% НСП 1% [12:41:45]line > о реализуемом товаре [12:41:45]line ОКРУГЛЕНИЕ: -0.65 [12:41:45]line ИТОГО: 1000.00 [12:41:45]line Внесено: 1000.00 [12:41:45]line СДАЧА: 0.00 [12:41:45]line НСП 1% : 8.85 [12:41:45]line НДС 12% : 106.26 [12:41:45]line Наличными: 1000.00 [12:41:45]line Безнал.: 0.00 [12:41:45]line Место: АЗС № 65 "Партнер Нефть" [12:41:45]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:41:45]line СНО: Общий режим [12:41:45]line Чек 93 20.06.2024 12:42 [12:41:45]line Смена: 389 ФФД: 1.0 [12:41:45]line ЗНМ: 0300000198 [12:41:45]line РНМ: 0000000000092771 [12:41:45]line Версия ККМ: 001 [12:41:45]line ФМ: 0000000000875083 [12:41:45]line ФД: 111643 [12:41:45]line ФПД: 185049431012213 [12:41:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T124217&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111643&fm=185049431012213&tin=02508201610067®Number=0000000000092771&sum=100000 [12:41:45]OFD Sender: Processing packet 111643 [packets to send 38, broken 37] [12:41:45]ProducePacketName [12:41:45]name=ofd_packets/00111643 [12:41:45]OFD Sender: To server: pG, [12:41:45]CommunicateWithHost lk.salyk.kg:30040 [12:41:45]ConnectInit lk.salyk.kg [12:41:45]written 0, free lines is 4095 [12:41:45]Connected sock=10 [12:41:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1F 78 07 01 C3 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 A9 23 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1B B4 01 00 35 04 06 00 A8 4D 2D 99 F3 75 E4 DE F6 9C 3C F5 00 DD [12:41:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B1 98 47 00 C6 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1B B4 01 00 F4 03 04 00 F4 BA 73 66 B6 04 01 00 00 7F 49 CB F3 3A 95 69 F9 [12:41:46]CommunicateWithHost err = 0 [12:41:46]CheckOFDResponse [12:41:46]1017 (14) - 77093643461234 [12:41:46]1041 (16) - 0000000000875083 [12:41:46]1040 (4) - 111643 [12:41:46]1012 (4) - 20.06.2024 05:15 [12:41:46]1206 (1) - 0 [12:41:46]OFD Sender: Remove packet 111643 [12:41:46]ProducePacketName [12:41:46]name=ofd_packets/00111643 [12:41:46]NVStorageDeleteData [12:41:46]Write to MH i2c: 01 00 00 70 5E CE [12:41:46]Write i2c OK [12:41:46]MH_I2C_Read... [12:41:46]Read from MH i2c: 01 [12:41:46]MH_I2C_Read... [12:41:46]Read from MH i2c: 01 07 00 [12:41:46]MH_I2C_Read... [12:41:46]Read from MH i2c: 01 07 00 70 5E 00 00 00 00 00 D9 0C BA [12:41:46]RasterBufferAndPrint [12:41:46]line [12:41:46]line [12:41:46]line [12:41:46]line [12:41:46]line [12:41:46]written 0, free lines is 3297 [12:41:46]MH_Cut [12:41:46]Write to MH i2c: D1 01 00 77 5E 01 A7 [12:41:46]Write i2c OK [12:41:46]MH_I2C_Read... [12:41:46]Read from MH i2c: D1 [12:41:46]MH_I2C_Read... [12:41:46]Read from MH i2c: D1 01 00 [12:41:46]MH_I2C_Read... [12:41:46]Read from MH i2c: D1 01 00 77 5E 00 A6 [12:41:46]Write to MH i2c: 01 00 00 78 5E D6 [12:41:46]Write i2c OK [12:41:46]MH_I2C_Read... [12:41:46]OFD Sender: No OFD packet to send [12:41:47]*** Cut start [12:41:47]*** Partial cut [12:41:47]*** CUTSNS_PIN = 1 [12:41:47]*** CUTSNS_PIN = 0 [12:41:47]*** Brake cut motor [12:41:47]Read from MH i2c: 01 [12:41:47]MH_I2C_Read... [12:41:47]*** Stop cut motor [12:41:47]*** Cut end [12:41:47]Read from MH i2c: 01 07 00 [12:41:47]MH_I2C_Read... [12:41:47]Read from MH i2c: 01 07 00 78 5E 00 00 00 00 00 FF 0F EB [12:41:47]process_action close_receipt done [12:41:47]requested_data is exist [12:41:47]produce_requested_data [12:41:47]requested_item fm.sn is exist - process it [12:41:47]wFMCommunicate request_size=4 [12:41:47]MH_SAM_APDU [12:41:47]CAPDU: 80 11 00 00 [12:41:47]Write to MH i2c: E2 08 00 79 5E 80 11 00 00 00 00 00 00 51 [12:41:47]Write i2c OK [12:41:47]MH_I2C_Read... [12:41:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:47]Read from MH i2c: E2 [12:41:47]MH_I2C_Read... [12:41:47]Read from MH i2c: E2 17 00 [12:41:47]MH_I2C_Read... [12:41:47]Read from MH i2c: E2 17 00 79 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A3 [12:41:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:41:47]wFMCommunicate OK [12:41:47]requested_item fd.num is exist - process it [12:41:47]SAM_PROTO_GetFieldsCounters [12:41:47]wFMCommunicate request_size=4 [12:41:47]MH_SAM_APDU [12:41:47]CAPDU: 80 13 00 00 [12:41:47]Write to MH i2c: E2 08 00 7A 5E 80 13 00 00 00 00 00 00 54 [12:41:47]Write i2c OK [12:41:47]MH_I2C_Read... [12:41:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:41:47]Read from MH i2c: E2 [12:41:47]MH_I2C_Read... [12:41:47]Read from MH i2c: E2 62 00 [12:41:47]MH_I2C_Read... [12:41:47]Read from MH i2c: E2 62 00 7A 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1B B4 01 00 0E 04 04 00 85 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 E2 [12:41:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1B B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:41:47]wFMCommunicate OK [12:41:47]SAM_PROTO_GetFieldsCounters done [12:41:47]requested_item shift.num is exist - process it [12:41:47]requested_item shift.opened is exist - process it [12:41:47]req_shift_opened [12:41:47]FM_GetShiftState [12:41:47]SAM_PROTO_GetShiftState [12:41:47]wFMCommunicate request_size=4 [12:41:47]MH_SAM_APDU [12:41:47]CAPDU: 80 13 01 00 [12:41:47]Write to MH i2c: E2 08 00 7B 5E 80 13 01 00 00 00 00 00 56 [12:41:47]Write i2c OK [12:41:47]MH_I2C_Read... [12:41:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:47]Read from MH i2c: E2 [12:41:47]MH_I2C_Read... [12:41:47]Read from MH i2c: E2 0E 00 [12:41:47]MH_I2C_Read... [12:41:47]Read from MH i2c: E2 0E 00 7B 5E 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 D1 [12:41:47]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:41:47]wFMCommunicate OK [12:41:47]SAM_PROTO_GetShiftState done [12:41:47]FM_GetShiftState done [12:41:47]req_shift_opened done [12:41:47]requested_item shift.open_date is exist - process it [12:41:47]req_shift_open_date [12:41:47]req_shift_open_date done [12:41:47]produce_requested_data done [12:41:47]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111643,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [12:41:47]process_action_free close_receipt [12:41:47]json_value_free [12:41:47]json_value_free done [12:41:47]process_json_proto returns [12:41:47]Send response to host [12:41:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111643,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [12:41:47]free response buf [12:41:47]execute_script done [12:41:47]execute_script returns [12:41:47]free content buf [12:41:47]Sock 7.Close socket [12:41:47]Sock 7.Thread stoped [12:41:51]OFD Sender: No OFD packet to send [12:41:56]OFD Sender: No OFD packet to send [12:42:01]OFD Sender: No OFD packet to send [12:42:06]OFD Sender: No OFD packet to send [12:42:11]OFD Sender: No OFD packet to send [12:42:16]OFD Sender: No OFD packet to send [12:42:21]OFD Sender: No OFD packet to send [12:42:26]OFD Sender: No OFD packet to send [12:42:31]OFD Sender: No OFD packet to send [12:42:36]OFD Sender: No OFD packet to send [12:42:41]OFD Sender: No OFD packet to send [12:42:46]OFD Sender: No OFD packet to send [12:42:51]OFD Sender: No OFD packet to send [12:42:56]OFD Sender: No OFD packet to send [12:43:01]OFD Sender: No OFD packet to send [12:43:04]accept exits with 9 [12:43:04]New connection [12:43:04]New thread 3067465060 created [12:43:04]Thread 3067321700 joined [12:43:04]Waiting for new connection... [12:43:04] Sock 9.Parse request [12:43:04]Sock 9.Check first char [12:43:04]Sock 9.First char is OK [12:43:04]request: POST /json_proto HTTP/1.0 [12:43:04]Method: POST [12:43:04]URL: /json_proto [12:43:04]Method is POST - this is cgi request [12:43:04]url: /json_proto [12:43:04]query_string will be loaded in cgi processing [12:43:04]execute_cgi json_proto POST (null) [12:43:04]execute_cgi path=json_proto method=POST [12:43:04]POST find Content-Length [12:43:04]Host: 172.17.59.68:8080 [12:43:04]Content-Length: 674 [12:43:04]Content-Type: application/json [12:43:04] [12:43:04]POST finish read [12:43:04]Found Content-Length = 674 [12:43:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:04]execute_script... [12:43:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:04]POST & json_proto [12:43:04]process_json_proto [12:43:04]json parsed OK: [12:43:04]protocol is kg_v1.0 [12:43:04]action value=close_receipt [12:43:04]process_action close_receipt [12:43:04]cmd_close_receipt [12:43:04]MH_GetDate [12:43:04]Write to MH i2c: F0 00 00 7C 5E C9 [12:43:04]Write i2c OK [12:43:04]MH_I2C_Read... [12:43:04]Read from MH i2c: F0 [12:43:04]MH_I2C_Read... [12:43:04]Read from MH i2c: F0 09 00 [12:43:04]MH_I2C_Read... [12:43:04]Read from MH i2c: F0 09 00 7C 5E 00 FA 23 74 66 BC EC 60 65 36 [12:43:04]GetLastDocTimeStamp 1718887337 [12:43:04]current date 1718887418 [12:43:04]FM_GetShiftState [12:43:04]SAM_PROTO_GetShiftState [12:43:04]wFMCommunicate request_size=4 [12:43:04]MH_SAM_APDU [12:43:04]CAPDU: 80 13 01 00 [12:43:04]Write to MH i2c: E2 08 00 7D 5E 80 13 01 00 00 00 00 00 58 [12:43:04]Write i2c OK [12:43:04]MH_I2C_Read... [12:43:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:04]Read from MH i2c: E2 [12:43:04]MH_I2C_Read... [12:43:04]Read from MH i2c: E2 0E 00 [12:43:04]MH_I2C_Read... [12:43:04]Read from MH i2c: E2 0E 00 7D 5E 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 D3 [12:43:04]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:43:04]wFMCommunicate OK [12:43:04]SAM_PROTO_GetShiftState done [12:43:04]FM_GetShiftState done [12:43:04]opened in 1718847247 [12:43:04]opened+sec_in_day 1718933647 [12:43:04]quantity*price = 50009 [12:43:04]sum+1 = 50010 [12:43:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 94 20.06.2024 12:43 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111644 ФПД: 178580997115920 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T124338&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111644&fm=178580997115920&tin=02508201610067®Number=0000000000092771&sum=50000 [12:43:05]StoreToDocumentArchive [12:43:05]shift 389 fd 111644 [12:43:05]save to /storage/0389/doc_00111644 [12:43:05]save last doc name /storage/0389/doc_00111644 to /storage/kkm_last_doc_name [12:43:05]save OK [12:43:05]Clear old archive folders... [12:43:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:43:05]tlvbuf is 01097560 [12:43:05]SAM_PROTO_ClearQueue [12:43:05]wFMCommunicate request_size=4 [12:43:05]MH_SAM_APDU [12:43:05]CAPDU: 80 09 00 00 [12:43:05]Write to MH i2c: E2 08 00 8A 5E 80 09 00 00 00 00 00 00 5A [12:43:05]Write i2c OK [12:43:05]MH_I2C_Read... [12:43:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:43:05]Read from MH i2c: E2 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 03 00 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 03 00 8A 5E 00 90 00 5C [12:43:05]RAPDU: 90 00 [12:43:05]wFMCommunicate OK [12:43:05]SAM_PROTO_ClearQueue done [12:43:05]KKMCreateOFDPacket [12:43:05]OFDProtocolAddRootSTLVToBuf [12:43:05]FM_MakeSignedData [12:43:05]FM_MakeSignedData [12:43:05]SAM_PROTO_SignData [12:43:05]wFMCommunicate request_size=4 [12:43:05]MH_SAM_APDU [12:43:05]CAPDU: 80 0D 01 02 [12:43:05]Write to MH i2c: E2 08 00 8B 5E 80 0D 01 02 00 00 00 00 62 [12:43:05]Write i2c OK [12:43:05]MH_I2C_Read... [12:43:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:43:05]Read from MH i2c: E2 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 03 00 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 03 00 8B 5E 00 90 00 5D [12:43:05]RAPDU: 90 00 [12:43:05]wFMCommunicate OK [12:43:05]wFMCommunicate request_size=255 [12:43:05]MH_SAM_APDU [12:43:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 FA 23 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1C B4 01 00 35 04 06 00 A2 6B 20 E5 [12:43:05]Write to MH i2c: E2 02 01 8C 5E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 FA 23 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1C B4 01 00 35 04 06 00 A2 6B 20 E5 00 00 CA [12:43:05]Write i2c OK [12:43:05]MH_I2C_Read... [12:43:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:05]Read from MH i2c: E2 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 03 00 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 03 00 8C 5E 00 90 00 5E [12:43:05]RAPDU: 90 00 [12:43:05]wFMCommunicate OK [12:43:05]wFMCommunicate request_size=7 [12:43:05]MH_SAM_APDU [12:43:05]CAPDU: 80 0D 02 02 02 90 10 [12:43:05]Write to MH i2c: E2 0A 00 8D 5E 80 0D 02 02 02 00 90 10 00 00 09 [12:43:05]Write i2c OK [12:43:05]MH_I2C_Read... [12:43:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:05]Read from MH i2c: E2 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 03 00 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 03 00 8D 5E 00 90 00 5F [12:43:05]RAPDU: 90 00 [12:43:05]wFMCommunicate OK [12:43:05]wFMCommunicate request_size=4 [12:43:05]MH_SAM_APDU [12:43:05]CAPDU: 80 0D 03 02 [12:43:05]Write to MH i2c: E2 08 00 8E 5E 80 0D 03 02 00 00 00 00 67 [12:43:05]Write i2c OK [12:43:05]MH_I2C_Read... [12:43:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:43:05]Read from MH i2c: E2 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 0B 00 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 0B 00 8E 5E 00 4E EA 78 50 C7 07 6F 73 90 00 18 [12:43:05]RAPDU: 4E EA 78 50 C7 07 6F 73 90 00 [12:43:05]wFMCommunicate OK [12:43:05]SAM_PROTO_SignData done [12:43:05]FM_MakeSignedData done [12:43:05]CreateOFDProtocolMessage [12:43:05]wFMCommunicate request_size=4 [12:43:05]MH_SAM_APDU [12:43:05]CAPDU: 80 11 00 00 [12:43:05]Write to MH i2c: E2 08 00 8F 5E 80 11 00 00 00 00 00 00 67 [12:43:05]Write i2c OK [12:43:05]MH_I2C_Read... [12:43:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:05]Read from MH i2c: E2 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 17 00 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 17 00 8F 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B9 [12:43:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:43:05]wFMCommunicate OK [12:43:05]CreateOFDProtocolMessage done [12:43:05]OFDSenderStorePacket 111644 [12:43:05]StoreOFDPacket docnum=111644 [12:43:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 42 5B 04 01 FA 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 FA 23 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1C B4 01 00 35 04 06 00 A2 6B 20 E5 90 10 4E EA 78 50 C7 07 6F 73 [12:43:05]CheckFolder [12:43:05]dirname=/storage/ofd_packets [12:43:05]CheckFolder done [12:43:05]ProducePacketName [12:43:05]name=ofd_packets/00111644 [12:43:05]NVStorageSaveData ofd_packets/00111644 [12:43:05]File name is /storage/ofd_packets/00111644 [12:43:05]Write 298 bytes [12:43:05]NVStorageSaveData done [12:43:05]OFDSenderStorePacket done [12:43:05]KKMCreateOFDPacket done [12:43:05]NVStorageSaveData kkm_last_timestamp [12:43:05]File name is /storage/kkm_last_timestamp [12:43:05]Write 4 bytes [12:43:05]NVStorageSaveData done [12:43:05]ExternCall_PrintAddStr [12:43:05]wPrintStart [12:43:05]Write to MH i2c: 01 00 00 90 5E EE [12:43:05]Write i2c OK [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: 01 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: 01 07 00 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: 01 07 00 90 5E 00 00 00 00 00 FF 0F 03 [12:43:05]RasterBufferAndPrint [12:43:05]line Счет N : (1)320244 [12:43:05]line ИНН: 02508201610067 [12:43:05]line Контрольно-Кассовый Чек [12:43:05]line ПРОДАЖА [12:43:05]line ТРК (МРК, ГНК) : 22 [12:43:05]line Товар: 2710194210 [12:43:05]line ДТ-К-5 [12:43:05]line 6.860 * 72.90 [12:43:05]line = 500.09 [12:43:05]line НДС 12% НСП 1% [12:43:05]line > о реализуемом товаре [12:43:05]line ОКРУГЛЕНИЕ: -0.09 [12:43:05]line ИТОГО: 500.00 [12:43:05]line Внесено: 500.00 [12:43:05]line СДАЧА: 0.00 [12:43:05]line НСП 1% : 4.43 [12:43:05]line НДС 12% : 53.11 [12:43:05]line Наличными: 500.00 [12:43:05]line Безнал.: 0.00 [12:43:05]line Место: АЗС № 65 "Партнер Нефть" [12:43:05]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:43:05]line СНО: Общий режим [12:43:05]line Чек 94 20.06.2024 12:43 [12:43:05]line Смена: 389 ФФД: 1.0 [12:43:05]line ЗНМ: 0300000198 [12:43:05]line РНМ: 0000000000092771 [12:43:05]line Версия ККМ: 001 [12:43:05]line ФМ: 0000000000875083 [12:43:05]line ФД: 111644 [12:43:05]line ФПД: 178580997115920 [12:43:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T124338&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111644&fm=178580997115920&tin=02508201610067®Number=0000000000092771&sum=50000 [12:43:06]OFD Sender: Processing packet 111644 [packets to send 38, broken 37] [12:43:06]ProducePacketName [12:43:06]name=ofd_packets/00111644 [12:43:06]OFD Sender: To server: pG, [12:43:06]CommunicateWithHost lk.salyk.kg:30040 [12:43:06]ConnectInit lk.salyk.kg [12:43:06]written 0, free lines is 4095 [12:43:06]Connected sock=10 [12:43:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 42 5B 04 01 FA 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 FA 23 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1C B4 01 00 35 04 06 00 A2 6B 20 E5 90 10 4E EA 78 50 C7 07 6F 73 [12:43:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 06 CB 47 00 DA BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1C B4 01 00 F4 03 04 00 44 BB 73 66 B6 04 01 00 00 9C F8 B7 51 E8 78 76 4B [12:43:06]CommunicateWithHost err = 0 [12:43:06]CheckOFDResponse [12:43:06]1017 (14) - 77093643461234 [12:43:06]1041 (16) - 0000000000875083 [12:43:06]1040 (4) - 111644 [12:43:06]1012 (4) - 20.06.2024 05:16 [12:43:06]1206 (1) - 0 [12:43:06]OFD Sender: Remove packet 111644 [12:43:06]ProducePacketName [12:43:06]name=ofd_packets/00111644 [12:43:06]NVStorageDeleteData [12:43:06]Write to MH i2c: 01 00 00 BB 5E 19 [12:43:06]Write i2c OK [12:43:06]MH_I2C_Read... [12:43:06]Read from MH i2c: 01 [12:43:06]MH_I2C_Read... [12:43:06]Read from MH i2c: 01 07 00 [12:43:06]MH_I2C_Read... [12:43:06]Read from MH i2c: 01 07 00 BB 5E 00 00 00 00 00 D0 0C FC [12:43:06]RasterBufferAndPrint [12:43:06]line [12:43:06]line [12:43:06]line [12:43:06]line [12:43:06]line [12:43:06]written 0, free lines is 3288 [12:43:06]MH_Cut [12:43:06]Write to MH i2c: D1 01 00 C2 5E 01 F2 [12:43:06]Write i2c OK [12:43:06]MH_I2C_Read... [12:43:06]Read from MH i2c: D1 [12:43:06]MH_I2C_Read... [12:43:06]Read from MH i2c: D1 01 00 [12:43:06]MH_I2C_Read... [12:43:06]Read from MH i2c: D1 01 00 C2 5E 00 F1 [12:43:06]Write to MH i2c: 01 00 00 C3 5E 21 [12:43:06]Write i2c OK [12:43:06]MH_I2C_Read... [12:43:06]OFD Sender: No OFD packet to send [12:43:07]*** Cut start [12:43:07]*** Partial cut [12:43:07]*** CUTSNS_PIN = 1 [12:43:07]*** CUTSNS_PIN = 0 [12:43:07]*** Brake cut motor [12:43:07]Read from MH i2c: 01 [12:43:07]MH_I2C_Read... [12:43:07]*** Stop cut motor [12:43:07]*** Cut end [12:43:07]Read from MH i2c: 01 07 00 [12:43:07]MH_I2C_Read... [12:43:07]Read from MH i2c: 01 07 00 C3 5E 00 00 00 00 00 FF 0F 36 [12:43:07]process_action close_receipt done [12:43:07]requested_data is exist [12:43:07]produce_requested_data [12:43:07]requested_item fm.sn is exist - process it [12:43:07]wFMCommunicate request_size=4 [12:43:07]MH_SAM_APDU [12:43:07]CAPDU: 80 11 00 00 [12:43:07]Write to MH i2c: E2 08 00 C4 5E 80 11 00 00 00 00 00 00 9C [12:43:07]Write i2c OK [12:43:07]MH_I2C_Read... [12:43:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:08]Read from MH i2c: E2 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: E2 17 00 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: E2 17 00 C4 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EE [12:43:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:43:08]wFMCommunicate OK [12:43:08]requested_item fd.num is exist - process it [12:43:08]SAM_PROTO_GetFieldsCounters [12:43:08]wFMCommunicate request_size=4 [12:43:08]MH_SAM_APDU [12:43:08]CAPDU: 80 13 00 00 [12:43:08]Write to MH i2c: E2 08 00 C5 5E 80 13 00 00 00 00 00 00 9F [12:43:08]Write i2c OK [12:43:08]MH_I2C_Read... [12:43:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:08]Read from MH i2c: E2 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: E2 62 00 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: E2 62 00 C5 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1C B4 01 00 0E 04 04 00 85 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 31 [12:43:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1C B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:43:08]wFMCommunicate OK [12:43:08]SAM_PROTO_GetFieldsCounters done [12:43:08]requested_item shift.num is exist - process it [12:43:08]requested_item shift.opened is exist - process it [12:43:08]req_shift_opened [12:43:08]FM_GetShiftState [12:43:08]SAM_PROTO_GetShiftState [12:43:08]wFMCommunicate request_size=4 [12:43:08]MH_SAM_APDU [12:43:08]CAPDU: 80 13 01 00 [12:43:08]Write to MH i2c: E2 08 00 C6 5E 80 13 01 00 00 00 00 00 A1 [12:43:08]Write i2c OK [12:43:08]MH_I2C_Read... [12:43:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:08]Read from MH i2c: E2 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: E2 0E 00 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: E2 0E 00 C6 5E 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 1C [12:43:08]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:43:08]wFMCommunicate OK [12:43:08]SAM_PROTO_GetShiftState done [12:43:08]FM_GetShiftState done [12:43:08]req_shift_opened done [12:43:08]requested_item shift.open_date is exist - process it [12:43:08]req_shift_open_date [12:43:08]req_shift_open_date done [12:43:08]produce_requested_data done [12:43:08]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111644,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [12:43:08]process_action_free close_receipt [12:43:08]json_value_free [12:43:08]json_value_free done [12:43:08]process_json_proto returns [12:43:08]Send response to host [12:43:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111644,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [12:43:08]free response buf [12:43:08]execute_script done [12:43:08]execute_script returns [12:43:08]free content buf [12:43:08]Sock 9.Close socket [12:43:08]Sock 9.Thread stoped [12:43:11]OFD Sender: No OFD packet to send [12:43:16]OFD Sender: No OFD packet to send [12:43:21]OFD Sender: No OFD packet to send [12:43:26]OFD Sender: No OFD packet to send [12:43:31]OFD Sender: No OFD packet to send [12:43:36]OFD Sender: No OFD packet to send [12:43:41]OFD Sender: No OFD packet to send [12:43:46]OFD Sender: No OFD packet to send [12:43:51]OFD Sender: No OFD packet to send [12:43:56]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:00]accept exits with 7 [12:47:00]New connection [12:47:00]New thread 3067321700 created [12:47:00]Thread 3067465060 joined [12:47:00]Waiting for new connection... [12:47:00] Sock 7.Parse request [12:47:00]Sock 7.Check first char [12:47:00]Sock 7.First char is OK [12:47:00]request: POST /json_proto HTTP/1.0 [12:47:00]Method: POST [12:47:00]URL: /json_proto [12:47:00]Method is POST - this is cgi request [12:47:00]url: /json_proto [12:47:00]query_string will be loaded in cgi processing [12:47:00]execute_cgi json_proto POST (null) [12:47:00]execute_cgi path=json_proto method=POST [12:47:00]POST find Content-Length [12:47:00]Host: 172.17.59.68:8080 [12:47:00]Content-Length: 677 [12:47:00]Content-Type: application/json [12:47:00] [12:47:00]POST finish read [12:47:00]Found Content-Length = 677 [12:47:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:00]execute_script... [12: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)320245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:00]POST & json_proto [12:47:00]process_json_proto [12:47:00]json parsed OK: [12:47:00]protocol is kg_v1.0 [12:47:00]action value=close_receipt [12:47:00]process_action close_receipt [12:47:00]cmd_close_receipt [12:47:00]MH_GetDate [12:47:00]Write to MH i2c: F0 00 00 C7 5E 14 [12:47:00]Write i2c OK [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: F0 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: F0 09 00 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: F0 09 00 C7 5E 00 E6 24 74 66 BC EC 60 65 6E [12:47:00]GetLastDocTimeStamp 1718887418 [12:47:00]current date 1718887654 [12:47:00]FM_GetShiftState [12:47:00]SAM_PROTO_GetShiftState [12:47:00]wFMCommunicate request_size=4 [12:47:00]MH_SAM_APDU [12:47:00]CAPDU: 80 13 01 00 [12:47:00]Write to MH i2c: E2 08 00 C8 5E 80 13 01 00 00 00 00 00 A3 [12:47:00]Write i2c OK [12:47:00]MH_I2C_Read... [12:47:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:00]Read from MH i2c: E2 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: E2 0E 00 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: E2 0E 00 C8 5E 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 1E [12:47:00]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:47:00]wFMCommunicate OK [12:47:00]SAM_PROTO_GetShiftState done [12:47:00]FM_GetShiftState done [12:47:00]opened in 1718847247 [12:47:00]opened+sec_in_day 1718933647 [12:47:00]quantity*price = 50065 [12:47:00]sum+1 = 50067 [12:47:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 95 20.06.2024 12:47 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111645 ФПД: 121881642798120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T124734&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111645&fm=121881642798120&tin=02508201610067®Number=0000000000092771&sum=50000 [12:47:01]StoreToDocumentArchive [12:47:01]shift 389 fd 111645 [12:47:01]save to /storage/0389/doc_00111645 [12:47:01]save last doc name /storage/0389/doc_00111645 to /storage/kkm_last_doc_name [12:47:01]save OK [12:47:01]Clear old archive folders... [12:47:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:47:01]tlvbuf is 00FF1080 [12:47:01]SAM_PROTO_ClearQueue [12:47:01]wFMCommunicate request_size=4 [12:47:01]MH_SAM_APDU [12:47:01]CAPDU: 80 09 00 00 [12:47:01]Write to MH i2c: E2 08 00 D5 5E 80 09 00 00 00 00 00 00 A5 [12:47:01]Write i2c OK [12:47:01]MH_I2C_Read... [12:47:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:01]Read from MH i2c: E2 [12:47:01]MH_I2C_Read... [12:47:01]Read from MH i2c: E2 03 00 [12:47:01]MH_I2C_Read... [12:47:01]Read from MH i2c: E2 03 00 D5 5E 00 90 00 A7 [12:47:01]RAPDU: 90 00 [12:47:01]wFMCommunicate OK [12:47:01]SAM_PROTO_ClearQueue done [12:47:01]KKMCreateOFDPacket [12:47:01]OFDProtocolAddRootSTLVToBuf [12:47:01]FM_MakeSignedData [12:47:01]FM_MakeSignedData [12:47:01]SAM_PROTO_SignData [12:47:01]wFMCommunicate request_size=4 [12:47:01]MH_SAM_APDU [12:47:01]CAPDU: 80 0D 01 02 [12:47:01]Write to MH i2c: E2 08 00 D6 5E 80 0D 01 02 00 00 00 00 AD [12:47:01]Write i2c OK [12:47:01]MH_I2C_Read... [12:47:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:01]Read from MH i2c: E2 [12:47:01]MH_I2C_Read... [12:47:01]Read from MH i2c: E2 03 00 [12:47:01]MH_I2C_Read... [12:47:01]Read from MH i2c: E2 03 00 D6 5E 00 90 00 A8 [12:47:01]RAPDU: 90 00 [12:47:01]wFMCommunicate OK [12:47:01]wFMCommunicate request_size=255 [12:47:01]MH_SAM_APDU [12: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 E6 24 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1D B4 01 00 35 04 06 00 6E [12:47:01]Write to MH i2c: E2 02 01 D7 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 E6 24 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1D B4 01 00 35 04 06 00 6E 00 00 6A [12:47:01]Write i2c OK [12:47:01]MH_I2C_Read... [12:47:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:02]Read from MH i2c: E2 [12:47:02]MH_I2C_Read... [12:47:02]Read from MH i2c: E2 03 00 [12:47:02]MH_I2C_Read... [12:47:02]Read from MH i2c: E2 03 00 D7 5E 00 90 00 A9 [12:47:02]RAPDU: 90 00 [12:47:02]wFMCommunicate OK [12:47:02]wFMCommunicate request_size=10 [12:47:02]MH_SAM_APDU [12:47:02]CAPDU: 80 0D 02 02 05 D9 C8 06 0C 28 [12:47:02]Write to MH i2c: E2 0D 00 D8 5E 80 0D 02 02 05 00 D9 C8 06 0C 28 00 00 95 [12:47:02]Write i2c OK [12:47:02]MH_I2C_Read... [12:47:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:02]Read from MH i2c: E2 [12:47:02]MH_I2C_Read... [12:47:02]Read from MH i2c: E2 03 00 [12:47:02]MH_I2C_Read... [12:47:02]Read from MH i2c: E2 03 00 D8 5E 00 90 00 AA [12:47:02]RAPDU: 90 00 [12:47:02]wFMCommunicate OK [12:47:02]wFMCommunicate request_size=4 [12:47:02]MH_SAM_APDU [12:47:02]CAPDU: 80 0D 03 02 [12:47:02]Write to MH i2c: E2 08 00 D9 5E 80 0D 03 02 00 00 00 00 B2 [12:47:02]Write i2c OK [12:47:02]MH_I2C_Read... [12:47:02]OFD Sender: No OFD packet to send [12:47:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:02]Read from MH i2c: E2 [12:47:02]MH_I2C_Read... [12:47:02]Read from MH i2c: E2 0B 00 [12:47:02]MH_I2C_Read... [12:47:02]Read from MH i2c: E2 0B 00 D9 5E 00 25 7B 43 DF B4 36 EB 1D 90 00 67 [12:47:02]RAPDU: 25 7B 43 DF B4 36 EB 1D 90 00 [12:47:02]wFMCommunicate OK [12:47:02]SAM_PROTO_SignData done [12:47:02]FM_MakeSignedData done [12:47:02]CreateOFDProtocolMessage [12:47:02]wFMCommunicate request_size=4 [12:47:02]MH_SAM_APDU [12:47:02]CAPDU: 80 11 00 00 [12:47:02]Write to MH i2c: E2 08 00 DA 5E 80 11 00 00 00 00 00 00 B2 [12:47:02]Write i2c OK [12:47:02]MH_I2C_Read... [12:47:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:02]Read from MH i2c: E2 [12:47:02]MH_I2C_Read... [12:47:02]Read from MH i2c: E2 17 00 [12:47:02]MH_I2C_Read... [12:47:02]Read from MH i2c: E2 17 00 DA 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 04 [12:47:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:47:02]wFMCommunicate OK [12:47:02]CreateOFDProtocolMessage done [12:47:02]OFDSenderStorePacket 111645 [12:47:02]StoreOFDPacket docnum=111645 [12:47:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DA 9C 07 01 29 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 E6 24 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1D B4 01 00 35 04 06 00 6E D9 C8 06 0C 28 25 7B 43 DF B4 36 EB 1D [12:47:02]CheckFolder [12:47:02]dirname=/storage/ofd_packets [12:47:02]CheckFolder done [12:47:02]ProducePacketName [12:47:02]name=ofd_packets/00111645 [12:47:02]NVStorageSaveData ofd_packets/00111645 [12:47:02]File name is /storage/ofd_packets/00111645 [12:47:02]Write 301 bytes [12:47:02]NVStorageSaveData done [12:47:02]OFDSenderStorePacket done [12:47:02]KKMCreateOFDPacket done [12:47:02]NVStorageSaveData kkm_last_timestamp [12:47:02]File name is /storage/kkm_last_timestamp [12:47:02]Write 4 bytes [12:47:02]NVStorageSaveData done [12:47:02]ExternCall_PrintAddStr [12:47:02]wPrintStart [12:47:02]Write to MH i2c: 01 00 00 DB 5E 39 [12:47:02]Write i2c OK [12:47:02]MH_I2C_Read... [12:47:02]Read from MH i2c: 01 [12:47:02]MH_I2C_Read... [12:47:02]Read from MH i2c: 01 07 00 [12:47:02]MH_I2C_Read... [12:47:02]Read from MH i2c: 01 07 00 DB 5E 00 00 00 00 00 FF 0F 4E [12:47:02]RasterBufferAndPrint [12:47:02]line Счет N : (1)320245 [12:47:02]line ИНН: 02508201610067 [12:47:02]line Контрольно-Кассовый Чек [12:47:02]line ПРОДАЖА [12:47:02]line ТРК (МРК, ГНК) : 11 [12:47:02]line Товар: 2710124130 [12:47:02]line Аи-92-К-5 [12:47:02]line 7.540 * 66.40 [12:47:02]line = 500.66 [12:47:02]line НДС 12% НСП 1% [12:47:02]line > о реализуемом товаре [12:47:02]line ОКРУГЛЕНИЕ: -0.66 [12:47:02]line ИТОГО: 500.00 [12:47:02]line Внесено: 500.00 [12:47:02]line СДАЧА: 0.00 [12:47:02]line НСП 1% : 4.43 [12:47:02]line НДС 12% : 53.17 [12:47:02]line Наличными: 500.00 [12:47:02]line Безнал.: 0.00 [12:47:02]line Место: АЗС № 65 "Партнер Нефть" [12:47:02]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:47:02]line СНО: Общий режим [12:47:02]line Чек 95 20.06.2024 12:47 [12:47:02]line Смена: 389 ФФД: 1.0 [12:47:02]line ЗНМ: 0300000198 [12:47:02]line РНМ: 0000000000092771 [12:47:02]line Версия ККМ: 001 [12:47:02]line ФМ: 0000000000875083 [12:47:02]line ФД: 111645 [12:47:02]line ФПД: 121881642798120 [12:47:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T124734&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111645&fm=121881642798120&tin=02508201610067®Number=0000000000092771&sum=50000 [12:47:02]OFD Sender: Processing packet 111645 [packets to send 38, broken 37] [12:47:02]ProducePacketName [12:47:02]name=ofd_packets/00111645 [12:47:02]OFD Sender: To server: pG, [12:47:02]CommunicateWithHost lk.salyk.kg:30040 [12:47:02]ConnectInit lk.salyk.kg [12:47:02]written 0, free lines is 4095 [12:47:02]Connected sock=10 [12: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 35 30 38 33 0F 01 00 00 DA 9C 07 01 29 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 E6 24 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1D B4 01 00 35 04 06 00 6E D9 C8 06 0C 28 25 7B 43 DF B4 36 EB 1D [12:47:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 27 73 47 00 2B 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 35 30 38 33 10 04 04 00 1D B4 01 00 F4 03 04 00 31 BC 73 66 B6 04 01 00 00 B2 E1 BD 5B 9B 90 89 3F [12:47:02]CommunicateWithHost err = 0 [12:47:02]CheckOFDResponse [12:47:02]1017 (14) - 77093643461234 [12:47:02]1041 (16) - 0000000000875083 [12:47:02]1040 (4) - 111645 [12:47:02]1012 (4) - 20.06.2024 05:20 [12:47:02]1206 (1) - 0 [12:47:02]OFD Sender: Remove packet 111645 [12:47:02]ProducePacketName [12:47:02]name=ofd_packets/00111645 [12:47:02]NVStorageDeleteData [12:47:03]Write to MH i2c: 01 00 00 06 5F 65 [12:47:03]Write i2c OK [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: 01 [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: 01 07 00 [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: 01 07 00 06 5F 00 00 00 00 00 C6 0C 3E [12:47:03]RasterBufferAndPrint [12:47:03]line [12:47:03]line [12:47:03]line [12:47:03]line [12:47:03]line [12:47:03]written 0, free lines is 3276 [12:47:03]MH_Cut [12:47:03]Write to MH i2c: D1 01 00 0D 5F 01 3E [12:47:03]Write i2c OK [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: D1 [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: D1 01 00 [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: D1 01 00 0D 5F 00 3D [12:47:03]Write to MH i2c: 01 00 00 0E 5F 6D [12:47:03]Write i2c OK [12:47:03]MH_I2C_Read... [12:47:03]OFD Sender: No OFD packet to send [12:47:03]*** Cut start [12:47:03]*** Partial cut [12:47:03]*** CUTSNS_PIN = 1 [12:47:03]*** CUTSNS_PIN = 0 [12:47:04]*** Brake cut motor [12:47:04]Read from MH i2c: 01 [12:47:04]MH_I2C_Read... [12:47:04]*** Stop cut motor [12:47:04]*** Cut end [12:47:04]Read from MH i2c: 01 07 00 [12:47:04]MH_I2C_Read... [12:47:04]Read from MH i2c: 01 07 00 0E 5F 00 00 00 00 00 FF 0F 82 [12:47:04]process_action close_receipt done [12:47:04]requested_data is exist [12:47:04]produce_requested_data [12:47:04]requested_item fm.sn is exist - process it [12:47:04]wFMCommunicate request_size=4 [12:47:04]MH_SAM_APDU [12:47:04]CAPDU: 80 11 00 00 [12:47:04]Write to MH i2c: E2 08 00 0F 5F 80 11 00 00 00 00 00 00 E8 [12:47:04]Write i2c OK [12:47:04]MH_I2C_Read... [12:47:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:04]Read from MH i2c: E2 [12:47:04]MH_I2C_Read... [12:47:04]Read from MH i2c: E2 17 00 [12:47:04]MH_I2C_Read... [12:47:04]Read from MH i2c: E2 17 00 0F 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3A [12:47:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:47:04]wFMCommunicate OK [12:47:04]requested_item fd.num is exist - process it [12:47:04]SAM_PROTO_GetFieldsCounters [12:47:04]wFMCommunicate request_size=4 [12:47:04]MH_SAM_APDU [12:47:04]CAPDU: 80 13 00 00 [12:47:04]Write to MH i2c: E2 08 00 10 5F 80 13 00 00 00 00 00 00 EB [12:47:04]Write i2c OK [12:47:04]MH_I2C_Read... [12:47:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:04]Read from MH i2c: E2 [12:47:04]MH_I2C_Read... [12:47:04]Read from MH i2c: E2 62 00 [12:47:04]MH_I2C_Read... [12:47:04]Read from MH i2c: E2 62 00 10 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1D B4 01 00 0E 04 04 00 85 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 81 [12: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1D B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:47:04]wFMCommunicate OK [12:47:04]SAM_PROTO_GetFieldsCounters done [12:47:04]requested_item shift.num is exist - process it [12:47:04]requested_item shift.opened is exist - process it [12:47:04]req_shift_opened [12:47:04]FM_GetShiftState [12:47:04]SAM_PROTO_GetShiftState [12:47:04]wFMCommunicate request_size=4 [12:47:04]MH_SAM_APDU [12:47:04]CAPDU: 80 13 01 00 [12:47:04]Write to MH i2c: E2 08 00 11 5F 80 13 01 00 00 00 00 00 ED [12:47:04]Write i2c OK [12:47:04]MH_I2C_Read... [12:47:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:04]Read from MH i2c: E2 [12:47:04]MH_I2C_Read... [12:47:04]Read from MH i2c: E2 0E 00 [12:47:04]MH_I2C_Read... [12:47:04]Read from MH i2c: E2 0E 00 11 5F 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 68 [12:47:04]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:47:04]wFMCommunicate OK [12:47:04]SAM_PROTO_GetShiftState done [12:47:04]FM_GetShiftState done [12:47:04]req_shift_opened done [12:47:04]requested_item shift.open_date is exist - process it [12:47:04]req_shift_open_date [12:47:04]req_shift_open_date done [12:47:04]produce_requested_data done [12:47:04]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111645,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [12:47:04]process_action_free close_receipt [12:47:04]json_value_free [12:47:04]json_value_free done [12:47:04]process_json_proto returns [12:47:04]Send response to host [12:47:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111645,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [12:47:04]free response buf [12:47:04]execute_script done [12:47:04]execute_script returns [12:47:04]free content buf [12:47:04]Sock 7.Close socket [12:47:04]Sock 7.Thread stoped [12:47:08]OFD Sender: No OFD packet to send [12:47:13]OFD Sender: No OFD packet to send [12:47:18]OFD Sender: No OFD packet to send [12:47:23]OFD Sender: No OFD packet to send [12:47:28]OFD Sender: No OFD packet to send [12:47:33]OFD Sender: No OFD packet to send [12:47:38]OFD Sender: No OFD packet to send [12:47:43]OFD Sender: No OFD packet to send [12:47:48]OFD Sender: No OFD packet to send [12:47:53]OFD Sender: No OFD packet to send [12:47:58]OFD Sender: No OFD packet to send [12:48:03]OFD Sender: No OFD packet to send [12:48:08]OFD Sender: No OFD packet to send [12:48:13]OFD Sender: No OFD packet to send [12:48:18]OFD Sender: No OFD packet to send [12:48:23]OFD Sender: No OFD packet to send [12:48:28]OFD Sender: No OFD packet to send [12:48:33]OFD Sender: No OFD packet to send [12:48:38]OFD Sender: No OFD packet to send [12:48:43]OFD Sender: No OFD packet to send [12:48:48]OFD Sender: No OFD packet to send [12:48: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:57]accept exits with 9 [12:49:57]New connection [12:49:57]New thread 3067465060 created [12:49:57]Thread 3067321700 joined [12:49:57]Waiting for new connection... [12:49:57] Sock 9.Parse request [12:49:57]Sock 9.Check first char [12:49:57]Sock 9.First char is OK [12:49:57]request: POST /json_proto HTTP/1.0 [12:49:57]Method: POST [12:49:57]URL: /json_proto [12:49:57]Method is POST - this is cgi request [12:49:57]url: /json_proto [12:49:57]query_string will be loaded in cgi processing [12:49:57]execute_cgi json_proto POST (null) [12:49:57]execute_cgi path=json_proto method=POST [12:49:57]POST find Content-Length [12:49:57]Host: 172.17.59.68:8080 [12:49:57]Content-Length: 677 [12:49:57]Content-Type: application/json [12:49:57] [12:49:58]POST finish read [12:49:58]Found Content-Length = 677 [12:49:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:58]execute_script... [12:49: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)320246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:58]POST & json_proto [12:49:58]process_json_proto [12:49:58]json parsed OK: [12:49:58]protocol is kg_v1.0 [12:49:58]action value=close_receipt [12:49:58]process_action close_receipt [12:49:58]cmd_close_receipt [12:49:58]MH_GetDate [12:49:58]Write to MH i2c: F0 00 00 12 5F 60 [12:49:58]Write i2c OK [12:49:58]MH_I2C_Read... [12:49:58]Read from MH i2c: F0 [12:49:58]MH_I2C_Read... [12:49:58]Read from MH i2c: F0 09 00 [12:49:58]MH_I2C_Read... [12:49:58]Read from MH i2c: F0 09 00 12 5F 00 98 25 74 66 BC EC 60 65 6D [12:49:58]GetLastDocTimeStamp 1718887654 [12:49:58]current date 1718887832 [12:49:58]FM_GetShiftState [12:49:58]SAM_PROTO_GetShiftState [12:49:58]wFMCommunicate request_size=4 [12:49:58]MH_SAM_APDU [12:49:58]CAPDU: 80 13 01 00 [12:49:58]Write to MH i2c: E2 08 00 13 5F 80 13 01 00 00 00 00 00 EF [12:49:58]Write i2c OK [12:49:58]MH_I2C_Read... [12:49:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:58]Read from MH i2c: E2 [12:49:58]MH_I2C_Read... [12:49:58]Read from MH i2c: E2 0E 00 [12:49:58]MH_I2C_Read... [12:49:58]Read from MH i2c: E2 0E 00 13 5F 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 6A [12:49:58]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:49:58]wFMCommunicate OK [12:49:58]SAM_PROTO_GetShiftState done [12:49:58]FM_GetShiftState done [12:49:58]opened in 1718847247 [12:49:58]opened+sec_in_day 1718933647 [12:49:58]quantity*price = 50065 [12:49:58]sum+1 = 50067 [12:49:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 96 20.06.2024 12:50 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111646 ФПД: 214908995221603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T125032&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111646&fm=214908995221603&tin=02508201610067®Number=0000000000092771&sum=50000 [12:49:59]StoreToDocumentArchive [12:49:59]shift 389 fd 111646 [12:49:59]save to /storage/0389/doc_00111646 [12:49:59]save last doc name /storage/0389/doc_00111646 to /storage/kkm_last_doc_name [12:49:59]save OK [12:49:59]Clear old archive folders... [12:49:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:49:59]tlvbuf is 01031910 [12:49:59]SAM_PROTO_ClearQueue [12:49:59]wFMCommunicate request_size=4 [12:49:59]MH_SAM_APDU [12:49:59]CAPDU: 80 09 00 00 [12:49:59]Write to MH i2c: E2 08 00 20 5F 80 09 00 00 00 00 00 00 F1 [12:49:59]Write i2c OK [12:49:59]MH_I2C_Read... [12:49:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:59]Read from MH i2c: E2 [12:49:59]MH_I2C_Read... [12:49:59]Read from MH i2c: E2 03 00 [12:49:59]MH_I2C_Read... [12:49:59]Read from MH i2c: E2 03 00 20 5F 00 90 00 F3 [12:49:59]RAPDU: 90 00 [12:49:59]wFMCommunicate OK [12:49:59]SAM_PROTO_ClearQueue done [12:49:59]KKMCreateOFDPacket [12:49:59]OFDProtocolAddRootSTLVToBuf [12:49:59]FM_MakeSignedData [12:49:59]FM_MakeSignedData [12:49:59]SAM_PROTO_SignData [12:49:59]wFMCommunicate request_size=4 [12:49:59]MH_SAM_APDU [12:49:59]CAPDU: 80 0D 01 02 [12:49:59]Write to MH i2c: E2 08 00 21 5F 80 0D 01 02 00 00 00 00 F9 [12:49:59]Write i2c OK [12:49:59]MH_I2C_Read... [12:49:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:59]Read from MH i2c: E2 [12:49:59]MH_I2C_Read... [12:49:59]Read from MH i2c: E2 03 00 [12:49:59]MH_I2C_Read... [12:49:59]Read from MH i2c: E2 03 00 21 5F 00 90 00 F4 [12:49:59]RAPDU: 90 00 [12:49:59]wFMCommunicate OK [12:49:59]wFMCommunicate request_size=255 [12:49:59]MH_SAM_APDU [12:49: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 98 25 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1E B4 01 00 35 04 06 00 C3 [12:49:59]Write to MH i2c: E2 02 01 22 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 98 25 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1E B4 01 00 35 04 06 00 C3 00 00 C0 [12:49:59]Write i2c OK [12:49:59]MH_I2C_Read... [12:49:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:59]Read from MH i2c: E2 [12:49:59]MH_I2C_Read... [12:49:59]Read from MH i2c: E2 03 00 [12:49:59]MH_I2C_Read... [12:49:59]Read from MH i2c: E2 03 00 22 5F 00 90 00 F5 [12:49:59]RAPDU: 90 00 [12:49:59]wFMCommunicate OK [12:49:59]wFMCommunicate request_size=10 [12:49:59]MH_SAM_APDU [12:49:59]CAPDU: 80 0D 02 02 05 75 66 51 B8 63 [12:49:59]Write to MH i2c: E2 0D 00 23 5F 80 0D 02 02 05 00 75 66 51 B8 63 00 00 4D [12:49:59]Write i2c OK [12:49:59]MH_I2C_Read... [12:49:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:59]Read from MH i2c: E2 [12:49:59]MH_I2C_Read... [12:49:59]Read from MH i2c: E2 03 00 [12:49:59]MH_I2C_Read... [12:49:59]Read from MH i2c: E2 03 00 23 5F 00 90 00 F6 [12:49:59]RAPDU: 90 00 [12:49:59]wFMCommunicate OK [12:49:59]wFMCommunicate request_size=4 [12:49:59]MH_SAM_APDU [12:49:59]CAPDU: 80 0D 03 02 [12:49:59]Write to MH i2c: E2 08 00 24 5F 80 0D 03 02 00 00 00 00 FE [12:49:59]Write i2c OK [12:49:59]MH_I2C_Read... [12:49:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:59]Read from MH i2c: E2 [12:49:59]MH_I2C_Read... [12:49:59]Read from MH i2c: E2 0B 00 [12:49:59]MH_I2C_Read... [12:49:59]Read from MH i2c: E2 0B 00 24 5F 00 79 88 A0 C6 57 43 29 AB 90 00 D4 [12:49:59]RAPDU: 79 88 A0 C6 57 43 29 AB 90 00 [12:49:59]wFMCommunicate OK [12:49:59]SAM_PROTO_SignData done [12:49:59]FM_MakeSignedData done [12:49:59]CreateOFDProtocolMessage [12:49:59]wFMCommunicate request_size=4 [12:49:59]MH_SAM_APDU [12:49:59]CAPDU: 80 11 00 00 [12:49:59]Write to MH i2c: E2 08 00 25 5F 80 11 00 00 00 00 00 00 FE [12:49:59]Write i2c OK [12:49:59]MH_I2C_Read... [12:49:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:59]Read from MH i2c: E2 [12:49:59]MH_I2C_Read... [12:49:59]Read from MH i2c: E2 17 00 [12:49:59]MH_I2C_Read... [12:49:59]Read from MH i2c: E2 17 00 25 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 50 [12:49:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:49:59]wFMCommunicate OK [12:49:59]CreateOFDProtocolMessage done [12:49:59]OFDSenderStorePacket 111646 [12:49:59]StoreOFDPacket docnum=111646 [12:49:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 49 F0 07 01 74 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 98 25 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1E B4 01 00 35 04 06 00 C3 75 66 51 B8 63 79 88 A0 C6 57 43 29 AB [12:49:59]CheckFolder [12:49:59]dirname=/storage/ofd_packets [12:49:59]CheckFolder done [12:49:59]ProducePacketName [12:49:59]name=ofd_packets/00111646 [12:49:59]NVStorageSaveData ofd_packets/00111646 [12:49:59]File name is /storage/ofd_packets/00111646 [12:49:59]Write 301 bytes [12:49:59]NVStorageSaveData done [12:49:59]OFDSenderStorePacket done [12:49:59]KKMCreateOFDPacket done [12:49:59]NVStorageSaveData kkm_last_timestamp [12:49:59]File name is /storage/kkm_last_timestamp [12:49:59]Write 4 bytes [12:49:59]NVStorageSaveData done [12:49:59]OFD Sender: Processing packet 111646 [packets to send 38, broken 37] [12:49:59]ProducePacketName [12:49:59]name=ofd_packets/00111646 [12:49:59]OFD Sender: To server: pG, [12:49:59]CommunicateWithHost lk.salyk.kg:30040 [12:49:59]ConnectInit lk.salyk.kg [12:49:59]ExternCall_PrintAddStr [12:49:59]wPrintStart [12:49:59]Write to MH i2c: 01 00 00 26 5F 85 [12:49:59]Write i2c OK [12:49:59]MH_I2C_Read... [12:49:59]Read from MH i2c: 01 [12:49:59]MH_I2C_Read... [12:49:59]Read from MH i2c: 01 07 00 [12:49:59]MH_I2C_Read... [12:49:59]Read from MH i2c: 01 07 00 26 5F 00 00 00 00 00 FF 0F 9A [12:49:59]RasterBufferAndPrint [12:49:59]line Счет N : (1)320246 [12:49:59]line ИНН: 02508201610067 [12:49:59]line Контрольно-Кассовый Чек [12:49:59]line ПРОДАЖА [12:49:59]line ТРК (МРК, ГНК) : 11 [12:49:59]line Товар: 2710124130 [12:49:59]line Аи-92-К-5 [12:49:59]line 7.540 * 66.40 [12:49:59]line = 500.66 [12:49:59]line НДС 12% НСП 1% [12:49:59]line > о реализуемом товаре [12:49:59]line ОКРУГЛЕНИЕ: -0.66 [12:49:59]line ИТОГО: 500.00 [12:49:59]line Внесено: 500.00 [12:49:59]line СДАЧА: 0.00 [12:49:59]line НСП 1% : 4.43 [12:49:59]line НДС 12% : 53.17 [12:49:59]line Наличными: 500.00 [12:49:59]line Безнал.: 0.00 [12:49:59]line Место: АЗС № 65 "Партнер Нефть" [12:49:59]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:49:59]line СНО: Общий режим [12:49:59]line Чек 96 20.06.2024 12:50 [12:49:59]line Смена: 389 ФФД: 1.0 [12:49:59]line ЗНМ: 0300000198 [12:49:59]line РНМ: 0000000000092771 [12:49:59]line Версия ККМ: 001 [12:49:59]line ФМ: 0000000000875083 [12:49:59]line ФД: 111646 [12:49:59]line ФПД: 214908995221603 [12:50:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T125032&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111646&fm=214908995221603&tin=02508201610067®Number=0000000000092771&sum=50000 [12:50:00]Connected sock=11 [12:50:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 49 F0 07 01 74 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 98 25 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1E B4 01 00 35 04 06 00 C3 75 66 51 B8 63 79 88 A0 C6 57 43 29 AB [12:50:00]written 0, free lines is 4095 [12:50:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 9C 0D 47 00 85 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1E B4 01 00 F4 03 04 00 E2 BC 73 66 B6 04 01 00 00 3C 8E 86 0F 33 02 FB 29 [12:50:00]CommunicateWithHost err = 0 [12:50:00]CheckOFDResponse [12:50:00]1017 (14) - 77093643461234 [12:50:00]1041 (16) - 0000000000875083 [12:50:00]1040 (4) - 111646 [12:50:00]1012 (4) - 20.06.2024 05:23 [12:50:00]1206 (1) - 0 [12:50:00]OFD Sender: Remove packet 111646 [12:50:00]ProducePacketName [12:50:00]name=ofd_packets/00111646 [12:50:00]NVStorageDeleteData [12:50:00]Write to MH i2c: 01 00 00 51 5F B0 [12:50:00]Write i2c OK [12:50:00]MH_I2C_Read... [12:50:00]Read from MH i2c: 01 [12:50:00]MH_I2C_Read... [12:50:00]Read from MH i2c: 01 07 00 [12:50:00]MH_I2C_Read... [12:50:00]Read from MH i2c: 01 07 00 51 5F 00 00 00 00 00 D0 0C 93 [12:50:00]RasterBufferAndPrint [12:50:00]line [12:50:00]line [12:50:00]line [12:50:00]line [12:50:00]line [12:50:00]written 0, free lines is 3287 [12:50:00]MH_Cut [12:50:00]Write to MH i2c: D1 01 00 58 5F 01 89 [12:50:00]Write i2c OK [12:50:00]MH_I2C_Read... [12:50:00]Read from MH i2c: D1 [12:50:00]MH_I2C_Read... [12:50:00]Read from MH i2c: D1 01 00 [12:50:00]MH_I2C_Read... [12:50:00]Read from MH i2c: D1 01 00 58 5F 00 88 [12:50:00]Write to MH i2c: 01 00 00 59 5F B8 [12:50:00]Write i2c OK [12:50:00]MH_I2C_Read... [12:50:00]OFD Sender: No OFD packet to send [12:50:01]*** Cut start [12:50:01]*** Partial cut [12:50:01]*** CUTSNS_PIN = 1 [12:50:01]*** CUTSNS_PIN = 0 [12:50:01]*** Brake cut motor [12:50:01]Read from MH i2c: 01 [12:50:01]MH_I2C_Read... [12:50:01]*** Stop cut motor [12:50:01]*** Cut end [12:50:01]Read from MH i2c: 01 07 00 [12:50:01]MH_I2C_Read... [12:50:01]Read from MH i2c: 01 07 00 59 5F 00 00 00 00 00 FF 0F CD [12:50:01]process_action close_receipt done [12:50:01]requested_data is exist [12:50:01]produce_requested_data [12:50:01]requested_item fm.sn is exist - process it [12:50:01]wFMCommunicate request_size=4 [12:50:01]MH_SAM_APDU [12:50:01]CAPDU: 80 11 00 00 [12:50:01]Write to MH i2c: E2 08 00 5A 5F 80 11 00 00 00 00 00 00 33 [12:50:01]Write i2c OK [12:50:01]MH_I2C_Read... [12:50:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:01]Read from MH i2c: E2 [12:50:01]MH_I2C_Read... [12:50:01]Read from MH i2c: E2 17 00 [12:50:01]MH_I2C_Read... [12:50:01]Read from MH i2c: E2 17 00 5A 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 85 [12:50:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:50:01]wFMCommunicate OK [12:50:01]requested_item fd.num is exist - process it [12:50:01]SAM_PROTO_GetFieldsCounters [12:50:01]wFMCommunicate request_size=4 [12:50:01]MH_SAM_APDU [12:50:01]CAPDU: 80 13 00 00 [12:50:01]Write to MH i2c: E2 08 00 5B 5F 80 13 00 00 00 00 00 00 36 [12:50:01]Write i2c OK [12:50:01]MH_I2C_Read... [12:50:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:50:02]Read from MH i2c: E2 [12:50:02]MH_I2C_Read... [12:50:02]Read from MH i2c: E2 62 00 [12:50:02]MH_I2C_Read... [12:50:02]Read from MH i2c: E2 62 00 5B 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1E B4 01 00 0E 04 04 00 85 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 D0 [12:50:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1E B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:50:02]wFMCommunicate OK [12:50:02]SAM_PROTO_GetFieldsCounters done [12:50:02]requested_item shift.num is exist - process it [12:50:02]requested_item shift.opened is exist - process it [12:50:02]req_shift_opened [12:50:02]FM_GetShiftState [12:50:02]SAM_PROTO_GetShiftState [12:50:02]wFMCommunicate request_size=4 [12:50:02]MH_SAM_APDU [12:50:02]CAPDU: 80 13 01 00 [12:50:02]Write to MH i2c: E2 08 00 5C 5F 80 13 01 00 00 00 00 00 38 [12:50:02]Write i2c OK [12:50:02]MH_I2C_Read... [12:50:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:02]Read from MH i2c: E2 [12:50:02]MH_I2C_Read... [12:50:02]Read from MH i2c: E2 0E 00 [12:50:02]MH_I2C_Read... [12:50:02]Read from MH i2c: E2 0E 00 5C 5F 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 B3 [12:50:02]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:50:02]wFMCommunicate OK [12:50:02]SAM_PROTO_GetShiftState done [12:50:02]FM_GetShiftState done [12:50:02]req_shift_opened done [12:50:02]requested_item shift.open_date is exist - process it [12:50:02]req_shift_open_date [12:50:02]req_shift_open_date done [12:50:02]produce_requested_data done [12:50:02]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111646,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [12:50:02]process_action_free close_receipt [12:50:02]json_value_free [12:50:02]json_value_free done [12:50:02]process_json_proto returns [12:50:02]Send response to host [12:50:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111646,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [12:50:02]free response buf [12:50:02]execute_script done [12:50:02]execute_script returns [12:50:02]free content buf [12:50:02]Sock 9.Close socket [12:50:02]Sock 9.Thread stoped [12:50:05]OFD Sender: No OFD packet to send [12:50:10]OFD Sender: No OFD packet to send [12:50:15]OFD Sender: No OFD packet to send [12:50:20]OFD Sender: No OFD packet to send [12:50:25]OFD Sender: No OFD packet to send [12:50:30]OFD Sender: No OFD packet to send [12:50:35]OFD Sender: No OFD packet to send [12:50:40]OFD Sender: No OFD packet to send [12:50:45]accept exits with 7 [12:50:45]New connection [12:50:45]New thread 3067321700 created [12:50:45]Thread 3067465060 joined [12:50:45]Waiting for new connection... [12:50:45] Sock 7.Parse request [12:50:45]Sock 7.Check first char [12:50:45]Sock 7.First char is OK [12:50:45]request: POST /json_proto HTTP/1.0 [12:50:45]Method: POST [12:50:45]URL: /json_proto [12:50:45]Method is POST - this is cgi request [12:50:45]url: /json_proto [12:50:45]query_string will be loaded in cgi processing [12:50:45]execute_cgi json_proto POST (null) [12:50:45]execute_cgi path=json_proto method=POST [12:50:45]POST find Content-Length [12:50:45]Host: 172.17.59.68:8080 [12:50:45]Content-Length: 677 [12:50:45]Content-Type: application/json [12:50:45] [12:50:45]POST finish read [12:50:45]Found Content-Length = 677 [12:50:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:45]execute_script... [12:50: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)320247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:45]POST & json_proto [12:50:45]process_json_proto [12:50:45]json parsed OK: [12:50:45]protocol is kg_v1.0 [12:50:45]action value=close_receipt [12:50:45]process_action close_receipt [12:50:45]cmd_close_receipt [12:50:45]MH_GetDate [12:50:45]Write to MH i2c: F0 00 00 5D 5F AB [12:50:45]Write i2c OK [12:50:45]MH_I2C_Read... [12:50:45]Read from MH i2c: F0 [12:50:45]MH_I2C_Read... [12:50:45]Read from MH i2c: F0 09 00 [12:50:45]MH_I2C_Read... [12:50:45]Read from MH i2c: F0 09 00 5D 5F 00 C7 25 74 66 BC EC 60 65 E7 [12:50:45]GetLastDocTimeStamp 1718887832 [12:50:45]current date 1718887879 [12:50:45]FM_GetShiftState [12:50:45]SAM_PROTO_GetShiftState [12:50:45]wFMCommunicate request_size=4 [12:50:45]MH_SAM_APDU [12:50:45]CAPDU: 80 13 01 00 [12:50:45]Write to MH i2c: E2 08 00 5E 5F 80 13 01 00 00 00 00 00 3A [12:50:45]Write i2c OK [12:50:45]MH_I2C_Read... [12:50:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:45]Read from MH i2c: E2 [12:50:45]MH_I2C_Read... [12:50:45]Read from MH i2c: E2 0E 00 [12:50:45]MH_I2C_Read... [12:50:45]Read from MH i2c: E2 0E 00 5E 5F 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 B5 [12:50:45]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:50:45]wFMCommunicate OK [12:50:45]SAM_PROTO_GetShiftState done [12:50:45]FM_GetShiftState done [12:50:45]opened in 1718847247 [12:50:45]opened+sec_in_day 1718933647 [12:50:45]quantity*price = 40039 [12:50:45]sum+1 = 40040 [12:50:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 97 20.06.2024 12:51 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111647 ФПД: 50860298397631 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T125119&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111647&fm=50860298397631&tin=02508201610067®Number=0000000000092771&sum=40000 [12:50:46]StoreToDocumentArchive [12:50:46]shift 389 fd 111647 [12:50:46]save to /storage/0389/doc_00111647 [12:50:46]save last doc name /storage/0389/doc_00111647 to /storage/kkm_last_doc_name [12:50:46]save OK [12:50:46]Clear old archive folders... [12:50:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:50:46]tlvbuf is 010317D0 [12:50:46]SAM_PROTO_ClearQueue [12:50:46]wFMCommunicate request_size=4 [12:50:46]MH_SAM_APDU [12:50:46]CAPDU: 80 09 00 00 [12:50:46]Write to MH i2c: E2 08 00 6B 5F 80 09 00 00 00 00 00 00 3C [12:50:46]Write i2c OK [12:50:46]MH_I2C_Read... [12:50:46]Read from MH i2c: E2 [12:50:46]MH_I2C_Read... [12:50:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:50:46]Read from MH i2c: E2 03 00 [12:50:46]MH_I2C_Read... [12:50:46]Read from MH i2c: E2 03 00 6B 5F 00 90 00 3E [12:50:46]RAPDU: 90 00 [12:50:46]wFMCommunicate OK [12:50:46]SAM_PROTO_ClearQueue done [12:50:46]KKMCreateOFDPacket [12:50:46]OFDProtocolAddRootSTLVToBuf [12:50:46]FM_MakeSignedData [12:50:46]FM_MakeSignedData [12:50:46]SAM_PROTO_SignData [12:50:46]wFMCommunicate request_size=4 [12:50:46]MH_SAM_APDU [12:50:46]CAPDU: 80 0D 01 02 [12:50:46]Write to MH i2c: E2 08 00 6C 5F 80 0D 01 02 00 00 00 00 44 [12:50:46]Write i2c OK [12:50:46]MH_I2C_Read... [12:50:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:50:46]Read from MH i2c: E2 [12:50:46]MH_I2C_Read... [12:50:46]Read from MH i2c: E2 03 00 [12:50:46]MH_I2C_Read... [12:50:46]Read from MH i2c: E2 03 00 6C 5F 00 90 00 3F [12:50:46]RAPDU: 90 00 [12:50:46]wFMCommunicate OK [12:50:46]wFMCommunicate request_size=255 [12:50:46]MH_SAM_APDU [12:50: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 C7 25 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1F B4 01 00 35 04 06 00 2E [12:50:46]Write to MH i2c: E2 02 01 6D 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 C7 25 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1F B4 01 00 35 04 06 00 2E 00 00 75 [12:50:46]Write i2c OK [12:50:46]MH_I2C_Read... [12:50:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:46]Read from MH i2c: E2 [12:50:46]MH_I2C_Read... [12:50:46]Read from MH i2c: E2 03 00 [12:50:46]MH_I2C_Read... [12:50:46]Read from MH i2c: E2 03 00 6D 5F 00 90 00 40 [12:50:46]RAPDU: 90 00 [12:50:46]wFMCommunicate OK [12:50:46]wFMCommunicate request_size=10 [12:50:46]MH_SAM_APDU [12:50:46]CAPDU: 80 0D 02 02 05 41 D6 04 E7 BF [12:50:46]Write to MH i2c: E2 0D 00 6E 5F 80 0D 02 02 05 00 41 D6 04 E7 BF 00 00 12 [12:50:46]Write i2c OK [12:50:46]MH_I2C_Read... [12:50:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:46]Read from MH i2c: E2 [12:50:46]MH_I2C_Read... [12:50:46]Read from MH i2c: E2 03 00 [12:50:46]MH_I2C_Read... [12:50:46]Read from MH i2c: E2 03 00 6E 5F 00 90 00 41 [12:50:46]RAPDU: 90 00 [12:50:46]wFMCommunicate OK [12:50:46]wFMCommunicate request_size=4 [12:50:46]MH_SAM_APDU [12:50:46]CAPDU: 80 0D 03 02 [12:50:46]Write to MH i2c: E2 08 00 6F 5F 80 0D 03 02 00 00 00 00 49 [12:50:46]Write i2c OK [12:50:46]MH_I2C_Read... [12:50:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:50:46]Read from MH i2c: E2 [12:50:46]MH_I2C_Read... [12:50:46]Read from MH i2c: E2 0B 00 [12:50:46]MH_I2C_Read... [12:50:46]Read from MH i2c: E2 0B 00 6F 5F 00 AC AA 04 3F EB 4D BE FD 90 00 D6 [12:50:46]RAPDU: AC AA 04 3F EB 4D BE FD 90 00 [12:50:46]wFMCommunicate OK [12:50:46]SAM_PROTO_SignData done [12:50:46]FM_MakeSignedData done [12:50:46]CreateOFDProtocolMessage [12:50:46]wFMCommunicate request_size=4 [12:50:46]MH_SAM_APDU [12:50:46]CAPDU: 80 11 00 00 [12:50:46]Write to MH i2c: E2 08 00 70 5F 80 11 00 00 00 00 00 00 49 [12:50:46]Write i2c OK [12:50:46]MH_I2C_Read... [12:50:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:46]Read from MH i2c: E2 [12:50:46]MH_I2C_Read... [12:50:46]Read from MH i2c: E2 17 00 [12:50:46]MH_I2C_Read... [12:50:46]Read from MH i2c: E2 17 00 70 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9B [12:50:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:50:46]wFMCommunicate OK [12:50:46]CreateOFDProtocolMessage done [12:50:46]OFDSenderStorePacket 111647 [12:50:46]StoreOFDPacket docnum=111647 [12:50:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 10 66 07 01 D5 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 C7 25 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1F B4 01 00 35 04 06 00 2E 41 D6 04 E7 BF AC AA 04 3F EB 4D BE FD [12:50:46]CheckFolder [12:50:46]dirname=/storage/ofd_packets [12:50:46]CheckFolder done [12:50:46]ProducePacketName [12:50:46]name=ofd_packets/00111647 [12:50:46]NVStorageSaveData ofd_packets/00111647 [12:50:46]File name is /storage/ofd_packets/00111647 [12:50:46]Write 301 bytes [12:50:46]NVStorageSaveData done [12:50:46]OFDSenderStorePacket done [12:50:46]KKMCreateOFDPacket done [12:50:46]NVStorageSaveData kkm_last_timestamp [12:50:46]File name is /storage/kkm_last_timestamp [12:50:46]Write 4 bytes [12:50:46]NVStorageSaveData done [12:50:46]ExternCall_PrintAddStr [12:50:46]wPrintStart [12:50:46]Write to MH i2c: 01 00 00 71 5F D0 [12:50:46]Write i2c OK [12:50:46]MH_I2C_Read... [12:50:46]Read from MH i2c: 01 [12:50:46]MH_I2C_Read... [12:50:46]Read from MH i2c: 01 07 00 [12:50:46]MH_I2C_Read... [12:50:46]Read from MH i2c: 01 07 00 71 5F 00 00 00 00 00 FF 0F E5 [12:50:46]RasterBufferAndPrint [12:50:46]line Счет N : (1)320247 [12:50:46]line ИНН: 02508201610067 [12:50:46]line Контрольно-Кассовый Чек [12:50:46]line ПРОДАЖА [12:50:46]line ТРК (МРК, ГНК) : 11 [12:50:46]line Товар: 2710124130 [12:50:46]line Аи-92-К-5 [12:50:46]line 6.030 * 66.40 [12:50:46]line = 400.39 [12:50:46]line НДС 12% НСП 1% [12:50:46]line > о реализуемом товаре [12:50:46]line ОКРУГЛЕНИЕ: -0.39 [12:50:46]line ИТОГО: 400.00 [12:50:46]line Внесено: 400.00 [12:50:46]line СДАЧА: 0.00 [12:50:46]line НСП 1% : 3.54 [12:50:46]line НДС 12% : 42.52 [12:50:46]line Наличными: 400.00 [12:50:46]line Безнал.: 0.00 [12:50:46]line Место: АЗС № 65 "Партнер Нефть" [12:50:46]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:50:46]line СНО: Общий режим [12:50:46]line Чек 97 20.06.2024 12:51 [12:50:46]line Смена: 389 ФФД: 1.0 [12:50:46]line ЗНМ: 0300000198 [12:50:46]line РНМ: 0000000000092771 [12:50:46]line Версия ККМ: 001 [12:50:46]line ФМ: 0000000000875083 [12:50:46]line ФД: 111647 [12:50:46]line ФПД: 50860298397631 [12:50:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T125119&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111647&fm=50860298397631&tin=02508201610067®Number=0000000000092771&sum=40000 [12:50:47]OFD Sender: Processing packet 111647 [packets to send 38, broken 37] [12:50:47]ProducePacketName [12:50:47]name=ofd_packets/00111647 [12:50:47]OFD Sender: To server: pG, [12:50:47]CommunicateWithHost lk.salyk.kg:30040 [12:50:47]ConnectInit lk.salyk.kg [12:50:47]written 0, free lines is 4095 [12:50:47]Connected sock=10 [12:50:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 10 66 07 01 D5 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 C7 25 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1F B4 01 00 35 04 06 00 2E 41 D6 04 E7 BF AC AA 04 3F EB 4D BE FD [12:50:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 8F 81 47 00 ED EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1F B4 01 00 F4 03 04 00 11 BD 73 66 B6 04 01 00 00 3C 28 3A 7E 4C 0D 36 C6 [12:50:47]CommunicateWithHost err = 0 [12:50:47]CheckOFDResponse [12:50:47]1017 (14) - 77093643461234 [12:50:47]1041 (16) - 0000000000875083 [12:50:47]1040 (4) - 111647 [12:50:47]1012 (4) - 20.06.2024 05:24 [12:50:47]1206 (1) - 0 [12:50:47]OFD Sender: Remove packet 111647 [12:50:47]ProducePacketName [12:50:47]name=ofd_packets/00111647 [12:50:47]NVStorageDeleteData [12:50:47]Write to MH i2c: 01 00 00 9C 5F FB [12:50:47]Write i2c OK [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: 01 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: 01 07 00 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: 01 07 00 9C 5F 00 00 00 00 00 CD 0C DB [12:50:47]RasterBufferAndPrint [12:50:47]line [12:50:47]line [12:50:47]line [12:50:47]line [12:50:47]line [12:50:47]written 0, free lines is 3284 [12:50:47]MH_Cut [12:50:47]Write to MH i2c: D1 01 00 A3 5F 01 D4 [12:50:47]Write i2c OK [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: D1 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: D1 01 00 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: D1 01 00 A3 5F 00 D3 [12:50:47]Write to MH i2c: 01 00 00 A4 5F 03 [12:50:47]Write i2c OK [12:50:47]MH_I2C_Read... [12:50:47]OFD Sender: No OFD packet to send [12:50:48]*** Cut start [12:50:48]*** Partial cut [12:50:48]*** CUTSNS_PIN = 1 [12:50:48]*** CUTSNS_PIN = 0 [12:50:48]*** Brake cut motor [12:50:48]Read from MH i2c: 01 [12:50:48]MH_I2C_Read... [12:50:48]*** Stop cut motor [12:50:48]*** Cut end [12:50:48]Read from MH i2c: 01 07 00 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: 01 07 00 A4 5F 00 00 00 00 00 FF 0F 18 [12:50:48]process_action close_receipt done [12:50:48]requested_data is exist [12:50:48]produce_requested_data [12:50:48]requested_item fm.sn is exist - process it [12:50:48]wFMCommunicate request_size=4 [12:50:48]MH_SAM_APDU [12:50:48]CAPDU: 80 11 00 00 [12:50:48]Write to MH i2c: E2 08 00 A5 5F 80 11 00 00 00 00 00 00 7E [12:50:48]Write i2c OK [12:50:48]MH_I2C_Read... [12:50:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:48]Read from MH i2c: E2 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: E2 17 00 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: E2 17 00 A5 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D0 [12:50:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:50:48]wFMCommunicate OK [12:50:48]requested_item fd.num is exist - process it [12:50:48]SAM_PROTO_GetFieldsCounters [12:50:48]wFMCommunicate request_size=4 [12:50:48]MH_SAM_APDU [12:50:48]CAPDU: 80 13 00 00 [12:50:48]Write to MH i2c: E2 08 00 A6 5F 80 13 00 00 00 00 00 00 81 [12:50:48]Write i2c OK [12:50:48]MH_I2C_Read... [12:50:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:50:49]Read from MH i2c: E2 [12:50:49]MH_I2C_Read... [12:50:49]Read from MH i2c: E2 62 00 [12:50:49]MH_I2C_Read... [12:50:49]Read from MH i2c: E2 62 00 A6 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1F B4 01 00 0E 04 04 00 85 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 1F [12:50:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1F B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:50:49]wFMCommunicate OK [12:50:49]SAM_PROTO_GetFieldsCounters done [12:50:49]requested_item shift.num is exist - process it [12:50:49]requested_item shift.opened is exist - process it [12:50:49]req_shift_opened [12:50:49]FM_GetShiftState [12:50:49]SAM_PROTO_GetShiftState [12:50:49]wFMCommunicate request_size=4 [12:50:49]MH_SAM_APDU [12:50:49]CAPDU: 80 13 01 00 [12:50:49]Write to MH i2c: E2 08 00 A7 5F 80 13 01 00 00 00 00 00 83 [12:50:49]Write i2c OK [12:50:49]MH_I2C_Read... [12:50:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:49]Read from MH i2c: E2 [12:50:49]MH_I2C_Read... [12:50:49]Read from MH i2c: E2 0E 00 [12:50:49]MH_I2C_Read... [12:50:49]Read from MH i2c: E2 0E 00 A7 5F 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 FE [12:50:49]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:50:49]wFMCommunicate OK [12:50:49]SAM_PROTO_GetShiftState done [12:50:49]FM_GetShiftState done [12:50:49]req_shift_opened done [12:50:49]requested_item shift.open_date is exist - process it [12:50:49]req_shift_open_date [12:50:49]req_shift_open_date done [12:50:49]produce_requested_data done [12:50:49]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111647,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [12:50:49]process_action_free close_receipt [12:50:49]json_value_free [12:50:49]json_value_free done [12:50:49]process_json_proto returns [12:50:49]Send response to host [12:50:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111647,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [12:50:49]free response buf [12:50:49]execute_script done [12:50:49]execute_script returns [12:50:49]free content buf [12:50:49]Sock 7.Close socket [12:50:49]Sock 7.Thread stoped [12:50:52]OFD Sender: No OFD packet to send [12:50:57]OFD Sender: No OFD packet to send [12:51:02]OFD Sender: No OFD packet to send [12:51:07]OFD Sender: No OFD packet to send [12:51:12]OFD Sender: No OFD packet to send [12:51:17]OFD Sender: No OFD packet to send [12:51:22]OFD Sender: No OFD packet to send [12:51:27]OFD Sender: No OFD packet to send [12:51:32]OFD Sender: No OFD packet to send [12:51:37]OFD Sender: No OFD packet to send [12:51:42]OFD Sender: No OFD packet to send [12:51:47]OFD Sender: No OFD packet to send [12:51:52]OFD Sender: No OFD packet to send [12:51:57]OFD Sender: No OFD packet to send [12:52:02]OFD Sender: No OFD packet to send [12:52:07]accept exits with 9 [12:52:07]New connection [12:52:07]New thread 3067465060 created [12:52:07]Thread 3067321700 joined [12:52:07]Waiting for new connection... [12:52:07] Sock 9.Parse request [12:52:07]Sock 9.Check first char [12:52:07]Sock 9.First char is OK [12:52:07]request: POST /json_proto HTTP/1.0 [12:52:07]Method: POST [12:52:07]URL: /json_proto [12:52:07]Method is POST - this is cgi request [12:52:07]url: /json_proto [12:52:07]query_string will be loaded in cgi processing [12:52:07]execute_cgi json_proto POST (null) [12:52:07]execute_cgi path=json_proto method=POST [12:52:07]POST find Content-Length [12:52:07]Host: 172.17.59.68:8080 [12:52:07]Content-Length: 677 [12:52:07]Content-Type: application/json [12:52:07] [12:52:07]POST finish read [12:52:07]Found Content-Length = 677 [12:52:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:07]execute_script... [12:52: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)320248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:07]POST & json_proto [12:52:07]process_json_proto [12:52:07]json parsed OK: [12:52:07]protocol is kg_v1.0 [12:52:07]action value=close_receipt [12:52:07]process_action close_receipt [12:52:07]cmd_close_receipt [12:52:07]MH_GetDate [12:52:07]Write to MH i2c: F0 00 00 A8 5F F6 [12:52:07]Write i2c OK [12:52:07]MH_I2C_Read... [12:52:07]Read from MH i2c: F0 [12:52:07]MH_I2C_Read... [12:52:07]Read from MH i2c: F0 09 00 [12:52:07]MH_I2C_Read... [12:52:07]Read from MH i2c: F0 09 00 A8 5F 00 19 26 74 66 BC EC 60 65 85 [12:52:07]GetLastDocTimeStamp 1718887879 [12:52:07]current date 1718887961 [12:52:07]FM_GetShiftState [12:52:07]SAM_PROTO_GetShiftState [12:52:07]wFMCommunicate request_size=4 [12:52:07]MH_SAM_APDU [12:52:07]CAPDU: 80 13 01 00 [12:52:07]Write to MH i2c: E2 08 00 A9 5F 80 13 01 00 00 00 00 00 85 [12:52:07]Write i2c OK [12:52:07]MH_I2C_Read... [12:52:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:07]Read from MH i2c: E2 [12:52:07]MH_I2C_Read... [12:52:07]Read from MH i2c: E2 0E 00 [12:52:07]MH_I2C_Read... [12:52:07]Read from MH i2c: E2 0E 00 A9 5F 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 00 [12:52:07]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:52:07]wFMCommunicate OK [12:52:07]SAM_PROTO_GetShiftState done [12:52:07]FM_GetShiftState done [12:52:07]opened in 1718847247 [12:52:07]opened+sec_in_day 1718933647 [12:52:07]quantity*price = 50065 [12:52:07]sum+1 = 50067 [12:52:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 98 20.06.2024 12:52 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111648 ФПД: 272287781102489 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T125242&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111648&fm=272287781102489&tin=02508201610067®Number=0000000000092771&sum=50000 [12:52:08]StoreToDocumentArchive [12:52:08]shift 389 fd 111648 [12:52:08]save to /storage/0389/doc_00111648 [12:52:08]save last doc name /storage/0389/doc_00111648 to /storage/kkm_last_doc_name [12:52:08]save OK [12:52:08]Clear old archive folders... [12:52:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:52:08]tlvbuf is 00FE12E0 [12:52:08]SAM_PROTO_ClearQueue [12:52:08]wFMCommunicate request_size=4 [12:52:08]MH_SAM_APDU [12:52:08]CAPDU: 80 09 00 00 [12:52:08]Write to MH i2c: E2 08 00 B6 5F 80 09 00 00 00 00 00 00 87 [12:52:08]Write i2c OK [12:52:08]MH_I2C_Read... [12:52:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:08]Read from MH i2c: E2 [12:52:08]MH_I2C_Read... [12:52:08]Read from MH i2c: E2 03 00 [12:52:08]MH_I2C_Read... [12:52:08]Read from MH i2c: E2 03 00 B6 5F 00 90 00 89 [12:52:08]RAPDU: 90 00 [12:52:08]wFMCommunicate OK [12:52:08]SAM_PROTO_ClearQueue done [12:52:08]KKMCreateOFDPacket [12:52:08]OFDProtocolAddRootSTLVToBuf [12:52:08]FM_MakeSignedData [12:52:08]FM_MakeSignedData [12:52:08]SAM_PROTO_SignData [12:52:08]wFMCommunicate request_size=4 [12:52:08]MH_SAM_APDU [12:52:08]CAPDU: 80 0D 01 02 [12:52:08]Write to MH i2c: E2 08 00 B7 5F 80 0D 01 02 00 00 00 00 8F [12:52:08]Write i2c OK [12:52:08]MH_I2C_Read... [12:52:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:08]Read from MH i2c: E2 [12:52:08]MH_I2C_Read... [12:52:08]Read from MH i2c: E2 03 00 [12:52:08]MH_I2C_Read... [12:52:08]Read from MH i2c: E2 03 00 B7 5F 00 90 00 8A [12:52:08]RAPDU: 90 00 [12:52:08]wFMCommunicate OK [12:52:08]wFMCommunicate request_size=255 [12:52:08]MH_SAM_APDU [12:52:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 1A 26 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 20 B4 01 00 35 04 06 00 F7 [12:52:08]Write to MH i2c: E2 02 01 B8 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 1A 26 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 20 B4 01 00 35 04 06 00 F7 00 00 11 [12:52:08]Write i2c OK [12:52:08]MH_I2C_Read... [12:52:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:09]Read from MH i2c: E2 [12:52:09]MH_I2C_Read... [12:52:09]Read from MH i2c: E2 03 00 [12:52:09]MH_I2C_Read... [12:52:09]Read from MH i2c: E2 03 00 B8 5F 00 90 00 8B [12:52:09]RAPDU: 90 00 [12:52:09]wFMCommunicate OK [12:52:09]wFMCommunicate request_size=10 [12:52:09]MH_SAM_APDU [12:52:09]CAPDU: 80 0D 02 02 05 A4 F0 78 23 99 [12:52:09]Write to MH i2c: E2 0D 00 B9 5F 80 0D 02 02 05 00 A4 F0 78 23 99 00 00 64 [12:52:09]Write i2c OK [12:52:09]MH_I2C_Read... [12:52:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:09]Read from MH i2c: E2 [12:52:09]MH_I2C_Read... [12:52:09]Read from MH i2c: E2 03 00 [12:52:09]MH_I2C_Read... [12:52:09]Read from MH i2c: E2 03 00 B9 5F 00 90 00 8C [12:52:09]RAPDU: 90 00 [12:52:09]wFMCommunicate OK [12:52:09]wFMCommunicate request_size=4 [12:52:09]MH_SAM_APDU [12:52:09]CAPDU: 80 0D 03 02 [12:52:09]Write to MH i2c: E2 08 00 BA 5F 80 0D 03 02 00 00 00 00 94 [12:52:09]Write i2c OK [12:52:09]MH_I2C_Read... [12:52:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:09]Read from MH i2c: E2 [12:52:09]MH_I2C_Read... [12:52:09]Read from MH i2c: E2 0B 00 [12:52:09]MH_I2C_Read... [12:52:09]Read from MH i2c: E2 0B 00 BA 5F 00 B8 26 E6 DA C0 A4 B4 72 90 00 BD [12:52:09]RAPDU: B8 26 E6 DA C0 A4 B4 72 90 00 [12:52:09]wFMCommunicate OK [12:52:09]SAM_PROTO_SignData done [12:52:09]FM_MakeSignedData done [12:52:09]CreateOFDProtocolMessage [12:52:09]wFMCommunicate request_size=4 [12:52:09]MH_SAM_APDU [12:52:09]CAPDU: 80 11 00 00 [12:52:09]Write to MH i2c: E2 08 00 BB 5F 80 11 00 00 00 00 00 00 94 [12:52:09]Write i2c OK [12:52:09]MH_I2C_Read... [12:52:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:09]Read from MH i2c: E2 [12:52:09]MH_I2C_Read... [12:52:09]Read from MH i2c: E2 17 00 [12:52:09]MH_I2C_Read... [12:52:09]Read from MH i2c: E2 17 00 BB 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E6 [12:52:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:52:09]wFMCommunicate OK [12:52:09]CreateOFDProtocolMessage done [12:52:09]OFDSenderStorePacket 111648 [12:52:09]StoreOFDPacket docnum=111648 [12:52:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 26 3F 07 01 27 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 1A 26 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 20 B4 01 00 35 04 06 00 F7 A4 F0 78 23 99 B8 26 E6 DA C0 A4 B4 72 [12:52:09]CheckFolder [12:52:09]dirname=/storage/ofd_packets [12:52:09]CheckFolder done [12:52:09]ProducePacketName [12:52:09]name=ofd_packets/00111648 [12:52:09]NVStorageSaveData ofd_packets/00111648 [12:52:09]File name is /storage/ofd_packets/00111648 [12:52:09]Write 301 bytes [12:52:09]NVStorageSaveData done [12:52:09]OFDSenderStorePacket done [12:52:09]KKMCreateOFDPacket done [12:52:09]NVStorageSaveData kkm_last_timestamp [12:52:09]File name is /storage/kkm_last_timestamp [12:52:09]Write 4 bytes [12:52:09]NVStorageSaveData done [12:52:09]ExternCall_PrintAddStr [12:52:09]wPrintStart [12:52:09]Write to MH i2c: 01 00 00 BC 5F 1B [12:52:09]Write i2c OK [12:52:09]MH_I2C_Read... [12:52:09]Read from MH i2c: 01 [12:52:09]MH_I2C_Read... [12:52:09]Read from MH i2c: 01 07 00 [12:52:09]MH_I2C_Read... [12:52:09]Read from MH i2c: 01 07 00 BC 5F 00 00 00 00 00 FF 0F 30 [12:52:09]RasterBufferAndPrint [12:52:09]line Счет N : (1)320248 [12:52:09]line ИНН: 02508201610067 [12:52:09]line Контрольно-Кассовый Чек [12:52:09]line ПРОДАЖА [12:52:09]line ТРК (МРК, ГНК) : 11 [12:52:09]line Товар: 2710124130 [12:52:09]line Аи-92-К-5 [12:52:09]line 7.540 * 66.40 [12:52:09]line = 500.66 [12:52:09]line НДС 12% НСП 1% [12:52:09]line > о реализуемом товаре [12:52:09]line ОКРУГЛЕНИЕ: -0.66 [12:52:09]line ИТОГО: 500.00 [12:52:09]line Внесено: 500.00 [12:52:09]line СДАЧА: 0.00 [12:52:09]line НСП 1% : 4.43 [12:52:09]line НДС 12% : 53.17 [12:52:09]line Наличными: 500.00 [12:52:09]line Безнал.: 0.00 [12:52:09]line Место: АЗС № 65 "Партнер Нефть" [12:52:09]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:52:09]line СНО: Общий режим [12:52:09]line Чек 98 20.06.2024 12:52 [12:52:09]line Смена: 389 ФФД: 1.0 [12:52:09]line ЗНМ: 0300000198 [12:52:09]line РНМ: 0000000000092771 [12:52:09]line Версия ККМ: 001 [12:52:09]line ФМ: 0000000000875083 [12:52:09]line ФД: 111648 [12:52:09]line ФПД: 272287781102489 [12:52:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T125242&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111648&fm=272287781102489&tin=02508201610067®Number=0000000000092771&sum=50000 [12:52:09]OFD Sender: Processing packet 111648 [packets to send 38, broken 37] [12:52:09]ProducePacketName [12:52:09]name=ofd_packets/00111648 [12:52:09]OFD Sender: To server: pG, [12:52:09]CommunicateWithHost lk.salyk.kg:30040 [12:52:09]ConnectInit lk.salyk.kg [12:52:09]written 0, free lines is 4095 [12:52:09]Connected sock=10 [12:52:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 26 3F 07 01 27 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 1A 26 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 20 B4 01 00 35 04 06 00 F7 A4 F0 78 23 99 B8 26 E6 DA C0 A4 B4 72 [12:52:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 2C 21 47 00 82 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 20 B4 01 00 F4 03 04 00 64 BD 73 66 B6 04 01 00 00 90 E1 70 0E 94 B3 E5 13 [12:52:09]CommunicateWithHost err = 0 [12:52:09]CheckOFDResponse [12:52:09]1017 (14) - 77093643461234 [12:52:09]1041 (16) - 0000000000875083 [12:52:09]1040 (4) - 111648 [12:52:09]1012 (4) - 20.06.2024 05:25 [12:52:09]1206 (1) - 0 [12:52:09]OFD Sender: Remove packet 111648 [12:52:09]ProducePacketName [12:52:09]name=ofd_packets/00111648 [12:52:09]NVStorageDeleteData [12:52:10]Write to MH i2c: 01 00 00 E7 5F 46 [12:52:10]Write i2c OK [12:52:10]MH_I2C_Read... [12:52:10]Read from MH i2c: 01 [12:52:10]MH_I2C_Read... [12:52:10]Read from MH i2c: 01 07 00 [12:52:10]MH_I2C_Read... [12:52:10]Read from MH i2c: 01 07 00 E7 5F 00 00 00 00 00 C9 0C 22 [12:52:10]RasterBufferAndPrint [12:52:10]line [12:52:10]line [12:52:10]line [12:52:10]line [12:52:10]line [12:52:10]written 0, free lines is 3279 [12:52:10]MH_Cut [12:52:10]Write to MH i2c: D1 01 00 EE 5F 01 1F [12:52:10]Write i2c OK [12:52:10]MH_I2C_Read... [12:52:10]Read from MH i2c: D1 [12:52:10]MH_I2C_Read... [12:52:10]Read from MH i2c: D1 01 00 [12:52:10]MH_I2C_Read... [12:52:10]Read from MH i2c: D1 01 00 EE 5F 00 1E [12:52:10]Write to MH i2c: 01 00 00 EF 5F 4E [12:52:10]Write i2c OK [12:52:10]MH_I2C_Read... [12:52:10]OFD Sender: No OFD packet to send [12:52:10]*** Cut start [12:52:10]*** Partial cut [12:52:10]*** CUTSNS_PIN = 1 [12:52:10]*** CUTSNS_PIN = 0 [12:52:11]*** Brake cut motor [12:52:11]Read from MH i2c: 01 [12:52:11]MH_I2C_Read... [12:52:11]*** Stop cut motor [12:52:11]*** Cut end [12:52:11]Read from MH i2c: 01 07 00 [12:52:11]MH_I2C_Read... [12:52:11]Read from MH i2c: 01 07 00 EF 5F 00 00 00 00 00 FF 0F 63 [12:52:11]process_action close_receipt done [12:52:11]requested_data is exist [12:52:11]produce_requested_data [12:52:11]requested_item fm.sn is exist - process it [12:52:11]wFMCommunicate request_size=4 [12:52:11]MH_SAM_APDU [12:52:11]CAPDU: 80 11 00 00 [12:52:11]Write to MH i2c: E2 08 00 F0 5F 80 11 00 00 00 00 00 00 C9 [12:52:11]Write i2c OK [12:52:11]MH_I2C_Read... [12:52:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:11]Read from MH i2c: E2 [12:52:11]MH_I2C_Read... [12:52:11]Read from MH i2c: E2 17 00 [12:52:11]MH_I2C_Read... [12:52:11]Read from MH i2c: E2 17 00 F0 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1B [12:52:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:52:11]wFMCommunicate OK [12:52:11]requested_item fd.num is exist - process it [12:52:11]SAM_PROTO_GetFieldsCounters [12:52:11]wFMCommunicate request_size=4 [12:52:11]MH_SAM_APDU [12:52:11]CAPDU: 80 13 00 00 [12:52:11]Write to MH i2c: E2 08 00 F1 5F 80 13 00 00 00 00 00 00 CC [12:52:11]Write i2c OK [12:52:11]MH_I2C_Read... [12:52:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:11]Read from MH i2c: E2 [12:52:11]MH_I2C_Read... [12:52:11]Read from MH i2c: E2 62 00 [12:52:11]MH_I2C_Read... [12:52:11]Read from MH i2c: E2 62 00 F1 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 20 B4 01 00 0E 04 04 00 85 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 6E [12:52:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 20 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:52:11]wFMCommunicate OK [12:52:11]SAM_PROTO_GetFieldsCounters done [12:52:11]requested_item shift.num is exist - process it [12:52:11]requested_item shift.opened is exist - process it [12:52:11]req_shift_opened [12:52:11]FM_GetShiftState [12:52:11]SAM_PROTO_GetShiftState [12:52:11]wFMCommunicate request_size=4 [12:52:11]MH_SAM_APDU [12:52:11]CAPDU: 80 13 01 00 [12:52:11]Write to MH i2c: E2 08 00 F2 5F 80 13 01 00 00 00 00 00 CE [12:52:11]Write i2c OK [12:52:11]MH_I2C_Read... [12:52:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:11]Read from MH i2c: E2 [12:52:11]MH_I2C_Read... [12:52:11]Read from MH i2c: E2 0E 00 [12:52:11]MH_I2C_Read... [12:52:11]Read from MH i2c: E2 0E 00 F2 5F 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 49 [12:52:11]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:52:11]wFMCommunicate OK [12:52:11]SAM_PROTO_GetShiftState done [12:52:11]FM_GetShiftState done [12:52:11]req_shift_opened done [12:52:11]requested_item shift.open_date is exist - process it [12:52:11]req_shift_open_date [12:52:11]req_shift_open_date done [12:52:11]produce_requested_data done [12:52:11]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111648,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [12:52:11]process_action_free close_receipt [12:52:11]json_value_free [12:52:11]json_value_free done [12:52:11]process_json_proto returns [12:52:11]Send response to host [12:52:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111648,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [12:52:11]free response buf [12:52:11]execute_script done [12:52:11]execute_script returns [12:52:11]free content buf [12:52:11]Sock 9.Close socket [12:52:11]Sock 9.Thread stoped [12:52:15]OFD Sender: No OFD packet to send [12:52:20]OFD Sender: No OFD packet to send [12:52:25]OFD Sender: No OFD packet to send [12:52:30]OFD Sender: No OFD packet to send [12:52:35]OFD Sender: No OFD packet to send [12:52:40]OFD Sender: No OFD packet to send [12:52:45]OFD Sender: No OFD packet to send [12:52:50]OFD Sender: No OFD packet to send [12:52:55]OFD Sender: No OFD packet to send [12:53:00]OFD Sender: No OFD packet to send [12:53:05]OFD Sender: No OFD packet to send [12:53:08]accept exits with 7 [12:53:08]New connection [12:53:08]New thread 3067321700 created [12:53:08]Thread 3067465060 joined [12:53:08]Waiting for new connection... [12:53:08] Sock 7.Parse request [12:53:08]Sock 7.Check first char [12:53:08]Sock 7.First char is OK [12:53:08]request: POST /json_proto HTTP/1.0 [12:53:08]Method: POST [12:53:08]URL: /json_proto [12:53:08]Method is POST - this is cgi request [12:53:08]url: /json_proto [12:53:08]query_string will be loaded in cgi processing [12:53:08]execute_cgi json_proto POST (null) [12:53:08]execute_cgi path=json_proto method=POST [12:53:08]POST find Content-Length [12:53:08]Host: 172.17.59.68:8080 [12:53:08]Content-Length: 682 [12:53:08]Content-Type: application/json [12:53:08] [12:53:08]POST finish read [12:53:08]Found Content-Length = 682 [12:53:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:08]execute_script... [12:53: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)320250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:08]POST & json_proto [12:53:08]process_json_proto [12:53:08]json parsed OK: [12:53:08]protocol is kg_v1.0 [12:53:08]action value=close_receipt [12:53:08]process_action close_receipt [12:53:08]cmd_close_receipt [12:53:08]MH_GetDate [12:53:08]Write to MH i2c: F0 00 00 F3 5F 41 [12:53:08]Write i2c OK [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: F0 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: F0 09 00 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: F0 09 00 F3 5F 00 57 26 74 66 BC EC 60 65 0E [12:53:08]GetLastDocTimeStamp 1718887962 [12:53:08]current date 1718888023 [12:53:08]FM_GetShiftState [12:53:08]SAM_PROTO_GetShiftState [12:53:08]wFMCommunicate request_size=4 [12:53:08]MH_SAM_APDU [12:53:08]CAPDU: 80 13 01 00 [12:53:08]Write to MH i2c: E2 08 00 F4 5F 80 13 01 00 00 00 00 00 D0 [12:53:08]Write i2c OK [12:53:08]MH_I2C_Read... [12:53:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:08]Read from MH i2c: E2 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 0E 00 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 0E 00 F4 5F 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 4B [12:53:08]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:53:08]wFMCommunicate OK [12:53:08]SAM_PROTO_GetShiftState done [12:53:08]FM_GetShiftState done [12:53:08]opened in 1718847247 [12:53:08]opened+sec_in_day 1718933647 [12:53:08]quantity*price = 100064 [12:53:08]sum+1 = 100066 [12:53:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 99 20.06.2024 12:53 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111649 ФПД: 202248768533458 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T125343&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111649&fm=202248768533458&tin=02508201610067®Number=0000000000092771&sum=100000 [12:53:10]StoreToDocumentArchive [12:53:10]shift 389 fd 111649 [12:53:10]save to /storage/0389/doc_00111649 [12:53:10]save last doc name /storage/0389/doc_00111649 to /storage/kkm_last_doc_name [12:53:10]save OK [12:53:10]Clear old archive folders... [12:53:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:53:10]tlvbuf is 00FF11A0 [12:53:10]SAM_PROTO_ClearQueue [12:53:10]wFMCommunicate request_size=4 [12:53:10]MH_SAM_APDU [12:53:10]CAPDU: 80 09 00 00 [12:53:10]Write to MH i2c: E2 08 00 01 60 80 09 00 00 00 00 00 00 D3 [12:53:10]Write i2c OK [12:53:10]MH_I2C_Read... [12:53:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:10]Read from MH i2c: E2 [12:53:10]MH_I2C_Read... [12:53:10]Read from MH i2c: E2 03 00 [12:53:10]MH_I2C_Read... [12:53:10]Read from MH i2c: E2 03 00 01 60 00 90 00 D5 [12:53:10]RAPDU: 90 00 [12:53:10]wFMCommunicate OK [12:53:10]SAM_PROTO_ClearQueue done [12:53:10]KKMCreateOFDPacket [12:53:10]OFDProtocolAddRootSTLVToBuf [12:53:10]FM_MakeSignedData [12:53:10]FM_MakeSignedData [12:53:10]SAM_PROTO_SignData [12:53:10]wFMCommunicate request_size=4 [12:53:10]MH_SAM_APDU [12:53:10]CAPDU: 80 0D 01 02 [12:53:10]Write to MH i2c: E2 08 00 02 60 80 0D 01 02 00 00 00 00 DB [12:53:10]Write i2c OK [12:53:10]MH_I2C_Read... [12:53:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:10]Read from MH i2c: E2 [12:53:10]MH_I2C_Read... [12:53:10]Read from MH i2c: E2 03 00 [12:53:10]MH_I2C_Read... [12:53:10]Read from MH i2c: E2 03 00 02 60 00 90 00 D6 [12:53:10]RAPDU: 90 00 [12:53:10]wFMCommunicate OK [12:53:10]wFMCommunicate request_size=255 [12:53:10]MH_SAM_APDU [12:53: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 57 26 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 21 B4 01 00 35 04 06 00 B7 [12:53:10]Write to MH i2c: E2 02 01 03 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 57 26 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 21 B4 01 00 35 04 06 00 B7 00 00 AC [12:53:10]Write i2c OK [12:53:10]MH_I2C_Read... [12:53:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:10]Read from MH i2c: E2 [12:53:10]MH_I2C_Read... [12:53:10]Read from MH i2c: E2 03 00 [12:53:10]MH_I2C_Read... [12:53:10]Read from MH i2c: E2 03 00 03 60 00 90 00 D7 [12:53:10]RAPDU: 90 00 [12:53:10]wFMCommunicate OK [12:53:10]wFMCommunicate request_size=10 [12:53:10]MH_SAM_APDU [12:53:10]CAPDU: 80 0D 02 02 05 F1 B6 01 33 D2 [12:53:10]Write to MH i2c: E2 0D 00 04 60 80 0D 02 02 05 00 F1 B6 01 33 D2 00 00 95 [12:53:10]Write i2c OK [12:53:10]MH_I2C_Read... [12:53:10]OFD Sender: No OFD packet to send [12:53:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:10]Read from MH i2c: E2 [12:53:10]MH_I2C_Read... [12:53:10]Read from MH i2c: E2 03 00 [12:53:10]MH_I2C_Read... [12:53:10]Read from MH i2c: E2 03 00 04 60 00 90 00 D8 [12:53:10]RAPDU: 90 00 [12:53:10]wFMCommunicate OK [12:53:10]wFMCommunicate request_size=4 [12:53:10]MH_SAM_APDU [12:53:10]CAPDU: 80 0D 03 02 [12:53:10]Write to MH i2c: E2 08 00 05 60 80 0D 03 02 00 00 00 00 E0 [12:53:10]Write i2c OK [12:53:10]MH_I2C_Read... [12:53:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:10]Read from MH i2c: E2 [12:53:10]MH_I2C_Read... [12:53:10]Read from MH i2c: E2 0B 00 [12:53:10]MH_I2C_Read... [12:53:10]Read from MH i2c: E2 0B 00 05 60 00 4F 6D 8D 28 26 73 35 17 90 00 37 [12:53:10]RAPDU: 4F 6D 8D 28 26 73 35 17 90 00 [12:53:10]wFMCommunicate OK [12:53:10]SAM_PROTO_SignData done [12:53:10]FM_MakeSignedData done [12:53:10]CreateOFDProtocolMessage [12:53:10]wFMCommunicate request_size=4 [12:53:10]MH_SAM_APDU [12:53:10]CAPDU: 80 11 00 00 [12:53:10]Write to MH i2c: E2 08 00 06 60 80 11 00 00 00 00 00 00 E0 [12:53:10]Write i2c OK [12:53:10]MH_I2C_Read... [12:53:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:10]Read from MH i2c: E2 [12:53:10]MH_I2C_Read... [12:53:10]Read from MH i2c: E2 17 00 [12:53:10]MH_I2C_Read... [12:53:10]Read from MH i2c: E2 17 00 06 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 32 [12:53:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:53:10]wFMCommunicate OK [12:53:10]CreateOFDProtocolMessage done [12:53:10]OFDSenderStorePacket 111649 [12:53:10]StoreOFDPacket docnum=111649 [12:53:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 06 4C 07 01 5B E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 57 26 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 21 B4 01 00 35 04 06 00 B7 F1 B6 01 33 D2 4F 6D 8D 28 26 73 35 17 [12:53:10]CheckFolder [12:53:10]dirname=/storage/ofd_packets [12:53:10]CheckFolder done [12:53:10]ProducePacketName [12:53:10]name=ofd_packets/00111649 [12:53:10]NVStorageSaveData ofd_packets/00111649 [12:53:10]File name is /storage/ofd_packets/00111649 [12:53:10]Write 301 bytes [12:53:10]NVStorageSaveData done [12:53:10]OFDSenderStorePacket done [12:53:10]KKMCreateOFDPacket done [12:53:10]NVStorageSaveData kkm_last_timestamp [12:53:10]File name is /storage/kkm_last_timestamp [12:53:10]Write 4 bytes [12:53:10]NVStorageSaveData done [12:53:10]ExternCall_PrintAddStr [12:53:10]wPrintStart [12:53:10]Write to MH i2c: 01 00 00 07 60 67 [12:53:10]Write i2c OK [12:53:10]MH_I2C_Read... [12:53:10]Read from MH i2c: 01 [12:53:10]MH_I2C_Read... [12:53:10]Read from MH i2c: 01 07 00 [12:53:10]MH_I2C_Read... [12:53:10]Read from MH i2c: 01 07 00 07 60 00 00 00 00 00 FF 0F 7C [12:53:10]RasterBufferAndPrint [12:53:10]line Счет N : (1)320250 [12:53:10]line ИНН: 02508201610067 [12:53:10]line Контрольно-Кассовый Чек [12:53:10]line ПРОДАЖА [12:53:10]line ТРК (МРК, ГНК) : 11 [12:53:10]line Товар: 2710124130 [12:53:10]line Аи-92-К-5 [12:53:10]line 15.070 * 66.40 [12:53:10]line = 1000.65 [12:53:10]line НДС 12% НСП 1% [12:53:10]line > о реализуемом товаре [12:53:10]line ОКРУГЛЕНИЕ: -0.65 [12:53:10]line ИТОГО: 1000.00 [12:53:10]line Внесено: 1000.00 [12:53:10]line СДАЧА: 0.00 [12:53:10]line НСП 1% : 8.85 [12:53:10]line НДС 12% : 106.26 [12:53:10]line Наличными: 1000.00 [12:53:10]line Безнал.: 0.00 [12:53:10]line Место: АЗС № 65 "Партнер Нефть" [12:53:10]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:53:10]line СНО: Общий режим [12:53:10]line Чек 99 20.06.2024 12:53 [12:53:10]line Смена: 389 ФФД: 1.0 [12:53:10]line ЗНМ: 0300000198 [12:53:10]line РНМ: 0000000000092771 [12:53:10]line Версия ККМ: 001 [12:53:10]line ФМ: 0000000000875083 [12:53:10]line ФД: 111649 [12:53:10]line ФПД: 202248768533458 [12:53:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T125343&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111649&fm=202248768533458&tin=02508201610067®Number=0000000000092771&sum=100000 [12:53:10]OFD Sender: Processing packet 111649 [packets to send 38, broken 37] [12:53:10]ProducePacketName [12:53:10]name=ofd_packets/00111649 [12:53:10]OFD Sender: To server: pG, [12:53:10]CommunicateWithHost lk.salyk.kg:30040 [12:53:10]ConnectInit lk.salyk.kg [12:53:10]written 0, free lines is 4095 [12:53:10]Connected sock=10 [12:53:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 06 4C 07 01 5B E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 57 26 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 21 B4 01 00 35 04 06 00 B7 F1 B6 01 33 D2 4F 6D 8D 28 26 73 35 17 [12:53:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F2 F5 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 35 30 38 33 10 04 04 00 21 B4 01 00 F4 03 04 00 A1 BD 73 66 B6 04 01 00 00 CC EE F3 B1 61 AA EC 1F [12:53:11]CommunicateWithHost err = 0 [12:53:11]CheckOFDResponse [12:53:11]1017 (14) - 77093643461234 [12:53:11]1041 (16) - 0000000000875083 [12:53:11]1040 (4) - 111649 [12:53:11]1012 (4) - 20.06.2024 05:26 [12:53:11]1206 (1) - 0 [12:53:11]OFD Sender: Remove packet 111649 [12:53:11]ProducePacketName [12:53:11]name=ofd_packets/00111649 [12:53:11]NVStorageDeleteData [12:53:11]Write to MH i2c: 01 00 00 32 60 92 [12:53:11]Write i2c OK [12:53:11]MH_I2C_Read... [12:53:11]Read from MH i2c: 01 [12:53:11]MH_I2C_Read... [12:53:11]Read from MH i2c: 01 07 00 [12:53:11]MH_I2C_Read... [12:53:11]Read from MH i2c: 01 07 00 32 60 00 00 00 00 00 FB 0C A0 [12:53:11]RasterBufferAndPrint [12:53:11]line [12:53:11]line [12:53:11]line [12:53:11]line [12:53:11]line [12:53:11]written 0, free lines is 3329 [12:53:11]MH_Cut [12:53:11]Write to MH i2c: D1 01 00 39 60 01 6B [12:53:11]Write i2c OK [12:53:11]MH_I2C_Read... [12:53:11]Read from MH i2c: D1 [12:53:11]MH_I2C_Read... [12:53:11]Read from MH i2c: D1 01 00 [12:53:11]MH_I2C_Read... [12:53:11]Read from MH i2c: D1 01 00 39 60 00 6A [12:53:11]Write to MH i2c: 01 00 00 3A 60 9A [12:53:11]Write i2c OK [12:53:11]MH_I2C_Read... [12:53:11]OFD Sender: No OFD packet to send [12:53:12]*** Cut start [12:53:12]*** Partial cut [12:53:12]*** CUTSNS_PIN = 1 [12:53:12]*** CUTSNS_PIN = 0 [12:53:12]*** Brake cut motor [12:53:12]Read from MH i2c: 01 [12:53:12]MH_I2C_Read... [12:53:12]*** Stop cut motor [12:53:12]*** Cut end [12:53:12]Read from MH i2c: 01 07 00 [12:53:12]MH_I2C_Read... [12:53:12]Read from MH i2c: 01 07 00 3A 60 00 00 00 00 00 FF 0F AF [12:53:12]process_action close_receipt done [12:53:12]requested_data is exist [12:53:12]produce_requested_data [12:53:12]requested_item fm.sn is exist - process it [12:53:12]wFMCommunicate request_size=4 [12:53:12]MH_SAM_APDU [12:53:12]CAPDU: 80 11 00 00 [12:53:12]Write to MH i2c: E2 08 00 3B 60 80 11 00 00 00 00 00 00 15 [12:53:12]Write i2c OK [12:53:12]MH_I2C_Read... [12:53:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:12]Read from MH i2c: E2 [12:53:12]MH_I2C_Read... [12:53:12]Read from MH i2c: E2 17 00 [12:53:12]MH_I2C_Read... [12:53:12]Read from MH i2c: E2 17 00 3B 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 67 [12:53:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:53:12]wFMCommunicate OK [12:53:12]requested_item fd.num is exist - process it [12:53:12]SAM_PROTO_GetFieldsCounters [12:53:12]wFMCommunicate request_size=4 [12:53:12]MH_SAM_APDU [12:53:12]CAPDU: 80 13 00 00 [12:53:12]Write to MH i2c: E2 08 00 3C 60 80 13 00 00 00 00 00 00 18 [12:53:12]Write i2c OK [12:53:12]MH_I2C_Read... [12:53:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:12]Read from MH i2c: E2 [12:53:12]MH_I2C_Read... [12:53:12]Read from MH i2c: E2 62 00 [12:53:12]MH_I2C_Read... [12:53:12]Read from MH i2c: E2 62 00 3C 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 21 B4 01 00 0E 04 04 00 85 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 BE [12:53:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 21 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:53:12]wFMCommunicate OK [12:53:12]SAM_PROTO_GetFieldsCounters done [12:53:12]requested_item shift.num is exist - process it [12:53:12]requested_item shift.opened is exist - process it [12:53:12]req_shift_opened [12:53:12]FM_GetShiftState [12:53:12]SAM_PROTO_GetShiftState [12:53:12]wFMCommunicate request_size=4 [12:53:12]MH_SAM_APDU [12:53:12]CAPDU: 80 13 01 00 [12:53:12]Write to MH i2c: E2 08 00 3D 60 80 13 01 00 00 00 00 00 1A [12:53:12]Write i2c OK [12:53:12]MH_I2C_Read... [12:53:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:12]Read from MH i2c: E2 [12:53:12]MH_I2C_Read... [12:53:12]Read from MH i2c: E2 0E 00 [12:53:12]MH_I2C_Read... [12:53:12]Read from MH i2c: E2 0E 00 3D 60 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 95 [12:53:12]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:53:12]wFMCommunicate OK [12:53:12]SAM_PROTO_GetShiftState done [12:53:12]FM_GetShiftState done [12:53:12]req_shift_opened done [12:53:12]requested_item shift.open_date is exist - process it [12:53:12]req_shift_open_date [12:53:12]req_shift_open_date done [12:53:12]produce_requested_data done [12:53:12]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111649,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [12:53:12]process_action_free close_receipt [12:53:12]json_value_free [12:53:12]json_value_free done [12:53:12]process_json_proto returns [12:53:12]Send response to host [12:53:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111649,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [12:53:12]free response buf [12:53:12]execute_script done [12:53:12]execute_script returns [12:53:12]free content buf [12:53:12]Sock 7.Close socket [12:53:12]Sock 7.Thread stoped [12:53:16]OFD Sender: No OFD packet to send [12:53:21]OFD Sender: No OFD packet to send [12:53:24]accept exits with 9 [12:53:24]New connection [12:53:24]New thread 3067465060 created [12:53:24]Thread 3067321700 joined [12:53:24]Waiting for new connection... [12:53:24] Sock 9.Parse request [12:53:24]Sock 9.Check first char [12:53:24]Sock 9.First char is OK [12:53:24]request: POST /json_proto HTTP/1.0 [12:53:24]Method: POST [12:53:24]URL: /json_proto [12:53:24]Method is POST - this is cgi request [12:53:24]url: /json_proto [12:53:24]query_string will be loaded in cgi processing [12:53:24]execute_cgi json_proto POST (null) [12:53:24]execute_cgi path=json_proto method=POST [12:53:24]POST find Content-Length [12:53:24]Host: 172.17.59.68:8080 [12:53:24]Content-Length: 679 [12:53:24]Content-Type: application/json [12:53:24] [12:53:24]POST finish read [12:53:24]Found Content-Length = 679 [12:53:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:24]execute_script... [12:53: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)320249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:24]POST & json_proto [12:53:24]process_json_proto [12:53:24]json parsed OK: [12:53:24]protocol is kg_v1.0 [12:53:24]action value=close_receipt [12:53:24]process_action close_receipt [12:53:24]cmd_close_receipt [12:53:24]MH_GetDate [12:53:24]Write to MH i2c: F0 00 00 3E 60 8D [12:53:24]Write i2c OK [12:53:24]MH_I2C_Read... [12:53:24]Read from MH i2c: F0 [12:53:24]MH_I2C_Read... [12:53:24]Read from MH i2c: F0 09 00 [12:53:24]MH_I2C_Read... [12:53:24]Read from MH i2c: F0 09 00 3E 60 00 67 26 74 66 BC EC 60 65 6A [12:53:24]GetLastDocTimeStamp 1718888023 [12:53:24]current date 1718888039 [12:53:24]FM_GetShiftState [12:53:24]SAM_PROTO_GetShiftState [12:53:24]wFMCommunicate request_size=4 [12:53:24]MH_SAM_APDU [12:53:24]CAPDU: 80 13 01 00 [12:53:24]Write to MH i2c: E2 08 00 3F 60 80 13 01 00 00 00 00 00 1C [12:53:24]Write i2c OK [12:53:24]MH_I2C_Read... [12:53:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:24]Read from MH i2c: E2 [12:53:24]MH_I2C_Read... [12:53:24]Read from MH i2c: E2 0E 00 [12:53:24]MH_I2C_Read... [12:53:24]Read from MH i2c: E2 0E 00 3F 60 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 97 [12:53:24]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:53:24]wFMCommunicate OK [12:53:24]SAM_PROTO_GetShiftState done [12:53:24]FM_GetShiftState done [12:53:24]opened in 1718847247 [12:53:24]opened+sec_in_day 1718933647 [12:53:24]quantity*price = 200037 [12:53:24]sum+1 = 200039 [12:53:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 100 20.06.2024 12:53 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111650 ФПД: 19852158181338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T125359&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111650&fm=19852158181338&tin=02508201610067®Number=0000000000092771&sum=200000 [12:53:26]StoreToDocumentArchive [12:53:26]shift 389 fd 111650 [12:53:26]save to /storage/0389/doc_00111650 [12:53:26]save last doc name /storage/0389/doc_00111650 to /storage/kkm_last_doc_name [12:53:26]save OK [12:53:26]Clear old archive folders... [12:53:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:53:26]tlvbuf is 00F3BB90 [12:53:26]SAM_PROTO_ClearQueue [12:53:26]wFMCommunicate request_size=4 [12:53:26]MH_SAM_APDU [12:53:26]CAPDU: 80 09 00 00 [12:53:26]Write to MH i2c: E2 08 00 4C 60 80 09 00 00 00 00 00 00 1E [12:53:26]Write i2c OK [12:53:26]MH_I2C_Read... [12:53:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:26]Read from MH i2c: E2 [12:53:26]MH_I2C_Read... [12:53:26]Read from MH i2c: E2 03 00 [12:53:26]MH_I2C_Read... [12:53:26]Read from MH i2c: E2 03 00 4C 60 00 90 00 20 [12:53:26]RAPDU: 90 00 [12:53:26]wFMCommunicate OK [12:53:26]SAM_PROTO_ClearQueue done [12:53:26]KKMCreateOFDPacket [12:53:26]OFDProtocolAddRootSTLVToBuf [12:53:26]FM_MakeSignedData [12:53:26]FM_MakeSignedData [12:53:26]SAM_PROTO_SignData [12:53:26]wFMCommunicate request_size=4 [12:53:26]MH_SAM_APDU [12:53:26]CAPDU: 80 0D 01 02 [12:53:26]Write to MH i2c: E2 08 00 4D 60 80 0D 01 02 00 00 00 00 26 [12:53:26]Write i2c OK [12:53:26]MH_I2C_Read... [12:53:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:26]Read from MH i2c: E2 [12:53:26]MH_I2C_Read... [12:53:26]Read from MH i2c: E2 03 00 [12:53:26]MH_I2C_Read... [12:53:26]Read from MH i2c: E2 03 00 4D 60 00 90 00 21 [12:53:26]RAPDU: 90 00 [12:53:26]wFMCommunicate OK [12:53:26]wFMCommunicate request_size=255 [12:53:26]MH_SAM_APDU [12:53:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 67 26 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 22 B4 01 00 35 04 06 00 12 0E 30 D6 [12:53:26]Write to MH i2c: E2 02 01 4E 60 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 67 26 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 22 B4 01 00 35 04 06 00 12 0E 30 D6 00 00 55 [12:53:26]Write i2c OK [12:53:26]MH_I2C_Read... [12:53:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:26]Read from MH i2c: E2 [12:53:26]MH_I2C_Read... [12:53:26]Read from MH i2c: E2 03 00 [12:53:26]MH_I2C_Read... [12:53:26]Read from MH i2c: E2 03 00 4E 60 00 90 00 22 [12:53:26]RAPDU: 90 00 [12:53:26]wFMCommunicate OK [12:53:26]wFMCommunicate request_size=7 [12:53:26]MH_SAM_APDU [12:53:26]CAPDU: 80 0D 02 02 02 1F DA [12:53:26]Write to MH i2c: E2 0A 00 4F 60 80 0D 02 02 02 00 1F DA 00 00 26 [12:53:26]Write i2c OK [12:53:26]MH_I2C_Read... [12:53:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:26]Read from MH i2c: E2 [12:53:26]MH_I2C_Read... [12:53:26]Read from MH i2c: E2 03 00 [12:53:26]MH_I2C_Read... [12:53:26]Read from MH i2c: E2 03 00 4F 60 00 90 00 23 [12:53:26]RAPDU: 90 00 [12:53:26]wFMCommunicate OK [12:53:26]wFMCommunicate request_size=4 [12:53:26]MH_SAM_APDU [12:53:26]CAPDU: 80 0D 03 02 [12:53:26]Write to MH i2c: E2 08 00 50 60 80 0D 03 02 00 00 00 00 2B [12:53:26]Write i2c OK [12:53:26]MH_I2C_Read... [12:53:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:26]Read from MH i2c: E2 [12:53:26]MH_I2C_Read... [12:53:26]Read from MH i2c: E2 0B 00 [12:53:26]MH_I2C_Read... [12:53:26]Read from MH i2c: E2 0B 00 50 60 00 90 C3 E4 88 2C 14 A3 BF 90 00 8D [12:53:26]RAPDU: 90 C3 E4 88 2C 14 A3 BF 90 00 [12:53:26]wFMCommunicate OK [12:53:26]SAM_PROTO_SignData done [12:53:26]FM_MakeSignedData done [12:53:26]CreateOFDProtocolMessage [12:53:26]wFMCommunicate request_size=4 [12:53:26]MH_SAM_APDU [12:53:26]CAPDU: 80 11 00 00 [12:53:26]Write to MH i2c: E2 08 00 51 60 80 11 00 00 00 00 00 00 2B [12:53:26]Write i2c OK [12:53:26]MH_I2C_Read... [12:53:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:26]Read from MH i2c: E2 [12:53:26]MH_I2C_Read... [12:53:26]Read from MH i2c: E2 17 00 [12:53:26]MH_I2C_Read... [12:53:26]Read from MH i2c: E2 17 00 51 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7D [12:53:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:53:26]wFMCommunicate OK [12:53:26]CreateOFDProtocolMessage done [12:53:26]OFDSenderStorePacket 111650 [12:53:26]StoreOFDPacket docnum=111650 [12:53:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 43 8B 04 01 65 E7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 67 26 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 22 B4 01 00 35 04 06 00 12 0E 30 D6 1F DA 90 C3 E4 88 2C 14 A3 BF [12:53:26]CheckFolder [12:53:26]dirname=/storage/ofd_packets [12:53:26]CheckFolder done [12:53:26]ProducePacketName [12:53:26]name=ofd_packets/00111650 [12:53:26]NVStorageSaveData ofd_packets/00111650 [12:53:26]File name is /storage/ofd_packets/00111650 [12:53:26]Write 298 bytes [12:53:26]NVStorageSaveData done [12:53:26]OFDSenderStorePacket done [12:53:26]KKMCreateOFDPacket done [12:53:26]NVStorageSaveData kkm_last_timestamp [12:53:26]File name is /storage/kkm_last_timestamp [12:53:26]Write 4 bytes [12:53:26]NVStorageSaveData done [12:53:26]ExternCall_PrintAddStr [12:53:26]wPrintStart [12:53:26]Write to MH i2c: 01 00 00 52 60 B2 [12:53:26]Write i2c OK [12:53:26]MH_I2C_Read... [12:53:26]Read from MH i2c: 01 [12:53:26]MH_I2C_Read... [12:53:26]Read from MH i2c: 01 07 00 [12:53:26]MH_I2C_Read... [12:53:26]Read from MH i2c: 01 07 00 52 60 00 00 00 00 00 FF 0F C7 [12:53:26]RasterBufferAndPrint [12:53:26]line Счет N : (1)320249 [12:53:26]line ИНН: 02508201610067 [12:53:26]line Контрольно-Кассовый Чек [12:53:26]line ПРОДАЖА [12:53:26]line ТРК (МРК, ГНК) : 22 [12:53:26]line Товар: 2710194210 [12:53:26]line ДТ-К-5 [12:53:26]line 27.440 * 72.90 [12:53:26]line = 2000.38 [12:53:26]line НДС 12% НСП 1% [12:53:26]line > о реализуемом товаре [12:53:26]line ОКРУГЛЕНИЕ: -0.38 [12:53:26]line ИТОГО: 2000.00 [12:53:26]line Внесено: 2000.00 [12:53:26]line СДАЧА: 0.00 [12:53:26]line НСП 1% : 17.70 [12:53:26]line НДС 12% : 212.43 [12:53:26]line Наличными: 2000.00 [12:53:26]line Безнал.: 0.00 [12:53:26]line Место: АЗС № 65 "Партнер Нефть" [12:53:26]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:53:26]line СНО: Общий режим [12:53:26]line Чек 100 20.06.2024 12:53 [12:53:26]line Смена: 389 ФФД: 1.0 [12:53:26]line ЗНМ: 0300000198 [12:53:26]line РНМ: 0000000000092771 [12:53:26]line Версия ККМ: 001 [12:53:26]line ФМ: 0000000000875083 [12:53:26]line ФД: 111650 [12:53:26]line ФПД: 19852158181338 [12:53:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T125359&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111650&fm=19852158181338&tin=02508201610067®Number=0000000000092771&sum=200000 [12:53:26]OFD Sender: Processing packet 111650 [packets to send 38, broken 37] [12:53:26]ProducePacketName [12:53:26]name=ofd_packets/00111650 [12:53:26]OFD Sender: To server: pG, [12:53:26]CommunicateWithHost lk.salyk.kg:30040 [12:53:26]ConnectInit lk.salyk.kg [12:53:26]written 0, free lines is 4095 [12:53:26]Connected sock=10 [12:53:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 43 8B 04 01 65 E7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 67 26 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 22 B4 01 00 35 04 06 00 12 0E 30 D6 1F DA 90 C3 E4 88 2C 14 A3 BF [12:53:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 35 EA 47 00 5E 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 35 30 38 33 10 04 04 00 22 B4 01 00 F4 03 04 00 B1 BD 73 66 B6 04 01 00 00 FE AB A7 35 63 A3 63 30 [12:53:27]CommunicateWithHost err = 0 [12:53:27]CheckOFDResponse [12:53:27]1017 (14) - 77093643461234 [12:53:27]1041 (16) - 0000000000875083 [12:53:27]1040 (4) - 111650 [12:53:27]1012 (4) - 20.06.2024 05:27 [12:53:27]1206 (1) - 0 [12:53:27]OFD Sender: Remove packet 111650 [12:53:27]ProducePacketName [12:53:27]name=ofd_packets/00111650 [12:53:27]NVStorageDeleteData [12:53:27]Write to MH i2c: 01 00 00 7D 60 DD [12:53:27]Write i2c OK [12:53:27]MH_I2C_Read... [12:53:27]Read from MH i2c: 01 [12:53:27]MH_I2C_Read... [12:53:27]Read from MH i2c: 01 07 00 [12:53:27]MH_I2C_Read... [12:53:27]Read from MH i2c: 01 07 00 7D 60 00 00 00 00 00 C8 0C B8 [12:53:27]RasterBufferAndPrint [12:53:27]line [12:53:27]line [12:53:27]line [12:53:27]line [12:53:27]line [12:53:27]written 0, free lines is 3279 [12:53:27]MH_Cut [12:53:27]Write to MH i2c: D1 01 00 84 60 01 B6 [12:53:27]Write i2c OK [12:53:27]MH_I2C_Read... [12:53:27]Read from MH i2c: D1 [12:53:27]MH_I2C_Read... [12:53:27]Read from MH i2c: D1 01 00 [12:53:27]MH_I2C_Read... [12:53:27]Read from MH i2c: D1 01 00 84 60 00 B5 [12:53:27]Write to MH i2c: 01 00 00 85 60 E5 [12:53:27]Write i2c OK [12:53:27]MH_I2C_Read... [12:53:27]OFD Sender: No OFD packet to send [12:53:28]*** Cut start [12:53:28]*** Partial cut [12:53:28]*** CUTSNS_PIN = 1 [12:53:28]*** CUTSNS_PIN = 0 [12:53:28]*** Brake cut motor [12:53:28]Read from MH i2c: 01 [12:53:28]MH_I2C_Read... [12:53:28]*** Stop cut motor [12:53:28]*** Cut end [12:53:28]Read from MH i2c: 01 07 00 [12:53:28]MH_I2C_Read... [12:53:28]Read from MH i2c: 01 07 00 85 60 00 00 00 00 00 FF 0F FA [12:53:28]process_action close_receipt done [12:53:28]requested_data is exist [12:53:28]produce_requested_data [12:53:28]requested_item fm.sn is exist - process it [12:53:28]wFMCommunicate request_size=4 [12:53:28]MH_SAM_APDU [12:53:28]CAPDU: 80 11 00 00 [12:53:28]Write to MH i2c: E2 08 00 86 60 80 11 00 00 00 00 00 00 60 [12:53:28]Write i2c OK [12:53:28]MH_I2C_Read... [12:53:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:28]Read from MH i2c: E2 [12:53:28]MH_I2C_Read... [12:53:28]Read from MH i2c: E2 17 00 [12:53:28]MH_I2C_Read... [12:53:28]Read from MH i2c: E2 17 00 86 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B2 [12:53:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:53:28]wFMCommunicate OK [12:53:28]requested_item fd.num is exist - process it [12:53:28]SAM_PROTO_GetFieldsCounters [12:53:28]wFMCommunicate request_size=4 [12:53:28]MH_SAM_APDU [12:53:28]CAPDU: 80 13 00 00 [12:53:28]Write to MH i2c: E2 08 00 87 60 80 13 00 00 00 00 00 00 63 [12:53:28]Write i2c OK [12:53:28]MH_I2C_Read... [12:53:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:28]Read from MH i2c: E2 [12:53:28]MH_I2C_Read... [12:53:28]Read from MH i2c: E2 62 00 [12:53:28]MH_I2C_Read... [12:53:28]Read from MH i2c: E2 62 00 87 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 22 B4 01 00 0E 04 04 00 85 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 0D [12:53:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 22 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:53:28]wFMCommunicate OK [12:53:28]SAM_PROTO_GetFieldsCounters done [12:53:28]requested_item shift.num is exist - process it [12:53:28]requested_item shift.opened is exist - process it [12:53:28]req_shift_opened [12:53:28]FM_GetShiftState [12:53:28]SAM_PROTO_GetShiftState [12:53:28]wFMCommunicate request_size=4 [12:53:28]MH_SAM_APDU [12:53:28]CAPDU: 80 13 01 00 [12:53:28]Write to MH i2c: E2 08 00 88 60 80 13 01 00 00 00 00 00 65 [12:53:28]Write i2c OK [12:53:28]MH_I2C_Read... [12:53:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:28]Read from MH i2c: E2 [12:53:28]MH_I2C_Read... [12:53:28]Read from MH i2c: E2 0E 00 [12:53:28]MH_I2C_Read... [12:53:28]Read from MH i2c: E2 0E 00 88 60 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 E0 [12:53:28]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:53:28]wFMCommunicate OK [12:53:28]SAM_PROTO_GetShiftState done [12:53:28]FM_GetShiftState done [12:53:28]req_shift_opened done [12:53:28]requested_item shift.open_date is exist - process it [12:53:28]req_shift_open_date [12:53:28]req_shift_open_date done [12:53:28]produce_requested_data done [12:53:28]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111650,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [12:53:28]process_action_free close_receipt [12:53:28]json_value_free [12:53:28]json_value_free done [12:53:28]process_json_proto returns [12:53:28]Send response to host [12:53:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111650,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [12:53:28]free response buf [12:53:28]execute_script done [12:53:28]execute_script returns [12:53:28]free content buf [12:53:28]Sock 9.Close socket [12:53:28]Sock 9.Thread stoped [12:53:32]OFD Sender: No OFD packet to send [12:53:37]OFD Sender: No OFD packet to send [12:53:42]OFD Sender: No OFD packet to send [12:53:47]OFD Sender: No OFD packet to send [12:53:52]OFD Sender: No OFD packet to send [12:53:57]OFD Sender: No OFD packet to send [12:54:02]OFD Sender: No OFD packet to send [12:54:07]OFD Sender: No OFD packet to send [12:54:12]OFD Sender: No OFD packet to send [12:54:17]OFD Sender: No OFD packet to send [12:54:22]OFD Sender: No OFD packet to send [12:54:27]OFD Sender: No OFD packet to send [12:54:32]OFD Sender: No OFD packet to send [12:54:37]OFD Sender: No OFD packet to send [12:54:42]OFD Sender: No OFD packet to send [12:54:47]OFD Sender: No OFD packet to send [12:54:52]OFD Sender: No OFD packet to send [12:54:57]OFD Sender: No OFD packet to send [12:55:02]OFD Sender: No OFD packet to send [12:55:07]OFD Sender: No OFD packet to send [12:55:12]OFD Sender: No OFD packet to send [12:55:14]accept exits with 7 [12:55:14]New connection [12:55:14]New thread 3067321700 created [12:55:14]Thread 3067465060 joined [12:55:14]Waiting for new connection... [12:55:14] Sock 7.Parse request [12:55:14]Sock 7.Check first char [12:55:14]Sock 7.First char is OK [12:55:14]request: POST /json_proto HTTP/1.0 [12:55:14]Method: POST [12:55:14]URL: /json_proto [12:55:14]Method is POST - this is cgi request [12:55:14]url: /json_proto [12:55:14]query_string will be loaded in cgi processing [12:55:14]execute_cgi json_proto POST (null) [12:55:14]execute_cgi path=json_proto method=POST [12:55:14]POST find Content-Length [12:55:14]Host: 172.17.59.68:8080 [12:55:14]Content-Length: 682 [12:55:14]Content-Type: application/json [12:55:14] [12:55:14]POST finish read [12:55:14]Found Content-Length = 682 [12:55:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 21.090, "sum" : 1400.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:14]execute_script... [12:55: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)320251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 21.090, "sum" : 1400.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:14]POST & json_proto [12:55:14]process_json_proto [12:55:14]json parsed OK: [12:55:14]protocol is kg_v1.0 [12:55:14]action value=close_receipt [12:55:14]process_action close_receipt [12:55:14]cmd_close_receipt [12:55:14]MH_GetDate [12:55:14]Write to MH i2c: F0 00 00 89 60 D8 [12:55:14]Write i2c OK [12:55:14]MH_I2C_Read... [12:55:14]Read from MH i2c: F0 [12:55:14]MH_I2C_Read... [12:55:14]Read from MH i2c: F0 09 00 [12:55:14]MH_I2C_Read... [12:55:14]Read from MH i2c: F0 09 00 89 60 00 D4 26 74 66 BC EC 60 65 22 [12:55:14]GetLastDocTimeStamp 1718888039 [12:55:14]current date 1718888148 [12:55:14]FM_GetShiftState [12:55:14]SAM_PROTO_GetShiftState [12:55:14]wFMCommunicate request_size=4 [12:55:14]MH_SAM_APDU [12:55:14]CAPDU: 80 13 01 00 [12:55:14]Write to MH i2c: E2 08 00 8A 60 80 13 01 00 00 00 00 00 67 [12:55:14]Write i2c OK [12:55:14]MH_I2C_Read... [12:55:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:14]Read from MH i2c: E2 [12:55:14]MH_I2C_Read... [12:55:14]Read from MH i2c: E2 0E 00 [12:55:14]MH_I2C_Read... [12:55:14]Read from MH i2c: E2 0E 00 8A 60 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 E2 [12:55:14]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:55:14]wFMCommunicate OK [12:55:14]SAM_PROTO_GetShiftState done [12:55:14]FM_GetShiftState done [12:55:14]opened in 1718847247 [12:55:14]opened+sec_in_day 1718933647 [12:55:14]quantity*price = 140037 [12:55:14]sum+1 = 140039 [12:55:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.71 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 101 20.06.2024 12:55 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111651 ФПД: 79489140615076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T125548&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111651&fm=79489140615076&tin=02508201610067®Number=0000000000092771&sum=140000 [12:55:15]StoreToDocumentArchive [12:55:15]shift 389 fd 111651 [12:55:15]save to /storage/0389/doc_00111651 [12:55:15]save last doc name /storage/0389/doc_00111651 to /storage/kkm_last_doc_name [12:55:15]save OK [12:55:15]Clear old archive folders... [12:55:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:55:15]tlvbuf is 00F1E830 [12:55:15]SAM_PROTO_ClearQueue [12:55:15]wFMCommunicate request_size=4 [12:55:15]MH_SAM_APDU [12:55:15]CAPDU: 80 09 00 00 [12:55:15]Write to MH i2c: E2 08 00 97 60 80 09 00 00 00 00 00 00 69 [12:55:15]Write i2c OK [12:55:15]MH_I2C_Read... [12:55:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:55:15]Read from MH i2c: E2 [12:55:15]MH_I2C_Read... [12:55:15]Read from MH i2c: E2 03 00 [12:55:15]MH_I2C_Read... [12:55:15]Read from MH i2c: E2 03 00 97 60 00 90 00 6B [12:55:15]RAPDU: 90 00 [12:55:15]wFMCommunicate OK [12:55:15]SAM_PROTO_ClearQueue done [12:55:15]KKMCreateOFDPacket [12:55:15]OFDProtocolAddRootSTLVToBuf [12:55:15]FM_MakeSignedData [12:55:15]FM_MakeSignedData [12:55:15]SAM_PROTO_SignData [12:55:15]wFMCommunicate request_size=4 [12:55:15]MH_SAM_APDU [12:55:15]CAPDU: 80 0D 01 02 [12:55:15]Write to MH i2c: E2 08 00 98 60 80 0D 01 02 00 00 00 00 71 [12:55:15]Write i2c OK [12:55:15]MH_I2C_Read... [12:55:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:55:15]Read from MH i2c: E2 [12:55:15]MH_I2C_Read... [12:55:15]Read from MH i2c: E2 03 00 [12:55:15]MH_I2C_Read... [12:55:15]Read from MH i2c: E2 03 00 98 60 00 90 00 6C [12:55:15]RAPDU: 90 00 [12:55:15]wFMCommunicate OK [12:55:15]wFMCommunicate request_size=255 [12:55:15]MH_SAM_APDU [12:55: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 62 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 D4 26 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 23 B4 01 00 35 04 06 00 48 [12:55:15]Write to MH i2c: E2 02 01 99 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 D4 26 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 23 B4 01 00 35 04 06 00 48 00 00 76 [12:55:15]Write i2c OK [12:55:15]MH_I2C_Read... [12:55:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:15]Read from MH i2c: E2 [12:55:15]MH_I2C_Read... [12:55:15]Read from MH i2c: E2 03 00 [12:55:15]MH_I2C_Read... [12:55:15]Read from MH i2c: E2 03 00 99 60 00 90 00 6D [12:55:15]RAPDU: 90 00 [12:55:15]wFMCommunicate OK [12:55:15]wFMCommunicate request_size=10 [12:55:15]MH_SAM_APDU [12:55:15]CAPDU: 80 0D 02 02 05 4B 81 FD 67 A4 [12:55:15]Write to MH i2c: E2 0D 00 9A 60 80 0D 02 02 05 00 4B 81 FD 67 A4 00 00 52 [12:55:15]Write i2c OK [12:55:15]MH_I2C_Read... [12:55:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:16]Read from MH i2c: E2 [12:55:16]MH_I2C_Read... [12:55:16]Read from MH i2c: E2 03 00 [12:55:16]MH_I2C_Read... [12:55:16]Read from MH i2c: E2 03 00 9A 60 00 90 00 6E [12:55:16]RAPDU: 90 00 [12:55:16]wFMCommunicate OK [12:55:16]wFMCommunicate request_size=4 [12:55:16]MH_SAM_APDU [12:55:16]CAPDU: 80 0D 03 02 [12:55:16]Write to MH i2c: E2 08 00 9B 60 80 0D 03 02 00 00 00 00 76 [12:55:16]Write i2c OK [12:55:16]MH_I2C_Read... [12:55:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:55:16]Read from MH i2c: E2 [12:55:16]MH_I2C_Read... [12:55:16]Read from MH i2c: E2 0B 00 [12:55:16]MH_I2C_Read... [12:55:16]Read from MH i2c: E2 0B 00 9B 60 00 84 B6 A4 64 CC 6E 5D 87 90 00 D7 [12:55:16]RAPDU: 84 B6 A4 64 CC 6E 5D 87 90 00 [12:55:16]wFMCommunicate OK [12:55:16]SAM_PROTO_SignData done [12:55:16]FM_MakeSignedData done [12:55:16]CreateOFDProtocolMessage [12:55:16]wFMCommunicate request_size=4 [12:55:16]MH_SAM_APDU [12:55:16]CAPDU: 80 11 00 00 [12:55:16]Write to MH i2c: E2 08 00 9C 60 80 11 00 00 00 00 00 00 76 [12:55:16]Write i2c OK [12:55:16]MH_I2C_Read... [12:55:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:16]Read from MH i2c: E2 [12:55:16]MH_I2C_Read... [12:55:16]Read from MH i2c: E2 17 00 [12:55:16]MH_I2C_Read... [12:55:16]Read from MH i2c: E2 17 00 9C 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C8 [12:55:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:55:16]wFMCommunicate OK [12:55:16]CreateOFDProtocolMessage done [12:55:16]OFDSenderStorePacket 111651 [12:55:16]StoreOFDPacket docnum=111651 [12:55:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FA EC 07 01 CC 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 62 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 D4 26 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 23 B4 01 00 35 04 06 00 48 4B 81 FD 67 A4 84 B6 A4 64 CC 6E 5D 87 [12:55:16]CheckFolder [12:55:16]dirname=/storage/ofd_packets [12:55:16]CheckFolder done [12:55:16]ProducePacketName [12:55:16]name=ofd_packets/00111651 [12:55:16]NVStorageSaveData ofd_packets/00111651 [12:55:16]File name is /storage/ofd_packets/00111651 [12:55:16]Write 301 bytes [12:55:16]NVStorageSaveData done [12:55:16]OFDSenderStorePacket done [12:55:16]KKMCreateOFDPacket done [12:55:16]NVStorageSaveData kkm_last_timestamp [12:55:16]File name is /storage/kkm_last_timestamp [12:55:16]Write 4 bytes [12:55:16]NVStorageSaveData done [12:55:16]ExternCall_PrintAddStr [12:55:16]wPrintStart [12:55:16]Write to MH i2c: 01 00 00 9D 60 FD [12:55:16]Write i2c OK [12:55:16]MH_I2C_Read... [12:55:16]Read from MH i2c: 01 [12:55:16]MH_I2C_Read... [12:55:16]Read from MH i2c: 01 07 00 [12:55:16]MH_I2C_Read... [12:55:16]Read from MH i2c: 01 07 00 9D 60 00 00 00 00 00 FF 0F 12 [12:55:16]RasterBufferAndPrint [12:55:16]line Счет N : (1)320251 [12:55:16]line ИНН: 02508201610067 [12:55:16]line Контрольно-Кассовый Чек [12:55:16]line ПРОДАЖА [12:55:16]line ТРК (МРК, ГНК) : 11 [12:55:16]line Товар: 2710124130 [12:55:16]line Аи-92-К-5 [12:55:16]line 21.090 * 66.40 [12:55:16]line = 1400.38 [12:55:16]line НДС 12% НСП 1% [12:55:16]line > о реализуемом товаре [12:55:16]line ОКРУГЛЕНИЕ: -0.38 [12:55:16]line ИТОГО: 1400.00 [12:55:16]line Внесено: 1400.00 [12:55:16]line СДАЧА: 0.00 [12:55:16]line НСП 1% : 12.39 [12:55:16]line НДС 12% : 148.71 [12:55:16]line Наличными: 1400.00 [12:55:16]line Безнал.: 0.00 [12:55:16]line Место: АЗС № 65 "Партнер Нефть" [12:55:16]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:55:16]line СНО: Общий режим [12:55:16]line Чек 101 20.06.2024 12:55 [12:55:16]line Смена: 389 ФФД: 1.0 [12:55:16]line ЗНМ: 0300000198 [12:55:16]line РНМ: 0000000000092771 [12:55:16]line Версия ККМ: 001 [12:55:16]line ФМ: 0000000000875083 [12:55:16]line ФД: 111651 [12:55:16]line ФПД: 79489140615076 [12:55:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T125548&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111651&fm=79489140615076&tin=02508201610067®Number=0000000000092771&sum=140000 [12:55:16]OFD Sender: Processing packet 111651 [packets to send 38, broken 37] [12:55:16]ProducePacketName [12:55:16]name=ofd_packets/00111651 [12:55:16]OFD Sender: To server: pG, [12:55:16]CommunicateWithHost lk.salyk.kg:30040 [12:55:16]ConnectInit lk.salyk.kg [12:55:16]written 0, free lines is 4095 [12:55:16]Connected sock=10 [12:55:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FA EC 07 01 CC 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 62 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 D4 26 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 23 B4 01 00 35 04 06 00 48 4B 81 FD 67 A4 84 B6 A4 64 CC 6E 5D 87 [12:55:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 4F EE 47 00 E7 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 23 B4 01 00 F4 03 04 00 1F BE 73 66 B6 04 01 00 00 3C C1 47 45 1E 4B 83 A3 [12:55:16]CommunicateWithHost err = 0 [12:55:16]CheckOFDResponse [12:55:16]1017 (14) - 77093643461234 [12:55:16]1041 (16) - 0000000000875083 [12:55:16]1040 (4) - 111651 [12:55:16]1012 (4) - 20.06.2024 05:29 [12:55:16]1206 (1) - 0 [12:55:16]OFD Sender: Remove packet 111651 [12:55:16]ProducePacketName [12:55:16]name=ofd_packets/00111651 [12:55:16]NVStorageDeleteData [12:55:16]Write to MH i2c: 01 00 00 C8 60 28 [12:55:16]Write i2c OK [12:55:16]MH_I2C_Read... [12:55:16]Read from MH i2c: 01 [12:55:16]MH_I2C_Read... [12:55:16]Read from MH i2c: 01 07 00 [12:55:16]MH_I2C_Read... [12:55:16]Read from MH i2c: 01 07 00 C8 60 00 00 00 00 00 CF 0C 0A [12:55:16]RasterBufferAndPrint [12:55:16]line [12:55:16]line [12:55:16]line [12:55:16]line [12:55:16]line [12:55:16]written 0, free lines is 3288 [12:55:16]MH_Cut [12:55:16]Write to MH i2c: D1 01 00 CF 60 01 01 [12:55:16]Write i2c OK [12:55:16]MH_I2C_Read... [12:55:16]Read from MH i2c: D1 [12:55:16]MH_I2C_Read... [12:55:16]Read from MH i2c: D1 01 00 [12:55:16]MH_I2C_Read... [12:55:16]Read from MH i2c: D1 01 00 CF 60 00 00 [12:55:16]Write to MH i2c: 01 00 00 D0 60 30 [12:55:16]Write i2c OK [12:55:16]MH_I2C_Read... [12:55:17]OFD Sender: No OFD packet to send [12:55:17]*** Cut start [12:55:17]*** Partial cut [12:55:17]*** CUTSNS_PIN = 1 [12:55:17]*** CUTSNS_PIN = 0 [12:55:17]*** Brake cut motor [12:55:18]Read from MH i2c: 01 [12:55:18]MH_I2C_Read... [12:55:18]*** Stop cut motor [12:55:18]*** Cut end [12:55:18]Read from MH i2c: 01 07 00 [12:55:18]MH_I2C_Read... [12:55:18]Read from MH i2c: 01 07 00 D0 60 00 00 00 00 00 FF 0F 45 [12:55:18]process_action close_receipt done [12:55:18]requested_data is exist [12:55:18]produce_requested_data [12:55:18]requested_item fm.sn is exist - process it [12:55:18]wFMCommunicate request_size=4 [12:55:18]MH_SAM_APDU [12:55:18]CAPDU: 80 11 00 00 [12:55:18]Write to MH i2c: E2 08 00 D1 60 80 11 00 00 00 00 00 00 AB [12:55:18]Write i2c OK [12:55:18]MH_I2C_Read... [12:55:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:18]Read from MH i2c: E2 [12:55:18]MH_I2C_Read... [12:55:18]Read from MH i2c: E2 17 00 [12:55:18]MH_I2C_Read... [12:55:18]Read from MH i2c: E2 17 00 D1 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FD [12:55:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:55:18]wFMCommunicate OK [12:55:18]requested_item fd.num is exist - process it [12:55:18]SAM_PROTO_GetFieldsCounters [12:55:18]wFMCommunicate request_size=4 [12:55:18]MH_SAM_APDU [12:55:18]CAPDU: 80 13 00 00 [12:55:18]Write to MH i2c: E2 08 00 D2 60 80 13 00 00 00 00 00 00 AE [12:55:18]Write i2c OK [12:55:18]MH_I2C_Read... [12:55:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:55:18]Read from MH i2c: E2 [12:55:18]MH_I2C_Read... [12:55:18]Read from MH i2c: E2 62 00 [12:55:18]MH_I2C_Read... [12:55:18]Read from MH i2c: E2 62 00 D2 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 23 B4 01 00 0E 04 04 00 85 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 5C [12:55:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 23 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:55:18]wFMCommunicate OK [12:55:18]SAM_PROTO_GetFieldsCounters done [12:55:18]requested_item shift.num is exist - process it [12:55:18]requested_item shift.opened is exist - process it [12:55:18]req_shift_opened [12:55:18]FM_GetShiftState [12:55:18]SAM_PROTO_GetShiftState [12:55:18]wFMCommunicate request_size=4 [12:55:18]MH_SAM_APDU [12:55:18]CAPDU: 80 13 01 00 [12:55:18]Write to MH i2c: E2 08 00 D3 60 80 13 01 00 00 00 00 00 B0 [12:55:18]Write i2c OK [12:55:18]MH_I2C_Read... [12:55:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:18]Read from MH i2c: E2 [12:55:18]MH_I2C_Read... [12:55:18]Read from MH i2c: E2 0E 00 [12:55:18]MH_I2C_Read... [12:55:18]Read from MH i2c: E2 0E 00 D3 60 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 2B [12:55:18]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:55:18]wFMCommunicate OK [12:55:18]SAM_PROTO_GetShiftState done [12:55:18]FM_GetShiftState done [12:55:18]req_shift_opened done [12:55:18]requested_item shift.open_date is exist - process it [12:55:18]req_shift_open_date [12:55:18]req_shift_open_date done [12:55:18]produce_requested_data done [12:55:18]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111651,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [12:55:18]process_action_free close_receipt [12:55:18]json_value_free [12:55:18]json_value_free done [12:55:18]process_json_proto returns [12:55:18]Send response to host [12:55:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111651,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [12:55:18]free response buf [12:55:18]execute_script done [12:55:18]execute_script returns [12:55:18]free content buf [12:55:18]Sock 7.Close socket [12:55:18]Sock 7.Thread stoped [12:55:22]OFD Sender: No OFD packet to send [12:55:27]OFD Sender: No OFD packet to send [12:55:32]OFD Sender: No OFD packet to send [12:55:37]OFD Sender: No OFD packet to send [12:55:42]OFD Sender: No OFD packet to send [12:55:47]OFD Sender: No OFD packet to send [12:55:51]accept exits with 9 [12:55:51]New connection [12:55:51]New thread 3067465060 created [12:55:51]Thread 3067321700 joined [12:55:51]Waiting for new connection... [12:55:51] Sock 9.Parse request [12:55:51]Sock 9.Check first char [12:55:51]Sock 9.First char is OK [12:55:51]request: POST /json_proto HTTP/1.0 [12:55:51]Method: POST [12:55:51]URL: /json_proto [12:55:51]Method is POST - this is cgi request [12:55:51]url: /json_proto [12:55:51]query_string will be loaded in cgi processing [12:55:51]execute_cgi json_proto POST (null) [12:55:51]execute_cgi path=json_proto method=POST [12:55:51]POST find Content-Length [12:55:51]Host: 172.17.59.68:8080 [12:55:51]Content-Length: 1210 [12:55:51]Content-Type: application/json [12:55:51] [12:55:51]POST finish read [12:55:51]Found Content-Length = 1210 [12:55:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0435\u0439\u0448\u0435\u043D\u0431\u0435\u043A\u043E\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)320252\u000A20.06.2024 11:24\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01591\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:51]execute_script... [12:55:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0435\u0439\u0448\u0435\u043D\u0431\u0435\u043A\u043E\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)320252\u000A20.06.2024 11:24\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01591\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:51]POST & json_proto [12:55:51]process_json_proto [12:55:51]json parsed OK: [12:55:51]protocol is kg_v1.0 [12:55:51]action value=print_text [12:55:51]process_action print_text [12:55:51]cmd_print_text [12:55:51]ExternCall_PrintAddStr [12:55:51]wPrintStart [12:55:51]Write to MH i2c: 01 00 00 D4 60 34 [12:55:51]Write i2c OK [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: 01 [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: 01 07 00 [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: 01 07 00 D4 60 00 00 00 00 00 FF 0F 49 [12:55:51]RasterBufferAndPrint [12:55:51]line *****ТОВАРНЫЙ ЧЕК***** [12:55:51]line АЗС 65 [12:55:51]line Партнер нефть [12:55:51]line 02508201610067 [12:55:51]line Кассир : Бейшенбеков А. [12:55:51]line Счет N : (1)320252 [12:55:51]line 20.06.2024 11:24 [12:55:51]line ПРОДАЖА [12:55:51]line ТРК (МРК, ГНК): 22 [12:55:51]line Вид ГСМ : 2710194210 [12:55:51]line ДТ-К-5 [12:55:51]line 20.000 x 72.90 [12:55:51]line ИТОГ: 1458.00 [12:55:51]line Тип оплаты: Талоны: Топливная Карта [12:55:51]line 01591 [12:55:51]line ______________________ [12:55:51]line (подпись) [12:55:51]written 0, free lines is 4095 [12:55:51]Write to MH i2c: 01 00 00 E9 60 49 [12:55:51]Write i2c OK [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: 01 [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: 01 07 00 [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: 01 07 00 E9 60 00 00 00 00 00 F3 0D 50 [12:55:51]RasterBufferAndPrint [12:55:51]line [12:55:51]line [12:55:51]line [12:55:51]line [12:55:51]line [12:55:51]written 0, free lines is 3572 [12:55:51]MH_Cut [12:55:51]Write to MH i2c: D1 01 00 F0 60 01 22 [12:55:51]Write i2c OK [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: D1 [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: D1 01 00 [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: D1 01 00 F0 60 00 21 [12:55:51]Write to MH i2c: 01 00 00 F1 60 51 [12:55:51]Write i2c OK [12:55:51]MH_I2C_Read... [12:55:51]*** Cut start [12:55:51]*** Partial cut [12:55:51]*** CUTSNS_PIN = 1 [12:55:51]*** CUTSNS_PIN = 0 [12:55:52]*** Brake cut motor [12:55:52]OFD Sender: No OFD packet to send [12:55:52]Read from MH i2c: 01 [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: 01 07 00 [12:55:52]MH_I2C_Read... [12:55:52]*** Stop cut motor [12:55:52]*** Cut end [12:55:52]Read from MH i2c: 01 07 00 F1 60 00 00 00 00 00 FF 0F 66 [12:55:52]process_action print_text done [12:55:52]requested_data is exist [12:55:52]produce_requested_data [12:55:52]requested_item fm.sn is exist - process it [12:55:52]wFMCommunicate request_size=4 [12:55:52]MH_SAM_APDU [12:55:52]CAPDU: 80 11 00 00 [12:55:52]Write to MH i2c: E2 08 00 F2 60 80 11 00 00 00 00 00 00 CC [12:55:52]Write i2c OK [12:55:52]MH_I2C_Read... [12:55:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:52]Read from MH i2c: E2 [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: E2 17 00 [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: E2 17 00 F2 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1E [12:55:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:55:52]wFMCommunicate OK [12:55:52]requested_item fd.num is exist - process it [12:55:52]SAM_PROTO_GetFieldsCounters [12:55:52]wFMCommunicate request_size=4 [12:55:52]MH_SAM_APDU [12:55:52]CAPDU: 80 13 00 00 [12:55:52]Write to MH i2c: E2 08 00 F3 60 80 13 00 00 00 00 00 00 CF [12:55:52]Write i2c OK [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: E2 [12:55:52]MH_I2C_Read... [12:55:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:55:52]Read from MH i2c: E2 62 00 [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: E2 62 00 F3 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 23 B4 01 00 0E 04 04 00 85 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 7D [12:55:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 23 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:55:52]wFMCommunicate OK [12:55:52]SAM_PROTO_GetFieldsCounters done [12:55:52]requested_item shift.num is exist - process it [12:55:52]requested_item shift.opened is exist - process it [12:55:52]req_shift_opened [12:55:52]FM_GetShiftState [12:55:52]SAM_PROTO_GetShiftState [12:55:52]wFMCommunicate request_size=4 [12:55:52]MH_SAM_APDU [12:55:52]CAPDU: 80 13 01 00 [12:55:52]Write to MH i2c: E2 08 00 F4 60 80 13 01 00 00 00 00 00 D1 [12:55:52]Write i2c OK [12:55:52]MH_I2C_Read... [12:55:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:52]Read from MH i2c: E2 [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: E2 0E 00 [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: E2 0E 00 F4 60 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 4C [12:55:52]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:55:52]wFMCommunicate OK [12:55:52]SAM_PROTO_GetShiftState done [12:55:52]FM_GetShiftState done [12:55:52]req_shift_opened done [12:55:52]requested_item shift.open_date is exist - process it [12:55:52]req_shift_open_date [12:55:52]req_shift_open_date done [12:55:52]produce_requested_data done [12:55:52]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111651,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [12:55:52]process_action_free print_text [12:55:52]json_value_free [12:55:52]json_value_free done [12:55:52]process_json_proto returns [12:55:52]Send response to host [12:55:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111651,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [12:55:52]free response buf [12:55:52]execute_script done [12:55:52]execute_script returns [12:55:52]free content buf [12:55:52]Sock 9.Close socket [12:55:52]Sock 9.Thread stoped [12:55:57]OFD Sender: No OFD packet to send [12:56:02]OFD Sender: No OFD packet to send [12:56:07]OFD Sender: No OFD packet to send [12:56:12]OFD Sender: No OFD packet to send [12:56:17]OFD Sender: No OFD packet to send [12:56:22]OFD Sender: No OFD packet to send [12:56:27]OFD Sender: No OFD packet to send [12:56:32]OFD Sender: No OFD packet to send [12:56:37]OFD Sender: No OFD packet to send [12:56:42]OFD Sender: No OFD packet to send [12:56:47]OFD Sender: No OFD packet to send [12:56:52]OFD Sender: No OFD packet to send [12:56:57]OFD Sender: No OFD packet to send [12:57:02]OFD Sender: No OFD packet to send [12:57:05]accept exits with 7 [12:57:05]New connection [12:57:05]New thread 3067321700 created [12:57:05]Thread 3067465060 joined [12:57:05]Waiting for new connection... [12:57:05] Sock 7.Parse request [12:57:05]Sock 7.Check first char [12:57:05]Sock 7.First char is OK [12:57:05]request: POST /json_proto HTTP/1.0 [12:57:05]Method: POST [12:57:05]URL: /json_proto [12:57:05]Method is POST - this is cgi request [12:57:05]url: /json_proto [12:57:05]query_string will be loaded in cgi processing [12:57:05]execute_cgi json_proto POST (null) [12:57:05]execute_cgi path=json_proto method=POST [12:57:05]POST find Content-Length [12:57:05]Host: 172.17.59.68:8080 [12:57:05]Content-Length: 677 [12:57:05]Content-Type: application/json [12:57:05] [12:57:05]POST finish read [12:57:05]Found Content-Length = 677 [12:57:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:05]execute_script... [12:57:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:05]POST & json_proto [12:57:05]process_json_proto [12:57:05]json parsed OK: [12:57:05]protocol is kg_v1.0 [12:57:05]action value=close_receipt [12:57:05]process_action close_receipt [12:57:05]cmd_close_receipt [12:57:05]MH_GetDate [12:57:05]Write to MH i2c: F0 00 00 F5 60 44 [12:57:05]Write i2c OK [12:57:05]MH_I2C_Read... [12:57:05]Read from MH i2c: F0 [12:57:05]MH_I2C_Read... [12:57:05]Read from MH i2c: F0 09 00 [12:57:05]MH_I2C_Read... [12:57:05]Read from MH i2c: F0 09 00 F5 60 00 44 27 74 66 BC EC 60 65 FF [12:57:05]GetLastDocTimeStamp 1718888148 [12:57:05]current date 1718888260 [12:57:05]FM_GetShiftState [12:57:05]SAM_PROTO_GetShiftState [12:57:05]wFMCommunicate request_size=4 [12:57:05]MH_SAM_APDU [12:57:05]CAPDU: 80 13 01 00 [12:57:05]Write to MH i2c: E2 08 00 F6 60 80 13 01 00 00 00 00 00 D3 [12:57:05]Write i2c OK [12:57:05]MH_I2C_Read... [12:57:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:05]Read from MH i2c: E2 [12:57:05]MH_I2C_Read... [12:57:05]Read from MH i2c: E2 0E 00 [12:57:05]MH_I2C_Read... [12:57:05]Read from MH i2c: E2 0E 00 F6 60 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 4E [12:57:05]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:57:05]wFMCommunicate OK [12:57:05]SAM_PROTO_GetShiftState done [12:57:05]FM_GetShiftState done [12:57:05]opened in 1718847247 [12:57:05]opened+sec_in_day 1718933647 [12:57:05]quantity*price = 60025 [12:57:05]sum+1 = 60027 [12:57:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 102 20.06.2024 12:57 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111652 ФПД: 59952623550651 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T125740&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111652&fm=59952623550651&tin=02508201610067®Number=0000000000092771&sum=60000 [12:57:06]StoreToDocumentArchive [12:57:06]shift 389 fd 111652 [12:57:06]save to /storage/0389/doc_00111652 [12:57:06]save last doc name /storage/0389/doc_00111652 to /storage/kkm_last_doc_name [12:57:06]save OK [12:57:06]Clear old archive folders... [12:57:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:57:06]tlvbuf is B6FD20D0 [12:57:06]SAM_PROTO_ClearQueue [12:57:06]wFMCommunicate request_size=4 [12:57:06]MH_SAM_APDU [12:57:06]CAPDU: 80 09 00 00 [12:57:06]Write to MH i2c: E2 08 00 03 61 80 09 00 00 00 00 00 00 D6 [12:57:06]Write i2c OK [12:57:06]MH_I2C_Read... [12:57:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:57:06]Read from MH i2c: E2 [12:57:06]MH_I2C_Read... [12:57:06]Read from MH i2c: E2 03 00 [12:57:06]MH_I2C_Read... [12:57:06]Read from MH i2c: E2 03 00 03 61 00 90 00 D8 [12:57:06]RAPDU: 90 00 [12:57:06]wFMCommunicate OK [12:57:06]SAM_PROTO_ClearQueue done [12:57:06]KKMCreateOFDPacket [12:57:06]OFDProtocolAddRootSTLVToBuf [12:57:06]FM_MakeSignedData [12:57:06]FM_MakeSignedData [12:57:06]SAM_PROTO_SignData [12:57:06]wFMCommunicate request_size=4 [12:57:06]MH_SAM_APDU [12:57:06]CAPDU: 80 0D 01 02 [12:57:06]Write to MH i2c: E2 08 00 04 61 80 0D 01 02 00 00 00 00 DE [12:57:06]Write i2c OK [12:57:06]MH_I2C_Read... [12:57:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:57:06]Read from MH i2c: E2 [12:57:06]MH_I2C_Read... [12:57:06]Read from MH i2c: E2 03 00 [12:57:06]MH_I2C_Read... [12:57:06]Read from MH i2c: E2 03 00 04 61 00 90 00 D9 [12:57:06]RAPDU: 90 00 [12:57:06]wFMCommunicate OK [12:57:06]wFMCommunicate request_size=255 [12:57:06]MH_SAM_APDU [12:57:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 44 27 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 24 B4 01 00 35 04 06 00 36 [12:57:06]Write to MH i2c: E2 02 01 05 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 44 27 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 24 B4 01 00 35 04 06 00 36 00 00 AF [12:57:06]Write i2c OK [12:57:06]MH_I2C_Read... [12:57:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:07]Read from MH i2c: E2 [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: E2 03 00 [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: E2 03 00 05 61 00 90 00 DA [12:57:07]RAPDU: 90 00 [12:57:07]wFMCommunicate OK [12:57:07]wFMCommunicate request_size=10 [12:57:07]MH_SAM_APDU [12:57:07]CAPDU: 80 0D 02 02 05 86 CE D4 80 BB [12:57:07]Write to MH i2c: E2 0D 00 06 61 80 0D 02 02 05 00 86 CE D4 80 BB 00 00 4E [12:57:07]Write i2c OK [12:57:07]MH_I2C_Read... [12:57:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:07]Read from MH i2c: E2 [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: E2 03 00 [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: E2 03 00 06 61 00 90 00 DB [12:57:07]RAPDU: 90 00 [12:57:07]wFMCommunicate OK [12:57:07]wFMCommunicate request_size=4 [12:57:07]MH_SAM_APDU [12:57:07]CAPDU: 80 0D 03 02 [12:57:07]Write to MH i2c: E2 08 00 07 61 80 0D 03 02 00 00 00 00 E3 [12:57:07]Write i2c OK [12:57:07]MH_I2C_Read... [12:57:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:57:07]Read from MH i2c: E2 [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: E2 0B 00 [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: E2 0B 00 07 61 00 F2 05 8E 0D 86 A3 47 8D 90 00 73 [12:57:07]RAPDU: F2 05 8E 0D 86 A3 47 8D 90 00 [12:57:07]wFMCommunicate OK [12:57:07]SAM_PROTO_SignData done [12:57:07]FM_MakeSignedData done [12:57:07]CreateOFDProtocolMessage [12:57:07]wFMCommunicate request_size=4 [12:57:07]MH_SAM_APDU [12:57:07]CAPDU: 80 11 00 00 [12:57:07]Write to MH i2c: E2 08 00 08 61 80 11 00 00 00 00 00 00 E3 [12:57:07]Write i2c OK [12:57:07]MH_I2C_Read... [12:57:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:07]Read from MH i2c: E2 [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: E2 17 00 [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: E2 17 00 08 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 35 [12:57:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:57:07]wFMCommunicate OK [12:57:07]CreateOFDProtocolMessage done [12:57:07]OFDSenderStorePacket 111652 [12:57:07]StoreOFDPacket docnum=111652 [12:57:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CD FA 07 01 AD 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 44 27 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 24 B4 01 00 35 04 06 00 36 86 CE D4 80 BB F2 05 8E 0D 86 A3 47 8D [12:57:07]CheckFolder [12:57:07]dirname=/storage/ofd_packets [12:57:07]CheckFolder done [12:57:07]ProducePacketName [12:57:07]name=ofd_packets/00111652 [12:57:07]NVStorageSaveData ofd_packets/00111652 [12:57:07]File name is /storage/ofd_packets/00111652 [12:57:07]Write 301 bytes [12:57:07]NVStorageSaveData done [12:57:07]OFDSenderStorePacket done [12:57:07]KKMCreateOFDPacket done [12:57:07]NVStorageSaveData kkm_last_timestamp [12:57:07]File name is /storage/kkm_last_timestamp [12:57:07]Write 4 bytes [12:57:07]NVStorageSaveData done [12:57:07]OFD Sender: Processing packet 111652 [packets to send 38, broken 37] [12:57:07]ProducePacketName [12:57:07]name=ofd_packets/00111652 [12:57:07]OFD Sender: To server: pG, [12:57:07]CommunicateWithHost lk.salyk.kg:30040 [12:57:07]ConnectInit lk.salyk.kg [12:57:07]ExternCall_PrintAddStr [12:57:07]wPrintStart [12:57:07]Write to MH i2c: 01 00 00 09 61 6A [12:57:07]Write i2c OK [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: 01 [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: 01 07 00 [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: 01 07 00 09 61 00 00 00 00 00 FF 0F 7F [12:57:07]RasterBufferAndPrint [12:57:07]line Счет N : (1)320253 [12:57:07]line ИНН: 02508201610067 [12:57:07]line Контрольно-Кассовый Чек [12:57:07]line ПРОДАЖА [12:57:07]line ТРК (МРК, ГНК) : 11 [12:57:07]line Товар: 2710124130 [12:57:07]line Аи-92-К-5 [12:57:07]line 9.040 * 66.40 [12:57:07]line = 600.26 [12:57:07]line НДС 12% НСП 1% [12:57:07]line > о реализуемом товаре [12:57:07]line ОКРУГЛЕНИЕ: -0.26 [12:57:07]line ИТОГО: 600.00 [12:57:07]line Внесено: 600.00 [12:57:07]line СДАЧА: 0.00 [12:57:07]line НСП 1% : 5.31 [12:57:07]line НДС 12% : 63.74 [12:57:07]line Наличными: 600.00 [12:57:07]line Безнал.: 0.00 [12:57:07]line Место: АЗС № 65 "Партнер Нефть" [12:57:07]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:57:07]line СНО: Общий режим [12:57:07]line Чек 102 20.06.2024 12:57 [12:57:07]line Смена: 389 ФФД: 1.0 [12:57:07]line ЗНМ: 0300000198 [12:57:07]line РНМ: 0000000000092771 [12:57:07]line Версия ККМ: 001 [12:57:07]line ФМ: 0000000000875083 [12:57:07]line ФД: 111652 [12:57:07]line ФПД: 59952623550651 [12:57:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T125740&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111652&fm=59952623550651&tin=02508201610067®Number=0000000000092771&sum=60000 [12:57:07]Connected sock=11 [12:57:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CD FA 07 01 AD 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 44 27 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 24 B4 01 00 35 04 06 00 36 86 CE D4 80 BB F2 05 8E 0D 86 A3 47 8D [12:57:07]written 0, free lines is 4095 [12:57:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 7C CC 47 00 D1 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 24 B4 01 00 F4 03 04 00 8E BE 73 66 B6 04 01 00 00 6C 56 E5 F6 02 63 CA D4 [12:57:07]CommunicateWithHost err = 0 [12:57:07]CheckOFDResponse [12:57:07]1017 (14) - 77093643461234 [12:57:07]1041 (16) - 0000000000875083 [12:57:07]1040 (4) - 111652 [12:57:07]1012 (4) - 20.06.2024 05:30 [12:57:07]1206 (1) - 0 [12:57:07]OFD Sender: Remove packet 111652 [12:57:07]ProducePacketName [12:57:07]name=ofd_packets/00111652 [12:57:07]NVStorageDeleteData [12:57:08]Write to MH i2c: 01 00 00 34 61 95 [12:57:08]Write i2c OK [12:57:08]MH_I2C_Read... [12:57:08]Read from MH i2c: 01 [12:57:08]MH_I2C_Read... [12:57:08]Read from MH i2c: 01 07 00 [12:57:08]MH_I2C_Read... [12:57:08]Read from MH i2c: 01 07 00 34 61 00 00 00 00 00 CD 0C 75 [12:57:08]RasterBufferAndPrint [12:57:08]line [12:57:08]line [12:57:08]line [12:57:08]line [12:57:08]line [12:57:08]written 0, free lines is 3287 [12:57:08]MH_Cut [12:57:08]Write to MH i2c: D1 01 00 3B 61 01 6E [12:57:08]Write i2c OK [12:57:08]MH_I2C_Read... [12:57:08]Read from MH i2c: D1 [12:57:08]MH_I2C_Read... [12:57:08]Read from MH i2c: D1 01 00 [12:57:08]MH_I2C_Read... [12:57:08]Read from MH i2c: D1 01 00 3B 61 00 6D [12:57:08]Write to MH i2c: 01 00 00 3C 61 9D [12:57:08]Write i2c OK [12:57:08]MH_I2C_Read... [12:57:08]OFD Sender: No OFD packet to send [12:57:08]*** Cut start [12:57:08]*** Partial cut [12:57:08]*** CUTSNS_PIN = 1 [12:57:08]*** CUTSNS_PIN = 0 [12:57:09]*** Brake cut motor [12:57:09]Read from MH i2c: 01 [12:57:09]MH_I2C_Read... [12:57:09]*** Stop cut motor [12:57:09]*** Cut end [12:57:09]Read from MH i2c: 01 07 00 [12:57:09]MH_I2C_Read... [12:57:09]Read from MH i2c: 01 07 00 3C 61 00 00 00 00 00 FF 0F B2 [12:57:09]process_action close_receipt done [12:57:09]requested_data is exist [12:57:09]produce_requested_data [12:57:09]requested_item fm.sn is exist - process it [12:57:09]wFMCommunicate request_size=4 [12:57:09]MH_SAM_APDU [12:57:09]CAPDU: 80 11 00 00 [12:57:09]Write to MH i2c: E2 08 00 3D 61 80 11 00 00 00 00 00 00 18 [12:57:09]Write i2c OK [12:57:09]MH_I2C_Read... [12:57:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:09]Read from MH i2c: E2 [12:57:09]MH_I2C_Read... [12:57:09]Read from MH i2c: E2 17 00 [12:57:09]MH_I2C_Read... [12:57:09]Read from MH i2c: E2 17 00 3D 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6A [12:57:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:57:09]wFMCommunicate OK [12:57:09]requested_item fd.num is exist - process it [12:57:09]SAM_PROTO_GetFieldsCounters [12:57:09]wFMCommunicate request_size=4 [12:57:09]MH_SAM_APDU [12:57:09]CAPDU: 80 13 00 00 [12:57:09]Write to MH i2c: E2 08 00 3E 61 80 13 00 00 00 00 00 00 1B [12:57:09]Write i2c OK [12:57:09]MH_I2C_Read... [12:57:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:57:09]Read from MH i2c: E2 [12:57:09]MH_I2C_Read... [12:57:09]Read from MH i2c: E2 62 00 [12:57:09]MH_I2C_Read... [12:57:09]Read from MH i2c: E2 62 00 3E 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 24 B4 01 00 0E 04 04 00 85 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 CD [12:57:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 24 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:57:09]wFMCommunicate OK [12:57:09]SAM_PROTO_GetFieldsCounters done [12:57:09]requested_item shift.num is exist - process it [12:57:09]requested_item shift.opened is exist - process it [12:57:09]req_shift_opened [12:57:09]FM_GetShiftState [12:57:09]SAM_PROTO_GetShiftState [12:57:09]wFMCommunicate request_size=4 [12:57:09]MH_SAM_APDU [12:57:09]CAPDU: 80 13 01 00 [12:57:09]Write to MH i2c: E2 08 00 3F 61 80 13 01 00 00 00 00 00 1D [12:57:09]Write i2c OK [12:57:09]MH_I2C_Read... [12:57:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:09]Read from MH i2c: E2 [12:57:09]MH_I2C_Read... [12:57:09]Read from MH i2c: E2 0E 00 [12:57:09]MH_I2C_Read... [12:57:09]Read from MH i2c: E2 0E 00 3F 61 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 98 [12:57:09]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:57:09]wFMCommunicate OK [12:57:09]SAM_PROTO_GetShiftState done [12:57:09]FM_GetShiftState done [12:57:09]req_shift_opened done [12:57:09]requested_item shift.open_date is exist - process it [12:57:09]req_shift_open_date [12:57:09]req_shift_open_date done [12:57:09]produce_requested_data done [12:57:09]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111652,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [12:57:09]process_action_free close_receipt [12:57:09]json_value_free [12:57:09]json_value_free done [12:57:09]process_json_proto returns [12:57:09]Send response to host [12:57:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111652,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [12:57:09]free response buf [12:57:09]execute_script done [12:57:09]execute_script returns [12:57:09]free content buf [12:57:09]Sock 7.Close socket [12:57:09]Sock 7.Thread stoped [12:57:13]OFD Sender: No OFD packet to send [12:57:18]OFD Sender: No OFD packet to send [12:57:23]OFD Sender: No OFD packet to send [12:57:28]OFD Sender: No OFD packet to send [12:57:33]OFD Sender: No OFD packet to send [12:57:35]accept exits with 9 [12:57:35]New connection [12:57:35]New thread 3067465060 created [12:57:35]Thread 3067321700 joined [12:57:35]Waiting for new connection... [12:57:35] Sock 9.Parse request [12:57:35]Sock 9.Check first char [12:57:35]Sock 9.First char is OK [12:57:35]request: POST /json_proto HTTP/1.0 [12:57:35]Method: POST [12:57:35]URL: /json_proto [12:57:35]Method is POST - this is cgi request [12:57:35]url: /json_proto [12:57:35]query_string will be loaded in cgi processing [12:57:35]execute_cgi json_proto POST (null) [12:57:35]execute_cgi path=json_proto method=POST [12:57:35]POST find Content-Length [12:57:35]Host: 172.17.59.68:8080 [12:57:35]Content-Length: 677 [12:57:35]Content-Type: application/json [12:57:35] [12:57:35]POST finish read [12:57:35]Found Content-Length = 677 [12:57:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:35]execute_script... [12:57: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)320254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:35]POST & json_proto [12:57:35]process_json_proto [12:57:35]json parsed OK: [12:57:35]protocol is kg_v1.0 [12:57:35]action value=close_receipt [12:57:35]process_action close_receipt [12:57:35]cmd_close_receipt [12:57:35]MH_GetDate [12:57:35]Write to MH i2c: F0 00 00 40 61 90 [12:57:35]Write i2c OK [12:57:35]MH_I2C_Read... [12:57:35]Read from MH i2c: F0 [12:57:35]MH_I2C_Read... [12:57:35]Read from MH i2c: F0 09 00 [12:57:35]MH_I2C_Read... [12:57:35]Read from MH i2c: F0 09 00 40 61 00 62 27 74 66 BC EC 60 65 69 [12:57:35]GetLastDocTimeStamp 1718888260 [12:57:35]current date 1718888290 [12:57:35]FM_GetShiftState [12:57:35]SAM_PROTO_GetShiftState [12:57:35]wFMCommunicate request_size=4 [12:57:35]MH_SAM_APDU [12:57:35]CAPDU: 80 13 01 00 [12:57:35]Write to MH i2c: E2 08 00 41 61 80 13 01 00 00 00 00 00 1F [12:57:35]Write i2c OK [12:57:35]MH_I2C_Read... [12:57:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:36]Read from MH i2c: E2 [12:57:36]MH_I2C_Read... [12:57:36]Read from MH i2c: E2 0E 00 [12:57:36]MH_I2C_Read... [12:57:36]Read from MH i2c: E2 0E 00 41 61 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 9A [12:57:36]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:57:36]wFMCommunicate OK [12:57:36]SAM_PROTO_GetShiftState done [12:57:36]FM_GetShiftState done [12:57:36]opened in 1718847247 [12:57:36]opened+sec_in_day 1718933647 [12:57:36]quantity*price = 50065 [12:57:36]sum+1 = 50067 [12:57:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 103 20.06.2024 12:58 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111653 ФПД: 224375092057448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T125810&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111653&fm=224375092057448&tin=02508201610067®Number=0000000000092771&sum=50000 [12:57:37]StoreToDocumentArchive [12:57:37]shift 389 fd 111653 [12:57:37]save to /storage/0389/doc_00111653 [12:57:37]save last doc name /storage/0389/doc_00111653 to /storage/kkm_last_doc_name [12:57:37]save OK [12:57:37]Clear old archive folders... [12:57:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:57:37]tlvbuf is B6FD2AB0 [12:57:37]SAM_PROTO_ClearQueue [12:57:37]wFMCommunicate request_size=4 [12:57:37]MH_SAM_APDU [12:57:37]CAPDU: 80 09 00 00 [12:57:37]Write to MH i2c: E2 08 00 4E 61 80 09 00 00 00 00 00 00 21 [12:57:37]Write i2c OK [12:57:37]MH_I2C_Read... [12:57:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:57:37]Read from MH i2c: E2 [12:57:37]MH_I2C_Read... [12:57:37]Read from MH i2c: E2 03 00 [12:57:37]MH_I2C_Read... [12:57:37]Read from MH i2c: E2 03 00 4E 61 00 90 00 23 [12:57:37]RAPDU: 90 00 [12:57:37]wFMCommunicate OK [12:57:37]SAM_PROTO_ClearQueue done [12:57:37]KKMCreateOFDPacket [12:57:37]OFDProtocolAddRootSTLVToBuf [12:57:37]FM_MakeSignedData [12:57:37]FM_MakeSignedData [12:57:37]SAM_PROTO_SignData [12:57:37]wFMCommunicate request_size=4 [12:57:37]MH_SAM_APDU [12:57:37]CAPDU: 80 0D 01 02 [12:57:37]Write to MH i2c: E2 08 00 4F 61 80 0D 01 02 00 00 00 00 29 [12:57:37]Write i2c OK [12:57:37]MH_I2C_Read... [12:57:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:57:37]Read from MH i2c: E2 [12:57:37]MH_I2C_Read... [12:57:37]Read from MH i2c: E2 03 00 [12:57:37]MH_I2C_Read... [12:57:37]Read from MH i2c: E2 03 00 4F 61 00 90 00 24 [12:57:37]RAPDU: 90 00 [12:57:37]wFMCommunicate OK [12:57:37]wFMCommunicate request_size=255 [12:57:37]MH_SAM_APDU [12:57:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 62 27 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 25 B4 01 00 35 04 06 00 CC [12:57:37]Write to MH i2c: E2 02 01 50 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 62 27 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 25 B4 01 00 35 04 06 00 CC 00 00 D3 [12:57:37]Write i2c OK [12:57:37]MH_I2C_Read... [12:57:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:37]Read from MH i2c: E2 [12:57:37]MH_I2C_Read... [12:57:37]Read from MH i2c: E2 03 00 [12:57:37]MH_I2C_Read... [12:57:37]Read from MH i2c: E2 03 00 50 61 00 90 00 25 [12:57:37]RAPDU: 90 00 [12:57:37]wFMCommunicate OK [12:57:37]wFMCommunicate request_size=10 [12:57:37]MH_SAM_APDU [12:57:37]CAPDU: 80 0D 02 02 05 11 65 A8 95 68 [12:57:37]Write to MH i2c: E2 0D 00 51 61 80 0D 02 02 05 00 11 65 A8 95 68 00 00 51 [12:57:37]Write i2c OK [12:57:37]MH_I2C_Read... [12:57:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:37]Read from MH i2c: E2 [12:57:37]MH_I2C_Read... [12:57:37]Read from MH i2c: E2 03 00 [12:57:37]MH_I2C_Read... [12:57:37]Read from MH i2c: E2 03 00 51 61 00 90 00 26 [12:57:37]RAPDU: 90 00 [12:57:37]wFMCommunicate OK [12:57:37]wFMCommunicate request_size=4 [12:57:37]MH_SAM_APDU [12:57:37]CAPDU: 80 0D 03 02 [12:57:37]Write to MH i2c: E2 08 00 52 61 80 0D 03 02 00 00 00 00 2E [12:57:37]Write i2c OK [12:57:37]MH_I2C_Read... [12:57:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:57:37]Read from MH i2c: E2 [12:57:37]MH_I2C_Read... [12:57:37]Read from MH i2c: E2 0B 00 [12:57:37]MH_I2C_Read... [12:57:37]Read from MH i2c: E2 0B 00 52 61 00 BA 4A 8F 33 65 F4 D6 05 90 00 29 [12:57:37]RAPDU: BA 4A 8F 33 65 F4 D6 05 90 00 [12:57:37]wFMCommunicate OK [12:57:37]SAM_PROTO_SignData done [12:57:37]FM_MakeSignedData done [12:57:37]CreateOFDProtocolMessage [12:57:37]wFMCommunicate request_size=4 [12:57:37]MH_SAM_APDU [12:57:37]CAPDU: 80 11 00 00 [12:57:37]Write to MH i2c: E2 08 00 53 61 80 11 00 00 00 00 00 00 2E [12:57:37]Write i2c OK [12:57:37]MH_I2C_Read... [12:57:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:37]Read from MH i2c: E2 [12:57:37]MH_I2C_Read... [12:57:37]Read from MH i2c: E2 17 00 [12:57:37]MH_I2C_Read... [12:57:37]Read from MH i2c: E2 17 00 53 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 80 [12:57:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:57:37]wFMCommunicate OK [12:57:37]CreateOFDProtocolMessage done [12:57:37]OFDSenderStorePacket 111653 [12:57:37]StoreOFDPacket docnum=111653 [12:57:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 15 06 07 01 1E 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 62 27 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 25 B4 01 00 35 04 06 00 CC 11 65 A8 95 68 BA 4A 8F 33 65 F4 D6 05 [12:57:37]CheckFolder [12:57:37]dirname=/storage/ofd_packets [12:57:37]CheckFolder done [12:57:37]ProducePacketName [12:57:37]name=ofd_packets/00111653 [12:57:37]NVStorageSaveData ofd_packets/00111653 [12:57:37]File name is /storage/ofd_packets/00111653 [12:57:37]Write 301 bytes [12:57:37]NVStorageSaveData done [12:57:37]OFDSenderStorePacket done [12:57:37]KKMCreateOFDPacket done [12:57:37]NVStorageSaveData kkm_last_timestamp [12:57:37]File name is /storage/kkm_last_timestamp [12:57:37]Write 4 bytes [12:57:37]NVStorageSaveData done [12:57:37]ExternCall_PrintAddStr [12:57:37]wPrintStart [12:57:37]Write to MH i2c: 01 00 00 54 61 B5 [12:57:37]Write i2c OK [12:57:37]MH_I2C_Read... [12:57:37]Read from MH i2c: 01 [12:57:37]MH_I2C_Read... [12:57:37]Read from MH i2c: 01 07 00 [12:57:37]MH_I2C_Read... [12:57:37]Read from MH i2c: 01 07 00 54 61 00 00 00 00 00 FF 0F CA [12:57:37]RasterBufferAndPrint [12:57:37]line Счет N : (1)320254 [12:57:37]line ИНН: 02508201610067 [12:57:37]line Контрольно-Кассовый Чек [12:57:37]line ПРОДАЖА [12:57:37]line ТРК (МРК, ГНК) : 11 [12:57:37]line Товар: 2710124130 [12:57:37]line Аи-92-К-5 [12:57:37]line 7.540 * 66.40 [12:57:37]line = 500.66 [12:57:37]line НДС 12% НСП 1% [12:57:37]line > о реализуемом товаре [12:57:37]line ОКРУГЛЕНИЕ: -0.66 [12:57:37]line ИТОГО: 500.00 [12:57:37]line Внесено: 500.00 [12:57:37]line СДАЧА: 0.00 [12:57:37]line НСП 1% : 4.43 [12:57:37]line НДС 12% : 53.17 [12:57:37]line Наличными: 500.00 [12:57:37]line Безнал.: 0.00 [12:57:37]line Место: АЗС № 65 "Партнер Нефть" [12:57:37]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:57:37]line СНО: Общий режим [12:57:37]line Чек 103 20.06.2024 12:58 [12:57:37]line Смена: 389 ФФД: 1.0 [12:57:37]line ЗНМ: 0300000198 [12:57:37]line РНМ: 0000000000092771 [12:57:37]line Версия ККМ: 001 [12:57:37]line ФМ: 0000000000875083 [12:57:37]line ФД: 111653 [12:57:37]line ФПД: 224375092057448 [12:57:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T125810&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111653&fm=224375092057448&tin=02508201610067®Number=0000000000092771&sum=50000 [12:57:37]OFD Sender: Processing packet 111653 [packets to send 38, broken 37] [12:57:37]ProducePacketName [12:57:37]name=ofd_packets/00111653 [12:57:37]OFD Sender: To server: pG, [12:57:37]CommunicateWithHost lk.salyk.kg:30040 [12:57:37]ConnectInit lk.salyk.kg [12:57:37]written 0, free lines is 4095 [12:57:38]Connected sock=10 [12:57:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 15 06 07 01 1E 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 62 27 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 25 B4 01 00 35 04 06 00 CC 11 65 A8 95 68 BA 4A 8F 33 65 F4 D6 05 [12:57:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A5 5B 47 00 FA 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 25 B4 01 00 F4 03 04 00 AC BE 73 66 B6 04 01 00 00 38 D0 20 19 99 47 F7 3D [12:57:38]CommunicateWithHost err = 0 [12:57:38]CheckOFDResponse [12:57:38]1017 (14) - 77093643461234 [12:57:38]1041 (16) - 0000000000875083 [12:57:38]1040 (4) - 111653 [12:57:38]1012 (4) - 20.06.2024 05:31 [12:57:38]1206 (1) - 0 [12:57:38]OFD Sender: Remove packet 111653 [12:57:38]ProducePacketName [12:57:38]name=ofd_packets/00111653 [12:57:38]NVStorageDeleteData [12:57:38]Write to MH i2c: 01 00 00 7F 61 E0 [12:57:38]Write i2c OK [12:57:38]MH_I2C_Read... [12:57:38]Read from MH i2c: 01 [12:57:38]MH_I2C_Read... [12:57:38]Read from MH i2c: 01 07 00 [12:57:38]MH_I2C_Read... [12:57:38]Read from MH i2c: 01 07 00 7F 61 00 00 00 00 00 CD 0C C0 [12:57:38]RasterBufferAndPrint [12:57:38]line [12:57:38]line [12:57:38]line [12:57:38]line [12:57:38]line [12:57:38]written 0, free lines is 3283 [12:57:38]MH_Cut [12:57:38]Write to MH i2c: D1 01 00 86 61 01 B9 [12:57:38]Write i2c OK [12:57:38]MH_I2C_Read... [12:57:38]Read from MH i2c: D1 [12:57:38]MH_I2C_Read... [12:57:38]Read from MH i2c: D1 01 00 [12:57:38]MH_I2C_Read... [12:57:38]Read from MH i2c: D1 01 00 86 61 00 B8 [12:57:38]Write to MH i2c: 01 00 00 87 61 E8 [12:57:38]Write i2c OK [12:57:38]MH_I2C_Read... [12:57:38]OFD Sender: No OFD packet to send [12:57:39]*** Cut start [12:57:39]*** Partial cut [12:57:39]*** CUTSNS_PIN = 1 [12:57:39]*** CUTSNS_PIN = 0 [12:57:39]*** Brake cut motor [12:57:39]Read from MH i2c: 01 [12:57:39]MH_I2C_Read... [12:57:39]*** Stop cut motor [12:57:39]*** Cut end [12:57:39]Read from MH i2c: 01 07 00 [12:57:39]MH_I2C_Read... [12:57:39]Read from MH i2c: 01 07 00 87 61 00 00 00 00 00 FF 0F FD [12:57:39]process_action close_receipt done [12:57:39]requested_data is exist [12:57:39]produce_requested_data [12:57:39]requested_item fm.sn is exist - process it [12:57:39]wFMCommunicate request_size=4 [12:57:39]MH_SAM_APDU [12:57:39]CAPDU: 80 11 00 00 [12:57:39]Write to MH i2c: E2 08 00 88 61 80 11 00 00 00 00 00 00 63 [12:57:39]Write i2c OK [12:57:39]MH_I2C_Read... [12:57:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:39]Read from MH i2c: E2 [12:57:39]MH_I2C_Read... [12:57:39]Read from MH i2c: E2 17 00 [12:57:39]MH_I2C_Read... [12:57:39]Read from MH i2c: E2 17 00 88 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B5 [12:57:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:57:39]wFMCommunicate OK [12:57:39]requested_item fd.num is exist - process it [12:57:39]SAM_PROTO_GetFieldsCounters [12:57:39]wFMCommunicate request_size=4 [12:57:39]MH_SAM_APDU [12:57:39]CAPDU: 80 13 00 00 [12:57:39]Write to MH i2c: E2 08 00 89 61 80 13 00 00 00 00 00 00 66 [12:57:39]Write i2c OK [12:57:39]MH_I2C_Read... [12:57:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:57:39]Read from MH i2c: E2 [12:57:39]MH_I2C_Read... [12:57:39]Read from MH i2c: E2 62 00 [12:57:39]MH_I2C_Read... [12:57:39]Read from MH i2c: E2 62 00 89 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 25 B4 01 00 0E 04 04 00 85 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 1C [12:57:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 25 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:57:39]wFMCommunicate OK [12:57:39]SAM_PROTO_GetFieldsCounters done [12:57:39]requested_item shift.num is exist - process it [12:57:39]requested_item shift.opened is exist - process it [12:57:39]req_shift_opened [12:57:39]FM_GetShiftState [12:57:39]SAM_PROTO_GetShiftState [12:57:39]wFMCommunicate request_size=4 [12:57:39]MH_SAM_APDU [12:57:39]CAPDU: 80 13 01 00 [12:57:39]Write to MH i2c: E2 08 00 8A 61 80 13 01 00 00 00 00 00 68 [12:57:39]Write i2c OK [12:57:39]MH_I2C_Read... [12:57:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:40]Read from MH i2c: E2 [12:57:40]MH_I2C_Read... [12:57:40]Read from MH i2c: E2 0E 00 [12:57:40]MH_I2C_Read... [12:57:40]Read from MH i2c: E2 0E 00 8A 61 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 E3 [12:57:40]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:57:40]wFMCommunicate OK [12:57:40]SAM_PROTO_GetShiftState done [12:57:40]FM_GetShiftState done [12:57:40]req_shift_opened done [12:57:40]requested_item shift.open_date is exist - process it [12:57:40]req_shift_open_date [12:57:40]req_shift_open_date done [12:57:40]produce_requested_data done [12:57:40]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111653,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [12:57:40]process_action_free close_receipt [12:57:40]json_value_free [12:57:40]json_value_free done [12:57:40]process_json_proto returns [12:57:40]Send response to host [12:57:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111653,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [12:57:40]free response buf [12:57:40]execute_script done [12:57:40]execute_script returns [12:57:40]free content buf [12:57:40]Sock 9.Close socket [12:57:40]Sock 9.Thread stoped [12:57:43]OFD Sender: No OFD packet to send [12:57:48]OFD Sender: No OFD packet to send [12:57:53]OFD Sender: No OFD packet to send [12:57:58]OFD Sender: No OFD packet to send [12:58:03]OFD Sender: No OFD packet to send [12:58:08]OFD Sender: No OFD packet to send [12:58:13]OFD Sender: No OFD packet to send [12:58:18]OFD Sender: No OFD packet to send [12:58:21]accept exits with 7 [12:58:21]New connection [12:58:21]New thread 3067321700 created [12:58:21]Thread 3067465060 joined [12:58:21]Waiting for new connection... [12:58:21] Sock 7.Parse request [12:58:21]Sock 7.Check first char [12:58:21]Sock 7.First char is OK [12:58:21]request: POST /json_proto HTTP/1.0 [12:58:21]Method: POST [12:58:21]URL: /json_proto [12:58:21]Method is POST - this is cgi request [12:58:21]url: /json_proto [12:58:21]query_string will be loaded in cgi processing [12:58:21]execute_cgi json_proto POST (null) [12:58:21]execute_cgi path=json_proto method=POST [12:58:21]POST find Content-Length [12:58:21]Host: 172.17.59.68:8080 [12:58:21]Content-Length: 674 [12:58:21]Content-Type: application/json [12:58:21] [12:58:21]POST finish read [12:58:21]Found Content-Length = 674 [12:58:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 4.120, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:21]execute_script... [12:58: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)320256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 4.120, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:21]POST & json_proto [12:58:21]process_json_proto [12:58:21]json parsed OK: [12:58:21]protocol is kg_v1.0 [12:58:21]action value=close_receipt [12:58:21]process_action close_receipt [12:58:21]cmd_close_receipt [12:58:21]MH_GetDate [12:58:21]Write to MH i2c: F0 00 00 8B 61 DB [12:58:21]Write i2c OK [12:58:21]MH_I2C_Read... [12:58:21]Read from MH i2c: F0 [12:58:21]MH_I2C_Read... [12:58:21]Read from MH i2c: F0 09 00 [12:58:21]MH_I2C_Read... [12:58:21]Read from MH i2c: F0 09 00 8B 61 00 90 27 74 66 BC EC 60 65 E2 [12:58:21]GetLastDocTimeStamp 1718888290 [12:58:21]current date 1718888336 [12:58:21]FM_GetShiftState [12:58:21]SAM_PROTO_GetShiftState [12:58:21]wFMCommunicate request_size=4 [12:58:21]MH_SAM_APDU [12:58:21]CAPDU: 80 13 01 00 [12:58:21]Write to MH i2c: E2 08 00 8C 61 80 13 01 00 00 00 00 00 6A [12:58:21]Write i2c OK [12:58:21]MH_I2C_Read... [12:58:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:21]Read from MH i2c: E2 [12:58:21]MH_I2C_Read... [12:58:21]Read from MH i2c: E2 0E 00 [12:58:21]MH_I2C_Read... [12:58:21]Read from MH i2c: E2 0E 00 8C 61 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 E5 [12:58:21]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:58:21]wFMCommunicate OK [12:58:21]SAM_PROTO_GetShiftState done [12:58:21]FM_GetShiftState done [12:58:21]opened in 1718847247 [12:58:21]opened+sec_in_day 1718933647 [12:58:21]quantity*price = 30034 [12:58:21]sum+1 = 30036 [12:58: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 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 104 20.06.2024 12:58 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111654 ФПД: 166809517572047 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T125856&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111654&fm=166809517572047&tin=02508201610067®Number=0000000000092771&sum=30000 [12:58:23]StoreToDocumentArchive [12:58:23]shift 389 fd 111654 [12:58:23]save to /storage/0389/doc_00111654 [12:58:23]save last doc name /storage/0389/doc_00111654 to /storage/kkm_last_doc_name [12:58:23]save OK [12:58:23]Clear old archive folders... [12:58:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:58:23]tlvbuf is B6F57610 [12:58:23]SAM_PROTO_ClearQueue [12:58:23]wFMCommunicate request_size=4 [12:58:23]MH_SAM_APDU [12:58:23]CAPDU: 80 09 00 00 [12:58:23]Write to MH i2c: E2 08 00 99 61 80 09 00 00 00 00 00 00 6C [12:58:23]Write i2c OK [12:58:23]MH_I2C_Read... [12:58:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:58:23]Read from MH i2c: E2 [12:58:23]MH_I2C_Read... [12:58:23]Read from MH i2c: E2 03 00 [12:58:23]MH_I2C_Read... [12:58:23]Read from MH i2c: E2 03 00 99 61 00 90 00 6E [12:58:23]RAPDU: 90 00 [12:58:23]wFMCommunicate OK [12:58:23]SAM_PROTO_ClearQueue done [12:58:23]KKMCreateOFDPacket [12:58:23]OFDProtocolAddRootSTLVToBuf [12:58:23]FM_MakeSignedData [12:58:23]FM_MakeSignedData [12:58:23]SAM_PROTO_SignData [12:58:23]wFMCommunicate request_size=4 [12:58:23]MH_SAM_APDU [12:58:23]CAPDU: 80 0D 01 02 [12:58:23]Write to MH i2c: E2 08 00 9A 61 80 0D 01 02 00 00 00 00 74 [12:58:23]Write i2c OK [12:58:23]MH_I2C_Read... [12:58:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:58:23]Read from MH i2c: E2 [12:58:23]MH_I2C_Read... [12:58:23]Read from MH i2c: E2 03 00 [12:58:23]MH_I2C_Read... [12:58:23]Read from MH i2c: E2 03 00 9A 61 00 90 00 6F [12:58:23]RAPDU: 90 00 [12:58:23]wFMCommunicate OK [12:58:23]wFMCommunicate request_size=255 [12:58:23]MH_SAM_APDU [12:58:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 90 27 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 26 B4 01 00 35 04 06 00 97 B6 5E 0A [12:58:23]Write to MH i2c: E2 02 01 9B 61 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 90 27 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 26 B4 01 00 35 04 06 00 97 B6 5E 0A 00 00 3D [12:58:23]Write i2c OK [12:58:23]MH_I2C_Read... [12:58:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:23]Read from MH i2c: E2 [12:58:23]MH_I2C_Read... [12:58:23]Read from MH i2c: E2 03 00 [12:58:23]MH_I2C_Read... [12:58:23]Read from MH i2c: E2 03 00 9B 61 00 90 00 70 [12:58:23]RAPDU: 90 00 [12:58:23]wFMCommunicate OK [12:58:23]wFMCommunicate request_size=7 [12:58:23]MH_SAM_APDU [12:58:23]CAPDU: 80 0D 02 02 02 3F CF [12:58:23]Write to MH i2c: E2 0A 00 9C 61 80 0D 02 02 02 00 3F CF 00 00 89 [12:58:23]Write i2c OK [12:58:23]MH_I2C_Read... [12:58:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:23]Read from MH i2c: E2 [12:58:23]MH_I2C_Read... [12:58:23]Read from MH i2c: E2 03 00 [12:58:23]MH_I2C_Read... [12:58:23]Read from MH i2c: E2 03 00 9C 61 00 90 00 71 [12:58:23]RAPDU: 90 00 [12:58:23]wFMCommunicate OK [12:58:23]wFMCommunicate request_size=4 [12:58:23]MH_SAM_APDU [12:58:23]CAPDU: 80 0D 03 02 [12:58:23]Write to MH i2c: E2 08 00 9D 61 80 0D 03 02 00 00 00 00 79 [12:58:23]Write i2c OK [12:58:23]MH_I2C_Read... [12:58:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:58:23]Read from MH i2c: E2 [12:58:23]MH_I2C_Read... [12:58:23]Read from MH i2c: E2 0B 00 [12:58:23]MH_I2C_Read... [12:58:23]Read from MH i2c: E2 0B 00 9D 61 00 EC F7 F8 D8 F2 4B D3 07 90 00 44 [12:58:23]RAPDU: EC F7 F8 D8 F2 4B D3 07 90 00 [12:58:23]wFMCommunicate OK [12:58:23]SAM_PROTO_SignData done [12:58:23]FM_MakeSignedData done [12:58:23]CreateOFDProtocolMessage [12:58:23]wFMCommunicate request_size=4 [12:58:23]MH_SAM_APDU [12:58:23]CAPDU: 80 11 00 00 [12:58:23]Write to MH i2c: E2 08 00 9E 61 80 11 00 00 00 00 00 00 79 [12:58:23]Write i2c OK [12:58:23]MH_I2C_Read... [12:58:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:23]Read from MH i2c: E2 [12:58:23]MH_I2C_Read... [12:58:23]Read from MH i2c: E2 17 00 [12:58:23]MH_I2C_Read... [12:58:23]Read from MH i2c: E2 17 00 9E 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CB [12:58:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:58:23]wFMCommunicate OK [12:58:23]CreateOFDProtocolMessage done [12:58:23]OFDSenderStorePacket 111654 [12:58:23]StoreOFDPacket docnum=111654 [12:58:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 C7 05 04 01 5C 0D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 90 27 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 26 B4 01 00 35 04 06 00 97 B6 5E 0A 3F CF EC F7 F8 D8 F2 4B D3 07 [12:58:23]CheckFolder [12:58:23]dirname=/storage/ofd_packets [12:58:23]CheckFolder done [12:58:23]ProducePacketName [12:58:23]name=ofd_packets/00111654 [12:58:23]NVStorageSaveData ofd_packets/00111654 [12:58:23]File name is /storage/ofd_packets/00111654 [12:58:23]Write 298 bytes [12:58:23]NVStorageSaveData done [12:58:23]OFDSenderStorePacket done [12:58:23]KKMCreateOFDPacket done [12:58:23]NVStorageSaveData kkm_last_timestamp [12:58:23]File name is /storage/kkm_last_timestamp [12:58:23]Write 4 bytes [12:58:23]NVStorageSaveData done [12:58:23]ExternCall_PrintAddStr [12:58:23]wPrintStart [12:58:23]Write to MH i2c: 01 00 00 9F 61 00 [12:58:23]Write i2c OK [12:58:23]MH_I2C_Read... [12:58:23]Read from MH i2c: 01 [12:58:23]MH_I2C_Read... [12:58:23]Read from MH i2c: 01 07 00 [12:58:23]MH_I2C_Read... [12:58:23]Read from MH i2c: 01 07 00 9F 61 00 00 00 00 00 FF 0F 15 [12:58:23]RasterBufferAndPrint [12:58:23]line Счет N : (1)320256 [12:58:23]line ИНН: 02508201610067 [12:58:23]line Контрольно-Кассовый Чек [12:58:23]line ПРОДАЖА [12:58:23]line ТРК (МРК, ГНК) : 22 [12:58:23]line Товар: 2710194210 [12:58:23]line ДТ-К-5 [12:58:23]line 4.120 * 72.90 [12:58:23]line = 300.35 [12:58:23]line НДС 12% НСП 1% [12:58:23]line > о реализуемом товаре [12:58:23]line ОКРУГЛЕНИЕ: -0.35 [12:58:23]line ИТОГО: 300.00 [12:58:23]line Внесено: 300.00 [12:58:23]line СДАЧА: 0.00 [12:58:23]line НСП 1% : 2.66 [12:58:23]line НДС 12% : 31.90 [12:58:23]line Наличными: 300.00 [12:58:23]line Безнал.: 0.00 [12:58:23]line Место: АЗС № 65 "Партнер Нефть" [12:58:23]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:58:23]line СНО: Общий режим [12:58:23]line Чек 104 20.06.2024 12:58 [12:58:23]line Смена: 389 ФФД: 1.0 [12:58:23]line ЗНМ: 0300000198 [12:58:23]line РНМ: 0000000000092771 [12:58:23]line Версия ККМ: 001 [12:58:23]line ФМ: 0000000000875083 [12:58:23]line ФД: 111654 [12:58:23]line ФПД: 166809517572047 [12:58:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T125856&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111654&fm=166809517572047&tin=02508201610067®Number=0000000000092771&sum=30000 [12:58:23]OFD Sender: Processing packet 111654 [packets to send 38, broken 37] [12:58:23]ProducePacketName [12:58:23]name=ofd_packets/00111654 [12:58:23]OFD Sender: To server: pG, [12:58:23]CommunicateWithHost lk.salyk.kg:30040 [12:58:23]ConnectInit lk.salyk.kg [12:58:23]written 0, free lines is 4095 [12:58:24]Connected sock=10 [12:58:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 C7 05 04 01 5C 0D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 90 27 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 26 B4 01 00 35 04 06 00 97 B6 5E 0A 3F CF EC F7 F8 D8 F2 4B D3 07 [12:58:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 89 93 47 00 60 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 26 B4 01 00 F4 03 04 00 DA BE 73 66 B6 04 01 00 00 2B 6A 13 3B 45 9B 78 10 [12:58:24]CommunicateWithHost err = 0 [12:58:24]CheckOFDResponse [12:58:24]1017 (14) - 77093643461234 [12:58:24]1041 (16) - 0000000000875083 [12:58:24]1040 (4) - 111654 [12:58:24]1012 (4) - 20.06.2024 05:32 [12:58:24]1206 (1) - 0 [12:58:24]OFD Sender: Remove packet 111654 [12:58:24]ProducePacketName [12:58:24]name=ofd_packets/00111654 [12:58:24]NVStorageDeleteData [12:58:24]Write to MH i2c: 01 00 00 CA 61 2B [12:58:24]Write i2c OK [12:58:24]MH_I2C_Read... [12:58:24]Read from MH i2c: 01 [12:58:24]MH_I2C_Read... [12:58:24]Read from MH i2c: 01 07 00 [12:58:24]MH_I2C_Read... [12:58:24]Read from MH i2c: 01 07 00 CA 61 00 00 00 00 00 D7 0C 15 [12:58:24]RasterBufferAndPrint [12:58:24]line [12:58:24]line [12:58:24]line [12:58:24]line [12:58:24]line [12:58:24]written 0, free lines is 3294 [12:58:24]MH_Cut [12:58:24]Write to MH i2c: D1 01 00 D1 61 01 04 [12:58:24]Write i2c OK [12:58:24]MH_I2C_Read... [12:58:24]Read from MH i2c: D1 [12:58:24]MH_I2C_Read... [12:58:24]Read from MH i2c: D1 01 00 [12:58:24]MH_I2C_Read... [12:58:24]Read from MH i2c: D1 01 00 D1 61 00 03 [12:58:24]Write to MH i2c: 01 00 00 D2 61 33 [12:58:24]Write i2c OK [12:58:24]MH_I2C_Read... [12:58:24]OFD Sender: No OFD packet to send [12:58:25]*** Cut start [12:58:25]*** Partial cut [12:58:25]*** CUTSNS_PIN = 1 [12:58:25]*** CUTSNS_PIN = 0 [12:58:25]*** Brake cut motor [12:58:25]Read from MH i2c: 01 [12:58:25]MH_I2C_Read... [12:58:25]*** Stop cut motor [12:58:25]*** Cut end [12:58:25]Read from MH i2c: 01 07 00 [12:58:25]MH_I2C_Read... [12:58:25]Read from MH i2c: 01 07 00 D2 61 00 00 00 00 00 FF 0F 48 [12:58:25]process_action close_receipt done [12:58:25]requested_data is exist [12:58:25]produce_requested_data [12:58:25]requested_item fm.sn is exist - process it [12:58:25]wFMCommunicate request_size=4 [12:58:25]MH_SAM_APDU [12:58:25]CAPDU: 80 11 00 00 [12:58:25]Write to MH i2c: E2 08 00 D3 61 80 11 00 00 00 00 00 00 AE [12:58:25]Write i2c OK [12:58:25]MH_I2C_Read... [12:58:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:25]Read from MH i2c: E2 [12:58:25]MH_I2C_Read... [12:58:25]Read from MH i2c: E2 17 00 [12:58:25]MH_I2C_Read... [12:58:25]Read from MH i2c: E2 17 00 D3 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 00 [12:58:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:58:25]wFMCommunicate OK [12:58:25]requested_item fd.num is exist - process it [12:58:25]SAM_PROTO_GetFieldsCounters [12:58:25]wFMCommunicate request_size=4 [12:58:25]MH_SAM_APDU [12:58:25]CAPDU: 80 13 00 00 [12:58:25]Write to MH i2c: E2 08 00 D4 61 80 13 00 00 00 00 00 00 B1 [12:58:25]Write i2c OK [12:58:25]MH_I2C_Read... [12:58:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:25]Read from MH i2c: E2 [12:58:25]MH_I2C_Read... [12:58:25]Read from MH i2c: E2 62 00 [12:58:25]MH_I2C_Read... [12:58:25]Read from MH i2c: E2 62 00 D4 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 26 B4 01 00 0E 04 04 00 85 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 6B [12: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 26 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:58:25]wFMCommunicate OK [12:58:25]SAM_PROTO_GetFieldsCounters done [12:58:25]requested_item shift.num is exist - process it [12:58:25]requested_item shift.opened is exist - process it [12:58:25]req_shift_opened [12:58:25]FM_GetShiftState [12:58:25]SAM_PROTO_GetShiftState [12:58:25]wFMCommunicate request_size=4 [12:58:25]MH_SAM_APDU [12:58:25]CAPDU: 80 13 01 00 [12:58:25]Write to MH i2c: E2 08 00 D5 61 80 13 01 00 00 00 00 00 B3 [12:58:25]Write i2c OK [12:58:25]MH_I2C_Read... [12:58:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:26]Read from MH i2c: E2 [12:58:26]MH_I2C_Read... [12:58:26]Read from MH i2c: E2 0E 00 [12:58:26]MH_I2C_Read... [12:58:26]Read from MH i2c: E2 0E 00 D5 61 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 2E [12:58:26]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:58:26]wFMCommunicate OK [12:58:26]SAM_PROTO_GetShiftState done [12:58:26]FM_GetShiftState done [12:58:26]req_shift_opened done [12:58:26]requested_item shift.open_date is exist - process it [12:58:26]req_shift_open_date [12:58:26]req_shift_open_date done [12:58:26]produce_requested_data done [12:58:26]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111654,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [12:58:26]process_action_free close_receipt [12:58:26]json_value_free [12:58:26]json_value_free done [12:58:26]process_json_proto returns [12:58:26]Send response to host [12:58:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111654,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [12:58:26]free response buf [12:58:26]execute_script done [12:58:26]execute_script returns [12:58:26]free content buf [12:58:26]Sock 7.Close socket [12:58:26]Sock 7.Thread stoped [12:58:29]OFD Sender: No OFD packet to send [12:58:34]OFD Sender: No OFD packet to send [12:58:36]accept exits with 9 [12:58:36]New connection [12:58:36]New thread 3067465060 created [12:58:36]Thread 3067321700 joined [12:58:36]Waiting for new connection... [12:58:36] Sock 9.Parse request [12:58:36]Sock 9.Check first char [12:58:36]Sock 9.First char is OK [12:58:36]request: POST /json_proto HTTP/1.0 [12:58:36]Method: POST [12:58:36]URL: /json_proto [12:58:36]Method is POST - this is cgi request [12:58:36]url: /json_proto [12:58:36]query_string will be loaded in cgi processing [12:58:36]execute_cgi json_proto POST (null) [12:58:36]execute_cgi path=json_proto method=POST [12:58:36]POST find Content-Length [12:58:36]Host: 172.17.59.68:8080 [12:58:36]Content-Length: 677 [12:58:36]Content-Type: application/json [12:58:36] [12:58:36]POST finish read [12:58:36]Found Content-Length = 677 [12:58:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:36]execute_script... [12: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)320255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:36]POST & json_proto [12:58:36]process_json_proto [12:58:36]json parsed OK: [12:58:36]protocol is kg_v1.0 [12:58:36]action value=close_receipt [12:58:36]process_action close_receipt [12:58:36]cmd_close_receipt [12:58:36]MH_GetDate [12:58:36]Write to MH i2c: F0 00 00 D6 61 26 [12:58:36]Write i2c OK [12:58:36]MH_I2C_Read... [12:58:36]Read from MH i2c: F0 [12:58:36]MH_I2C_Read... [12:58:36]Read from MH i2c: F0 09 00 [12:58:36]MH_I2C_Read... [12:58:36]Read from MH i2c: F0 09 00 D6 61 00 9F 27 74 66 BC EC 60 65 3C [12:58:36]GetLastDocTimeStamp 1718888336 [12:58:36]current date 1718888351 [12:58:36]FM_GetShiftState [12:58:36]SAM_PROTO_GetShiftState [12:58:36]wFMCommunicate request_size=4 [12:58:36]MH_SAM_APDU [12:58:36]CAPDU: 80 13 01 00 [12:58:36]Write to MH i2c: E2 08 00 D7 61 80 13 01 00 00 00 00 00 B5 [12:58:36]Write i2c OK [12:58:36]MH_I2C_Read... [12:58:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:36]Read from MH i2c: E2 [12:58:36]MH_I2C_Read... [12:58:36]Read from MH i2c: E2 0E 00 [12:58:36]MH_I2C_Read... [12:58:36]Read from MH i2c: E2 0E 00 D7 61 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 30 [12:58:36]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:58:36]wFMCommunicate OK [12:58:36]SAM_PROTO_GetShiftState done [12:58:36]FM_GetShiftState done [12:58:36]opened in 1718847247 [12:58:36]opened+sec_in_day 1718933647 [12:58:36]quantity*price = 50065 [12:58:36]sum+1 = 50067 [12:58:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 105 20.06.2024 12:59 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111655 ФПД: 210401685456565 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T125911&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111655&fm=210401685456565&tin=02508201610067®Number=0000000000092771&sum=50000 [12:58:37]StoreToDocumentArchive [12:58:37]shift 389 fd 111655 [12:58:37]save to /storage/0389/doc_00111655 [12:58:37]save last doc name /storage/0389/doc_00111655 to /storage/kkm_last_doc_name [12:58:37]save OK [12:58:37]Clear old archive folders... [12:58:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:58:37]tlvbuf is 0108F8F0 [12:58:37]SAM_PROTO_ClearQueue [12:58:37]wFMCommunicate request_size=4 [12:58:37]MH_SAM_APDU [12:58:37]CAPDU: 80 09 00 00 [12:58:37]Write to MH i2c: E2 08 00 E4 61 80 09 00 00 00 00 00 00 B7 [12:58:37]Write i2c OK [12:58:37]MH_I2C_Read... [12:58:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:58:37]Read from MH i2c: E2 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: E2 03 00 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: E2 03 00 E4 61 00 90 00 B9 [12:58:37]RAPDU: 90 00 [12:58:37]wFMCommunicate OK [12:58:37]SAM_PROTO_ClearQueue done [12:58:37]KKMCreateOFDPacket [12:58:37]OFDProtocolAddRootSTLVToBuf [12:58:37]FM_MakeSignedData [12:58:37]FM_MakeSignedData [12:58:37]SAM_PROTO_SignData [12:58:37]wFMCommunicate request_size=4 [12:58:37]MH_SAM_APDU [12:58:37]CAPDU: 80 0D 01 02 [12:58:37]Write to MH i2c: E2 08 00 E5 61 80 0D 01 02 00 00 00 00 BF [12:58:37]Write i2c OK [12:58:37]MH_I2C_Read... [12:58:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:58:37]Read from MH i2c: E2 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: E2 03 00 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: E2 03 00 E5 61 00 90 00 BA [12:58:37]RAPDU: 90 00 [12:58:37]wFMCommunicate OK [12:58:37]wFMCommunicate request_size=255 [12:58:37]MH_SAM_APDU [12:58:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 9F 27 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 27 B4 01 00 35 04 06 00 BF [12:58:37]Write to MH i2c: E2 02 01 E6 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 9F 27 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 27 B4 01 00 35 04 06 00 BF 00 00 9D [12:58:37]Write i2c OK [12:58:37]MH_I2C_Read... [12:58:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:37]Read from MH i2c: E2 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: E2 03 00 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: E2 03 00 E6 61 00 90 00 BB [12:58:37]RAPDU: 90 00 [12:58:37]wFMCommunicate OK [12:58:37]wFMCommunicate request_size=10 [12:58:37]MH_SAM_APDU [12:58:37]CAPDU: 80 0D 02 02 05 5B F5 B8 C6 B5 [12:58:37]Write to MH i2c: E2 0D 00 E7 61 80 0D 02 02 05 00 5B F5 B8 C6 B5 00 00 4F [12:58:37]Write i2c OK [12:58:37]MH_I2C_Read... [12:58:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:38]Read from MH i2c: E2 [12:58:38]MH_I2C_Read... [12:58:38]Read from MH i2c: E2 03 00 [12:58:38]MH_I2C_Read... [12:58:38]Read from MH i2c: E2 03 00 E7 61 00 90 00 BC [12:58:38]RAPDU: 90 00 [12:58:38]wFMCommunicate OK [12:58:38]wFMCommunicate request_size=4 [12:58:38]MH_SAM_APDU [12:58:38]CAPDU: 80 0D 03 02 [12:58:38]Write to MH i2c: E2 08 00 E8 61 80 0D 03 02 00 00 00 00 C4 [12:58:38]Write i2c OK [12:58:38]MH_I2C_Read... [12:58:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:58:38]Read from MH i2c: E2 [12:58:38]MH_I2C_Read... [12:58:38]Read from MH i2c: E2 0B 00 [12:58:38]MH_I2C_Read... [12:58:38]Read from MH i2c: E2 0B 00 E8 61 00 10 C9 B6 12 D0 ED AE 96 90 00 67 [12:58:38]RAPDU: 10 C9 B6 12 D0 ED AE 96 90 00 [12:58:38]wFMCommunicate OK [12:58:38]SAM_PROTO_SignData done [12:58:38]FM_MakeSignedData done [12:58:38]CreateOFDProtocolMessage [12:58:38]wFMCommunicate request_size=4 [12:58:38]MH_SAM_APDU [12:58:38]CAPDU: 80 11 00 00 [12:58:38]Write to MH i2c: E2 08 00 E9 61 80 11 00 00 00 00 00 00 C4 [12:58:38]Write i2c OK [12:58:38]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 E9 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 16 [12:58:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:58:38]wFMCommunicate OK [12:58:38]CreateOFDProtocolMessage done [12:58:38]OFDSenderStorePacket 111655 [12:58:38]StoreOFDPacket docnum=111655 [12:58:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5A 02 07 01 64 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 9F 27 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 27 B4 01 00 35 04 06 00 BF 5B F5 B8 C6 B5 10 C9 B6 12 D0 ED AE 96 [12:58:38]CheckFolder [12:58:38]dirname=/storage/ofd_packets [12:58:38]CheckFolder done [12:58:38]ProducePacketName [12:58:38]name=ofd_packets/00111655 [12:58:38]NVStorageSaveData ofd_packets/00111655 [12:58:38]File name is /storage/ofd_packets/00111655 [12:58:38]Write 301 bytes [12:58:38]NVStorageSaveData done [12:58:38]OFDSenderStorePacket done [12:58:38]KKMCreateOFDPacket done [12:58:38]NVStorageSaveData kkm_last_timestamp [12:58:38]File name is /storage/kkm_last_timestamp [12:58:38]Write 4 bytes [12:58:38]NVStorageSaveData done [12:58:38]ExternCall_PrintAddStr [12:58:38]wPrintStart [12:58:38]Write to MH i2c: 01 00 00 EA 61 4B [12:58:38]Write i2c OK [12:58:38]MH_I2C_Read... [12:58:38]Read from MH i2c: 01 [12:58:38]MH_I2C_Read... [12:58:38]Read from MH i2c: 01 07 00 [12:58:38]MH_I2C_Read... [12:58:38]Read from MH i2c: 01 07 00 EA 61 00 00 00 00 00 FF 0F 60 [12:58:38]RasterBufferAndPrint [12:58:38]line Счет N : (1)320255 [12:58:38]line ИНН: 02508201610067 [12:58:38]line Контрольно-Кассовый Чек [12:58:38]line ПРОДАЖА [12:58:38]line ТРК (МРК, ГНК) : 11 [12:58:38]line Товар: 2710124130 [12:58:38]line Аи-92-К-5 [12:58:38]line 7.540 * 66.40 [12:58:38]line = 500.66 [12:58:38]line НДС 12% НСП 1% [12:58:38]line > о реализуемом товаре [12:58:38]line ОКРУГЛЕНИЕ: -0.66 [12:58:38]line ИТОГО: 500.00 [12:58:38]line Внесено: 500.00 [12:58:38]line СДАЧА: 0.00 [12:58:38]line НСП 1% : 4.43 [12:58:38]line НДС 12% : 53.17 [12:58:38]line Наличными: 500.00 [12:58:38]line Безнал.: 0.00 [12:58:38]line Место: АЗС № 65 "Партнер Нефть" [12:58:38]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:58:38]line СНО: Общий режим [12:58:38]line Чек 105 20.06.2024 12:59 [12:58:38]line Смена: 389 ФФД: 1.0 [12:58:38]line ЗНМ: 0300000198 [12:58:38]line РНМ: 0000000000092771 [12:58:38]line Версия ККМ: 001 [12:58:38]line ФМ: 0000000000875083 [12:58:38]line ФД: 111655 [12:58:38]line ФПД: 210401685456565 [12:58:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T125911&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111655&fm=210401685456565&tin=02508201610067®Number=0000000000092771&sum=50000 [12:58:38]written 0, free lines is 4095 [12:58:38]OFD Sender: Processing packet 111655 [packets to send 38, broken 37] [12:58:38]ProducePacketName [12:58:38]name=ofd_packets/00111655 [12:58:38]OFD Sender: To server: pG, [12:58:38]CommunicateWithHost lk.salyk.kg:30040 [12:58:38]ConnectInit lk.salyk.kg [12:58:38]Connected sock=10 [12: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 35 30 38 33 0F 01 00 00 5A 02 07 01 64 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 9F 27 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 27 B4 01 00 35 04 06 00 BF 5B F5 B8 C6 B5 10 C9 B6 12 D0 ED AE 96 [12:58:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E8 51 47 00 CC 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 27 B4 01 00 F4 03 04 00 E8 BE 73 66 B6 04 01 00 00 8E A7 3A FF 59 91 09 0E [12:58:38]CommunicateWithHost err = 0 [12:58:38]CheckOFDResponse [12:58:38]1017 (14) - 77093643461234 [12:58:38]1041 (16) - 0000000000875083 [12:58:38]1040 (4) - 111655 [12:58:38]1012 (4) - 20.06.2024 05:32 [12:58:38]1206 (1) - 0 [12:58:38]OFD Sender: Remove packet 111655 [12:58:38]ProducePacketName [12:58:38]name=ofd_packets/00111655 [12:58:38]NVStorageDeleteData [12:58:38]Write to MH i2c: 01 00 00 15 62 77 [12:58:38]Write i2c OK [12:58:38]MH_I2C_Read... [12:58:38]Read from MH i2c: 01 [12:58:38]MH_I2C_Read... [12:58:38]Read from MH i2c: 01 07 00 [12:58:38]MH_I2C_Read... [12:58:38]Read from MH i2c: 01 07 00 15 62 00 00 00 00 00 DC 0C 66 [12:58:38]RasterBufferAndPrint [12:58:38]line [12:58:38]line [12:58:38]line [12:58:38]line [12:58:38]line [12:58:38]written 0, free lines is 3298 [12:58:38]MH_Cut [12:58:38]Write to MH i2c: D1 01 00 1C 62 01 50 [12:58:38]Write i2c OK [12:58:38]MH_I2C_Read... [12:58:38]Read from MH i2c: D1 [12:58:38]MH_I2C_Read... [12:58:38]Read from MH i2c: D1 01 00 [12:58:38]MH_I2C_Read... [12:58:38]Read from MH i2c: D1 01 00 1C 62 00 4F [12:58:38]Write to MH i2c: 01 00 00 1D 62 7F [12:58:38]Write i2c OK [12:58:38]MH_I2C_Read... [12:58:39]OFD Sender: No OFD packet to send [12:58:39]*** Cut start [12:58:39]*** Partial cut [12:58:39]*** CUTSNS_PIN = 1 [12:58:39]*** CUTSNS_PIN = 0 [12:58:39]*** Brake cut motor [12:58:39]Read from MH i2c: 01 [12:58:39]MH_I2C_Read... [12:58:39]*** Stop cut motor [12:58:39]*** Cut end [12:58:39]Read from MH i2c: 01 07 00 [12:58:39]MH_I2C_Read... [12:58:39]Read from MH i2c: 01 07 00 1D 62 00 00 00 00 00 FF 0F 94 [12:58:39]process_action close_receipt done [12:58:39]requested_data is exist [12:58:39]produce_requested_data [12:58:39]requested_item fm.sn is exist - process it [12:58:39]wFMCommunicate request_size=4 [12:58:39]MH_SAM_APDU [12:58:39]CAPDU: 80 11 00 00 [12:58:39]Write to MH i2c: E2 08 00 1E 62 80 11 00 00 00 00 00 00 FA [12:58:39]Write i2c OK [12:58:39]MH_I2C_Read... [12:58:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:40]Read from MH i2c: E2 [12:58:40]MH_I2C_Read... [12:58:40]Read from MH i2c: E2 17 00 [12:58:40]MH_I2C_Read... [12:58:40]Read from MH i2c: E2 17 00 1E 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4C [12:58:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:58:40]wFMCommunicate OK [12:58:40]requested_item fd.num is exist - process it [12:58:40]SAM_PROTO_GetFieldsCounters [12:58:40]wFMCommunicate request_size=4 [12:58:40]MH_SAM_APDU [12:58:40]CAPDU: 80 13 00 00 [12:58:40]Write to MH i2c: E2 08 00 1F 62 80 13 00 00 00 00 00 00 FD [12:58:40]Write i2c OK [12:58:40]MH_I2C_Read... [12:58:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:40]Read from MH i2c: E2 [12:58:40]MH_I2C_Read... [12:58:40]Read from MH i2c: E2 62 00 [12:58:40]MH_I2C_Read... [12:58:40]Read from MH i2c: E2 62 00 1F 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 27 B4 01 00 0E 04 04 00 85 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 BB [12: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 27 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:58:40]wFMCommunicate OK [12:58:40]SAM_PROTO_GetFieldsCounters done [12:58:40]requested_item shift.num is exist - process it [12:58:40]requested_item shift.opened is exist - process it [12:58:40]req_shift_opened [12:58:40]FM_GetShiftState [12:58:40]SAM_PROTO_GetShiftState [12:58:40]wFMCommunicate request_size=4 [12:58:40]MH_SAM_APDU [12:58:40]CAPDU: 80 13 01 00 [12:58:40]Write to MH i2c: E2 08 00 20 62 80 13 01 00 00 00 00 00 FF [12:58:40]Write i2c OK [12:58:40]MH_I2C_Read... [12:58:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:40]Read from MH i2c: E2 [12:58:40]MH_I2C_Read... [12:58:40]Read from MH i2c: E2 0E 00 [12:58:40]MH_I2C_Read... [12:58:40]Read from MH i2c: E2 0E 00 20 62 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 7A [12:58:40]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:58:40]wFMCommunicate OK [12:58:40]SAM_PROTO_GetShiftState done [12:58:40]FM_GetShiftState done [12:58:40]req_shift_opened done [12:58:40]requested_item shift.open_date is exist - process it [12:58:40]req_shift_open_date [12:58:40]req_shift_open_date done [12:58:40]produce_requested_data done [12:58:40]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111655,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [12:58:40]process_action_free close_receipt [12:58:40]json_value_free [12:58:40]json_value_free done [12:58:40]process_json_proto returns [12:58:40]Send response to host [12:58:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111655,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [12:58:40]free response buf [12:58:40]execute_script done [12:58:40]execute_script returns [12:58:40]free content buf [12:58:40]Sock 9.Close socket [12:58:40]Sock 9.Thread stoped [12:58:44]OFD Sender: No OFD packet to send [12:58:49]OFD Sender: No OFD packet to send [12:58:54]OFD Sender: No OFD packet to send [12:58:59]OFD Sender: No OFD packet to send [12:59:04]OFD Sender: No OFD packet to send [12:59:09]OFD Sender: No OFD packet to send [12:59:14]OFD Sender: No OFD packet to send [12:59:14]accept exits with 7 [12:59:14]New connection [12:59:14]New thread 3067321700 created [12:59:14]Thread 3067465060 joined [12:59:14]Waiting for new connection... [12:59:14] Sock 7.Parse request [12:59:14]Sock 7.Check first char [12:59:14]Sock 7.First char is OK [12:59:14]request: POST /json_proto HTTP/1.0 [12:59:14]Method: POST [12:59:14]URL: /json_proto [12:59:14]Method is POST - this is cgi request [12:59:14]url: /json_proto [12:59:14]query_string will be loaded in cgi processing [12:59:14]execute_cgi json_proto POST (null) [12:59:14]execute_cgi path=json_proto method=POST [12:59:14]POST find Content-Length [12:59:14]Host: 172.17.59.68:8080 [12:59:14]Content-Length: 678 [12:59:14]Content-Type: application/json [12:59:14] [12:59:14]POST finish read [12:59:14]Found Content-Length = 678 [12:59:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:14]execute_script... [12:59: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)320257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:14]POST & json_proto [12:59:14]process_json_proto [12:59:14]json parsed OK: [12:59:14]protocol is kg_v1.0 [12:59:14]action value=close_receipt [12:59:14]process_action close_receipt [12:59:14]cmd_close_receipt [12:59:14]MH_GetDate [12:59:14]Write to MH i2c: F0 00 00 21 62 72 [12:59:14]Write i2c OK [12:59:14]MH_I2C_Read... [12:59:14]Read from MH i2c: F0 [12:59:14]MH_I2C_Read... [12:59:14]Read from MH i2c: F0 09 00 [12:59:14]MH_I2C_Read... [12:59:14]Read from MH i2c: F0 09 00 21 62 00 C5 27 74 66 BC EC 60 65 AE [12:59:14]GetLastDocTimeStamp 1718888351 [12:59:14]current date 1718888389 [12:59:14]FM_GetShiftState [12:59:14]SAM_PROTO_GetShiftState [12:59:14]wFMCommunicate request_size=4 [12:59:14]MH_SAM_APDU [12:59:14]CAPDU: 80 13 01 00 [12:59:14]Write to MH i2c: E2 08 00 22 62 80 13 01 00 00 00 00 00 01 [12:59:14]Write i2c OK [12:59:14]MH_I2C_Read... [12:59:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:14]Read from MH i2c: E2 [12:59:14]MH_I2C_Read... [12:59:14]Read from MH i2c: E2 0E 00 [12:59:14]MH_I2C_Read... [12:59:14]Read from MH i2c: E2 0E 00 22 62 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 7C [12:59:14]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:59:14]wFMCommunicate OK [12:59:14]SAM_PROTO_GetShiftState done [12:59:14]FM_GetShiftState done [12:59:14]opened in 1718847247 [12:59:14]opened+sec_in_day 1718933647 [12:59:14]quantity*price = 70052 [12:59:14]sum+1 = 70053 [12:59:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 106 20.06.2024 12:59 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111656 ФПД: 109219230179578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T125949&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111656&fm=109219230179578&tin=02508201610067®Number=0000000000092771&sum=70000 [12:59:15]StoreToDocumentArchive [12:59:15]shift 389 fd 111656 [12:59:15]save to /storage/0389/doc_00111656 [12:59:15]save last doc name /storage/0389/doc_00111656 to /storage/kkm_last_doc_name [12:59:15]save OK [12:59:15]Clear old archive folders... [12:59:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:59:15]tlvbuf is B6F574A0 [12:59:15]SAM_PROTO_ClearQueue [12:59:15]wFMCommunicate request_size=4 [12:59:15]MH_SAM_APDU [12:59:15]CAPDU: 80 09 00 00 [12:59:15]Write to MH i2c: E2 08 00 2F 62 80 09 00 00 00 00 00 00 03 [12:59:15]Write i2c OK [12:59:15]MH_I2C_Read... [12:59:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:59:15]Read from MH i2c: E2 [12:59:15]MH_I2C_Read... [12:59:15]Read from MH i2c: E2 03 00 [12:59:15]MH_I2C_Read... [12:59:15]Read from MH i2c: E2 03 00 2F 62 00 90 00 05 [12:59:15]RAPDU: 90 00 [12:59:15]wFMCommunicate OK [12:59:15]SAM_PROTO_ClearQueue done [12:59:15]KKMCreateOFDPacket [12:59:15]OFDProtocolAddRootSTLVToBuf [12:59:15]FM_MakeSignedData [12:59:15]FM_MakeSignedData [12:59:15]SAM_PROTO_SignData [12:59:15]wFMCommunicate request_size=4 [12:59:15]MH_SAM_APDU [12:59:15]CAPDU: 80 0D 01 02 [12:59:15]Write to MH i2c: E2 08 00 30 62 80 0D 01 02 00 00 00 00 0B [12:59:15]Write i2c OK [12:59:15]MH_I2C_Read... [12:59:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:59:15]Read from MH i2c: E2 [12:59:15]MH_I2C_Read... [12:59:15]Read from MH i2c: E2 03 00 [12:59:15]MH_I2C_Read... [12:59:15]Read from MH i2c: E2 03 00 30 62 00 90 00 06 [12:59:15]RAPDU: 90 00 [12:59:15]wFMCommunicate OK [12:59:15]wFMCommunicate request_size=255 [12:59:15]MH_SAM_APDU [12:59:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 C5 27 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 28 B4 01 00 35 04 06 00 63 [12:59:15]Write to MH i2c: E2 02 01 31 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 C5 27 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 28 B4 01 00 35 04 06 00 63 00 00 C7 [12:59:15]Write i2c OK [12:59:15]MH_I2C_Read... [12:59:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:15]Read from MH i2c: E2 [12:59:15]MH_I2C_Read... [12:59:15]Read from MH i2c: E2 03 00 [12:59:15]MH_I2C_Read... [12:59:15]Read from MH i2c: E2 03 00 31 62 00 90 00 07 [12:59:15]RAPDU: 90 00 [12:59:15]wFMCommunicate OK [12:59:15]wFMCommunicate request_size=10 [12:59:15]MH_SAM_APDU [12:59:15]CAPDU: 80 0D 02 02 05 55 95 6A E0 FA [12:59:15]Write to MH i2c: E2 0D 00 32 62 80 0D 02 02 05 00 55 95 6A E0 FA 00 00 46 [12:59:15]Write i2c OK [12:59:15]MH_I2C_Read... [12:59:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:16]Read from MH i2c: E2 [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: E2 03 00 [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: E2 03 00 32 62 00 90 00 08 [12:59:16]RAPDU: 90 00 [12:59:16]wFMCommunicate OK [12:59:16]wFMCommunicate request_size=4 [12:59:16]MH_SAM_APDU [12:59:16]CAPDU: 80 0D 03 02 [12:59:16]Write to MH i2c: E2 08 00 33 62 80 0D 03 02 00 00 00 00 10 [12:59:16]Write i2c OK [12:59:16]MH_I2C_Read... [12:59:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:59:16]Read from MH i2c: E2 [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: E2 0B 00 [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: E2 0B 00 33 62 00 FF 36 BC E6 3E FD 0E 85 90 00 B6 [12:59:16]RAPDU: FF 36 BC E6 3E FD 0E 85 90 00 [12:59:16]wFMCommunicate OK [12:59:16]SAM_PROTO_SignData done [12:59:16]FM_MakeSignedData done [12:59:16]CreateOFDProtocolMessage [12:59:16]wFMCommunicate request_size=4 [12:59:16]MH_SAM_APDU [12:59:16]CAPDU: 80 11 00 00 [12:59:16]Write to MH i2c: E2 08 00 34 62 80 11 00 00 00 00 00 00 10 [12:59:16]Write i2c OK [12:59:16]MH_I2C_Read... [12:59:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:16]Read from MH i2c: E2 [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: E2 17 00 [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: E2 17 00 34 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 62 [12:59:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:59:16]wFMCommunicate OK [12:59:16]CreateOFDProtocolMessage done [12:59:16]OFDSenderStorePacket 111656 [12:59:16]StoreOFDPacket docnum=111656 [12:59:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 68 3A 07 01 E0 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 C5 27 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 28 B4 01 00 35 04 06 00 63 55 95 6A E0 FA FF 36 BC E6 3E FD 0E 85 [12:59:16]CheckFolder [12:59:16]dirname=/storage/ofd_packets [12:59:16]CheckFolder done [12:59:16]ProducePacketName [12:59:16]name=ofd_packets/00111656 [12:59:16]NVStorageSaveData ofd_packets/00111656 [12:59:16]File name is /storage/ofd_packets/00111656 [12:59:16]Write 301 bytes [12:59:16]NVStorageSaveData done [12:59:16]OFDSenderStorePacket done [12:59:16]KKMCreateOFDPacket done [12:59:16]NVStorageSaveData kkm_last_timestamp [12:59:16]File name is /storage/kkm_last_timestamp [12:59:16]Write 4 bytes [12:59:16]NVStorageSaveData done [12:59:16]ExternCall_PrintAddStr [12:59:16]wPrintStart [12:59:16]Write to MH i2c: 01 00 00 35 62 97 [12:59:16]Write i2c OK [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: 01 [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: 01 07 00 [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: 01 07 00 35 62 00 00 00 00 00 FF 0F AC [12:59:16]RasterBufferAndPrint [12:59:16]line Счет N : (1)320257 [12:59:16]line ИНН: 02508201610067 [12:59:16]line Контрольно-Кассовый Чек [12:59:16]line ПРОДАЖА [12:59:16]line ТРК (МРК, ГНК) : 11 [12:59:16]line Товар: 2710124130 [12:59:16]line Аи-92-К-5 [12:59:16]line 10.550 * 66.40 [12:59:16]line = 700.52 [12:59:16]line НДС 12% НСП 1% [12:59:16]line > о реализуемом товаре [12:59:16]line ОКРУГЛЕНИЕ: -0.52 [12:59:16]line ИТОГО: 700.00 [12:59:16]line Внесено: 700.00 [12:59:16]line СДАЧА: 0.00 [12:59:16]line НСП 1% : 6.20 [12:59:16]line НДС 12% : 74.39 [12:59:16]line Наличными: 700.00 [12:59:16]line Безнал.: 0.00 [12:59:16]line Место: АЗС № 65 "Партнер Нефть" [12:59:16]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:59:16]line СНО: Общий режим [12:59:16]line Чек 106 20.06.2024 12:59 [12:59:16]line Смена: 389 ФФД: 1.0 [12:59:16]line ЗНМ: 0300000198 [12:59:16]line РНМ: 0000000000092771 [12:59:16]line Версия ККМ: 001 [12:59:16]line ФМ: 0000000000875083 [12:59:16]line ФД: 111656 [12:59:16]line ФПД: 109219230179578 [12:59:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T125949&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111656&fm=109219230179578&tin=02508201610067®Number=0000000000092771&sum=70000 [12:59:16]OFD Sender: Processing packet 111656 [packets to send 38, broken 37] [12:59:16]ProducePacketName [12:59:16]name=ofd_packets/00111656 [12:59:16]OFD Sender: To server: pG, [12:59:16]CommunicateWithHost lk.salyk.kg:30040 [12:59:16]ConnectInit lk.salyk.kg [12:59:16]written 0, free lines is 4095 [12:59:16]Connected sock=10 [12:59:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 68 3A 07 01 E0 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 C5 27 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 28 B4 01 00 35 04 06 00 63 55 95 6A E0 FA FF 36 BC E6 3E FD 0E 85 [12:59:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E9 AA 47 00 D3 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 28 B4 01 00 F4 03 04 00 0F BF 73 66 B6 04 01 00 00 3B 0C CB 17 99 22 F0 F9 [12:59:16]CommunicateWithHost err = 0 [12:59:16]CheckOFDResponse [12:59:16]1017 (14) - 77093643461234 [12:59:16]1041 (16) - 0000000000875083 [12:59:16]1040 (4) - 111656 [12:59:16]1012 (4) - 20.06.2024 05:33 [12:59:16]1206 (1) - 0 [12:59:16]OFD Sender: Remove packet 111656 [12:59:16]ProducePacketName [12:59:16]name=ofd_packets/00111656 [12:59:16]NVStorageDeleteData [12:59:16]Write to MH i2c: 01 00 00 60 62 C2 [12:59:16]Write i2c OK [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: 01 [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: 01 07 00 [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: 01 07 00 60 62 00 00 00 00 00 DD 0C B2 [12:59:16]RasterBufferAndPrint [12:59:16]line [12:59:16]line [12:59:16]line [12:59:16]line [12:59:16]line [12:59:16]written 0, free lines is 3299 [12:59:16]MH_Cut [12:59:16]Write to MH i2c: D1 01 00 67 62 01 9B [12:59:16]Write i2c OK [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: D1 [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: D1 01 00 [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: D1 01 00 67 62 00 9A [12:59:16]Write to MH i2c: 01 00 00 68 62 CA [12:59:16]Write i2c OK [12:59:16]MH_I2C_Read... [12:59:17]OFD Sender: No OFD packet to send [12:59:17]*** Cut start [12:59:17]*** Partial cut [12:59:17]*** CUTSNS_PIN = 1 [12:59:17]*** CUTSNS_PIN = 0 [12:59:17]*** Brake cut motor [12:59:18]Read from MH i2c: 01 [12:59:18]MH_I2C_Read... [12:59:18]*** Stop cut motor [12:59:18]*** Cut end [12:59:18]Read from MH i2c: 01 07 00 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 07 00 68 62 00 00 00 00 00 FF 0F DF [12:59:18]process_action close_receipt done [12:59:18]requested_data is exist [12:59:18]produce_requested_data [12:59:18]requested_item fm.sn is exist - process it [12:59:18]wFMCommunicate request_size=4 [12:59:18]MH_SAM_APDU [12:59:18]CAPDU: 80 11 00 00 [12:59:18]Write to MH i2c: E2 08 00 69 62 80 11 00 00 00 00 00 00 45 [12:59:18]Write i2c OK [12:59:18]MH_I2C_Read... [12:59:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:18]Read from MH i2c: E2 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: E2 17 00 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: E2 17 00 69 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 97 [12:59:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:59:18]wFMCommunicate OK [12:59:18]requested_item fd.num is exist - process it [12:59:18]SAM_PROTO_GetFieldsCounters [12:59:18]wFMCommunicate request_size=4 [12:59:18]MH_SAM_APDU [12:59:18]CAPDU: 80 13 00 00 [12:59:18]Write to MH i2c: E2 08 00 6A 62 80 13 00 00 00 00 00 00 48 [12:59:18]Write i2c OK [12:59:18]MH_I2C_Read... [12:59:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:18]Read from MH i2c: E2 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: E2 62 00 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: E2 62 00 6A 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 28 B4 01 00 0E 04 04 00 85 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 0A [12:59:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 28 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:59:18]wFMCommunicate OK [12:59:18]SAM_PROTO_GetFieldsCounters done [12:59:18]requested_item shift.num is exist - process it [12:59:18]requested_item shift.opened is exist - process it [12:59:18]req_shift_opened [12:59:18]FM_GetShiftState [12:59:18]SAM_PROTO_GetShiftState [12:59:18]wFMCommunicate request_size=4 [12:59:18]MH_SAM_APDU [12:59:18]CAPDU: 80 13 01 00 [12:59:18]Write to MH i2c: E2 08 00 6B 62 80 13 01 00 00 00 00 00 4A [12:59:18]Write i2c OK [12:59:18]MH_I2C_Read... [12:59:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:18]Read from MH i2c: E2 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: E2 0E 00 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: E2 0E 00 6B 62 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 C5 [12:59:18]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [12:59:18]wFMCommunicate OK [12:59:18]SAM_PROTO_GetShiftState done [12:59:18]FM_GetShiftState done [12:59:18]req_shift_opened done [12:59:18]requested_item shift.open_date is exist - process it [12:59:18]req_shift_open_date [12:59:18]req_shift_open_date done [12:59:18]produce_requested_data done [12:59:18]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111656,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [12:59:18]process_action_free close_receipt [12:59:18]json_value_free [12:59:18]json_value_free done [12:59:18]process_json_proto returns [12:59:18]Send response to host [12:59:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111656,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [12:59:18]free response buf [12:59:18]execute_script done [12:59:18]execute_script returns [12:59:18]free content buf [12:59:18]Sock 7.Close socket [12:59:18]Sock 7.Thread stoped [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:31]accept exits with 9 [13:00:31]New connection [13:00:31]New thread 3067465060 created [13:00:31]Thread 3067321700 joined [13:00:31]Waiting for new connection... [13:00:31] Sock 9.Parse request [13:00:31]Sock 9.Check first char [13:00:31]Sock 9.First char is OK [13:00:31]request: POST /json_proto HTTP/1.0 [13:00:31]Method: POST [13:00:31]URL: /json_proto [13:00:31]Method is POST - this is cgi request [13:00:31]url: /json_proto [13:00:31]query_string will be loaded in cgi processing [13:00:31]execute_cgi json_proto POST (null) [13:00:31]execute_cgi path=json_proto method=POST [13:00:31]POST find Content-Length [13:00:31]Host: 172.17.59.68:8080 [13:00:31]Content-Length: 677 [13:00:31]Content-Type: application/json [13:00:31] [13:00:31]POST finish read [13:00:31]Found Content-Length = 677 [13:00:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:31]execute_script... [13:00: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)320258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:31]POST & json_proto [13:00:31]process_json_proto [13:00:31]json parsed OK: [13:00:31]protocol is kg_v1.0 [13:00:31]action value=close_receipt [13:00:31]process_action close_receipt [13:00:31]cmd_close_receipt [13:00:31]MH_GetDate [13:00:31]Write to MH i2c: F0 00 00 6C 62 BD [13:00:31]Write i2c OK [13:00:31]MH_I2C_Read... [13:00:31]Read from MH i2c: F0 [13:00:31]MH_I2C_Read... [13:00:31]Read from MH i2c: F0 09 00 [13:00:31]MH_I2C_Read... [13:00:31]Read from MH i2c: F0 09 00 6C 62 00 11 28 74 66 BC EC 60 65 46 [13:00:31]GetLastDocTimeStamp 1718888389 [13:00:31]current date 1718888465 [13:00:31]FM_GetShiftState [13:00:31]SAM_PROTO_GetShiftState [13:00:31]wFMCommunicate request_size=4 [13:00:31]MH_SAM_APDU [13:00:31]CAPDU: 80 13 01 00 [13:00:31]Write to MH i2c: E2 08 00 6D 62 80 13 01 00 00 00 00 00 4C [13:00:31]Write i2c OK [13:00:31]MH_I2C_Read... [13:00:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:31]Read from MH i2c: E2 [13:00:31]MH_I2C_Read... [13:00:31]Read from MH i2c: E2 0E 00 [13:00:31]MH_I2C_Read... [13:00:31]Read from MH i2c: E2 0E 00 6D 62 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 C7 [13:00:31]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:00:31]wFMCommunicate OK [13:00:31]SAM_PROTO_GetShiftState done [13:00:31]FM_GetShiftState done [13:00:31]opened in 1718847247 [13:00:31]opened+sec_in_day 1718933647 [13:00:31]quantity*price = 50065 [13:00:31]sum+1 = 50067 [13:00:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 107 20.06.2024 13:01 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111657 ФПД: 257211451221379 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T130105&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111657&fm=257211451221379&tin=02508201610067®Number=0000000000092771&sum=50000 [13:00:32]StoreToDocumentArchive [13:00:32]shift 389 fd 111657 [13:00:32]save to /storage/0389/doc_00111657 [13:00:32]save last doc name /storage/0389/doc_00111657 to /storage/kkm_last_doc_name [13:00:32]save OK [13:00:32]Clear old archive folders... [13:00:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:00:32]tlvbuf is B6FD2240 [13:00:32]SAM_PROTO_ClearQueue [13:00:32]wFMCommunicate request_size=4 [13:00:32]MH_SAM_APDU [13:00:32]CAPDU: 80 09 00 00 [13:00:32]Write to MH i2c: E2 08 00 7A 62 80 09 00 00 00 00 00 00 4E [13:00:32]Write i2c OK [13:00:32]MH_I2C_Read... [13:00:32]Read from MH i2c: E2 [13:00:32]MH_I2C_Read... [13:00:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:32]Read from MH i2c: E2 03 00 [13:00:32]MH_I2C_Read... [13:00:32]Read from MH i2c: E2 03 00 7A 62 00 90 00 50 [13:00:32]RAPDU: 90 00 [13:00:32]wFMCommunicate OK [13:00:32]SAM_PROTO_ClearQueue done [13:00:32]KKMCreateOFDPacket [13:00:32]OFDProtocolAddRootSTLVToBuf [13:00:32]FM_MakeSignedData [13:00:32]FM_MakeSignedData [13:00:32]SAM_PROTO_SignData [13:00:32]wFMCommunicate request_size=4 [13:00:32]MH_SAM_APDU [13:00:32]CAPDU: 80 0D 01 02 [13:00:32]Write to MH i2c: E2 08 00 7B 62 80 0D 01 02 00 00 00 00 56 [13:00:32]Write i2c OK [13:00:32]MH_I2C_Read... [13:00:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:32]Read from MH i2c: E2 [13:00:32]MH_I2C_Read... [13:00:32]Read from MH i2c: E2 03 00 [13:00:32]MH_I2C_Read... [13:00:32]Read from MH i2c: E2 03 00 7B 62 00 90 00 51 [13:00:32]RAPDU: 90 00 [13:00:32]wFMCommunicate OK [13:00:32]wFMCommunicate request_size=255 [13:00:32]MH_SAM_APDU [13:00:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 11 28 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 29 B4 01 00 35 04 06 00 E9 [13:00:32]Write to MH i2c: E2 02 01 7C 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 11 28 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 29 B4 01 00 35 04 06 00 E9 00 00 D5 [13:00:32]Write i2c OK [13:00:32]MH_I2C_Read... [13:00:32]OFD Sender: No OFD packet to send [13:00:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:32]Read from MH i2c: E2 [13:00:32]MH_I2C_Read... [13:00:32]Read from MH i2c: E2 03 00 [13:00:32]MH_I2C_Read... [13:00:32]Read from MH i2c: E2 03 00 7C 62 00 90 00 52 [13:00:32]RAPDU: 90 00 [13:00:32]wFMCommunicate OK [13:00:32]wFMCommunicate request_size=10 [13:00:32]MH_SAM_APDU [13:00:32]CAPDU: 80 0D 02 02 05 EE B5 2E A5 83 [13:00:32]Write to MH i2c: E2 0D 00 7D 62 80 0D 02 02 05 00 EE B5 2E A5 83 00 00 5C [13:00:32]Write i2c OK [13:00:32]MH_I2C_Read... [13:00:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:32]Read from MH i2c: E2 [13:00:32]MH_I2C_Read... [13:00:32]Read from MH i2c: E2 03 00 [13:00:32]MH_I2C_Read... [13:00:32]Read from MH i2c: E2 03 00 7D 62 00 90 00 53 [13:00:32]RAPDU: 90 00 [13:00:32]wFMCommunicate OK [13:00:32]wFMCommunicate request_size=4 [13:00:32]MH_SAM_APDU [13:00:32]CAPDU: 80 0D 03 02 [13:00:32]Write to MH i2c: E2 08 00 7E 62 80 0D 03 02 00 00 00 00 5B [13:00:32]Write i2c OK [13:00:32]MH_I2C_Read... [13:00:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:32]Read from MH i2c: E2 [13:00:32]MH_I2C_Read... [13:00:32]Read from MH i2c: E2 0B 00 [13:00:32]MH_I2C_Read... [13:00:32]Read from MH i2c: E2 0B 00 7E 62 00 5C 7B A3 67 B5 9B 47 01 90 00 D5 [13:00:32]RAPDU: 5C 7B A3 67 B5 9B 47 01 90 00 [13:00:32]wFMCommunicate OK [13:00:32]SAM_PROTO_SignData done [13:00:32]FM_MakeSignedData done [13:00:32]CreateOFDProtocolMessage [13:00:32]wFMCommunicate request_size=4 [13:00:32]MH_SAM_APDU [13:00:32]CAPDU: 80 11 00 00 [13:00:32]Write to MH i2c: E2 08 00 7F 62 80 11 00 00 00 00 00 00 5B [13:00:32]Write i2c OK [13:00:32]MH_I2C_Read... [13:00:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:32]Read from MH i2c: E2 [13:00:32]MH_I2C_Read... [13:00:32]Read from MH i2c: E2 17 00 [13:00:32]MH_I2C_Read... [13:00:32]Read from MH i2c: E2 17 00 7F 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AD [13:00:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:00:32]wFMCommunicate OK [13:00:32]CreateOFDProtocolMessage done [13:00:32]OFDSenderStorePacket 111657 [13:00:32]StoreOFDPacket docnum=111657 [13:00:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5E EB 07 01 B2 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 11 28 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 29 B4 01 00 35 04 06 00 E9 EE B5 2E A5 83 5C 7B A3 67 B5 9B 47 01 [13:00:32]CheckFolder [13:00:32]dirname=/storage/ofd_packets [13:00:32]CheckFolder done [13:00:32]ProducePacketName [13:00:32]name=ofd_packets/00111657 [13:00:32]NVStorageSaveData ofd_packets/00111657 [13:00:32]File name is /storage/ofd_packets/00111657 [13:00:32]Write 301 bytes [13:00:32]NVStorageSaveData done [13:00:32]OFDSenderStorePacket done [13:00:32]KKMCreateOFDPacket done [13:00:32]NVStorageSaveData kkm_last_timestamp [13:00:32]File name is /storage/kkm_last_timestamp [13:00:32]Write 4 bytes [13:00:32]NVStorageSaveData done [13:00:32]ExternCall_PrintAddStr [13:00:32]wPrintStart [13:00:32]Write to MH i2c: 01 00 00 80 62 E2 [13:00:32]Write i2c OK [13:00:32]MH_I2C_Read... [13:00:32]Read from MH i2c: 01 [13:00:32]MH_I2C_Read... [13:00:32]Read from MH i2c: 01 07 00 [13:00:32]MH_I2C_Read... [13:00:32]Read from MH i2c: 01 07 00 80 62 00 00 00 00 00 FF 0F F7 [13:00:32]RasterBufferAndPrint [13:00:32]line Счет N : (1)320258 [13:00:32]line ИНН: 02508201610067 [13:00:32]line Контрольно-Кассовый Чек [13:00:32]line ПРОДАЖА [13:00:32]line ТРК (МРК, ГНК) : 11 [13:00:32]line Товар: 2710124130 [13:00:32]line Аи-92-К-5 [13:00:32]line 7.540 * 66.40 [13:00:32]line = 500.66 [13:00:32]line НДС 12% НСП 1% [13:00:32]line > о реализуемом товаре [13:00:32]line ОКРУГЛЕНИЕ: -0.66 [13:00:32]line ИТОГО: 500.00 [13:00:32]line Внесено: 500.00 [13:00:32]line СДАЧА: 0.00 [13:00:32]line НСП 1% : 4.43 [13:00:32]line НДС 12% : 53.17 [13:00:32]line Наличными: 500.00 [13:00:32]line Безнал.: 0.00 [13:00:32]line Место: АЗС № 65 "Партнер Нефть" [13:00:32]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:00:32]line СНО: Общий режим [13:00:32]line Чек 107 20.06.2024 13:01 [13:00:32]line Смена: 389 ФФД: 1.0 [13:00:32]line ЗНМ: 0300000198 [13:00:32]line РНМ: 0000000000092771 [13:00:32]line Версия ККМ: 001 [13:00:32]line ФМ: 0000000000875083 [13:00:32]line ФД: 111657 [13:00:32]line ФПД: 257211451221379 [13:00:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T130105&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111657&fm=257211451221379&tin=02508201610067®Number=0000000000092771&sum=50000 [13:00:33]OFD Sender: Processing packet 111657 [packets to send 38, broken 37] [13:00:33]ProducePacketName [13:00:33]name=ofd_packets/00111657 [13:00:33]OFD Sender: To server: pG, [13:00:33]CommunicateWithHost lk.salyk.kg:30040 [13:00:33]ConnectInit lk.salyk.kg [13:00:33]written 0, free lines is 4095 [13:00:33]Connected sock=10 [13:00:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5E EB 07 01 B2 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 11 28 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 29 B4 01 00 35 04 06 00 E9 EE B5 2E A5 83 5C 7B A3 67 B5 9B 47 01 [13:00:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 EF 71 47 00 AF 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 29 B4 01 00 F4 03 04 00 5B BF 73 66 B6 04 01 00 00 8E 97 81 5F 9C 50 B3 D5 [13:00:33]CommunicateWithHost err = 0 [13:00:33]CheckOFDResponse [13:00:33]1017 (14) - 77093643461234 [13:00:33]1041 (16) - 0000000000875083 [13:00:33]1040 (4) - 111657 [13:00:33]1012 (4) - 20.06.2024 05:34 [13:00:33]1206 (1) - 0 [13:00:33]OFD Sender: Remove packet 111657 [13:00:33]ProducePacketName [13:00:33]name=ofd_packets/00111657 [13:00:33]NVStorageDeleteData [13:00:33]Write to MH i2c: 01 00 00 AB 62 0D [13:00:33]Write i2c OK [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: 01 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: 01 07 00 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: 01 07 00 AB 62 00 00 00 00 00 CD 0C ED [13:00:33]RasterBufferAndPrint [13:00:33]line [13:00:33]line [13:00:33]line [13:00:33]line [13:00:33]line [13:00:33]written 0, free lines is 3284 [13:00:33]MH_Cut [13:00:33]Write to MH i2c: D1 01 00 B2 62 01 E6 [13:00:33]Write i2c OK [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: D1 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: D1 01 00 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: D1 01 00 B2 62 00 E5 [13:00:33]Write to MH i2c: 01 00 00 B3 62 15 [13:00:33]Write i2c OK [13:00:33]MH_I2C_Read... [13:00:33]OFD Sender: No OFD packet to send [13:00:34]*** Cut start [13:00:34]*** Partial cut [13:00:34]*** CUTSNS_PIN = 1 [13:00:34]*** CUTSNS_PIN = 0 [13:00:34]*** Brake cut motor [13:00:34]Read from MH i2c: 01 [13:00:34]MH_I2C_Read... [13:00:34]*** Stop cut motor [13:00:34]*** Cut end [13:00:34]Read from MH i2c: 01 07 00 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: 01 07 00 B3 62 00 00 00 00 00 FF 0F 2A [13:00:34]process_action close_receipt done [13:00:34]requested_data is exist [13:00:34]produce_requested_data [13:00:34]requested_item fm.sn is exist - process it [13:00:34]wFMCommunicate request_size=4 [13:00:34]MH_SAM_APDU [13:00:34]CAPDU: 80 11 00 00 [13:00:34]Write to MH i2c: E2 08 00 B4 62 80 11 00 00 00 00 00 00 90 [13:00:34]Write i2c OK [13:00:34]MH_I2C_Read... [13:00:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:34]Read from MH i2c: E2 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: E2 17 00 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: E2 17 00 B4 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E2 [13:00:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:00:34]wFMCommunicate OK [13:00:34]requested_item fd.num is exist - process it [13:00:34]SAM_PROTO_GetFieldsCounters [13:00:34]wFMCommunicate request_size=4 [13:00:34]MH_SAM_APDU [13:00:34]CAPDU: 80 13 00 00 [13:00:34]Write to MH i2c: E2 08 00 B5 62 80 13 00 00 00 00 00 00 93 [13:00:34]Write i2c OK [13:00:34]MH_I2C_Read... [13:00:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:35]Read from MH i2c: E2 [13:00:35]MH_I2C_Read... [13:00:35]Read from MH i2c: E2 62 00 [13:00:35]MH_I2C_Read... [13:00:35]Read from MH i2c: E2 62 00 B5 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 29 B4 01 00 0E 04 04 00 85 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 59 [13:00:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 29 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:00:35]wFMCommunicate OK [13:00:35]SAM_PROTO_GetFieldsCounters done [13:00:35]requested_item shift.num is exist - process it [13:00:35]requested_item shift.opened is exist - process it [13:00:35]req_shift_opened [13:00:35]FM_GetShiftState [13:00:35]SAM_PROTO_GetShiftState [13:00:35]wFMCommunicate request_size=4 [13:00:35]MH_SAM_APDU [13:00:35]CAPDU: 80 13 01 00 [13:00:35]Write to MH i2c: E2 08 00 B6 62 80 13 01 00 00 00 00 00 95 [13:00:35]Write i2c OK [13:00:35]MH_I2C_Read... [13:00:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:35]Read from MH i2c: E2 [13:00:35]MH_I2C_Read... [13:00:35]Read from MH i2c: E2 0E 00 [13:00:35]MH_I2C_Read... [13:00:35]Read from MH i2c: E2 0E 00 B6 62 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 10 [13:00:35]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:00:35]wFMCommunicate OK [13:00:35]SAM_PROTO_GetShiftState done [13:00:35]FM_GetShiftState done [13:00:35]req_shift_opened done [13:00:35]requested_item shift.open_date is exist - process it [13:00:35]req_shift_open_date [13:00:35]req_shift_open_date done [13:00:35]produce_requested_data done [13:00:35]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111657,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [13:00:35]process_action_free close_receipt [13:00:35]json_value_free [13:00:35]json_value_free done [13:00:35]process_json_proto returns [13:00:35]Send response to host [13:00:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111657,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [13:00:35]free response buf [13:00:35]execute_script done [13:00:35]execute_script returns [13:00:35]free content buf [13:00:35]Sock 9.Close socket [13:00:35]Sock 9.Thread stoped [13:00:38]OFD Sender: No OFD packet to send [13:00:43]OFD Sender: No OFD packet to send [13:00:48]OFD Sender: No OFD packet to send [13:00:53]OFD Sender: No OFD packet to send [13:00:58]OFD Sender: No OFD packet to send [13:01:03]OFD Sender: No OFD packet to send [13:01:08]OFD Sender: No OFD packet to send [13:01:13]OFD Sender: No OFD packet to send [13:01:18]OFD Sender: No OFD packet to send [13:01:23]OFD Sender: No OFD packet to send [13:01:28]OFD Sender: No OFD packet to send [13:01:30]accept exits with 7 [13:01:30]New connection [13:01:30]New thread 3067321700 created [13:01:30]Thread 3067465060 joined [13:01:30]Waiting for new connection... [13:01:30] Sock 7.Parse request [13:01:30]Sock 7.Check first char [13:01:30]Sock 7.First char is OK [13:01:30]request: POST /json_proto HTTP/1.0 [13:01:30]Method: POST [13:01:30]URL: /json_proto [13:01:30]Method is POST - this is cgi request [13:01:30]url: /json_proto [13:01:30]query_string will be loaded in cgi processing [13:01:30]execute_cgi json_proto POST (null) [13:01:30]execute_cgi path=json_proto method=POST [13:01:30]POST find Content-Length [13:01:30]Host: 172.17.59.68:8080 [13:01:30]Content-Length: 682 [13:01:30]Content-Type: application/json [13:01:30] [13:01:30]POST finish read [13:01:30]Found Content-Length = 682 [13:01:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:30]execute_script... [13: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)320259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:30]POST & json_proto [13:01:30]process_json_proto [13:01:30]json parsed OK: [13:01:30]protocol is kg_v1.0 [13:01:30]action value=close_receipt [13:01:30]process_action close_receipt [13:01:30]cmd_close_receipt [13:01:30]MH_GetDate [13:01:30]Write to MH i2c: F0 00 00 B7 62 08 [13:01:30]Write i2c OK [13:01:30]MH_I2C_Read... [13:01:30]Read from MH i2c: F0 [13:01:30]MH_I2C_Read... [13:01:30]Read from MH i2c: F0 09 00 [13:01:30]MH_I2C_Read... [13:01:30]Read from MH i2c: F0 09 00 B7 62 00 4D 28 74 66 BC EC 60 65 CD [13:01:30]GetLastDocTimeStamp 1718888465 [13:01:30]current date 1718888525 [13:01:30]FM_GetShiftState [13:01:30]SAM_PROTO_GetShiftState [13:01:30]wFMCommunicate request_size=4 [13:01:30]MH_SAM_APDU [13:01:30]CAPDU: 80 13 01 00 [13:01:30]Write to MH i2c: E2 08 00 B8 62 80 13 01 00 00 00 00 00 97 [13:01:30]Write i2c OK [13:01:30]MH_I2C_Read... [13:01:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:30]Read from MH i2c: E2 [13:01:30]MH_I2C_Read... [13:01:30]Read from MH i2c: E2 0E 00 [13:01:30]MH_I2C_Read... [13:01:30]Read from MH i2c: E2 0E 00 B8 62 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 12 [13:01:30]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:01:30]wFMCommunicate OK [13:01:30]SAM_PROTO_GetShiftState done [13:01:30]FM_GetShiftState done [13:01:30]opened in 1718847247 [13:01:30]opened+sec_in_day 1718933647 [13:01:30]quantity*price = 100064 [13:01:30]sum+1 = 100066 [13:01:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 108 20.06.2024 13:02 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111658 ФПД: 213575067199778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T130205&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111658&fm=213575067199778&tin=02508201610067®Number=0000000000092771&sum=100000 [13:01:31]StoreToDocumentArchive [13:01:31]shift 389 fd 111658 [13:01:31]save to /storage/0389/doc_00111658 [13:01:31]save last doc name /storage/0389/doc_00111658 to /storage/kkm_last_doc_name [13:01:31]save OK [13:01:31]Clear old archive folders... [13:01:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:01:31]tlvbuf is 00F2FE50 [13:01:31]SAM_PROTO_ClearQueue [13:01:31]wFMCommunicate request_size=4 [13:01:31]MH_SAM_APDU [13:01:31]CAPDU: 80 09 00 00 [13:01:31]Write to MH i2c: E2 08 00 C5 62 80 09 00 00 00 00 00 00 99 [13:01:31]Write i2c OK [13:01:31]MH_I2C_Read... [13:01:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:31]Read from MH i2c: E2 [13:01:31]MH_I2C_Read... [13:01:31]Read from MH i2c: E2 03 00 [13:01:31]MH_I2C_Read... [13:01:31]Read from MH i2c: E2 03 00 C5 62 00 90 00 9B [13:01:31]RAPDU: 90 00 [13:01:31]wFMCommunicate OK [13:01:31]SAM_PROTO_ClearQueue done [13:01:31]KKMCreateOFDPacket [13:01:31]OFDProtocolAddRootSTLVToBuf [13:01:31]FM_MakeSignedData [13:01:31]FM_MakeSignedData [13:01:31]SAM_PROTO_SignData [13:01:31]wFMCommunicate request_size=4 [13:01:31]MH_SAM_APDU [13:01:31]CAPDU: 80 0D 01 02 [13:01:31]Write to MH i2c: E2 08 00 C6 62 80 0D 01 02 00 00 00 00 A1 [13:01:31]Write i2c OK [13:01:31]MH_I2C_Read... [13:01:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:31]Read from MH i2c: E2 [13:01:31]MH_I2C_Read... [13:01:31]Read from MH i2c: E2 03 00 [13:01:31]MH_I2C_Read... [13:01:31]Read from MH i2c: E2 03 00 C6 62 00 90 00 9C [13:01:31]RAPDU: 90 00 [13:01:31]wFMCommunicate OK [13:01:31]wFMCommunicate request_size=255 [13:01:31]MH_SAM_APDU [13: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 4D 28 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2A B4 01 00 35 04 06 00 C2 [13:01:31]Write to MH i2c: E2 02 01 C7 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 4D 28 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2A B4 01 00 35 04 06 00 C2 00 00 87 [13:01:31]Write i2c OK [13:01:31]MH_I2C_Read... [13:01:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:32]Read from MH i2c: E2 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: E2 03 00 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: E2 03 00 C7 62 00 90 00 9D [13:01:32]RAPDU: 90 00 [13:01:32]wFMCommunicate OK [13:01:32]wFMCommunicate request_size=10 [13:01:32]MH_SAM_APDU [13:01:32]CAPDU: 80 0D 02 02 05 3E D2 03 69 22 [13:01:32]Write to MH i2c: E2 0D 00 C8 62 80 0D 02 02 05 00 3E D2 03 69 22 00 00 4C [13:01:32]Write i2c OK [13:01:32]MH_I2C_Read... [13:01:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:32]Read from MH i2c: E2 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: E2 03 00 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: E2 03 00 C8 62 00 90 00 9E [13:01:32]RAPDU: 90 00 [13:01:32]wFMCommunicate OK [13:01:32]wFMCommunicate request_size=4 [13:01:32]MH_SAM_APDU [13:01:32]CAPDU: 80 0D 03 02 [13:01:32]Write to MH i2c: E2 08 00 C9 62 80 0D 03 02 00 00 00 00 A6 [13:01:32]Write i2c OK [13:01:32]MH_I2C_Read... [13:01:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:32]Read from MH i2c: E2 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: E2 0B 00 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: E2 0B 00 C9 62 00 5C 2F 8F C3 F4 BF 21 B0 90 00 08 [13:01:32]RAPDU: 5C 2F 8F C3 F4 BF 21 B0 90 00 [13:01:32]wFMCommunicate OK [13:01:32]SAM_PROTO_SignData done [13:01:32]FM_MakeSignedData done [13:01:32]CreateOFDProtocolMessage [13:01:32]wFMCommunicate request_size=4 [13:01:32]MH_SAM_APDU [13:01:32]CAPDU: 80 11 00 00 [13:01:32]Write to MH i2c: E2 08 00 CA 62 80 11 00 00 00 00 00 00 A6 [13:01:32]Write i2c OK [13:01:32]MH_I2C_Read... [13:01:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:32]Read from MH i2c: E2 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: E2 17 00 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: E2 17 00 CA 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F8 [13:01:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:01:32]wFMCommunicate OK [13:01:32]CreateOFDProtocolMessage done [13:01:32]OFDSenderStorePacket 111658 [13:01:32]StoreOFDPacket docnum=111658 [13:01:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C0 A7 07 01 00 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 4D 28 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2A B4 01 00 35 04 06 00 C2 3E D2 03 69 22 5C 2F 8F C3 F4 BF 21 B0 [13:01:32]CheckFolder [13:01:32]dirname=/storage/ofd_packets [13:01:32]CheckFolder done [13:01:32]ProducePacketName [13:01:32]name=ofd_packets/00111658 [13:01:32]NVStorageSaveData ofd_packets/00111658 [13:01:32]File name is /storage/ofd_packets/00111658 [13:01:32]Write 301 bytes [13:01:32]NVStorageSaveData done [13:01:32]OFDSenderStorePacket done [13:01:32]KKMCreateOFDPacket done [13:01:32]NVStorageSaveData kkm_last_timestamp [13:01:32]File name is /storage/kkm_last_timestamp [13:01:32]Write 4 bytes [13:01:32]NVStorageSaveData done [13:01:32]ExternCall_PrintAddStr [13:01:32]wPrintStart [13:01:32]Write to MH i2c: 01 00 00 CB 62 2D [13:01:32]Write i2c OK [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: 01 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: 01 07 00 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: 01 07 00 CB 62 00 00 00 00 00 FF 0F 42 [13:01:32]RasterBufferAndPrint [13:01:32]line Счет N : (1)320259 [13:01:32]line ИНН: 02508201610067 [13:01:32]line Контрольно-Кассовый Чек [13:01:32]line ПРОДАЖА [13:01:32]line ТРК (МРК, ГНК) : 11 [13:01:32]line Товар: 2710124130 [13:01:32]line Аи-92-К-5 [13:01:32]line 15.070 * 66.40 [13:01:32]line = 1000.65 [13:01:32]line НДС 12% НСП 1% [13:01:32]line > о реализуемом товаре [13:01:32]line ОКРУГЛЕНИЕ: -0.65 [13:01:32]line ИТОГО: 1000.00 [13:01:32]line Внесено: 1000.00 [13:01:32]line СДАЧА: 0.00 [13:01:32]line НСП 1% : 8.85 [13:01:32]line НДС 12% : 106.26 [13:01:32]line Наличными: 1000.00 [13:01:32]line Безнал.: 0.00 [13:01:32]line Место: АЗС № 65 "Партнер Нефть" [13:01:32]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:01:32]line СНО: Общий режим [13:01:32]line Чек 108 20.06.2024 13:02 [13:01:32]line Смена: 389 ФФД: 1.0 [13:01:32]line ЗНМ: 0300000198 [13:01:32]line РНМ: 0000000000092771 [13:01:32]line Версия ККМ: 001 [13:01:32]line ФМ: 0000000000875083 [13:01:32]line ФД: 111658 [13:01:32]line ФПД: 213575067199778 [13:01:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T130205&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111658&fm=213575067199778&tin=02508201610067®Number=0000000000092771&sum=100000 [13:01:32]written 0, free lines is 4095 [13:01:32]OFD Sender: Processing packet 111658 [packets to send 38, broken 37] [13:01:32]ProducePacketName [13:01:32]name=ofd_packets/00111658 [13:01:32]OFD Sender: To server: pG, [13:01:32]CommunicateWithHost lk.salyk.kg:30040 [13:01:32]ConnectInit lk.salyk.kg [13:01:32]Connected sock=10 [13: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 35 30 38 33 0F 01 00 00 C0 A7 07 01 00 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 4D 28 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2A B4 01 00 35 04 06 00 C2 3E D2 03 69 22 5C 2F 8F C3 F4 BF 21 B0 [13:01:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 9E E2 47 00 13 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 35 30 38 33 10 04 04 00 2A B4 01 00 F4 03 04 00 96 BF 73 66 B6 04 01 00 00 9B ED 02 6A B7 60 15 79 [13:01:32]CommunicateWithHost err = 0 [13:01:32]CheckOFDResponse [13:01:32]1017 (14) - 77093643461234 [13:01:32]1041 (16) - 0000000000875083 [13:01:32]1040 (4) - 111658 [13:01:32]1012 (4) - 20.06.2024 05:35 [13:01:32]1206 (1) - 0 [13:01:32]OFD Sender: Remove packet 111658 [13:01:32]ProducePacketName [13:01:32]name=ofd_packets/00111658 [13:01:32]NVStorageDeleteData [13:01:32]Write to MH i2c: 01 00 00 F6 62 58 [13:01:32]Write i2c OK [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: 01 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: 01 07 00 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: 01 07 00 F6 62 00 00 00 00 00 CC 0C 37 [13:01:32]RasterBufferAndPrint [13:01:32]line [13:01:32]line [13:01:32]line [13:01:32]line [13:01:32]line [13:01:32]written 0, free lines is 3281 [13:01:32]MH_Cut [13:01:32]Write to MH i2c: D1 01 00 FD 62 01 31 [13:01:32]Write i2c OK [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: D1 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: D1 01 00 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: D1 01 00 FD 62 00 30 [13:01:32]Write to MH i2c: 01 00 00 FE 62 60 [13:01:32]Write i2c OK [13:01:32]MH_I2C_Read... [13:01:33]OFD Sender: No OFD packet to send [13:01:33]*** Cut start [13:01:33]*** Partial cut [13:01:33]*** CUTSNS_PIN = 1 [13:01:33]*** CUTSNS_PIN = 0 [13:01:33]*** Brake cut motor [13:01:34]Read from MH i2c: 01 [13:01:34]MH_I2C_Read... [13:01:34]*** Stop cut motor [13:01:34]*** Cut end [13:01:34]Read from MH i2c: 01 07 00 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: 01 07 00 FE 62 00 00 00 00 00 FF 0F 75 [13:01:34]process_action close_receipt done [13:01:34]requested_data is exist [13:01:34]produce_requested_data [13:01:34]requested_item fm.sn is exist - process it [13:01:34]wFMCommunicate request_size=4 [13:01:34]MH_SAM_APDU [13:01:34]CAPDU: 80 11 00 00 [13:01:34]Write to MH i2c: E2 08 00 FF 62 80 11 00 00 00 00 00 00 DB [13:01:34]Write i2c OK [13:01:34]MH_I2C_Read... [13:01:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:34]Read from MH i2c: E2 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: E2 17 00 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: E2 17 00 FF 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2D [13:01:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:01:34]wFMCommunicate OK [13:01:34]requested_item fd.num is exist - process it [13:01:34]SAM_PROTO_GetFieldsCounters [13:01:34]wFMCommunicate request_size=4 [13:01:34]MH_SAM_APDU [13:01:34]CAPDU: 80 13 00 00 [13:01:34]Write to MH i2c: E2 08 00 00 63 80 13 00 00 00 00 00 00 DF [13:01:34]Write i2c OK [13:01:34]MH_I2C_Read... [13:01:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:34]Read from MH i2c: E2 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: E2 62 00 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: E2 62 00 00 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2A B4 01 00 0E 04 04 00 85 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 A9 [13:01:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2A B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:01:34]wFMCommunicate OK [13:01:34]SAM_PROTO_GetFieldsCounters done [13:01:34]requested_item shift.num is exist - process it [13:01:34]requested_item shift.opened is exist - process it [13:01:34]req_shift_opened [13:01:34]FM_GetShiftState [13:01:34]SAM_PROTO_GetShiftState [13:01:34]wFMCommunicate request_size=4 [13:01:34]MH_SAM_APDU [13:01:34]CAPDU: 80 13 01 00 [13:01:34]Write to MH i2c: E2 08 00 01 63 80 13 01 00 00 00 00 00 E1 [13:01:34]Write i2c OK [13:01:34]MH_I2C_Read... [13:01:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:34]Read from MH i2c: E2 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: E2 0E 00 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: E2 0E 00 01 63 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 5C [13:01:34]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:01:34]wFMCommunicate OK [13:01:34]SAM_PROTO_GetShiftState done [13:01:34]FM_GetShiftState done [13:01:34]req_shift_opened done [13:01:34]requested_item shift.open_date is exist - process it [13:01:34]req_shift_open_date [13:01:34]req_shift_open_date done [13:01:34]produce_requested_data done [13:01:34]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111658,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [13:01:34]process_action_free close_receipt [13:01:34]json_value_free [13:01:34]json_value_free done [13:01:34]process_json_proto returns [13:01:34]Send response to host [13:01:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111658,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [13:01:34]free response buf [13:01:34]execute_script done [13:01:34]execute_script returns [13:01:34]free content buf [13:01:34]Sock 7.Close socket [13:01:34]Sock 7.Thread stoped [13:01:38]OFD Sender: No OFD packet to send [13:01:43]OFD Sender: No OFD packet to send [13:01:48]OFD Sender: No OFD packet to send [13:01:53]OFD Sender: No OFD packet to send [13:01:58]OFD Sender: No OFD packet to send [13:02:03]OFD Sender: No OFD packet to send [13:02:08]OFD Sender: No OFD packet to send [13:02:13]OFD Sender: No OFD packet to send [13:02:18]OFD Sender: No OFD packet to send [13:02:23]OFD Sender: No OFD packet to send [13:02:28]OFD Sender: No OFD packet to send [13:02:33]OFD Sender: No OFD packet to send [13:02:38]OFD Sender: No OFD packet to send [13:02:43]OFD Sender: No OFD packet to send [13:02:48]OFD Sender: No OFD packet to send [13:02:52]accept exits with 9 [13:02:52]New connection [13:02:52]New thread 3067465060 created [13:02:52]Thread 3067321700 joined [13:02:52]Waiting for new connection... [13:02:52] Sock 9.Parse request [13:02:52]Sock 9.Check first char [13:02:52]Sock 9.First char is OK [13:02:52]request: POST /json_proto HTTP/1.0 [13:02:52]Method: POST [13:02:52]URL: /json_proto [13:02:52]Method is POST - this is cgi request [13:02:52]url: /json_proto [13:02:52]query_string will be loaded in cgi processing [13:02:52]execute_cgi json_proto POST (null) [13:02:52]execute_cgi path=json_proto method=POST [13:02:52]POST find Content-Length [13:02:52]Host: 172.17.59.68:8080 [13:02:52]Content-Length: 677 [13:02:52]Content-Type: application/json [13:02:52] [13:02:52]POST finish read [13:02:52]Found Content-Length = 677 [13:02:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:52]execute_script... [13:02: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)320260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:52]POST & json_proto [13:02:52]process_json_proto [13:02:52]json parsed OK: [13:02:52]protocol is kg_v1.0 [13:02:52]action value=close_receipt [13:02:52]process_action close_receipt [13:02:52]cmd_close_receipt [13:02:52]MH_GetDate [13:02:52]Write to MH i2c: F0 00 00 02 63 54 [13:02:52]Write i2c OK [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: F0 [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: F0 09 00 [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: F0 09 00 02 63 00 9F 28 74 66 BC EC 60 65 6B [13:02:52]GetLastDocTimeStamp 1718888525 [13:02:52]current date 1718888607 [13:02:52]FM_GetShiftState [13:02:52]SAM_PROTO_GetShiftState [13:02:52]wFMCommunicate request_size=4 [13:02:52]MH_SAM_APDU [13:02:52]CAPDU: 80 13 01 00 [13:02:52]Write to MH i2c: E2 08 00 03 63 80 13 01 00 00 00 00 00 E3 [13:02:52]Write i2c OK [13:02:52]MH_I2C_Read... [13:02:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:52]Read from MH i2c: E2 [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: E2 0E 00 [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: E2 0E 00 03 63 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 5E [13:02:52]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:02:52]wFMCommunicate OK [13:02:52]SAM_PROTO_GetShiftState done [13:02:52]FM_GetShiftState done [13:02:52]opened in 1718847247 [13:02:52]opened+sec_in_day 1718933647 [13:02:52]quantity*price = 30012 [13:02:52]sum+1 = 30014 [13:02:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 109 20.06.2024 13:03 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111659 ФПД: 176414577989596 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T130327&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111659&fm=176414577989596&tin=02508201610067®Number=0000000000092771&sum=30000 [13:02:53]StoreToDocumentArchive [13:02:53]shift 389 fd 111659 [13:02:53]save to /storage/0389/doc_00111659 [13:02:53]save last doc name /storage/0389/doc_00111659 to /storage/kkm_last_doc_name [13:02:53]save OK [13:02:53]Clear old archive folders... [13:02:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:02:53]tlvbuf is 00F640D0 [13:02:53]SAM_PROTO_ClearQueue [13:02:53]wFMCommunicate request_size=4 [13:02:53]MH_SAM_APDU [13:02:53]CAPDU: 80 09 00 00 [13:02:53]Write to MH i2c: E2 08 00 10 63 80 09 00 00 00 00 00 00 E5 [13:02:53]Write i2c OK [13:02:53]MH_I2C_Read... [13:02:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:53]Read from MH i2c: E2 [13:02:53]MH_I2C_Read... [13:02:53]Read from MH i2c: E2 03 00 [13:02:53]MH_I2C_Read... [13:02:53]Read from MH i2c: E2 03 00 10 63 00 90 00 E7 [13:02:53]RAPDU: 90 00 [13:02:53]wFMCommunicate OK [13:02:53]SAM_PROTO_ClearQueue done [13:02:53]KKMCreateOFDPacket [13:02:53]OFDProtocolAddRootSTLVToBuf [13:02:53]FM_MakeSignedData [13:02:53]FM_MakeSignedData [13:02:53]SAM_PROTO_SignData [13:02:53]wFMCommunicate request_size=4 [13:02:53]MH_SAM_APDU [13:02:53]CAPDU: 80 0D 01 02 [13:02:53]Write to MH i2c: E2 08 00 11 63 80 0D 01 02 00 00 00 00 ED [13:02:53]Write i2c OK [13:02:53]MH_I2C_Read... [13:02:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:53]Read from MH i2c: E2 [13:02:53]MH_I2C_Read... [13:02:53]Read from MH i2c: E2 03 00 [13:02:53]MH_I2C_Read... [13:02:53]Read from MH i2c: E2 03 00 11 63 00 90 00 E8 [13:02:53]RAPDU: 90 00 [13:02:53]wFMCommunicate OK [13:02:53]wFMCommunicate request_size=255 [13:02:53]MH_SAM_APDU [13:02: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 9F 28 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2B B4 01 00 35 04 06 00 A0 [13:02:53]Write to MH i2c: E2 02 01 12 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 9F 28 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2B B4 01 00 35 04 06 00 A0 00 00 53 [13:02:53]Write i2c OK [13:02:53]MH_I2C_Read... [13:02:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:53]Read from MH i2c: E2 [13:02:53]MH_I2C_Read... [13:02:53]Read from MH i2c: E2 03 00 [13:02:53]MH_I2C_Read... [13:02:53]Read from MH i2c: E2 03 00 12 63 00 90 00 E9 [13:02:53]RAPDU: 90 00 [13:02:53]wFMCommunicate OK [13:02:53]wFMCommunicate request_size=10 [13:02:53]MH_SAM_APDU [13:02:53]CAPDU: 80 0D 02 02 05 72 B8 41 17 DC [13:02:53]Write to MH i2c: E2 0D 00 13 63 80 0D 02 02 05 00 72 B8 41 17 DC 00 00 58 [13:02:53]Write i2c OK [13:02:53]MH_I2C_Read... [13:02:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:54]Read from MH i2c: E2 [13:02:54]MH_I2C_Read... [13:02:54]Read from MH i2c: E2 03 00 [13:02:54]MH_I2C_Read... [13:02:54]Read from MH i2c: E2 03 00 13 63 00 90 00 EA [13:02:54]RAPDU: 90 00 [13:02:54]wFMCommunicate OK [13:02:54]wFMCommunicate request_size=4 [13:02:54]MH_SAM_APDU [13:02:54]CAPDU: 80 0D 03 02 [13:02:54]Write to MH i2c: E2 08 00 14 63 80 0D 03 02 00 00 00 00 F2 [13:02:54]Write i2c OK [13:02:54]MH_I2C_Read... [13:02:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:54]Read from MH i2c: E2 [13:02:54]MH_I2C_Read... [13:02:54]Read from MH i2c: E2 0B 00 [13:02:54]MH_I2C_Read... [13:02:54]Read from MH i2c: E2 0B 00 14 63 00 76 0C 3F 6A 4C 8D 99 38 90 00 C8 [13:02:54]RAPDU: 76 0C 3F 6A 4C 8D 99 38 90 00 [13:02:54]wFMCommunicate OK [13:02:54]SAM_PROTO_SignData done [13:02:54]FM_MakeSignedData done [13:02:54]CreateOFDProtocolMessage [13:02:54]wFMCommunicate request_size=4 [13:02:54]MH_SAM_APDU [13:02:54]CAPDU: 80 11 00 00 [13:02:54]Write to MH i2c: E2 08 00 15 63 80 11 00 00 00 00 00 00 F2 [13:02:54]Write i2c OK [13:02:54]MH_I2C_Read... [13:02:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:54]Read from MH i2c: E2 [13:02:54]MH_I2C_Read... [13:02:54]Read from MH i2c: E2 17 00 [13:02:54]MH_I2C_Read... [13:02:54]Read from MH i2c: E2 17 00 15 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 44 [13:02:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:02:54]wFMCommunicate OK [13:02:54]CreateOFDProtocolMessage done [13:02:54]OFDSenderStorePacket 111659 [13:02:54]StoreOFDPacket docnum=111659 [13:02:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 30 C4 07 01 C5 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 9F 28 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2B B4 01 00 35 04 06 00 A0 72 B8 41 17 DC 76 0C 3F 6A 4C 8D 99 38 [13:02:54]CheckFolder [13:02:54]dirname=/storage/ofd_packets [13:02:54]CheckFolder done [13:02:54]ProducePacketName [13:02:54]name=ofd_packets/00111659 [13:02:54]NVStorageSaveData ofd_packets/00111659 [13:02:54]File name is /storage/ofd_packets/00111659 [13:02:54]Write 301 bytes [13:02:54]NVStorageSaveData done [13:02:54]OFDSenderStorePacket done [13:02:54]KKMCreateOFDPacket done [13:02:54]NVStorageSaveData kkm_last_timestamp [13:02:54]File name is /storage/kkm_last_timestamp [13:02:54]Write 4 bytes [13:02:54]NVStorageSaveData done [13:02:54]ExternCall_PrintAddStr [13:02:54]wPrintStart [13:02:54]Write to MH i2c: 01 00 00 16 63 79 [13:02:54]Write i2c OK [13:02:54]MH_I2C_Read... [13:02:54]Read from MH i2c: 01 [13:02:54]MH_I2C_Read... [13:02:54]Read from MH i2c: 01 07 00 [13:02:54]MH_I2C_Read... [13:02:54]Read from MH i2c: 01 07 00 16 63 00 00 00 00 00 FF 0F 8E [13:02:54]RasterBufferAndPrint [13:02:54]line Счет N : (1)320260 [13:02:54]line ИНН: 02508201610067 [13:02:54]line Контрольно-Кассовый Чек [13:02:54]line ПРОДАЖА [13:02:54]line ТРК (МРК, ГНК) : 11 [13:02:54]line Товар: 2710124130 [13:02:54]line Аи-92-К-5 [13:02:54]line 4.520 * 66.40 [13:02:54]line = 300.13 [13:02:54]line НДС 12% НСП 1% [13:02:54]line > о реализуемом товаре [13:02:54]line ОКРУГЛЕНИЕ: -0.13 [13:02:54]line ИТОГО: 300.00 [13:02:54]line Внесено: 300.00 [13:02:54]line СДАЧА: 0.00 [13:02:54]line НСП 1% : 2.66 [13:02:54]line НДС 12% : 31.87 [13:02:54]line Наличными: 300.00 [13:02:54]line Безнал.: 0.00 [13:02:54]line Место: АЗС № 65 "Партнер Нефть" [13:02:54]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:02:54]line СНО: Общий режим [13:02:54]line Чек 109 20.06.2024 13:03 [13:02:54]line Смена: 389 ФФД: 1.0 [13:02:54]line ЗНМ: 0300000198 [13:02:54]line РНМ: 0000000000092771 [13:02:54]line Версия ККМ: 001 [13:02:54]line ФМ: 0000000000875083 [13:02:54]line ФД: 111659 [13:02:54]line ФПД: 176414577989596 [13:02:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T130327&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111659&fm=176414577989596&tin=02508201610067®Number=0000000000092771&sum=30000 [13:02:54]OFD Sender: Processing packet 111659 [packets to send 38, broken 37] [13:02:54]ProducePacketName [13:02:54]name=ofd_packets/00111659 [13:02:54]OFD Sender: To server: pG, [13:02:54]CommunicateWithHost lk.salyk.kg:30040 [13:02:54]ConnectInit lk.salyk.kg [13:02:54]written 0, free lines is 4095 [13:02:54]Connected sock=10 [13:02:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 30 C4 07 01 C5 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 9F 28 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2B B4 01 00 35 04 06 00 A0 72 B8 41 17 DC 76 0C 3F 6A 4C 8D 99 38 [13:02:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A3 5E 47 00 8D 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 35 30 38 33 10 04 04 00 2B B4 01 00 F4 03 04 00 E9 BF 73 66 B6 04 01 00 00 F8 1B FE 3F 10 30 96 18 [13:02:54]CommunicateWithHost err = 0 [13:02:54]CheckOFDResponse [13:02:54]1017 (14) - 77093643461234 [13:02:54]1041 (16) - 0000000000875083 [13:02:54]1040 (4) - 111659 [13:02:54]1012 (4) - 20.06.2024 05:36 [13:02:54]1206 (1) - 0 [13:02:54]OFD Sender: Remove packet 111659 [13:02:54]ProducePacketName [13:02:54]name=ofd_packets/00111659 [13:02:54]NVStorageDeleteData [13:02:54]Write to MH i2c: 01 00 00 41 63 A4 [13:02:54]Write i2c OK [13:02:54]MH_I2C_Read... [13:02:54]Read from MH i2c: 01 [13:02:54]MH_I2C_Read... [13:02:54]Read from MH i2c: 01 07 00 [13:02:54]MH_I2C_Read... [13:02:54]Read from MH i2c: 01 07 00 41 63 00 00 00 00 00 CC 0C 83 [13:02:54]RasterBufferAndPrint [13:02:54]line [13:02:54]line [13:02:54]line [13:02:54]line [13:02:54]line [13:02:54]written 0, free lines is 3282 [13:02:54]MH_Cut [13:02:54]Write to MH i2c: D1 01 00 48 63 01 7D [13:02:54]Write i2c OK [13:02:54]MH_I2C_Read... [13:02:54]Read from MH i2c: D1 [13:02:54]MH_I2C_Read... [13:02:54]Read from MH i2c: D1 01 00 [13:02:54]MH_I2C_Read... [13:02:54]Read from MH i2c: D1 01 00 48 63 00 7C [13:02:54]Write to MH i2c: 01 00 00 49 63 AC [13:02:54]Write i2c OK [13:02:54]MH_I2C_Read... [13:02:55]OFD Sender: No OFD packet to send [13:02:55]*** Cut start [13:02:55]*** Partial cut [13:02:55]*** CUTSNS_PIN = 1 [13:02:55]*** CUTSNS_PIN = 0 [13:02:55]*** Brake cut motor [13:02:56]Read from MH i2c: 01 [13:02:56]MH_I2C_Read... [13:02:56]*** Stop cut motor [13:02:56]*** Cut end [13:02:56]Read from MH i2c: 01 07 00 [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: 01 07 00 49 63 00 00 00 00 00 FF 0F C1 [13:02:56]process_action close_receipt done [13:02:56]requested_data is exist [13:02:56]produce_requested_data [13:02:56]requested_item fm.sn is exist - process it [13:02:56]wFMCommunicate request_size=4 [13:02:56]MH_SAM_APDU [13:02:56]CAPDU: 80 11 00 00 [13:02:56]Write to MH i2c: E2 08 00 4A 63 80 11 00 00 00 00 00 00 27 [13:02:56]Write i2c OK [13:02:56]MH_I2C_Read... [13:02:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:56]Read from MH i2c: E2 [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: E2 17 00 [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: E2 17 00 4A 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 79 [13:02:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:02:56]wFMCommunicate OK [13:02:56]requested_item fd.num is exist - process it [13:02:56]SAM_PROTO_GetFieldsCounters [13:02:56]wFMCommunicate request_size=4 [13:02:56]MH_SAM_APDU [13:02:56]CAPDU: 80 13 00 00 [13:02:56]Write to MH i2c: E2 08 00 4B 63 80 13 00 00 00 00 00 00 2A [13:02:56]Write i2c OK [13:02:56]MH_I2C_Read... [13:02:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:56]Read from MH i2c: E2 [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: E2 62 00 [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: E2 62 00 4B 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2B B4 01 00 0E 04 04 00 85 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 F8 [13:02:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2B B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:02:56]wFMCommunicate OK [13:02:56]SAM_PROTO_GetFieldsCounters done [13:02:56]requested_item shift.num is exist - process it [13:02:56]requested_item shift.opened is exist - process it [13:02:56]req_shift_opened [13:02:56]FM_GetShiftState [13:02:56]SAM_PROTO_GetShiftState [13:02:56]wFMCommunicate request_size=4 [13:02:56]MH_SAM_APDU [13:02:56]CAPDU: 80 13 01 00 [13:02:56]Write to MH i2c: E2 08 00 4C 63 80 13 01 00 00 00 00 00 2C [13:02:56]Write i2c OK [13:02:56]MH_I2C_Read... [13:02:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:56]Read from MH i2c: E2 [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: E2 0E 00 [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: E2 0E 00 4C 63 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 A7 [13:02:56]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:02:56]wFMCommunicate OK [13:02:56]SAM_PROTO_GetShiftState done [13:02:56]FM_GetShiftState done [13:02:56]req_shift_opened done [13:02:56]requested_item shift.open_date is exist - process it [13:02:56]req_shift_open_date [13:02:56]req_shift_open_date done [13:02:56]produce_requested_data done [13:02:56]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111659,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [13:02:56]process_action_free close_receipt [13:02:56]json_value_free [13:02:56]json_value_free done [13:02:56]process_json_proto returns [13:02:56]Send response to host [13:02:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111659,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [13:02:56]free response buf [13:02:56]execute_script done [13:02:56]execute_script returns [13:02:56]free content buf [13:02:56]Sock 9.Close socket [13:02:56]Sock 9.Thread stoped [13:03:00]OFD Sender: No OFD packet to send [13:03:05]OFD Sender: No OFD packet to send [13:03:10]OFD Sender: No OFD packet to send [13:03:15]OFD Sender: No OFD packet to send [13:03:20]OFD Sender: No OFD packet to send [13:03:25]OFD Sender: No OFD packet to send [13:03:30]OFD Sender: No OFD packet to send [13:03:35]OFD Sender: No OFD packet to send [13:03:40]OFD Sender: No OFD packet to send [13:03:45]OFD Sender: No OFD packet to send [13:03:50]OFD Sender: No OFD packet to send [13:03:55]OFD Sender: No OFD packet to send [13:04:00]OFD Sender: No OFD packet to send [13:04:05]OFD Sender: No OFD packet to send [13:04:10]OFD Sender: No OFD packet to send [13:04:15]OFD Sender: No OFD packet to send [13:04:20]OFD Sender: No OFD packet to send [13:04:25]OFD Sender: No OFD packet to send [13:04:30]OFD Sender: No OFD packet to send [13:04:35]OFD Sender: No OFD packet to send [13:04:40]OFD Sender: No OFD packet to send [13:04:45]OFD Sender: No OFD packet to send [13:04:50]OFD Sender: No OFD packet to send [13:04:55]OFD Sender: No OFD packet to send [13:05:00]OFD Sender: No OFD packet to send [13:05:05]OFD Sender: No OFD packet to send [13:05:10]OFD Sender: No OFD packet to send [13:05:15]OFD Sender: No OFD packet to send [13:05:20]OFD Sender: No OFD packet to send [13:05:25]OFD Sender: No OFD packet to send [13:05:30]OFD Sender: No OFD packet to send [13:05:35]OFD Sender: No OFD packet to send [13:05:40]OFD Sender: No OFD packet to send [13:05:45]OFD Sender: No OFD packet to send [13:05:50]OFD Sender: No OFD packet to send [13:05:55]OFD Sender: No OFD packet to send [13:06:00]OFD Sender: No OFD packet to send [13:06:05]OFD Sender: No OFD packet to send [13:06:10]OFD Sender: No OFD packet to send [13:06:12]accept exits with 7 [13:06:12]New connection [13:06:12]New thread 3067321700 created [13:06:12]Thread 3067465060 joined [13:06:12]Waiting for new connection... [13:06:12] Sock 7.Parse request [13:06:12]Sock 7.Check first char [13:06:12]Sock 7.First char is OK [13:06:12]request: POST /json_proto HTTP/1.0 [13:06:12]Method: POST [13:06:12]URL: /json_proto [13:06:12]Method is POST - this is cgi request [13:06:12]url: /json_proto [13:06:12]query_string will be loaded in cgi processing [13:06:12]execute_cgi json_proto POST (null) [13:06:12]execute_cgi path=json_proto method=POST [13:06:12]POST find Content-Length [13:06:12]Host: 172.17.59.68:8080 [13:06:12]Content-Length: 1212 [13:06:12]Content-Type: application/json [13:06:12] [13:06:12]POST finish read [13:06:12]Found Content-Length = 1212 [13:06:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0435\u0439\u0448\u0435\u043D\u0431\u0435\u043A\u043E\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)320261\u000A20.06.2024 11:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01591\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:12]execute_script... [13:06:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0435\u0439\u0448\u0435\u043D\u0431\u0435\u043A\u043E\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)320261\u000A20.06.2024 11:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01591\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:12]POST & json_proto [13:06:12]process_json_proto [13:06:12]json parsed OK: [13:06:12]protocol is kg_v1.0 [13:06:12]action value=print_text [13:06:12]process_action print_text [13:06:12]cmd_print_text [13:06:12]ExternCall_PrintAddStr [13:06:12]wPrintStart [13:06:12]Write to MH i2c: 01 00 00 4D 63 B0 [13:06:12]Write i2c OK [13:06:12]MH_I2C_Read... [13:06:12]Read from MH i2c: 01 [13:06:12]MH_I2C_Read... [13:06:12]Read from MH i2c: 01 07 00 [13:06:12]MH_I2C_Read... [13:06:12]Read from MH i2c: 01 07 00 4D 63 00 00 00 00 00 FF 0F C5 [13:06:12]RasterBufferAndPrint [13:06:12]line *****ТОВАРНЫЙ ЧЕК***** [13:06:12]line АЗС 65 [13:06:12]line Партнер нефть [13:06:12]line 02508201610067 [13:06:12]line Кассир : Бейшенбеков А. [13:06:12]line Счет N : (1)320261 [13:06:12]line 20.06.2024 11:34 [13:06:12]line ПРОДАЖА [13:06:12]line ТРК (МРК, ГНК): 11 [13:06:12]line Вид ГСМ : 2710124130 [13:06:12]line Аи-92-К-5 [13:06:12]line 10.000 x 66.40 [13:06:12]line ИТОГ: 664.00 [13:06:12]line Тип оплаты: Талоны: Топливная Карта [13:06:12]line 01591 [13:06:12]line ______________________ [13:06:12]line (подпись) [13:06:12]written 0, free lines is 4095 [13:06:12]Write to MH i2c: 01 00 00 62 63 C5 [13:06:12]Write i2c OK [13:06:12]MH_I2C_Read... [13:06:12]Read from MH i2c: 01 [13:06:12]MH_I2C_Read... [13:06:12]Read from MH i2c: 01 07 00 [13:06:12]MH_I2C_Read... [13:06:12]Read from MH i2c: 01 07 00 62 63 00 00 00 00 00 F3 0D CC [13:06:12]RasterBufferAndPrint [13:06:12]line [13:06:12]line [13:06:12]line [13:06:12]line [13:06:12]line [13:06:12]written 0, free lines is 3572 [13:06:12]MH_Cut [13:06:12]Write to MH i2c: D1 01 00 69 63 01 9E [13:06:12]Write i2c OK [13:06:12]MH_I2C_Read... [13:06:12]Read from MH i2c: D1 [13:06:12]MH_I2C_Read... [13:06:12]Read from MH i2c: D1 01 00 [13:06:12]MH_I2C_Read... [13:06:12]Read from MH i2c: D1 01 00 69 63 00 9D [13:06:12]Write to MH i2c: 01 00 00 6A 63 CD [13:06:12]Write i2c OK [13:06:12]MH_I2C_Read... [13:06:13]*** Cut start [13:06:13]*** Partial cut [13:06:13]*** CUTSNS_PIN = 1 [13:06:13]*** CUTSNS_PIN = 0 [13:06:13]*** Brake cut motor [13:06:13]Read from MH i2c: 01 [13:06:13]MH_I2C_Read... [13:06:13]*** Stop cut motor [13:06:13]*** Cut end [13:06:13]Read from MH i2c: 01 07 00 [13:06:13]MH_I2C_Read... [13:06:13]Read from MH i2c: 01 07 00 6A 63 00 00 00 00 00 FF 0F E2 [13:06:13]process_action print_text done [13:06:13]requested_data is exist [13:06:13]produce_requested_data [13:06:13]requested_item fm.sn is exist - process it [13:06:13]wFMCommunicate request_size=4 [13:06:13]MH_SAM_APDU [13:06:13]CAPDU: 80 11 00 00 [13:06:13]Write to MH i2c: E2 08 00 6B 63 80 11 00 00 00 00 00 00 48 [13:06:13]Write i2c OK [13:06:13]MH_I2C_Read... [13:06:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:13]Read from MH i2c: E2 [13:06:13]MH_I2C_Read... [13:06:13]Read from MH i2c: E2 17 00 [13:06:13]MH_I2C_Read... [13:06:13]Read from MH i2c: E2 17 00 6B 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9A [13:06:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:06:13]wFMCommunicate OK [13:06:13]requested_item fd.num is exist - process it [13:06:13]SAM_PROTO_GetFieldsCounters [13:06:13]wFMCommunicate request_size=4 [13:06:13]MH_SAM_APDU [13:06:13]CAPDU: 80 13 00 00 [13:06:13]Write to MH i2c: E2 08 00 6C 63 80 13 00 00 00 00 00 00 4B [13:06:13]Write i2c OK [13:06:13]MH_I2C_Read... [13:06:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:06:13]Read from MH i2c: E2 [13:06:13]MH_I2C_Read... [13:06:13]Read from MH i2c: E2 62 00 [13:06:13]MH_I2C_Read... [13:06:13]Read from MH i2c: E2 62 00 6C 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2B B4 01 00 0E 04 04 00 85 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 19 [13:06:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2B B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:06:13]wFMCommunicate OK [13:06:13]SAM_PROTO_GetFieldsCounters done [13:06:13]requested_item shift.num is exist - process it [13:06:13]requested_item shift.opened is exist - process it [13:06:13]req_shift_opened [13:06:13]FM_GetShiftState [13:06:13]SAM_PROTO_GetShiftState [13:06:13]wFMCommunicate request_size=4 [13:06:13]MH_SAM_APDU [13:06:13]CAPDU: 80 13 01 00 [13:06:13]Write to MH i2c: E2 08 00 6D 63 80 13 01 00 00 00 00 00 4D [13:06:13]Write i2c OK [13:06:13]MH_I2C_Read... [13:06:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:14]Read from MH i2c: E2 [13:06:14]MH_I2C_Read... [13:06:14]Read from MH i2c: E2 0E 00 [13:06:14]MH_I2C_Read... [13:06:14]Read from MH i2c: E2 0E 00 6D 63 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 C8 [13:06:14]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:06:14]wFMCommunicate OK [13:06:14]SAM_PROTO_GetShiftState done [13:06:14]FM_GetShiftState done [13:06:14]req_shift_opened done [13:06:14]requested_item shift.open_date is exist - process it [13:06:14]req_shift_open_date [13:06:14]req_shift_open_date done [13:06:14]produce_requested_data done [13:06:14]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111659,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [13:06:14]process_action_free print_text [13:06:14]json_value_free [13:06:14]json_value_free done [13:06:14]process_json_proto returns [13:06:14]Send response to host [13:06:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111659,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [13:06:14]free response buf [13:06:14]execute_script done [13:06:14]execute_script returns [13:06:14]free content buf [13:06:14]Sock 7.Close socket [13:06:14]Sock 7.Thread stoped [13:06:15]OFD Sender: No OFD packet to send [13:06:20]OFD Sender: No OFD packet to send [13:06:25]OFD Sender: No OFD packet to send [13:06:30]OFD Sender: No OFD packet to send [13:06:35]OFD Sender: No OFD packet to send [13:06:40]OFD Sender: No OFD packet to send [13:06:45]OFD Sender: No OFD packet to send [13:06:50]OFD Sender: No OFD packet to send [13:06:55]OFD Sender: No OFD packet to send [13:07:00]OFD Sender: No OFD packet to send [13:07:05]OFD Sender: No OFD packet to send [13:07:10]OFD Sender: No OFD packet to send [13:07:15]OFD Sender: No OFD packet to send [13:07:20]OFD Sender: No OFD packet to send [13:07:25]OFD Sender: No OFD packet to send [13:07:30]OFD Sender: No OFD packet to send [13:07:35]OFD Sender: No OFD packet to send [13:07:40]OFD Sender: No OFD packet to send [13:07:45]OFD Sender: No OFD packet to send [13:07:50]OFD Sender: No OFD packet to send [13:07:55]OFD Sender: No OFD packet to send [13:08:00]OFD Sender: No OFD packet to send [13:08:05]OFD Sender: No OFD packet to send [13:08:10]OFD Sender: No OFD packet to send [13:08:15]OFD Sender: No OFD packet to send [13:08:20]OFD Sender: No OFD packet to send [13:08:25]OFD Sender: No OFD packet to send [13:08:30]OFD Sender: No OFD packet to send [13:08:35]OFD Sender: No OFD packet to send [13:08:40]OFD Sender: No OFD packet to send [13:08:45]OFD Sender: No OFD packet to send [13:08:50]OFD Sender: No OFD packet to send [13:08:55]OFD Sender: No OFD packet to send [13:09:00]OFD Sender: No OFD packet to send [13:09:05]OFD Sender: No OFD packet to send [13:09:10]OFD Sender: No OFD packet to send [13:09:15]OFD Sender: No OFD packet to send [13:09:20]OFD Sender: No OFD packet to send [13:09:25]OFD Sender: No OFD packet to send [13:09:30]OFD Sender: No OFD packet to send [13:09:35]OFD Sender: No OFD packet to send [13:09:40]OFD Sender: No OFD packet to send [13:09:45]OFD Sender: No OFD packet to send [13:09:50]OFD Sender: No OFD packet to send [13:09:55]OFD Sender: No OFD packet to send [13:10:00]OFD Sender: No OFD packet to send [13:10:05]OFD Sender: No OFD packet to send [13:10:10]OFD Sender: No OFD packet to send [13:10:15]OFD Sender: No OFD packet to send [13:10:20]OFD Sender: No OFD packet to send [13:10:25]OFD Sender: No OFD packet to send [13:10:30]OFD Sender: No OFD packet to send [13:10:35]OFD Sender: No OFD packet to send [13:10:40]OFD Sender: No OFD packet to send [13:10:45]OFD Sender: No OFD packet to send [13:10:50]OFD Sender: No OFD packet to send [13:10:55]OFD Sender: No OFD packet to send [13:11:00]OFD Sender: No OFD packet to send [13:11:05]OFD Sender: No OFD packet to send [13:11:10]OFD Sender: No OFD packet to send [13:11:13]accept exits with 9 [13:11:13]New connection [13:11:13]New thread 3067465060 created [13:11:13]Thread 3067321700 joined [13:11:13]Waiting for new connection... [13:11:13] Sock 9.Parse request [13:11:13]Sock 9.Check first char [13:11:13]Sock 9.First char is OK [13:11:13]request: POST /json_proto HTTP/1.0 [13:11:13]Method: POST [13:11:13]URL: /json_proto [13:11:13]Method is POST - this is cgi request [13:11:13]url: /json_proto [13:11:13]query_string will be loaded in cgi processing [13:11:13]execute_cgi json_proto POST (null) [13:11:13]execute_cgi path=json_proto method=POST [13:11:13]POST find Content-Length [13:11:13]Host: 172.17.59.68:8080 [13:11:13]Content-Length: 805 [13:11:13]Content-Type: application/json [13:11:13] [13:11:13]POST finish read [13:11:13]Found Content-Length = 805 [13:11:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.760, "sum" : 515.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 515.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:13]execute_script... [13:11: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)320262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.760, "sum" : 515.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 515.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:13]POST & json_proto [13:11:13]process_json_proto [13:11:13]json parsed OK: [13:11:13]protocol is kg_v1.0 [13:11:13]action value=close_receipt [13:11:13]process_action close_receipt [13:11:13]cmd_close_receipt [13:11:13]MH_GetDate [13:11:13]Write to MH i2c: F0 00 00 6E 63 C0 [13:11:13]Write i2c OK [13:11:13]MH_I2C_Read... [13:11:13]Read from MH i2c: F0 [13:11:13]MH_I2C_Read... [13:11:13]Read from MH i2c: F0 09 00 [13:11:13]MH_I2C_Read... [13:11:13]Read from MH i2c: F0 09 00 6E 63 00 94 2A 74 66 BC EC 60 65 CE [13:11:13]GetLastDocTimeStamp 1718888607 [13:11:13]current date 1718889108 [13:11:13]FM_GetShiftState [13:11:13]SAM_PROTO_GetShiftState [13:11:13]wFMCommunicate request_size=4 [13:11:13]MH_SAM_APDU [13:11:13]CAPDU: 80 13 01 00 [13:11:13]Write to MH i2c: E2 08 00 6F 63 80 13 01 00 00 00 00 00 4F [13:11:13]Write i2c OK [13:11:13]MH_I2C_Read... [13:11:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:13]Read from MH i2c: E2 [13:11:13]MH_I2C_Read... [13:11:13]Read from MH i2c: E2 0E 00 [13:11:13]MH_I2C_Read... [13:11:13]Read from MH i2c: E2 0E 00 6F 63 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 CA [13:11:13]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:11:13]wFMCommunicate OK [13:11:13]SAM_PROTO_GetShiftState done [13:11:13]FM_GetShiftState done [13:11:13]opened in 1718847247 [13:11:13]opened+sec_in_day 1718933647 [13:11:13]quantity*price = 51526 [13:11:13]sum+1 = 51527 [13:11:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 515.26 НСП 1% : 4.56 НДС 12% : 54.72 Наличными: 0.00 Безнал.: 515.26 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 110 20.06.2024 13:11 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111660 ФПД: 133463775789204 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T131148&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111660&fm=133463775789204&tin=02508201610067®Number=0000000000092771&sum=51526 [13:11:14]StoreToDocumentArchive [13:11:14]shift 389 fd 111660 [13:11:14]save to /storage/0389/doc_00111660 [13:11:14]save last doc name /storage/0389/doc_00111660 to /storage/kkm_last_doc_name [13:11:14]save OK [13:11:14]Clear old archive folders... [13:11:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:11:14]tlvbuf is 00F08000 [13:11:14]SAM_PROTO_ClearQueue [13:11:14]wFMCommunicate request_size=4 [13:11:14]MH_SAM_APDU [13:11:14]CAPDU: 80 09 00 00 [13:11:14]Write to MH i2c: E2 08 00 7C 63 80 09 00 00 00 00 00 00 51 [13:11:14]Write i2c OK [13:11:14]MH_I2C_Read... [13:11:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:14]Read from MH i2c: E2 [13:11:14]MH_I2C_Read... [13:11:14]Read from MH i2c: E2 03 00 [13:11:14]MH_I2C_Read... [13:11:14]Read from MH i2c: E2 03 00 7C 63 00 90 00 53 [13:11:14]RAPDU: 90 00 [13:11:14]wFMCommunicate OK [13:11:14]SAM_PROTO_ClearQueue done [13:11:14]KKMCreateOFDPacket [13:11:14]OFDProtocolAddRootSTLVToBuf [13:11:14]FM_MakeSignedData [13:11:14]FM_MakeSignedData [13:11:14]SAM_PROTO_SignData [13:11:14]wFMCommunicate request_size=4 [13:11:14]MH_SAM_APDU [13:11:14]CAPDU: 80 0D 01 02 [13:11:14]Write to MH i2c: E2 08 00 7D 63 80 0D 01 02 00 00 00 00 59 [13:11:14]Write i2c OK [13:11:14]MH_I2C_Read... [13:11:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:14]Read from MH i2c: E2 [13:11:14]MH_I2C_Read... [13:11:14]Read from MH i2c: E2 03 00 [13:11:14]MH_I2C_Read... [13:11:14]Read from MH i2c: E2 03 00 7D 63 00 90 00 54 [13:11:14]RAPDU: 90 00 [13:11:14]wFMCommunicate OK [13:11:14]wFMCommunicate request_size=255 [13:11:14]MH_SAM_APDU [13:11:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 1E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 46 C9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 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 00 00 00 00 00 00 39 04 06 00 46 C9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 94 2A 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2C B4 01 00 35 04 06 00 79 [13:11:14]Write to MH i2c: E2 02 01 7E 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 1E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 46 C9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 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 00 00 00 00 00 00 39 04 06 00 46 C9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 94 2A 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2C B4 01 00 35 04 06 00 79 00 00 2B [13:11:14]Write i2c OK [13:11:14]MH_I2C_Read... [13:11:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:14]Read from MH i2c: E2 [13:11:14]MH_I2C_Read... [13:11:14]Read from MH i2c: E2 03 00 [13:11:14]MH_I2C_Read... [13:11:14]Read from MH i2c: E2 03 00 7E 63 00 90 00 55 [13:11:14]RAPDU: 90 00 [13:11:14]wFMCommunicate OK [13:11:14]wFMCommunicate request_size=10 [13:11:14]MH_SAM_APDU [13:11:14]CAPDU: 80 0D 02 02 05 62 74 F2 40 94 [13:11:14]Write to MH i2c: E2 0D 00 7F 63 80 0D 02 02 05 00 62 74 F2 40 94 00 00 02 [13:11:14]Write i2c OK [13:11:14]MH_I2C_Read... [13:11:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:14]Read from MH i2c: E2 [13:11:14]MH_I2C_Read... [13:11:14]Read from MH i2c: E2 03 00 [13:11:14]MH_I2C_Read... [13:11:14]Read from MH i2c: E2 03 00 7F 63 00 90 00 56 [13:11:14]RAPDU: 90 00 [13:11:14]wFMCommunicate OK [13:11:14]wFMCommunicate request_size=4 [13:11:14]MH_SAM_APDU [13:11:14]CAPDU: 80 0D 03 02 [13:11:14]Write to MH i2c: E2 08 00 80 63 80 0D 03 02 00 00 00 00 5E [13:11:14]Write i2c OK [13:11:14]MH_I2C_Read... [13:11:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:15]Read from MH i2c: E2 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: E2 0B 00 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: E2 0B 00 80 63 00 35 52 3E CC 74 F7 FA E3 90 00 38 [13:11:15]RAPDU: 35 52 3E CC 74 F7 FA E3 90 00 [13:11:15]wFMCommunicate OK [13:11:15]SAM_PROTO_SignData done [13:11:15]FM_MakeSignedData done [13:11:15]CreateOFDProtocolMessage [13:11:15]wFMCommunicate request_size=4 [13:11:15]MH_SAM_APDU [13:11:15]CAPDU: 80 11 00 00 [13:11:15]Write to MH i2c: E2 08 00 81 63 80 11 00 00 00 00 00 00 5E [13:11:15]Write i2c OK [13:11:15]MH_I2C_Read... [13:11:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:15]Read from MH i2c: E2 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: E2 17 00 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: E2 17 00 81 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B0 [13:11:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:11:15]wFMCommunicate OK [13:11:15]CreateOFDProtocolMessage done [13:11:15]OFDSenderStorePacket 111660 [13:11:15]StoreOFDPacket docnum=111660 [13:11:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C7 27 07 01 93 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 1E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 46 C9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 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 00 00 00 00 00 00 39 04 06 00 46 C9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 94 2A 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2C B4 01 00 35 04 06 00 79 62 74 F2 40 94 35 52 3E CC 74 F7 FA E3 [13:11:15]CheckFolder [13:11:15]dirname=/storage/ofd_packets [13:11:15]CheckFolder done [13:11:15]ProducePacketName [13:11:15]name=ofd_packets/00111660 [13:11:15]NVStorageSaveData ofd_packets/00111660 [13:11:15]File name is /storage/ofd_packets/00111660 [13:11:15]Write 301 bytes [13:11:15]NVStorageSaveData done [13:11:15]OFDSenderStorePacket done [13:11:15]KKMCreateOFDPacket done [13:11:15]NVStorageSaveData kkm_last_timestamp [13:11:15]File name is /storage/kkm_last_timestamp [13:11:15]Write 4 bytes [13:11:15]NVStorageSaveData done [13:11:15]ExternCall_PrintAddStr [13:11:15]wPrintStart [13:11:15]Write to MH i2c: 01 00 00 82 63 E5 [13:11:15]Write i2c OK [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: 01 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: 01 07 00 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: 01 07 00 82 63 00 00 00 00 00 FF 0F FA [13:11:15]RasterBufferAndPrint [13:11:15]line Счет N : (1)320262 [13:11:15]line ИНН: 02508201610067 [13:11:15]line Контрольно-Кассовый Чек [13:11:15]line ПРОДАЖА [13:11:15]line ТРК (МРК, ГНК) : 11 [13:11:15]line Товар: 2710124130 [13:11:15]line Аи-92-К-5 [13:11:15]line 7.760 * 66.40 [13:11:15]line = 515.26 [13:11:15]line НДС 12% НСП 1% [13:11:15]line > о реализуемом товаре [13:11:15]line ИТОГО: 515.26 [13:11:15]line НСП 1% : 4.56 [13:11:15]line НДС 12% : 54.72 [13:11:15]line Наличными: 0.00 [13:11:15]line Безнал.: 515.26 [13:11:15]line Место: АЗС № 65 "Партнер Нефть" [13:11:15]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:11:15]line СНО: Общий режим [13:11:15]line Чек 110 20.06.2024 13:11 [13:11:15]line Смена: 389 ФФД: 1.0 [13:11:15]line ЗНМ: 0300000198 [13:11:15]line РНМ: 0000000000092771 [13:11:15]line Версия ККМ: 001 [13:11:15]line Платежная система: О! деньги [13:11:15]line ФМ: 0000000000875083 [13:11:15]line ФД: 111660 [13:11:15]line ФПД: 133463775789204 [13:11:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T131148&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111660&fm=133463775789204&tin=02508201610067®Number=0000000000092771&sum=51526 [13:11:15]written 0, free lines is 4095 [13:11:15]OFD Sender: Processing packet 111660 [packets to send 38, broken 37] [13:11:15]ProducePacketName [13:11:15]name=ofd_packets/00111660 [13:11:15]OFD Sender: To server: pG, [13:11:15]CommunicateWithHost lk.salyk.kg:30040 [13:11:15]ConnectInit lk.salyk.kg [13:11:15]Connected sock=10 [13:11:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C7 27 07 01 93 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 1E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 46 C9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 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 00 00 00 00 00 00 39 04 06 00 46 C9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 94 2A 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2C B4 01 00 35 04 06 00 79 62 74 F2 40 94 35 52 3E CC 74 F7 FA E3 [13:11:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 AA 8F 47 00 71 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2C B4 01 00 F4 03 04 00 DD C1 73 66 B6 04 01 00 00 FB 61 AC 14 69 2B A5 F7 [13:11:15]CommunicateWithHost err = 0 [13:11:15]CheckOFDResponse [13:11:15]1017 (14) - 77093643461234 [13:11:15]1041 (16) - 0000000000875083 [13:11:15]1040 (4) - 111660 [13:11:15]1012 (4) - 20.06.2024 05:45 [13:11:15]1206 (1) - 0 [13:11:15]OFD Sender: Remove packet 111660 [13:11:15]ProducePacketName [13:11:15]name=ofd_packets/00111660 [13:11:15]NVStorageDeleteData [13:11:15]Write to MH i2c: 01 00 00 AC 63 0F [13:11:15]Write i2c OK [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: 01 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: 01 07 00 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: 01 07 00 AC 63 00 00 00 00 00 D8 0C FA [13:11:15]RasterBufferAndPrint [13:11:15]line [13:11:15]line [13:11:15]line [13:11:15]line [13:11:15]line [13:11:15]written 0, free lines is 3295 [13:11:15]MH_Cut [13:11:15]Write to MH i2c: D1 01 00 B3 63 01 E8 [13:11:15]Write i2c OK [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: D1 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: D1 01 00 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: D1 01 00 B3 63 00 E7 [13:11:15]Write to MH i2c: 01 00 00 B4 63 17 [13:11:15]Write i2c OK [13:11:15]MH_I2C_Read... [13:11:15]OFD Sender: No OFD packet to send [13:11:16]*** Cut start [13:11:16]*** Partial cut [13:11:16]*** CUTSNS_PIN = 1 [13:11:16]*** CUTSNS_PIN = 0 [13:11:16]*** Brake cut motor [13:11:16]Read from MH i2c: 01 [13:11:16]MH_I2C_Read... [13:11:16]*** Stop cut motor [13:11:16]*** Cut end [13:11:16]Read from MH i2c: 01 07 00 [13:11:16]MH_I2C_Read... [13:11:16]Read from MH i2c: 01 07 00 B4 63 00 00 00 00 00 FF 0F 2C [13:11:16]process_action close_receipt done [13:11:16]requested_data is exist [13:11:16]produce_requested_data [13:11:16]requested_item fm.sn is exist - process it [13:11:16]wFMCommunicate request_size=4 [13:11:16]MH_SAM_APDU [13:11:16]CAPDU: 80 11 00 00 [13:11:16]Write to MH i2c: E2 08 00 B5 63 80 11 00 00 00 00 00 00 92 [13:11:16]Write i2c OK [13:11:16]MH_I2C_Read... [13:11:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:16]Read from MH i2c: E2 [13:11:16]MH_I2C_Read... [13:11:16]Read from MH i2c: E2 17 00 [13:11:16]MH_I2C_Read... [13:11:16]Read from MH i2c: E2 17 00 B5 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E4 [13:11:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:11:16]wFMCommunicate OK [13:11:16]requested_item fd.num is exist - process it [13:11:16]SAM_PROTO_GetFieldsCounters [13:11:16]wFMCommunicate request_size=4 [13:11:16]MH_SAM_APDU [13:11:16]CAPDU: 80 13 00 00 [13:11:16]Write to MH i2c: E2 08 00 B6 63 80 13 00 00 00 00 00 00 95 [13:11:16]Write i2c OK [13:11:16]MH_I2C_Read... [13:11:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:17]Read from MH i2c: E2 [13:11:17]MH_I2C_Read... [13:11:17]Read from MH i2c: E2 62 00 [13:11:17]MH_I2C_Read... [13:11:17]Read from MH i2c: E2 62 00 B6 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2C B4 01 00 0E 04 04 00 85 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 67 [13:11:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2C B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:11:17]wFMCommunicate OK [13:11:17]SAM_PROTO_GetFieldsCounters done [13:11:17]requested_item shift.num is exist - process it [13:11:17]requested_item shift.opened is exist - process it [13:11:17]req_shift_opened [13:11:17]FM_GetShiftState [13:11:17]SAM_PROTO_GetShiftState [13:11:17]wFMCommunicate request_size=4 [13:11:17]MH_SAM_APDU [13:11:17]CAPDU: 80 13 01 00 [13:11:17]Write to MH i2c: E2 08 00 B7 63 80 13 01 00 00 00 00 00 97 [13:11:17]Write i2c OK [13:11:17]MH_I2C_Read... [13:11:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:17]Read from MH i2c: E2 [13:11:17]MH_I2C_Read... [13:11:17]Read from MH i2c: E2 0E 00 [13:11:17]MH_I2C_Read... [13:11:17]Read from MH i2c: E2 0E 00 B7 63 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 12 [13:11:17]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:11:17]wFMCommunicate OK [13:11:17]SAM_PROTO_GetShiftState done [13:11:17]FM_GetShiftState done [13:11:17]req_shift_opened done [13:11:17]requested_item shift.open_date is exist - process it [13:11:17]req_shift_open_date [13:11:17]req_shift_open_date done [13:11:17]produce_requested_data done [13:11:17]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111660,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [13:11:17]process_action_free close_receipt [13:11:17]json_value_free [13:11:17]json_value_free done [13:11:17]process_json_proto returns [13:11:17]Send response to host [13:11:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111660,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [13:11:17]free response buf [13:11:17]execute_script done [13:11:17]execute_script returns [13:11:17]free content buf [13:11:17]Sock 9.Close socket [13:11:17]Sock 9.Thread stoped [13:11:20]OFD Sender: No OFD packet to send [13:11:25]OFD Sender: No OFD packet to send [13:11:30]OFD Sender: No OFD packet to send [13:11:35]OFD Sender: No OFD packet to send [13:11:40]OFD Sender: No OFD packet to send [13:11:45]OFD Sender: No OFD packet to send [13:11:50]OFD Sender: No OFD packet to send [13:11:55]OFD Sender: No OFD packet to send [13:12:00]OFD Sender: No OFD packet to send [13:12:05]OFD Sender: No OFD packet to send [13:12:10]OFD Sender: No OFD packet to send [13:12:16]OFD Sender: No OFD packet to send [13:12:21]OFD Sender: No OFD packet to send [13:12:26]OFD Sender: No OFD packet to send [13:12:31]OFD Sender: No OFD packet to send [13:12:36]OFD Sender: No OFD packet to send [13:12:41]OFD Sender: No OFD packet to send [13:12:46]OFD Sender: No OFD packet to send [13:12:51]OFD Sender: No OFD packet to send [13:12:56]OFD Sender: No OFD packet to send [13:13:01]OFD Sender: No OFD packet to send [13:13:06]OFD Sender: No OFD packet to send [13:13:11]OFD Sender: No OFD packet to send [13:13:16]OFD Sender: No OFD packet to send [13:13:21]OFD Sender: No OFD packet to send [13:13:26]OFD Sender: No OFD packet to send [13:13:30]accept exits with 7 [13:13:30]New connection [13:13:30]New thread 3067321700 created [13:13:30]Thread 3067465060 joined [13:13:30]Waiting for new connection... [13:13:30] Sock 7.Parse request [13:13:30]Sock 7.Check first char [13:13:30]Sock 7.First char is OK [13:13:30]request: POST /json_proto HTTP/1.0 [13:13:30]Method: POST [13:13:30]URL: /json_proto [13:13:30]Method is POST - this is cgi request [13:13:30]url: /json_proto [13:13:30]query_string will be loaded in cgi processing [13:13:30]execute_cgi json_proto POST (null) [13:13:30]execute_cgi path=json_proto method=POST [13:13:30]POST find Content-Length [13:13:30]Host: 172.17.59.68:8080 [13:13:30]Content-Length: 677 [13:13:30]Content-Type: application/json [13:13:30] [13:13:30]POST finish read [13:13:30]Found Content-Length = 677 [13:13:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:30]execute_script... [13: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)320263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:30]POST & json_proto [13:13:30]process_json_proto [13:13:30]json parsed OK: [13:13:30]protocol is kg_v1.0 [13:13:30]action value=close_receipt [13:13:30]process_action close_receipt [13:13:30]cmd_close_receipt [13:13:30]MH_GetDate [13:13:30]Write to MH i2c: F0 00 00 B8 63 0A [13:13:30]Write i2c OK [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: F0 [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: F0 09 00 [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: F0 09 00 B8 63 00 1D 2B 74 66 BC EC 60 65 A2 [13:13:30]GetLastDocTimeStamp 1718889108 [13:13:30]current date 1718889245 [13:13:30]FM_GetShiftState [13:13:30]SAM_PROTO_GetShiftState [13:13:30]wFMCommunicate request_size=4 [13:13:30]MH_SAM_APDU [13:13:30]CAPDU: 80 13 01 00 [13:13:30]Write to MH i2c: E2 08 00 B9 63 80 13 01 00 00 00 00 00 99 [13:13:30]Write i2c OK [13:13:30]MH_I2C_Read... [13:13:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:30]Read from MH i2c: E2 [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: E2 0E 00 [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: E2 0E 00 B9 63 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 14 [13:13:30]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:13:30]wFMCommunicate OK [13:13:30]SAM_PROTO_GetShiftState done [13:13:30]FM_GetShiftState done [13:13:30]opened in 1718847247 [13:13:30]opened+sec_in_day 1718933647 [13:13:30]quantity*price = 50065 [13:13:30]sum+1 = 50067 [13:13:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 111 20.06.2024 13:14 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111661 ФПД: 40889901388475 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T131405&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111661&fm=40889901388475&tin=02508201610067®Number=0000000000092771&sum=50000 [13:13:31]StoreToDocumentArchive [13:13:31]shift 389 fd 111661 [13:13:31]save to /storage/0389/doc_00111661 [13:13:31]save last doc name /storage/0389/doc_00111661 to /storage/kkm_last_doc_name [13:13:31]save OK [13:13:31]Clear old archive folders... [13:13:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:13:31]tlvbuf is B6FD53C0 [13:13:31]SAM_PROTO_ClearQueue [13:13:31]wFMCommunicate request_size=4 [13:13:31]MH_SAM_APDU [13:13:31]CAPDU: 80 09 00 00 [13:13:31]Write to MH i2c: E2 08 00 C6 63 80 09 00 00 00 00 00 00 9B [13:13:31]Write i2c OK [13:13:31]MH_I2C_Read... [13:13:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:31]Read from MH i2c: E2 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: E2 03 00 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: E2 03 00 C6 63 00 90 00 9D [13:13:31]RAPDU: 90 00 [13:13:31]wFMCommunicate OK [13:13:31]SAM_PROTO_ClearQueue done [13:13:31]KKMCreateOFDPacket [13:13:31]OFDProtocolAddRootSTLVToBuf [13:13:31]FM_MakeSignedData [13:13:31]FM_MakeSignedData [13:13:31]SAM_PROTO_SignData [13:13:31]wFMCommunicate request_size=4 [13:13:31]MH_SAM_APDU [13:13:31]CAPDU: 80 0D 01 02 [13:13:31]Write to MH i2c: E2 08 00 C7 63 80 0D 01 02 00 00 00 00 A3 [13:13:31]Write i2c OK [13:13:31]MH_I2C_Read... [13:13:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:31]Read from MH i2c: E2 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: E2 03 00 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: E2 03 00 C7 63 00 90 00 9E [13:13:31]RAPDU: 90 00 [13:13:31]wFMCommunicate OK [13:13:31]wFMCommunicate request_size=255 [13:13:31]MH_SAM_APDU [13: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 1D 2B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2D B4 01 00 35 04 06 00 25 [13:13:31]Write to MH i2c: E2 02 01 C8 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 1D 2B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2D B4 01 00 35 04 06 00 25 00 00 75 [13:13:31]Write i2c OK [13:13:31]MH_I2C_Read... [13:13:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:31]Read from MH i2c: E2 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: E2 03 00 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: E2 03 00 C8 63 00 90 00 9F [13:13:31]RAPDU: 90 00 [13:13:31]wFMCommunicate OK [13:13:31]wFMCommunicate request_size=10 [13:13:31]MH_SAM_APDU [13:13:31]CAPDU: 80 0D 02 02 05 30 6C 0C 12 BB [13:13:31]Write to MH i2c: E2 0D 00 C9 63 80 0D 02 02 05 00 30 6C 0C 12 BB 00 00 25 [13:13:31]Write i2c OK [13:13:31]MH_I2C_Read... [13:13:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:31]Read from MH i2c: E2 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: E2 03 00 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: E2 03 00 C9 63 00 90 00 A0 [13:13:31]RAPDU: 90 00 [13:13:31]wFMCommunicate OK [13:13:31]wFMCommunicate request_size=4 [13:13:31]MH_SAM_APDU [13:13:31]CAPDU: 80 0D 03 02 [13:13:31]Write to MH i2c: E2 08 00 CA 63 80 0D 03 02 00 00 00 00 A8 [13:13:31]Write i2c OK [13:13:31]MH_I2C_Read... [13:13:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:31]Read from MH i2c: E2 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: E2 0B 00 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: E2 0B 00 CA 63 00 85 09 43 19 88 9E A8 4C 90 00 AD [13:13:31]RAPDU: 85 09 43 19 88 9E A8 4C 90 00 [13:13:31]wFMCommunicate OK [13:13:31]SAM_PROTO_SignData done [13:13:31]FM_MakeSignedData done [13:13:31]CreateOFDProtocolMessage [13:13:31]wFMCommunicate request_size=4 [13:13:31]MH_SAM_APDU [13:13:31]CAPDU: 80 11 00 00 [13:13:31]Write to MH i2c: E2 08 00 CB 63 80 11 00 00 00 00 00 00 A8 [13:13:31]Write i2c OK [13:13:31]MH_I2C_Read... [13:13:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:31]Read from MH i2c: E2 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: E2 17 00 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: E2 17 00 CB 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FA [13:13:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:13:31]wFMCommunicate OK [13:13:31]CreateOFDProtocolMessage done [13:13:31]OFDSenderStorePacket 111661 [13:13:31]StoreOFDPacket docnum=111661 [13:13:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 8E 1C 07 01 29 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 1D 2B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2D B4 01 00 35 04 06 00 25 30 6C 0C 12 BB 85 09 43 19 88 9E A8 4C [13:13:31]CheckFolder [13:13:31]dirname=/storage/ofd_packets [13:13:31]CheckFolder done [13:13:31]ProducePacketName [13:13:31]name=ofd_packets/00111661 [13:13:31]NVStorageSaveData ofd_packets/00111661 [13:13:31]File name is /storage/ofd_packets/00111661 [13:13:31]Write 301 bytes [13:13:31]NVStorageSaveData done [13:13:31]OFDSenderStorePacket done [13:13:31]KKMCreateOFDPacket done [13:13:31]NVStorageSaveData kkm_last_timestamp [13:13:31]File name is /storage/kkm_last_timestamp [13:13:31]Write 4 bytes [13:13:31]NVStorageSaveData done [13:13:31]ExternCall_PrintAddStr [13:13:31]wPrintStart [13:13:31]Write to MH i2c: 01 00 00 CC 63 2F [13:13:31]Write i2c OK [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: 01 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: 01 07 00 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: 01 07 00 CC 63 00 00 00 00 00 FF 0F 44 [13:13:31]RasterBufferAndPrint [13:13:31]line Счет N : (1)320263 [13:13:31]line ИНН: 02508201610067 [13:13:31]line Контрольно-Кассовый Чек [13:13:31]line ПРОДАЖА [13:13:31]line ТРК (МРК, ГНК) : 11 [13:13:31]line Товар: 2710124130 [13:13:31]line Аи-92-К-5 [13:13:31]line 7.540 * 66.40 [13:13:31]line = 500.66 [13:13:31]line НДС 12% НСП 1% [13:13:31]line > о реализуемом товаре [13:13:31]line ОКРУГЛЕНИЕ: -0.66 [13:13:31]line ИТОГО: 500.00 [13:13:31]line Внесено: 500.00 [13:13:31]line СДАЧА: 0.00 [13:13:31]line НСП 1% : 4.43 [13:13:31]line НДС 12% : 53.17 [13:13:31]line Наличными: 500.00 [13:13:31]line Безнал.: 0.00 [13:13:31]line Место: АЗС № 65 "Партнер Нефть" [13:13:31]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:13:31]line СНО: Общий режим [13:13:31]line Чек 111 20.06.2024 13:14 [13:13:31]line Смена: 389 ФФД: 1.0 [13:13:31]line ЗНМ: 0300000198 [13:13:31]line РНМ: 0000000000092771 [13:13:31]line Версия ККМ: 001 [13:13:31]line ФМ: 0000000000875083 [13:13:31]line ФД: 111661 [13:13:31]line ФПД: 40889901388475 [13:13:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T131405&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111661&fm=40889901388475&tin=02508201610067®Number=0000000000092771&sum=50000 [13:13:32]OFD Sender: Processing packet 111661 [packets to send 38, broken 37] [13:13:32]ProducePacketName [13:13:32]name=ofd_packets/00111661 [13:13:32]OFD Sender: To server: pG, [13:13:32]CommunicateWithHost lk.salyk.kg:30040 [13:13:32]ConnectInit lk.salyk.kg [13:13:32]written 0, free lines is 4095 [13:13:32]Connected sock=10 [13:13:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 8E 1C 07 01 29 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 1D 2B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2D B4 01 00 35 04 06 00 25 30 6C 0C 12 BB 85 09 43 19 88 9E A8 4C [13:13:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 CB 5A 47 00 61 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2D B4 01 00 F4 03 04 00 66 C2 73 66 B6 04 01 00 00 C5 1E 34 AA A5 67 9B F6 [13:13:32]CommunicateWithHost err = 0 [13:13:32]CheckOFDResponse [13:13:32]1017 (14) - 77093643461234 [13:13:32]1041 (16) - 0000000000875083 [13:13:32]1040 (4) - 111661 [13:13:32]1012 (4) - 20.06.2024 05:47 [13:13:32]1206 (1) - 0 [13:13:32]OFD Sender: Remove packet 111661 [13:13:32]ProducePacketName [13:13:32]name=ofd_packets/00111661 [13:13:32]NVStorageDeleteData [13:13:32]Write to MH i2c: 01 00 00 F7 63 5A [13:13:32]Write i2c OK [13:13:32]MH_I2C_Read... [13:13:32]Read from MH i2c: 01 [13:13:32]MH_I2C_Read... [13:13:32]Read from MH i2c: 01 07 00 [13:13:32]MH_I2C_Read... [13:13:32]Read from MH i2c: 01 07 00 F7 63 00 00 00 00 00 D6 0C 43 [13:13:32]RasterBufferAndPrint [13:13:32]line [13:13:32]line [13:13:32]line [13:13:32]line [13:13:32]line [13:13:32]written 0, free lines is 3293 [13:13:32]MH_Cut [13:13:32]Write to MH i2c: D1 01 00 FE 63 01 33 [13:13:32]Write i2c OK [13:13:32]MH_I2C_Read... [13:13:32]Read from MH i2c: D1 [13:13:32]MH_I2C_Read... [13:13:32]Read from MH i2c: D1 01 00 [13:13:32]MH_I2C_Read... [13:13:32]Read from MH i2c: D1 01 00 FE 63 00 32 [13:13:32]Write to MH i2c: 01 00 00 FF 63 62 [13:13:32]Write i2c OK [13:13:32]MH_I2C_Read... [13:13:32]OFD Sender: No OFD packet to send [13:13:33]*** Cut start [13:13:33]*** Partial cut [13:13:33]*** CUTSNS_PIN = 1 [13:13:33]*** CUTSNS_PIN = 0 [13:13:33]*** Brake cut motor [13:13:33]Read from MH i2c: 01 [13:13:33]MH_I2C_Read... [13:13:33]*** Stop cut motor [13:13:33]*** Cut end [13:13:33]Read from MH i2c: 01 07 00 [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: 01 07 00 FF 63 00 00 00 00 00 FF 0F 77 [13:13:33]process_action close_receipt done [13:13:33]requested_data is exist [13:13:33]produce_requested_data [13:13:33]requested_item fm.sn is exist - process it [13:13:33]wFMCommunicate request_size=4 [13:13:33]MH_SAM_APDU [13:13:33]CAPDU: 80 11 00 00 [13:13:33]Write to MH i2c: E2 08 00 00 64 80 11 00 00 00 00 00 00 DE [13:13:33]Write i2c OK [13:13:33]MH_I2C_Read... [13:13:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:33]Read from MH i2c: E2 [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: E2 17 00 [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: E2 17 00 00 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 30 [13:13:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:13:33]wFMCommunicate OK [13:13:33]requested_item fd.num is exist - process it [13:13:33]SAM_PROTO_GetFieldsCounters [13:13:33]wFMCommunicate request_size=4 [13:13:33]MH_SAM_APDU [13:13:33]CAPDU: 80 13 00 00 [13:13:33]Write to MH i2c: E2 08 00 01 64 80 13 00 00 00 00 00 00 E1 [13:13:33]Write i2c OK [13:13:33]MH_I2C_Read... [13:13:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:34]Read from MH i2c: E2 [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: E2 62 00 [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: E2 62 00 01 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2D B4 01 00 0E 04 04 00 85 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 B7 [13:13:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2D B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:13:34]wFMCommunicate OK [13:13:34]SAM_PROTO_GetFieldsCounters done [13:13:34]requested_item shift.num is exist - process it [13:13:34]requested_item shift.opened is exist - process it [13:13:34]req_shift_opened [13:13:34]FM_GetShiftState [13:13:34]SAM_PROTO_GetShiftState [13:13:34]wFMCommunicate request_size=4 [13:13:34]MH_SAM_APDU [13:13:34]CAPDU: 80 13 01 00 [13:13:34]Write to MH i2c: E2 08 00 02 64 80 13 01 00 00 00 00 00 E3 [13:13:34]Write i2c OK [13:13:34]MH_I2C_Read... [13:13:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:34]Read from MH i2c: E2 [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: E2 0E 00 [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: E2 0E 00 02 64 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 5E [13:13:34]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:13:34]wFMCommunicate OK [13:13:34]SAM_PROTO_GetShiftState done [13:13:34]FM_GetShiftState done [13:13:34]req_shift_opened done [13:13:34]requested_item shift.open_date is exist - process it [13:13:34]req_shift_open_date [13:13:34]req_shift_open_date done [13:13:34]produce_requested_data done [13:13:34]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111661,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [13:13:34]process_action_free close_receipt [13:13:34]json_value_free [13:13:34]json_value_free done [13:13:34]process_json_proto returns [13:13:34]Send response to host [13:13:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111661,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [13:13:34]free response buf [13:13:34]execute_script done [13:13:34]execute_script returns [13:13:34]free content buf [13:13:34]Sock 7.Close socket [13:13:34]Sock 7.Thread stoped [13:13:37]OFD Sender: No OFD packet to send [13:13:42]OFD Sender: No OFD packet to send [13:13:47]OFD Sender: No OFD packet to send [13:13:52]OFD Sender: No OFD packet to send [13:13:57]OFD Sender: No OFD packet to send [13:14:02]OFD Sender: No OFD packet to send [13:14:07]OFD Sender: No OFD packet to send [13:14:12]OFD Sender: No OFD packet to send [13:14:17]OFD Sender: No OFD packet to send [13:14:22]OFD Sender: No OFD packet to send [13:14:27]OFD Sender: No OFD packet to send [13:14:32]OFD Sender: No OFD packet to send [13:14:37]OFD Sender: No OFD packet to send [13:14:42]OFD Sender: No OFD packet to send [13:14:47]OFD Sender: No OFD packet to send [13:14:52]OFD Sender: No OFD packet to send [13:14:57]OFD Sender: No OFD packet to send [13:15:02]OFD Sender: No OFD packet to send [13:15:07]OFD Sender: No OFD packet to send [13:15:12]OFD Sender: No OFD packet to send [13:15:16]accept exits with 9 [13:15:16]New connection [13:15:16]New thread 3067465060 created [13:15:16]Thread 3067321700 joined [13:15:16]Waiting for new connection... [13:15:16] Sock 9.Parse request [13:15:16]Sock 9.Check first char [13:15:16]Sock 9.First char is OK [13:15:16]request: POST /json_proto HTTP/1.0 [13:15:16]Method: POST [13:15:16]URL: /json_proto [13:15:16]Method is POST - this is cgi request [13:15:16]url: /json_proto [13:15:16]query_string will be loaded in cgi processing [13:15:16]execute_cgi json_proto POST (null) [13:15:16]execute_cgi path=json_proto method=POST [13:15:16]POST find Content-Length [13:15:16]Host: 172.17.59.68:8080 [13:15:16]Content-Length: 677 [13:15:16]Content-Type: application/json [13:15:16] [13:15:16]POST finish read [13:15:16]Found Content-Length = 677 [13:15:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:16]execute_script... [13:15: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)320264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:16]POST & json_proto [13:15:16]process_json_proto [13:15:16]json parsed OK: [13:15:16]protocol is kg_v1.0 [13:15:16]action value=close_receipt [13:15:16]process_action close_receipt [13:15:16]cmd_close_receipt [13:15:16]MH_GetDate [13:15:16]Write to MH i2c: F0 00 00 03 64 56 [13:15:16]Write i2c OK [13:15:16]MH_I2C_Read... [13:15:16]Read from MH i2c: F0 [13:15:16]MH_I2C_Read... [13:15:16]Read from MH i2c: F0 09 00 [13:15:16]MH_I2C_Read... [13:15:16]Read from MH i2c: F0 09 00 03 64 00 87 2B 74 66 BC EC 60 65 58 [13:15:16]GetLastDocTimeStamp 1718889245 [13:15:16]current date 1718889351 [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 04 64 80 13 01 00 00 00 00 00 E5 [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 04 64 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 60 [13:15:16]RAPDU: 09 00 01 0F 87 73 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]opened in 1718847247 [13:15:16]opened+sec_in_day 1718933647 [13:15:16]quantity*price = 60025 [13:15:16]sum+1 = 60027 [13:15:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 112 20.06.2024 13:15 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111662 ФПД: 201454774565063 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T131551&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111662&fm=201454774565063&tin=02508201610067®Number=0000000000092771&sum=60000 [13:15:17]StoreToDocumentArchive [13:15:17]shift 389 fd 111662 [13:15:17]save to /storage/0389/doc_00111662 [13:15:17]save last doc name /storage/0389/doc_00111662 to /storage/kkm_last_doc_name [13:15:17]save OK [13:15:17]Clear old archive folders... [13:15:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:15:17]tlvbuf is B6F57350 [13:15:17]SAM_PROTO_ClearQueue [13:15:17]wFMCommunicate request_size=4 [13:15:17]MH_SAM_APDU [13:15:17]CAPDU: 80 09 00 00 [13:15:17]Write to MH i2c: E2 08 00 11 64 80 09 00 00 00 00 00 00 E7 [13:15:17]Write i2c OK [13:15:17]MH_I2C_Read... [13:15:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:17]Read from MH i2c: E2 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 03 00 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 03 00 11 64 00 90 00 E9 [13:15:17]RAPDU: 90 00 [13:15:17]wFMCommunicate OK [13:15:17]SAM_PROTO_ClearQueue done [13:15:17]KKMCreateOFDPacket [13:15:17]OFDProtocolAddRootSTLVToBuf [13:15:17]FM_MakeSignedData [13:15:17]FM_MakeSignedData [13:15:17]SAM_PROTO_SignData [13:15:17]wFMCommunicate request_size=4 [13:15:17]MH_SAM_APDU [13:15:17]CAPDU: 80 0D 01 02 [13:15:17]Write to MH i2c: E2 08 00 12 64 80 0D 01 02 00 00 00 00 EF [13:15:17]Write i2c OK [13:15:17]MH_I2C_Read... [13:15:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:17]Read from MH i2c: E2 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 03 00 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 03 00 12 64 00 90 00 EA [13:15:17]RAPDU: 90 00 [13:15:17]wFMCommunicate OK [13:15:17]wFMCommunicate request_size=255 [13:15:17]MH_SAM_APDU [13:15: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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 87 2B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2E B4 01 00 35 04 06 00 B7 [13:15:17]Write to MH i2c: E2 02 01 13 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 87 2B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2E B4 01 00 35 04 06 00 B7 00 00 9C [13:15:17]Write i2c OK [13:15:17]MH_I2C_Read... [13:15:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:17]Read from MH i2c: E2 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 03 00 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 03 00 13 64 00 90 00 EB [13:15:17]RAPDU: 90 00 [13:15:17]wFMCommunicate OK [13:15:17]wFMCommunicate request_size=10 [13:15:17]MH_SAM_APDU [13:15:17]CAPDU: 80 0D 02 02 05 38 D8 46 B8 C7 [13:15:17]Write to MH i2c: E2 0D 00 14 64 80 0D 02 02 05 00 38 D8 46 B8 C7 00 00 D1 [13:15:17]Write i2c OK [13:15:17]MH_I2C_Read... [13:15:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:17]Read from MH i2c: E2 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 03 00 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 03 00 14 64 00 90 00 EC [13:15:17]RAPDU: 90 00 [13:15:17]wFMCommunicate OK [13:15:17]wFMCommunicate request_size=4 [13:15:17]MH_SAM_APDU [13:15:17]CAPDU: 80 0D 03 02 [13:15:17]Write to MH i2c: E2 08 00 15 64 80 0D 03 02 00 00 00 00 F4 [13:15:17]Write i2c OK [13:15:17]MH_I2C_Read... [13:15:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:17]Read from MH i2c: E2 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 0B 00 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 0B 00 15 64 00 BA 19 C0 4E D1 89 14 F9 90 00 3D [13:15:17]RAPDU: BA 19 C0 4E D1 89 14 F9 90 00 [13:15:17]wFMCommunicate OK [13:15:17]SAM_PROTO_SignData done [13:15:17]FM_MakeSignedData done [13:15:17]CreateOFDProtocolMessage [13:15:17]wFMCommunicate request_size=4 [13:15:17]MH_SAM_APDU [13:15:17]CAPDU: 80 11 00 00 [13:15:17]Write to MH i2c: E2 08 00 16 64 80 11 00 00 00 00 00 00 F4 [13:15:17]Write i2c OK [13:15:17]MH_I2C_Read... [13:15:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:17]Read from MH i2c: E2 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 17 00 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 17 00 16 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 46 [13:15:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:15:17]wFMCommunicate OK [13:15:17]CreateOFDProtocolMessage done [13:15:17]OFDSenderStorePacket 111662 [13:15:17]StoreOFDPacket docnum=111662 [13:15:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DF 7B 07 01 8F 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 87 2B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2E B4 01 00 35 04 06 00 B7 38 D8 46 B8 C7 BA 19 C0 4E D1 89 14 F9 [13:15:17]CheckFolder [13:15:17]dirname=/storage/ofd_packets [13:15:17]CheckFolder done [13:15:17]ProducePacketName [13:15:17]name=ofd_packets/00111662 [13:15:17]NVStorageSaveData ofd_packets/00111662 [13:15:17]File name is /storage/ofd_packets/00111662 [13:15:17]Write 301 bytes [13:15:17]NVStorageSaveData done [13:15:17]OFDSenderStorePacket done [13:15:17]KKMCreateOFDPacket done [13:15:17]NVStorageSaveData kkm_last_timestamp [13:15:17]File name is /storage/kkm_last_timestamp [13:15:17]Write 4 bytes [13:15:17]NVStorageSaveData done [13:15:17]ExternCall_PrintAddStr [13:15:17]wPrintStart [13:15:17]Write to MH i2c: 01 00 00 17 64 7B [13:15:17]Write i2c OK [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: 01 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: 01 07 00 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: 01 07 00 17 64 00 00 00 00 00 FF 0F 90 [13:15:17]RasterBufferAndPrint [13:15:17]line Счет N : (1)320264 [13:15:17]line ИНН: 02508201610067 [13:15:17]line Контрольно-Кассовый Чек [13:15:17]line ПРОДАЖА [13:15:17]line ТРК (МРК, ГНК) : 11 [13:15:17]line Товар: 2710124130 [13:15:17]line Аи-92-К-5 [13:15:17]line 9.040 * 66.40 [13:15:17]line = 600.26 [13:15:17]line НДС 12% НСП 1% [13:15:17]line > о реализуемом товаре [13:15:17]line ОКРУГЛЕНИЕ: -0.26 [13:15:17]line ИТОГО: 600.00 [13:15:17]line Внесено: 600.00 [13:15:17]line СДАЧА: 0.00 [13:15:17]line НСП 1% : 5.31 [13:15:17]line НДС 12% : 63.74 [13:15:17]line Наличными: 600.00 [13:15:17]line Безнал.: 0.00 [13:15:17]line Место: АЗС № 65 "Партнер Нефть" [13:15:17]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:15:17]line СНО: Общий режим [13:15:17]line Чек 112 20.06.2024 13:15 [13:15:17]line Смена: 389 ФФД: 1.0 [13:15:17]line ЗНМ: 0300000198 [13:15:17]line РНМ: 0000000000092771 [13:15:17]line Версия ККМ: 001 [13:15:17]line ФМ: 0000000000875083 [13:15:17]line ФД: 111662 [13:15:17]line ФПД: 201454774565063 [13:15:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T131551&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111662&fm=201454774565063&tin=02508201610067®Number=0000000000092771&sum=60000 [13:15:18]OFD Sender: Processing packet 111662 [packets to send 38, broken 37] [13:15:18]ProducePacketName [13:15:18]name=ofd_packets/00111662 [13:15:18]OFD Sender: To server: pG, [13:15:18]CommunicateWithHost lk.salyk.kg:30040 [13:15:18]ConnectInit lk.salyk.kg [13:15:18]written 0, free lines is 4095 [13:15:18]Connected sock=10 [13:15:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DF 7B 07 01 8F 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 87 2B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2E B4 01 00 35 04 06 00 B7 38 D8 46 B8 C7 BA 19 C0 4E D1 89 14 F9 [13:15:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C5 19 47 00 15 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2E B4 01 00 F4 03 04 00 D0 C2 73 66 B6 04 01 00 00 6E A9 89 9F C4 3E FB AF [13:15:18]CommunicateWithHost err = 0 [13:15:18]CheckOFDResponse [13:15:18]1017 (14) - 77093643461234 [13:15:18]1041 (16) - 0000000000875083 [13:15:18]1040 (4) - 111662 [13:15:18]1012 (4) - 20.06.2024 05:49 [13:15:18]1206 (1) - 0 [13:15:18]OFD Sender: Remove packet 111662 [13:15:18]ProducePacketName [13:15:18]name=ofd_packets/00111662 [13:15:18]NVStorageDeleteData [13:15:18]Write to MH i2c: 01 00 00 42 64 A6 [13:15:18]Write i2c OK [13:15:18]MH_I2C_Read... [13:15:18]Read from MH i2c: 01 [13:15:18]MH_I2C_Read... [13:15:18]Read from MH i2c: 01 07 00 [13:15:18]MH_I2C_Read... [13:15:18]Read from MH i2c: 01 07 00 42 64 00 00 00 00 00 CC 0C 85 [13:15:18]RasterBufferAndPrint [13:15:18]line [13:15:18]line [13:15:18]line [13:15:18]line [13:15:18]line [13:15:18]written 0, free lines is 3283 [13:15:18]MH_Cut [13:15:18]Write to MH i2c: D1 01 00 49 64 01 7F [13:15:18]Write i2c OK [13:15:18]MH_I2C_Read... [13:15:18]Read from MH i2c: D1 [13:15:18]MH_I2C_Read... [13:15:18]Read from MH i2c: D1 01 00 [13:15:18]MH_I2C_Read... [13:15:18]Read from MH i2c: D1 01 00 49 64 00 7E [13:15:18]Write to MH i2c: 01 00 00 4A 64 AE [13:15:18]Write i2c OK [13:15:18]MH_I2C_Read... [13:15:18]OFD Sender: No OFD packet to send [13:15:19]*** Cut start [13:15:19]*** Partial cut [13:15:19]*** CUTSNS_PIN = 1 [13:15:19]*** CUTSNS_PIN = 0 [13:15:19]*** Brake cut motor [13:15:19]Read from MH i2c: 01 [13:15:19]MH_I2C_Read... [13:15:19]*** Stop cut motor [13:15:19]*** Cut end [13:15:19]Read from MH i2c: 01 07 00 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: 01 07 00 4A 64 00 00 00 00 00 FF 0F C3 [13:15:19]process_action close_receipt done [13:15:19]requested_data is exist [13:15:19]produce_requested_data [13:15:19]requested_item fm.sn is exist - process it [13:15:19]wFMCommunicate request_size=4 [13:15:19]MH_SAM_APDU [13:15:19]CAPDU: 80 11 00 00 [13:15:19]Write to MH i2c: E2 08 00 4B 64 80 11 00 00 00 00 00 00 29 [13:15:19]Write i2c OK [13:15:19]MH_I2C_Read... [13:15:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:19]Read from MH i2c: E2 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: E2 17 00 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: E2 17 00 4B 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7B [13:15:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:15:19]wFMCommunicate OK [13:15:19]requested_item fd.num is exist - process it [13:15:19]SAM_PROTO_GetFieldsCounters [13:15:19]wFMCommunicate request_size=4 [13:15:19]MH_SAM_APDU [13:15:19]CAPDU: 80 13 00 00 [13:15:19]Write to MH i2c: E2 08 00 4C 64 80 13 00 00 00 00 00 00 2C [13:15:19]Write i2c OK [13:15:19]MH_I2C_Read... [13:15:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:20]Read from MH i2c: E2 [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: E2 62 00 [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: E2 62 00 4C 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2E B4 01 00 0E 04 04 00 85 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 06 [13:15:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2E B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:15:20]wFMCommunicate OK [13:15:20]SAM_PROTO_GetFieldsCounters done [13:15:20]requested_item shift.num is exist - process it [13:15:20]requested_item shift.opened is exist - process it [13:15:20]req_shift_opened [13:15:20]FM_GetShiftState [13:15:20]SAM_PROTO_GetShiftState [13:15:20]wFMCommunicate request_size=4 [13:15:20]MH_SAM_APDU [13:15:20]CAPDU: 80 13 01 00 [13:15:20]Write to MH i2c: E2 08 00 4D 64 80 13 01 00 00 00 00 00 2E [13:15:20]Write i2c OK [13:15:20]MH_I2C_Read... [13:15:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:20]Read from MH i2c: E2 [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: E2 0E 00 [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: E2 0E 00 4D 64 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 A9 [13:15:20]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:15:20]wFMCommunicate OK [13:15:20]SAM_PROTO_GetShiftState done [13:15:20]FM_GetShiftState done [13:15:20]req_shift_opened done [13:15:20]requested_item shift.open_date is exist - process it [13:15:20]req_shift_open_date [13:15:20]req_shift_open_date done [13:15:20]produce_requested_data done [13:15:20]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111662,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [13:15:20]process_action_free close_receipt [13:15:20]json_value_free [13:15:20]json_value_free done [13:15:20]process_json_proto returns [13:15:20]Send response to host [13:15:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111662,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [13:15:20]free response buf [13:15:20]execute_script done [13:15:20]execute_script returns [13:15:20]free content buf [13:15:20]Sock 9.Close socket [13:15:20]Sock 9.Thread stoped [13:15:23]OFD Sender: No OFD packet to send [13:15:28]OFD Sender: No OFD packet to send [13:15:33]OFD Sender: No OFD packet to send [13:15:38]OFD Sender: No OFD packet to send [13:15:43]OFD Sender: No OFD packet to send [13:15:48]OFD Sender: No OFD packet to send [13:15:53]OFD Sender: No OFD packet to send [13:15:58]OFD Sender: No OFD packet to send [13:16:03]OFD Sender: No OFD packet to send [13:16:08]accept exits with 7 [13:16:08]New connection [13:16:08]New thread 3067321700 created [13:16:08]Thread 3067465060 joined [13:16:08]Waiting for new connection... [13:16:08] Sock 7.Parse request [13:16:08]Sock 7.Check first char [13:16:08]Sock 7.First char is OK [13:16:08]request: POST /json_proto HTTP/1.0 [13:16:08]Method: POST [13:16:08]URL: /json_proto [13:16:08]Method is POST - this is cgi request [13:16:08]url: /json_proto [13:16:08]query_string will be loaded in cgi processing [13:16:08]execute_cgi json_proto POST (null) [13:16:08]execute_cgi path=json_proto method=POST [13:16:08]POST find Content-Length [13:16:08]Host: 172.17.59.68:8080 [13:16:08]Content-Length: 679 [13:16:08]Content-Type: application/json [13:16:08] [13:16:08]POST finish read [13:16:08]Found Content-Length = 679 [13:16:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:08]execute_script... [13:16:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:08]POST & json_proto [13:16:08]process_json_proto [13:16:08]json parsed OK: [13:16:08]protocol is kg_v1.0 [13:16:08]action value=close_receipt [13:16:08]process_action close_receipt [13:16:08]cmd_close_receipt [13:16:08]MH_GetDate [13:16:08]Write to MH i2c: F0 00 00 4E 64 A1 [13:16:08]Write i2c OK [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: F0 [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: F0 09 00 [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: F0 09 00 4E 64 00 BB 2B 74 66 BC EC 60 65 D7 [13:16:08]GetLastDocTimeStamp 1718889351 [13:16:08]current date 1718889403 [13:16:08]FM_GetShiftState [13:16:08]SAM_PROTO_GetShiftState [13:16:08]wFMCommunicate request_size=4 [13:16:08]MH_SAM_APDU [13:16:08]CAPDU: 80 13 01 00 [13:16:08]Write to MH i2c: E2 08 00 4F 64 80 13 01 00 00 00 00 00 30 [13:16:08]Write i2c OK [13:16:08]MH_I2C_Read... [13:16:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:08]Read from MH i2c: E2 [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: E2 0E 00 [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: E2 0E 00 4F 64 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 AB [13:16:08]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:16:08]wFMCommunicate OK [13:16:08]SAM_PROTO_GetShiftState done [13:16:08]FM_GetShiftState done [13:16:08]opened in 1718847247 [13:16:08]opened+sec_in_day 1718933647 [13:16:08]quantity*price = 100018 [13:16:08]sum+1 = 100020 [13:16:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 113 20.06.2024 13:16 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111663 ФПД: 238560916391205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T131643&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111663&fm=238560916391205&tin=02508201610067®Number=0000000000092771&sum=100000 [13:16:09]StoreToDocumentArchive [13:16:09]shift 389 fd 111663 [13:16:09]save to /storage/0389/doc_00111663 [13:16:09]save last doc name /storage/0389/doc_00111663 to /storage/kkm_last_doc_name [13:16:09]save OK [13:16:09]Clear old archive folders... [13:16:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:16:09]tlvbuf is 00ED6670 [13:16:09]SAM_PROTO_ClearQueue [13:16:09]wFMCommunicate request_size=4 [13:16:09]MH_SAM_APDU [13:16:09]CAPDU: 80 09 00 00 [13:16:09]Write to MH i2c: E2 08 00 5C 64 80 09 00 00 00 00 00 00 32 [13:16:09]Write i2c OK [13:16:09]MH_I2C_Read... [13:16:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:16:09]Read from MH i2c: E2 [13:16:09]MH_I2C_Read... [13:16:09]Read from MH i2c: E2 03 00 [13:16:09]MH_I2C_Read... [13:16:09]Read from MH i2c: E2 03 00 5C 64 00 90 00 34 [13:16:09]RAPDU: 90 00 [13:16:09]wFMCommunicate OK [13:16:09]SAM_PROTO_ClearQueue done [13:16:09]KKMCreateOFDPacket [13:16:09]OFDProtocolAddRootSTLVToBuf [13:16:09]FM_MakeSignedData [13:16:09]FM_MakeSignedData [13:16:09]SAM_PROTO_SignData [13:16:09]wFMCommunicate request_size=4 [13:16:09]MH_SAM_APDU [13:16:09]CAPDU: 80 0D 01 02 [13:16:09]Write to MH i2c: E2 08 00 5D 64 80 0D 01 02 00 00 00 00 3A [13:16:09]Write i2c OK [13:16:09]MH_I2C_Read... [13:16:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:16:09]Read from MH i2c: E2 [13:16:09]MH_I2C_Read... [13:16:09]Read from MH i2c: E2 03 00 [13:16:09]MH_I2C_Read... [13:16:09]Read from MH i2c: E2 03 00 5D 64 00 90 00 35 [13:16:09]RAPDU: 90 00 [13:16:09]wFMCommunicate OK [13:16:09]wFMCommunicate request_size=255 [13:16:09]MH_SAM_APDU [13:16:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 BB 2B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2F B4 01 00 35 04 06 00 D8 F8 4A AD [13:16:09]Write to MH i2c: E2 02 01 5E 64 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 BB 2B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2F B4 01 00 35 04 06 00 D8 F8 4A AD 00 00 02 [13:16:09]Write i2c OK [13:16:09]MH_I2C_Read... [13:16:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:09]Read from MH i2c: E2 [13:16:09]MH_I2C_Read... [13:16:09]Read from MH i2c: E2 03 00 [13:16:09]MH_I2C_Read... [13:16:09]Read from MH i2c: E2 03 00 5E 64 00 90 00 36 [13:16:09]RAPDU: 90 00 [13:16:09]wFMCommunicate OK [13:16:09]wFMCommunicate request_size=7 [13:16:09]MH_SAM_APDU [13:16:09]CAPDU: 80 0D 02 02 02 C5 25 [13:16:09]Write to MH i2c: E2 0A 00 5F 64 80 0D 02 02 02 00 C5 25 00 00 2B [13:16:09]Write i2c OK [13:16:09]MH_I2C_Read... [13:16:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:09]Read from MH i2c: E2 [13:16:09]MH_I2C_Read... [13:16:09]Read from MH i2c: E2 03 00 [13:16:09]MH_I2C_Read... [13:16:09]Read from MH i2c: E2 03 00 5F 64 00 90 00 37 [13:16:09]RAPDU: 90 00 [13:16:09]wFMCommunicate OK [13:16:09]wFMCommunicate request_size=4 [13:16:09]MH_SAM_APDU [13:16:09]CAPDU: 80 0D 03 02 [13:16:09]Write to MH i2c: E2 08 00 60 64 80 0D 03 02 00 00 00 00 3F [13:16:09]Write i2c OK [13:16:09]MH_I2C_Read... [13:16:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:16:09]Read from MH i2c: E2 [13:16:09]MH_I2C_Read... [13:16:09]Read from MH i2c: E2 0B 00 [13:16:09]MH_I2C_Read... [13:16:09]Read from MH i2c: E2 0B 00 60 64 00 59 E5 DB BF 1C 8F 59 7A 90 00 96 [13:16:09]RAPDU: 59 E5 DB BF 1C 8F 59 7A 90 00 [13:16:09]wFMCommunicate OK [13:16:09]SAM_PROTO_SignData done [13:16:09]FM_MakeSignedData done [13:16:09]CreateOFDProtocolMessage [13:16:09]wFMCommunicate request_size=4 [13:16:09]MH_SAM_APDU [13:16:09]CAPDU: 80 11 00 00 [13:16:09]Write to MH i2c: E2 08 00 61 64 80 11 00 00 00 00 00 00 3F [13:16:09]Write i2c OK [13:16:09]MH_I2C_Read... [13:16:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:09]Read from MH i2c: E2 [13:16:09]MH_I2C_Read... [13:16:09]Read from MH i2c: E2 17 00 [13:16:09]MH_I2C_Read... [13:16:09]Read from MH i2c: E2 17 00 61 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 91 [13:16:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:16:09]wFMCommunicate OK [13:16:09]CreateOFDProtocolMessage done [13:16:09]OFDSenderStorePacket 111663 [13:16:09]StoreOFDPacket docnum=111663 [13:16:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 35 D6 04 01 28 03 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 BB 2B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2F B4 01 00 35 04 06 00 D8 F8 4A AD C5 25 59 E5 DB BF 1C 8F 59 7A [13:16:09]CheckFolder [13:16:09]dirname=/storage/ofd_packets [13:16:09]CheckFolder done [13:16:09]ProducePacketName [13:16:09]name=ofd_packets/00111663 [13:16:09]NVStorageSaveData ofd_packets/00111663 [13:16:09]File name is /storage/ofd_packets/00111663 [13:16:09]Write 298 bytes [13:16:09]NVStorageSaveData done [13:16:09]OFDSenderStorePacket done [13:16:09]KKMCreateOFDPacket done [13:16:09]NVStorageSaveData kkm_last_timestamp [13:16:09]File name is /storage/kkm_last_timestamp [13:16:09]Write 4 bytes [13:16:09]NVStorageSaveData done [13:16:09]ExternCall_PrintAddStr [13:16:09]wPrintStart [13:16:09]Write to MH i2c: 01 00 00 62 64 C6 [13:16:09]Write i2c OK [13:16:09]MH_I2C_Read... [13:16:09]Read from MH i2c: 01 [13:16:09]MH_I2C_Read... [13:16:09]Read from MH i2c: 01 07 00 [13:16:09]MH_I2C_Read... [13:16:09]Read from MH i2c: 01 07 00 62 64 00 00 00 00 00 FF 0F DB [13:16:09]RasterBufferAndPrint [13:16:09]line Счет N : (1)320265 [13:16:09]line ИНН: 02508201610067 [13:16:09]line Контрольно-Кассовый Чек [13:16:09]line ПРОДАЖА [13:16:09]line ТРК (МРК, ГНК) : 22 [13:16:09]line Товар: 2710194210 [13:16:09]line ДТ-К-5 [13:16:09]line 13.720 * 72.90 [13:16:09]line = 1000.19 [13:16:09]line НДС 12% НСП 1% [13:16:09]line > о реализуемом товаре [13:16:09]line ОКРУГЛЕНИЕ: -0.19 [13:16:09]line ИТОГО: 1000.00 [13:16:09]line Внесено: 1000.00 [13:16:09]line СДАЧА: 0.00 [13:16:09]line НСП 1% : 8.85 [13:16:09]line НДС 12% : 106.21 [13:16:09]line Наличными: 1000.00 [13:16:09]line Безнал.: 0.00 [13:16:09]line Место: АЗС № 65 "Партнер Нефть" [13:16:09]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:16:09]line СНО: Общий режим [13:16:09]line Чек 113 20.06.2024 13:16 [13:16:09]line Смена: 389 ФФД: 1.0 [13:16:09]line ЗНМ: 0300000198 [13:16:09]line РНМ: 0000000000092771 [13:16:09]line Версия ККМ: 001 [13:16:09]line ФМ: 0000000000875083 [13:16:09]line ФД: 111663 [13:16:09]line ФПД: 238560916391205 [13:16:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T131643&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111663&fm=238560916391205&tin=02508201610067®Number=0000000000092771&sum=100000 [13:16:10]OFD Sender: Processing packet 111663 [packets to send 38, broken 37] [13:16:10]ProducePacketName [13:16:10]name=ofd_packets/00111663 [13:16:10]OFD Sender: To server: pG, [13:16:10]CommunicateWithHost lk.salyk.kg:30040 [13:16:10]ConnectInit lk.salyk.kg [13:16:10]written 0, free lines is 4095 [13:16:10]Connected sock=11 [13:16:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 35 D6 04 01 28 03 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 BB 2B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2F B4 01 00 35 04 06 00 D8 F8 4A AD C5 25 59 E5 DB BF 1C 8F 59 7A [13:16:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 84 AB 47 00 EC D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2F B4 01 00 F4 03 04 00 04 C3 73 66 B6 04 01 00 00 30 21 02 04 6F B0 FA B7 [13:16:10]CommunicateWithHost err = 0 [13:16:10]CheckOFDResponse [13:16:10]1017 (14) - 77093643461234 [13:16:10]1041 (16) - 0000000000875083 [13:16:10]1040 (4) - 111663 [13:16:10]1012 (4) - 20.06.2024 05:49 [13:16:10]1206 (1) - 0 [13:16:10]OFD Sender: Remove packet 111663 [13:16:10]ProducePacketName [13:16:10]name=ofd_packets/00111663 [13:16:10]NVStorageDeleteData [13:16:10]Write to MH i2c: 01 00 00 8D 64 F1 [13:16:10]Write i2c OK [13:16:10]MH_I2C_Read... [13:16:10]Read from MH i2c: 01 [13:16:10]MH_I2C_Read... [13:16:10]Read from MH i2c: 01 07 00 [13:16:10]MH_I2C_Read... [13:16:10]Read from MH i2c: 01 07 00 8D 64 00 00 00 00 00 D6 0C DA [13:16:10]RasterBufferAndPrint [13:16:10]line [13:16:10]line [13:16:10]line [13:16:10]line [13:16:10]line [13:16:10]written 0, free lines is 3293 [13:16:10]MH_Cut [13:16:10]Write to MH i2c: D1 01 00 94 64 01 CA [13:16:10]Write i2c OK [13:16:10]MH_I2C_Read... [13:16:10]Read from MH i2c: D1 [13:16:10]MH_I2C_Read... [13:16:10]Read from MH i2c: D1 01 00 [13:16:10]MH_I2C_Read... [13:16:10]Read from MH i2c: D1 01 00 94 64 00 C9 [13:16:10]Write to MH i2c: 01 00 00 95 64 F9 [13:16:10]Write i2c OK [13:16:10]MH_I2C_Read... [13:16:10]OFD Sender: No OFD packet to send [13:16:11]*** Cut start [13:16:11]*** Partial cut [13:16:11]*** CUTSNS_PIN = 1 [13:16:11]*** CUTSNS_PIN = 0 [13:16:11]*** Brake cut motor [13:16:11]Read from MH i2c: 01 [13:16:11]MH_I2C_Read... [13:16:11]*** Stop cut motor [13:16:12]*** Cut end [13:16:12]Read from MH i2c: 01 07 00 [13:16:12]MH_I2C_Read... [13:16:12]Read from MH i2c: 01 07 00 95 64 00 00 00 00 00 FF 0F 0E [13:16:12]process_action close_receipt done [13:16:12]requested_data is exist [13:16:12]produce_requested_data [13:16:12]requested_item fm.sn is exist - process it [13:16:12]wFMCommunicate request_size=4 [13:16:12]MH_SAM_APDU [13:16:12]CAPDU: 80 11 00 00 [13:16:12]Write to MH i2c: E2 08 00 96 64 80 11 00 00 00 00 00 00 74 [13:16:12]Write i2c OK [13:16:12]MH_I2C_Read... [13:16:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:12]Read from MH i2c: E2 [13:16:12]MH_I2C_Read... [13:16:12]Read from MH i2c: E2 17 00 [13:16:12]MH_I2C_Read... [13:16:12]Read from MH i2c: E2 17 00 96 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C6 [13:16:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:16:12]wFMCommunicate OK [13:16:12]requested_item fd.num is exist - process it [13:16:12]SAM_PROTO_GetFieldsCounters [13:16:12]wFMCommunicate request_size=4 [13:16:12]MH_SAM_APDU [13:16:12]CAPDU: 80 13 00 00 [13:16:12]Write to MH i2c: E2 08 00 97 64 80 13 00 00 00 00 00 00 77 [13:16:12]Write i2c OK [13:16:12]MH_I2C_Read... [13:16:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:16:12]Read from MH i2c: E2 [13:16:12]MH_I2C_Read... [13:16:12]Read from MH i2c: E2 62 00 [13:16:12]MH_I2C_Read... [13:16:12]Read from MH i2c: E2 62 00 97 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2F B4 01 00 0E 04 04 00 85 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 55 [13:16:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2F B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:16:12]wFMCommunicate OK [13:16:12]SAM_PROTO_GetFieldsCounters done [13:16:12]requested_item shift.num is exist - process it [13:16:12]requested_item shift.opened is exist - process it [13:16:12]req_shift_opened [13:16:12]FM_GetShiftState [13:16:12]SAM_PROTO_GetShiftState [13:16:12]wFMCommunicate request_size=4 [13:16:12]MH_SAM_APDU [13:16:12]CAPDU: 80 13 01 00 [13:16:12]Write to MH i2c: E2 08 00 98 64 80 13 01 00 00 00 00 00 79 [13:16:12]Write i2c OK [13:16:12]MH_I2C_Read... [13:16:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:12]Read from MH i2c: E2 [13:16:12]MH_I2C_Read... [13:16:12]Read from MH i2c: E2 0E 00 [13:16:12]MH_I2C_Read... [13:16:12]Read from MH i2c: E2 0E 00 98 64 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 F4 [13:16:12]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:16:12]wFMCommunicate OK [13:16:12]SAM_PROTO_GetShiftState done [13:16:12]FM_GetShiftState done [13:16:12]req_shift_opened done [13:16:12]requested_item shift.open_date is exist - process it [13:16:12]req_shift_open_date [13:16:12]req_shift_open_date done [13:16:12]produce_requested_data done [13:16:12]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111663,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [13:16:12]process_action_free close_receipt [13:16:12]json_value_free [13:16:12]json_value_free done [13:16:12]process_json_proto returns [13:16:12]Send response to host [13:16:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111663,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [13:16:12]free response buf [13:16:12]execute_script done [13:16:12]execute_script returns [13:16:12]free content buf [13:16:12]Sock 7.Close socket [13:16:12]Sock 7.Thread stoped [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:41]OFD Sender: No OFD packet to send [13:16:46]OFD Sender: No OFD packet to send [13:16:51]OFD Sender: No OFD packet to send [13:16:56]OFD Sender: No OFD packet to send [13:17:01]OFD Sender: No OFD packet to send [13:17:06]OFD Sender: No OFD packet to send [13:17:11]OFD Sender: No OFD packet to send [13:17:16]OFD Sender: No OFD packet to send [13:17:21]OFD Sender: No OFD packet to send [13:17:26]OFD Sender: No OFD packet to send [13:17:31]OFD Sender: No OFD packet to send [13:17:36]OFD Sender: No OFD packet to send [13:17:41]OFD Sender: No OFD packet to send [13:17:46]OFD Sender: No OFD packet to send [13:17:51]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:37]accept exits with 9 [13:18:37]New connection [13:18:37]New thread 3067465060 created [13:18:37]Thread 3067321700 joined [13:18:37]Waiting for new connection... [13:18:37] Sock 9.Parse request [13:18:37]Sock 9.Check first char [13:18:37]Sock 9.First char is OK [13:18:37]request: POST /json_proto HTTP/1.0 [13:18:37]Method: POST [13:18:37]URL: /json_proto [13:18:37]Method is POST - this is cgi request [13:18:37]url: /json_proto [13:18:37]query_string will be loaded in cgi processing [13:18:37]execute_cgi json_proto POST (null) [13:18:37]execute_cgi path=json_proto method=POST [13:18:37]POST find Content-Length [13:18:37]Host: 172.17.59.68:8080 [13:18:37]Content-Length: 682 [13:18:37]Content-Type: application/json [13:18:37] [13:18:37]POST finish read [13:18:37]Found Content-Length = 682 [13:18:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:37]execute_script... [13:18: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)320266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:37]POST & json_proto [13:18:37]process_json_proto [13:18:37]json parsed OK: [13:18:37]protocol is kg_v1.0 [13:18:37]action value=close_receipt [13:18:37]process_action close_receipt [13:18:37]cmd_close_receipt [13:18:37]MH_GetDate [13:18:37]Write to MH i2c: F0 00 00 99 64 EC [13:18:37]Write i2c OK [13:18:37]MH_I2C_Read... [13:18:37]Read from MH i2c: F0 [13:18:37]MH_I2C_Read... [13:18:37]Read from MH i2c: F0 09 00 [13:18:37]MH_I2C_Read... [13:18:37]Read from MH i2c: F0 09 00 99 64 00 50 2C 74 66 BC EC 60 65 B8 [13:18:37]GetLastDocTimeStamp 1718889403 [13:18:37]current date 1718889552 [13:18:37]FM_GetShiftState [13:18:37]SAM_PROTO_GetShiftState [13:18:37]wFMCommunicate request_size=4 [13:18:37]MH_SAM_APDU [13:18:37]CAPDU: 80 13 01 00 [13:18:37]Write to MH i2c: E2 08 00 9A 64 80 13 01 00 00 00 00 00 7B [13:18:37]Write i2c OK [13:18:37]MH_I2C_Read... [13:18:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:37]Read from MH i2c: E2 [13:18:37]MH_I2C_Read... [13:18:37]Read from MH i2c: E2 0E 00 [13:18:37]MH_I2C_Read... [13:18:37]Read from MH i2c: E2 0E 00 9A 64 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 F6 [13:18:37]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:18:37]wFMCommunicate OK [13:18:37]SAM_PROTO_GetShiftState done [13:18:37]FM_GetShiftState done [13:18:37]opened in 1718847247 [13:18:37]opened+sec_in_day 1718933647 [13:18:37]quantity*price = 200063 [13:18:37]sum+1 = 200064 [13:18:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 114 20.06.2024 13:19 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111664 ФПД: 242082015990472 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T131912&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111664&fm=242082015990472&tin=02508201610067®Number=0000000000092771&sum=200000 [13:18:38]StoreToDocumentArchive [13:18:38]shift 389 fd 111664 [13:18:38]save to /storage/0389/doc_00111664 [13:18:38]save last doc name /storage/0389/doc_00111664 to /storage/kkm_last_doc_name [13:18:38]save OK [13:18:38]Clear old archive folders... [13:18:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:18:38]tlvbuf is 00F1EAF0 [13:18:38]SAM_PROTO_ClearQueue [13:18:38]wFMCommunicate request_size=4 [13:18:38]MH_SAM_APDU [13:18:38]CAPDU: 80 09 00 00 [13:18:38]Write to MH i2c: E2 08 00 A7 64 80 09 00 00 00 00 00 00 7D [13:18:38]Write i2c OK [13:18:38]MH_I2C_Read... [13:18:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:18:38]Read from MH i2c: E2 [13:18:38]MH_I2C_Read... [13:18:38]Read from MH i2c: E2 03 00 [13:18:38]MH_I2C_Read... [13:18:38]Read from MH i2c: E2 03 00 A7 64 00 90 00 7F [13:18:38]RAPDU: 90 00 [13:18:38]wFMCommunicate OK [13:18:38]SAM_PROTO_ClearQueue done [13:18:38]KKMCreateOFDPacket [13:18:38]OFDProtocolAddRootSTLVToBuf [13:18:38]FM_MakeSignedData [13:18:38]FM_MakeSignedData [13:18:38]SAM_PROTO_SignData [13:18:38]wFMCommunicate request_size=4 [13:18:38]MH_SAM_APDU [13:18:38]CAPDU: 80 0D 01 02 [13:18:38]Write to MH i2c: E2 08 00 A8 64 80 0D 01 02 00 00 00 00 85 [13:18:38]Write i2c OK [13:18:38]MH_I2C_Read... [13:18:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:18:38]Read from MH i2c: E2 [13:18:38]MH_I2C_Read... [13:18:38]Read from MH i2c: E2 03 00 [13:18:38]MH_I2C_Read... [13:18:38]Read from MH i2c: E2 03 00 A8 64 00 90 00 80 [13:18:38]RAPDU: 90 00 [13:18:38]wFMCommunicate OK [13:18:38]wFMCommunicate request_size=255 [13:18:38]MH_SAM_APDU [13:18: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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 50 2C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 30 B4 01 00 35 04 06 00 DC [13:18:38]Write to MH i2c: E2 02 01 A9 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 50 2C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 30 B4 01 00 35 04 06 00 DC 00 00 3D [13:18:38]Write i2c OK [13:18:38]MH_I2C_Read... [13:18:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:38]Read from MH i2c: E2 [13:18:38]MH_I2C_Read... [13:18:38]Read from MH i2c: E2 03 00 [13:18:38]MH_I2C_Read... [13:18:38]Read from MH i2c: E2 03 00 A9 64 00 90 00 81 [13:18:38]RAPDU: 90 00 [13:18:38]wFMCommunicate OK [13:18:38]wFMCommunicate request_size=10 [13:18:38]MH_SAM_APDU [13:18:38]CAPDU: 80 0D 02 02 05 2C 1C 91 D2 C8 [13:18:38]Write to MH i2c: E2 0D 00 AA 64 80 0D 02 02 05 00 2C 1C 91 D2 C8 00 00 05 [13:18:38]Write i2c OK [13:18:38]MH_I2C_Read... [13:18:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:38]Read from MH i2c: E2 [13:18:38]MH_I2C_Read... [13:18:38]Read from MH i2c: E2 03 00 [13:18:38]MH_I2C_Read... [13:18:38]Read from MH i2c: E2 03 00 AA 64 00 90 00 82 [13:18:38]RAPDU: 90 00 [13:18:38]wFMCommunicate OK [13:18:38]wFMCommunicate request_size=4 [13:18:38]MH_SAM_APDU [13:18:38]CAPDU: 80 0D 03 02 [13:18:38]Write to MH i2c: E2 08 00 AB 64 80 0D 03 02 00 00 00 00 8A [13:18:38]Write i2c OK [13:18:38]MH_I2C_Read... [13:18:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:18:38]Read from MH i2c: E2 [13:18:38]MH_I2C_Read... [13:18:38]Read from MH i2c: E2 0B 00 [13:18:38]MH_I2C_Read... [13:18:38]Read from MH i2c: E2 0B 00 AB 64 00 8C CE B6 53 59 EB CE DA 90 00 DA [13:18:38]RAPDU: 8C CE B6 53 59 EB CE DA 90 00 [13:18:38]wFMCommunicate OK [13:18:38]SAM_PROTO_SignData done [13:18:38]FM_MakeSignedData done [13:18:38]CreateOFDProtocolMessage [13:18:38]wFMCommunicate request_size=4 [13:18:38]MH_SAM_APDU [13:18:38]CAPDU: 80 11 00 00 [13:18:38]Write to MH i2c: E2 08 00 AC 64 80 11 00 00 00 00 00 00 8A [13:18:38]Write i2c OK [13:18:38]MH_I2C_Read... [13:18:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:38]Read from MH i2c: E2 [13:18:38]MH_I2C_Read... [13:18:38]Read from MH i2c: E2 17 00 [13:18:38]MH_I2C_Read... [13:18:38]Read from MH i2c: E2 17 00 AC 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DC [13:18:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:18:38]wFMCommunicate OK [13:18:38]CreateOFDProtocolMessage done [13:18:38]OFDSenderStorePacket 111664 [13:18:38]StoreOFDPacket docnum=111664 [13:18:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 22 F2 07 01 7F 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 50 2C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 30 B4 01 00 35 04 06 00 DC 2C 1C 91 D2 C8 8C CE B6 53 59 EB CE DA [13:18:38]CheckFolder [13:18:38]dirname=/storage/ofd_packets [13:18:38]CheckFolder done [13:18:38]ProducePacketName [13:18:38]name=ofd_packets/00111664 [13:18:38]NVStorageSaveData ofd_packets/00111664 [13:18:38]File name is /storage/ofd_packets/00111664 [13:18:38]Write 301 bytes [13:18:38]NVStorageSaveData done [13:18:38]OFDSenderStorePacket done [13:18:38]KKMCreateOFDPacket done [13:18:38]NVStorageSaveData kkm_last_timestamp [13:18:38]File name is /storage/kkm_last_timestamp [13:18:38]Write 4 bytes [13:18:38]NVStorageSaveData done [13:18:38]ExternCall_PrintAddStr [13:18:38]wPrintStart [13:18:38]Write to MH i2c: 01 00 00 AD 64 11 [13:18:38]Write i2c OK [13:18:38]MH_I2C_Read... [13:18:38]Read from MH i2c: 01 [13:18:38]MH_I2C_Read... [13:18:38]Read from MH i2c: 01 07 00 [13:18:38]MH_I2C_Read... [13:18:38]Read from MH i2c: 01 07 00 AD 64 00 00 00 00 00 FF 0F 26 [13:18:38]RasterBufferAndPrint [13:18:38]line Счет N : (1)320266 [13:18:38]line ИНН: 02508201610067 [13:18:38]line Контрольно-Кассовый Чек [13:18:38]line ПРОДАЖА [13:18:38]line ТРК (МРК, ГНК) : 11 [13:18:38]line Товар: 2710124130 [13:18:38]line Аи-92-К-5 [13:18:38]line 30.130 * 66.40 [13:18:38]line = 2000.63 [13:18:38]line НДС 12% НСП 1% [13:18:38]line > о реализуемом товаре [13:18:38]line ОКРУГЛЕНИЕ: -0.63 [13:18:38]line ИТОГО: 2000.00 [13:18:38]line Внесено: 2000.00 [13:18:38]line СДАЧА: 0.00 [13:18:38]line НСП 1% : 17.70 [13:18:38]line НДС 12% : 212.46 [13:18:38]line Наличными: 2000.00 [13:18:38]line Безнал.: 0.00 [13:18:38]line Место: АЗС № 65 "Партнер Нефть" [13:18:38]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:18:38]line СНО: Общий режим [13:18:38]line Чек 114 20.06.2024 13:19 [13:18:38]line Смена: 389 ФФД: 1.0 [13:18:38]line ЗНМ: 0300000198 [13:18:38]line РНМ: 0000000000092771 [13:18:38]line Версия ККМ: 001 [13:18:38]line ФМ: 0000000000875083 [13:18:38]line ФД: 111664 [13:18:38]line ФПД: 242082015990472 [13:18:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T131912&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111664&fm=242082015990472&tin=02508201610067®Number=0000000000092771&sum=200000 [13:18:39]OFD Sender: Processing packet 111664 [packets to send 38, broken 37] [13:18:39]ProducePacketName [13:18:39]name=ofd_packets/00111664 [13:18:39]OFD Sender: To server: pG, [13:18:39]CommunicateWithHost lk.salyk.kg:30040 [13:18:39]ConnectInit lk.salyk.kg [13:18:39]written 0, free lines is 4095 [13:18:39]Connected sock=10 [13:18:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 22 F2 07 01 7F 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 50 2C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 30 B4 01 00 35 04 06 00 DC 2C 1C 91 D2 C8 8C CE B6 53 59 EB CE DA [13:18:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 49 CF 47 00 F2 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 30 B4 01 00 F4 03 04 00 99 C3 73 66 B6 04 01 00 00 E5 CA 88 46 A1 BB F6 AC [13:18:39]CommunicateWithHost err = 0 [13:18:39]CheckOFDResponse [13:18:39]1017 (14) - 77093643461234 [13:18:39]1041 (16) - 0000000000875083 [13:18:39]1040 (4) - 111664 [13:18:39]1012 (4) - 20.06.2024 05:52 [13:18:39]1206 (1) - 0 [13:18:39]OFD Sender: Remove packet 111664 [13:18:39]ProducePacketName [13:18:39]name=ofd_packets/00111664 [13:18:39]NVStorageDeleteData [13:18:39]Write to MH i2c: 01 00 00 D8 64 3C [13:18:39]Write i2c OK [13:18:39]MH_I2C_Read... [13:18:39]Read from MH i2c: 01 [13:18:39]MH_I2C_Read... [13:18:39]Read from MH i2c: 01 07 00 [13:18:39]MH_I2C_Read... [13:18:39]Read from MH i2c: 01 07 00 D8 64 00 00 00 00 00 D3 0C 22 [13:18:39]RasterBufferAndPrint [13:18:39]line [13:18:39]line [13:18:39]line [13:18:39]line [13:18:39]line [13:18:39]written 0, free lines is 3290 [13:18:39]MH_Cut [13:18:39]Write to MH i2c: D1 01 00 DF 64 01 15 [13:18:39]Write i2c OK [13:18:39]MH_I2C_Read... [13:18:39]Read from MH i2c: D1 [13:18:39]MH_I2C_Read... [13:18:39]Read from MH i2c: D1 01 00 [13:18:39]MH_I2C_Read... [13:18:39]Read from MH i2c: D1 01 00 DF 64 00 14 [13:18:39]Write to MH i2c: 01 00 00 E0 64 44 [13:18:39]Write i2c OK [13:18:39]MH_I2C_Read... [13:18:40]OFD Sender: No OFD packet to send [13:18:40]*** Cut start [13:18:40]*** Partial cut [13:18:40]*** CUTSNS_PIN = 1 [13:18:40]*** CUTSNS_PIN = 0 [13:18:40]*** Brake cut motor [13:18:41]Read from MH i2c: 01 [13:18:41]MH_I2C_Read... [13:18:41]*** Stop cut motor [13:18:41]*** Cut end [13:18:41]Read from MH i2c: 01 07 00 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: 01 07 00 E0 64 00 00 00 00 00 FF 0F 59 [13:18:41]process_action close_receipt done [13:18:41]requested_data is exist [13:18:41]produce_requested_data [13:18:41]requested_item fm.sn is exist - process it [13:18:41]wFMCommunicate request_size=4 [13:18:41]MH_SAM_APDU [13:18:41]CAPDU: 80 11 00 00 [13:18:41]Write to MH i2c: E2 08 00 E1 64 80 11 00 00 00 00 00 00 BF [13:18:41]Write i2c OK [13:18:41]MH_I2C_Read... [13:18:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:41]Read from MH i2c: E2 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 17 00 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 17 00 E1 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 11 [13:18:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:18:41]wFMCommunicate OK [13:18:41]requested_item fd.num is exist - process it [13:18:41]SAM_PROTO_GetFieldsCounters [13:18:41]wFMCommunicate request_size=4 [13:18:41]MH_SAM_APDU [13:18:41]CAPDU: 80 13 00 00 [13:18:41]Write to MH i2c: E2 08 00 E2 64 80 13 00 00 00 00 00 00 C2 [13:18:41]Write i2c OK [13:18:41]MH_I2C_Read... [13:18:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:18:41]Read from MH i2c: E2 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 62 00 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 62 00 E2 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 30 B4 01 00 0E 04 04 00 85 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 A4 [13: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 30 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:18:41]wFMCommunicate OK [13:18:41]SAM_PROTO_GetFieldsCounters done [13:18:41]requested_item shift.num is exist - process it [13:18:41]requested_item shift.opened is exist - process it [13:18:41]req_shift_opened [13:18:41]FM_GetShiftState [13:18:41]SAM_PROTO_GetShiftState [13:18:41]wFMCommunicate request_size=4 [13:18:41]MH_SAM_APDU [13:18:41]CAPDU: 80 13 01 00 [13:18:41]Write to MH i2c: E2 08 00 E3 64 80 13 01 00 00 00 00 00 C4 [13:18:41]Write i2c OK [13:18:41]MH_I2C_Read... [13:18:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:41]Read from MH i2c: E2 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 0E 00 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 0E 00 E3 64 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 3F [13:18:41]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:18:41]wFMCommunicate OK [13:18:41]SAM_PROTO_GetShiftState done [13:18:41]FM_GetShiftState done [13:18:41]req_shift_opened done [13:18:41]requested_item shift.open_date is exist - process it [13:18:41]req_shift_open_date [13:18:41]req_shift_open_date done [13:18:41]produce_requested_data done [13:18:41]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111664,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [13:18:41]process_action_free close_receipt [13:18:41]json_value_free [13:18:41]json_value_free done [13:18:41]process_json_proto returns [13:18:41]Send response to host [13:18:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111664,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [13:18:41]free response buf [13:18:41]execute_script done [13:18:41]execute_script returns [13:18:41]free content buf [13:18:41]Sock 9.Close socket [13:18:41]Sock 9.Thread stoped [13:18:45]OFD Sender: No OFD packet to send [13:18:50]OFD Sender: No OFD packet to send [13:18:55]OFD Sender: No OFD packet to send [13:19:00]OFD Sender: No OFD packet to send [13:19:05]OFD Sender: No OFD packet to send [13:19:08]accept exits with 7 [13:19:08]New connection [13:19:08]New thread 3067321700 created [13:19:08]Thread 3067465060 joined [13:19:08]Waiting for new connection... [13:19:08] Sock 7.Parse request [13:19:08]Sock 7.Check first char [13:19:08]Sock 7.First char is OK [13:19:08]request: POST /json_proto HTTP/1.0 [13:19:08]Method: POST [13:19:08]URL: /json_proto [13:19:08]Method is POST - this is cgi request [13:19:08]url: /json_proto [13:19:08]query_string will be loaded in cgi processing [13:19:08]execute_cgi json_proto POST (null) [13:19:08]execute_cgi path=json_proto method=POST [13:19:08]POST find Content-Length [13:19:08]Host: 172.17.59.68:8080 [13:19:08]Content-Length: 677 [13:19:08]Content-Type: application/json [13:19:08] [13:19:08]POST finish read [13:19:08]Found Content-Length = 677 [13:19:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:08]execute_script... [13: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)320267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:08]POST & json_proto [13:19:08]process_json_proto [13:19:08]json parsed OK: [13:19:08]protocol is kg_v1.0 [13:19:08]action value=close_receipt [13:19:08]process_action close_receipt [13:19:08]cmd_close_receipt [13:19:08]MH_GetDate [13:19:08]Write to MH i2c: F0 00 00 E4 64 37 [13:19:08]Write i2c OK [13:19:08]MH_I2C_Read... [13:19:08]Read from MH i2c: F0 [13:19:08]MH_I2C_Read... [13:19:08]Read from MH i2c: F0 09 00 [13:19:08]MH_I2C_Read... [13:19:08]Read from MH i2c: F0 09 00 E4 64 00 6F 2C 74 66 BC EC 60 65 22 [13:19:08]GetLastDocTimeStamp 1718889552 [13:19:08]current date 1718889583 [13:19:08]FM_GetShiftState [13:19:08]SAM_PROTO_GetShiftState [13:19:08]wFMCommunicate request_size=4 [13:19:08]MH_SAM_APDU [13:19:08]CAPDU: 80 13 01 00 [13:19:08]Write to MH i2c: E2 08 00 E5 64 80 13 01 00 00 00 00 00 C6 [13:19:08]Write i2c OK [13:19:08]MH_I2C_Read... [13:19:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:08]Read from MH i2c: E2 [13:19:08]MH_I2C_Read... [13:19:08]Read from MH i2c: E2 0E 00 [13:19:08]MH_I2C_Read... [13:19:08]Read from MH i2c: E2 0E 00 E5 64 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 41 [13:19:08]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:19:08]wFMCommunicate OK [13:19:08]SAM_PROTO_GetShiftState done [13:19:08]FM_GetShiftState done [13:19:08]opened in 1718847247 [13:19:08]opened+sec_in_day 1718933647 [13:19:08]quantity*price = 20052 [13:19:08]sum+1 = 20054 [13:19:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 115 20.06.2024 13:19 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111665 ФПД: 9734323199182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T131943&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111665&fm=9734323199182&tin=02508201610067®Number=0000000000092771&sum=20000 [13:19:09]StoreToDocumentArchive [13:19:09]shift 389 fd 111665 [13:19:09]save to /storage/0389/doc_00111665 [13:19:09]save last doc name /storage/0389/doc_00111665 to /storage/kkm_last_doc_name [13:19:09]save OK [13:19:09]Clear old archive folders... [13:19:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:19:09]tlvbuf is 00F37B20 [13:19:09]SAM_PROTO_ClearQueue [13:19:09]wFMCommunicate request_size=4 [13:19:09]MH_SAM_APDU [13:19:09]CAPDU: 80 09 00 00 [13:19:09]Write to MH i2c: E2 08 00 F2 64 80 09 00 00 00 00 00 00 C8 [13:19:09]Write i2c OK [13:19:09]MH_I2C_Read... [13:19:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:19:09]Read from MH i2c: E2 [13:19:09]MH_I2C_Read... [13:19:09]Read from MH i2c: E2 03 00 [13:19:09]MH_I2C_Read... [13:19:09]Read from MH i2c: E2 03 00 F2 64 00 90 00 CA [13:19:09]RAPDU: 90 00 [13:19:09]wFMCommunicate OK [13:19:09]SAM_PROTO_ClearQueue done [13:19:09]KKMCreateOFDPacket [13:19:09]OFDProtocolAddRootSTLVToBuf [13:19:09]FM_MakeSignedData [13:19:09]FM_MakeSignedData [13:19:09]SAM_PROTO_SignData [13:19:09]wFMCommunicate request_size=4 [13:19:09]MH_SAM_APDU [13:19:09]CAPDU: 80 0D 01 02 [13:19:09]Write to MH i2c: E2 08 00 F3 64 80 0D 01 02 00 00 00 00 D0 [13:19:09]Write i2c OK [13:19:09]MH_I2C_Read... [13:19:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:19:09]Read from MH i2c: E2 [13:19:09]MH_I2C_Read... [13:19:09]Read from MH i2c: E2 03 00 [13:19:09]MH_I2C_Read... [13:19:09]Read from MH i2c: E2 03 00 F3 64 00 90 00 CB [13:19:09]RAPDU: 90 00 [13:19:09]wFMCommunicate OK [13:19:09]wFMCommunicate request_size=255 [13:19:09]MH_SAM_APDU [13: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 6F 2C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 31 B4 01 00 35 04 06 00 08 [13:19:09]Write to MH i2c: E2 02 01 F4 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 6F 2C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 31 B4 01 00 35 04 06 00 08 00 00 9F [13:19:09]Write i2c OK [13:19:09]MH_I2C_Read... [13:19:09]Read from MH i2c: E2 [13:19:09]MH_I2C_Read... [13:19:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:09]Read from MH i2c: E2 03 00 [13:19:09]MH_I2C_Read... [13:19:09]Read from MH i2c: E2 03 00 F4 64 00 90 00 CC [13:19:09]RAPDU: 90 00 [13:19:09]wFMCommunicate OK [13:19:09]wFMCommunicate request_size=10 [13:19:09]MH_SAM_APDU [13:19:09]CAPDU: 80 0D 02 02 05 DA 72 E0 5C CE [13:19:09]Write to MH i2c: E2 0D 00 F5 64 80 0D 02 02 05 00 DA 72 E0 5C CE 00 00 33 [13:19:09]Write i2c OK [13:19:09]MH_I2C_Read... [13:19:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:09]Read from MH i2c: E2 [13:19:09]MH_I2C_Read... [13:19:09]Read from MH i2c: E2 03 00 [13:19:09]MH_I2C_Read... [13:19:09]Read from MH i2c: E2 03 00 F5 64 00 90 00 CD [13:19:09]RAPDU: 90 00 [13:19:09]wFMCommunicate OK [13:19:09]wFMCommunicate request_size=4 [13:19:09]MH_SAM_APDU [13:19:09]CAPDU: 80 0D 03 02 [13:19:09]Write to MH i2c: E2 08 00 F6 64 80 0D 03 02 00 00 00 00 D5 [13:19:09]Write i2c OK [13:19:09]MH_I2C_Read... [13:19:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:19:09]Read from MH i2c: E2 [13:19:09]MH_I2C_Read... [13:19:09]Read from MH i2c: E2 0B 00 [13:19:09]MH_I2C_Read... [13:19:09]Read from MH i2c: E2 0B 00 F6 64 00 D2 D4 FC 01 9E 3A 3C 3D 90 00 CA [13:19:09]RAPDU: D2 D4 FC 01 9E 3A 3C 3D 90 00 [13:19:09]wFMCommunicate OK [13:19:09]SAM_PROTO_SignData done [13:19:09]FM_MakeSignedData done [13:19:09]CreateOFDProtocolMessage [13:19:09]wFMCommunicate request_size=4 [13:19:09]MH_SAM_APDU [13:19:09]CAPDU: 80 11 00 00 [13:19:09]Write to MH i2c: E2 08 00 F7 64 80 11 00 00 00 00 00 00 D5 [13:19:09]Write i2c OK [13:19:09]MH_I2C_Read... [13:19:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:10]Read from MH i2c: E2 [13:19:10]MH_I2C_Read... [13:19:10]Read from MH i2c: E2 17 00 [13:19:10]MH_I2C_Read... [13:19:10]Read from MH i2c: E2 17 00 F7 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 27 [13:19:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:19:10]wFMCommunicate OK [13:19:10]CreateOFDProtocolMessage done [13:19:10]OFDSenderStorePacket 111665 [13:19:10]StoreOFDPacket docnum=111665 [13:19:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BC 6F 07 01 A1 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 6F 2C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 31 B4 01 00 35 04 06 00 08 DA 72 E0 5C CE D2 D4 FC 01 9E 3A 3C 3D [13:19:10]CheckFolder [13:19:10]dirname=/storage/ofd_packets [13:19:10]CheckFolder done [13:19:10]ProducePacketName [13:19:10]name=ofd_packets/00111665 [13:19:10]NVStorageSaveData ofd_packets/00111665 [13:19:10]File name is /storage/ofd_packets/00111665 [13:19:10]Write 301 bytes [13:19:10]NVStorageSaveData done [13:19:10]OFDSenderStorePacket done [13:19:10]KKMCreateOFDPacket done [13:19:10]NVStorageSaveData kkm_last_timestamp [13:19:10]File name is /storage/kkm_last_timestamp [13:19:10]Write 4 bytes [13:19:10]NVStorageSaveData done [13:19:10]ExternCall_PrintAddStr [13:19:10]wPrintStart [13:19:10]Write to MH i2c: 01 00 00 F8 64 5C [13:19:10]Write i2c OK [13:19:10]MH_I2C_Read... [13:19:10]Read from MH i2c: 01 [13:19:10]MH_I2C_Read... [13:19:10]Read from MH i2c: 01 07 00 [13:19:10]MH_I2C_Read... [13:19:10]Read from MH i2c: 01 07 00 F8 64 00 00 00 00 00 FF 0F 71 [13:19:10]RasterBufferAndPrint [13:19:10]line Счет N : (1)320267 [13:19:10]line ИНН: 02508201610067 [13:19:10]line Контрольно-Кассовый Чек [13:19:10]line ПРОДАЖА [13:19:10]line ТРК (МРК, ГНК) : 11 [13:19:10]line Товар: 2710124130 [13:19:10]line Аи-92-К-5 [13:19:10]line 3.020 * 66.40 [13:19:10]line = 200.53 [13:19:10]line НДС 12% НСП 1% [13:19:10]line > о реализуемом товаре [13:19:10]line ОКРУГЛЕНИЕ: -0.53 [13:19:10]line ИТОГО: 200.00 [13:19:10]line Внесено: 200.00 [13:19:10]line СДАЧА: 0.00 [13:19:10]line НСП 1% : 1.77 [13:19:10]line НДС 12% : 21.29 [13:19:10]line Наличными: 200.00 [13:19:10]line Безнал.: 0.00 [13:19:10]line Место: АЗС № 65 "Партнер Нефть" [13:19:10]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:19:10]line СНО: Общий режим [13:19:10]line Чек 115 20.06.2024 13:19 [13:19:10]line Смена: 389 ФФД: 1.0 [13:19:10]line ЗНМ: 0300000198 [13:19:10]line РНМ: 0000000000092771 [13:19:10]line Версия ККМ: 001 [13:19:10]line ФМ: 0000000000875083 [13:19:10]line ФД: 111665 [13:19:10]line ФПД: 9734323199182 [13:19:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T131943&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111665&fm=9734323199182&tin=02508201610067®Number=0000000000092771&sum=20000 [13:19:10]OFD Sender: Processing packet 111665 [packets to send 38, broken 37] [13:19:10]ProducePacketName [13:19:10]name=ofd_packets/00111665 [13:19:10]OFD Sender: To server: pG, [13:19:10]CommunicateWithHost lk.salyk.kg:30040 [13:19:10]ConnectInit lk.salyk.kg [13:19:10]written 0, free lines is 4095 [13:19:10]Connected sock=10 [13:19:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BC 6F 07 01 A1 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 6F 2C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 31 B4 01 00 35 04 06 00 08 DA 72 E0 5C CE D2 D4 FC 01 9E 3A 3C 3D [13:19:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 40 F3 47 00 F8 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 35 30 38 33 10 04 04 00 31 B4 01 00 F4 03 04 00 B8 C3 73 66 B6 04 01 00 00 A4 F4 B3 ED C9 9C 6B 1A [13:19:10]CommunicateWithHost err = 0 [13:19:10]CheckOFDResponse [13:19:10]1017 (14) - 77093643461234 [13:19:10]1041 (16) - 0000000000875083 [13:19:10]1040 (4) - 111665 [13:19:10]1012 (4) - 20.06.2024 05:52 [13:19:10]1206 (1) - 0 [13:19:10]OFD Sender: Remove packet 111665 [13:19:10]ProducePacketName [13:19:10]name=ofd_packets/00111665 [13:19:10]NVStorageDeleteData [13:19:10]Write to MH i2c: 01 00 00 23 65 88 [13:19:10]Write i2c OK [13:19:10]MH_I2C_Read... [13:19:10]Read from MH i2c: 01 [13:19:10]MH_I2C_Read... [13:19:10]Read from MH i2c: 01 07 00 [13:19:10]MH_I2C_Read... [13:19:10]Read from MH i2c: 01 07 00 23 65 00 00 00 00 00 CD 0C 68 [13:19:10]RasterBufferAndPrint [13:19:10]line [13:19:10]line [13:19:10]line [13:19:10]line [13:19:10]line [13:19:10]written 0, free lines is 3281 [13:19:10]MH_Cut [13:19:10]Write to MH i2c: D1 01 00 2A 65 01 61 [13:19:10]Write i2c OK [13:19:10]MH_I2C_Read... [13:19:10]Read from MH i2c: D1 [13:19:10]MH_I2C_Read... [13:19:10]Read from MH i2c: D1 01 00 [13:19:10]MH_I2C_Read... [13:19:10]Read from MH i2c: D1 01 00 2A 65 00 60 [13:19:10]Write to MH i2c: 01 00 00 2B 65 90 [13:19:10]Write i2c OK [13:19:10]MH_I2C_Read... [13:19:11]OFD Sender: No OFD packet to send [13:19:11]*** Cut start [13:19:11]*** Partial cut [13:19:11]*** CUTSNS_PIN = 1 [13:19:11]*** CUTSNS_PIN = 0 [13:19:11]*** Brake cut motor [13:19:12]Read from MH i2c: 01 [13:19:12]MH_I2C_Read... [13:19:12]*** Stop cut motor [13:19:12]*** Cut end [13:19:12]Read from MH i2c: 01 07 00 [13:19:12]MH_I2C_Read... [13:19:12]Read from MH i2c: 01 07 00 2B 65 00 00 00 00 00 FF 0F A5 [13:19:12]process_action close_receipt done [13:19:12]requested_data is exist [13:19:12]produce_requested_data [13:19:12]requested_item fm.sn is exist - process it [13:19:12]wFMCommunicate request_size=4 [13:19:12]MH_SAM_APDU [13:19:12]CAPDU: 80 11 00 00 [13:19:12]Write to MH i2c: E2 08 00 2C 65 80 11 00 00 00 00 00 00 0B [13:19:12]Write i2c OK [13:19:12]MH_I2C_Read... [13:19:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:12]Read from MH i2c: E2 [13:19:12]MH_I2C_Read... [13:19:12]Read from MH i2c: E2 17 00 [13:19:12]MH_I2C_Read... [13:19:12]Read from MH i2c: E2 17 00 2C 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5D [13:19:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:19:12]wFMCommunicate OK [13:19:12]requested_item fd.num is exist - process it [13:19:12]SAM_PROTO_GetFieldsCounters [13:19:12]wFMCommunicate request_size=4 [13:19:12]MH_SAM_APDU [13:19:12]CAPDU: 80 13 00 00 [13:19:12]Write to MH i2c: E2 08 00 2D 65 80 13 00 00 00 00 00 00 0E [13:19:12]Write i2c OK [13:19:12]MH_I2C_Read... [13:19:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:12]Read from MH i2c: E2 [13:19:12]MH_I2C_Read... [13:19:12]Read from MH i2c: E2 62 00 [13:19:12]MH_I2C_Read... [13:19:12]Read from MH i2c: E2 62 00 2D 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 31 B4 01 00 0E 04 04 00 85 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 F4 [13:19:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 31 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:19:12]wFMCommunicate OK [13:19:12]SAM_PROTO_GetFieldsCounters done [13:19:12]requested_item shift.num is exist - process it [13:19:12]requested_item shift.opened is exist - process it [13:19:12]req_shift_opened [13:19:12]FM_GetShiftState [13:19:12]SAM_PROTO_GetShiftState [13:19:12]wFMCommunicate request_size=4 [13:19:12]MH_SAM_APDU [13:19:12]CAPDU: 80 13 01 00 [13:19:12]Write to MH i2c: E2 08 00 2E 65 80 13 01 00 00 00 00 00 10 [13:19:12]Write i2c OK [13:19:12]MH_I2C_Read... [13:19:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:12]Read from MH i2c: E2 [13:19:12]MH_I2C_Read... [13:19:12]Read from MH i2c: E2 0E 00 [13:19:12]MH_I2C_Read... [13:19:12]Read from MH i2c: E2 0E 00 2E 65 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 8B [13:19:12]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:19:12]wFMCommunicate OK [13:19:12]SAM_PROTO_GetShiftState done [13:19:12]FM_GetShiftState done [13:19:12]req_shift_opened done [13:19:12]requested_item shift.open_date is exist - process it [13:19:12]req_shift_open_date [13:19:12]req_shift_open_date done [13:19:12]produce_requested_data done [13:19:12]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111665,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [13:19:12]process_action_free close_receipt [13:19:12]json_value_free [13:19:12]json_value_free done [13:19:12]process_json_proto returns [13:19:12]Send response to host [13:19:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111665,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [13:19:12]free response buf [13:19:12]execute_script done [13:19:12]execute_script returns [13:19:12]free content buf [13:19:12]Sock 7.Close socket [13:19:12]Sock 7.Thread stoped [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:51]accept exits with 9 [13:19:51]New connection [13:19:51]New thread 3067465060 created [13:19:51]Thread 3067321700 joined [13:19:51]Waiting for new connection... [13:19:51] Sock 9.Parse request [13:19:51]Sock 9.Check first char [13:19:51]Sock 9.First char is OK [13:19:51]request: POST /json_proto HTTP/1.0 [13:19:51]Method: POST [13:19:51]URL: /json_proto [13:19:51]Method is POST - this is cgi request [13:19:51]url: /json_proto [13:19:51]query_string will be loaded in cgi processing [13:19:51]execute_cgi json_proto POST (null) [13:19:51]execute_cgi path=json_proto method=POST [13:19:51]POST find Content-Length [13:19:51]Host: 172.17.59.68:8080 [13:19:51]Content-Length: 677 [13:19:51]Content-Type: application/json [13:19:51] [13:19:51]POST finish read [13:19:51]Found Content-Length = 677 [13:19:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 5.420, "sum" : 400.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:51]execute_script... [13:19: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)320268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 5.420, "sum" : 400.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:51]POST & json_proto [13:19:51]process_json_proto [13:19:51]json parsed OK: [13:19:51]protocol is kg_v1.0 [13:19:51]action value=close_receipt [13:19:51]process_action close_receipt [13:19:51]cmd_close_receipt [13:19:51]MH_GetDate [13:19:51]Write to MH i2c: F0 00 00 2F 65 83 [13:19:51]Write i2c OK [13:19:51]MH_I2C_Read... [13:19:51]Read from MH i2c: F0 [13:19:51]MH_I2C_Read... [13:19:51]Read from MH i2c: F0 09 00 [13:19:51]MH_I2C_Read... [13:19:51]Read from MH i2c: F0 09 00 2F 65 00 9A 2C 74 66 BC EC 60 65 99 [13:19:51]GetLastDocTimeStamp 1718889583 [13:19:51]current date 1718889626 [13:19:51]FM_GetShiftState [13:19:51]SAM_PROTO_GetShiftState [13:19:51]wFMCommunicate request_size=4 [13:19:51]MH_SAM_APDU [13:19:51]CAPDU: 80 13 01 00 [13:19:51]Write to MH i2c: E2 08 00 30 65 80 13 01 00 00 00 00 00 12 [13:19:51]Write i2c OK [13:19:51]MH_I2C_Read... [13:19:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:51]Read from MH i2c: E2 [13:19:51]MH_I2C_Read... [13:19:51]Read from MH i2c: E2 0E 00 [13:19:51]MH_I2C_Read... [13:19:51]Read from MH i2c: E2 0E 00 30 65 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 8D [13:19:51]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:19:51]wFMCommunicate OK [13:19:51]SAM_PROTO_GetShiftState done [13:19:51]FM_GetShiftState done [13:19:51]opened in 1718847247 [13:19:51]opened+sec_in_day 1718933647 [13:19:51]quantity*price = 40053 [13:19:51]sum+1 = 40055 [13:19:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 116 20.06.2024 13:20 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111666 ФПД: 11455829549870 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T132026&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111666&fm=11455829549870&tin=02508201610067®Number=0000000000092771&sum=40000 [13:19:52]StoreToDocumentArchive [13:19:52]shift 389 fd 111666 [13:19:52]save to /storage/0389/doc_00111666 [13:19:52]save last doc name /storage/0389/doc_00111666 to /storage/kkm_last_doc_name [13:19:52]save OK [13:19:52]Clear old archive folders... [13:19:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:19:52]tlvbuf is B6F57400 [13:19:52]SAM_PROTO_ClearQueue [13:19:52]wFMCommunicate request_size=4 [13:19:52]MH_SAM_APDU [13:19:52]CAPDU: 80 09 00 00 [13:19:52]Write to MH i2c: E2 08 00 3D 65 80 09 00 00 00 00 00 00 14 [13:19:52]Write i2c OK [13:19:52]MH_I2C_Read... [13:19:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:19:52]Read from MH i2c: E2 [13:19:52]MH_I2C_Read... [13:19:52]Read from MH i2c: E2 03 00 [13:19:52]MH_I2C_Read... [13:19:52]Read from MH i2c: E2 03 00 3D 65 00 90 00 16 [13:19:52]RAPDU: 90 00 [13:19:52]wFMCommunicate OK [13:19:52]SAM_PROTO_ClearQueue done [13:19:52]KKMCreateOFDPacket [13:19:52]OFDProtocolAddRootSTLVToBuf [13:19:52]FM_MakeSignedData [13:19:52]FM_MakeSignedData [13:19:52]SAM_PROTO_SignData [13:19:52]wFMCommunicate request_size=4 [13:19:52]MH_SAM_APDU [13:19:52]CAPDU: 80 0D 01 02 [13:19:52]Write to MH i2c: E2 08 00 3E 65 80 0D 01 02 00 00 00 00 1C [13:19:52]Write i2c OK [13:19:52]MH_I2C_Read... [13:19:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:19:52]Read from MH i2c: E2 [13:19:52]MH_I2C_Read... [13:19:52]Read from MH i2c: E2 03 00 [13:19:52]MH_I2C_Read... [13:19:52]Read from MH i2c: E2 03 00 3E 65 00 90 00 17 [13:19:52]RAPDU: 90 00 [13:19:52]wFMCommunicate OK [13:19:52]wFMCommunicate request_size=255 [13:19:52]MH_SAM_APDU [13:19: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 2C 15 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 76 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 9D 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 74 00 00 00 F4 03 04 00 9A 2C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 32 B4 01 00 35 04 06 00 0A [13:19:52]Write to MH i2c: E2 02 01 3F 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2C 15 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 76 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 9D 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 74 00 00 00 F4 03 04 00 9A 2C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 32 B4 01 00 35 04 06 00 0A 00 00 CA [13:19:52]Write i2c OK [13:19:52]MH_I2C_Read... [13:19:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:53]Read from MH i2c: E2 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: E2 03 00 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: E2 03 00 3F 65 00 90 00 18 [13:19:53]RAPDU: 90 00 [13:19:53]wFMCommunicate OK [13:19:53]wFMCommunicate request_size=10 [13:19:53]MH_SAM_APDU [13:19:53]CAPDU: 80 0D 02 02 05 6B 44 A6 A3 2E [13:19:53]Write to MH i2c: E2 0D 00 40 65 80 0D 02 02 05 00 6B 44 A6 A3 2E 00 00 4F [13:19:53]Write i2c OK [13:19:53]MH_I2C_Read... [13:19:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:53]Read from MH i2c: E2 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: E2 03 00 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: E2 03 00 40 65 00 90 00 19 [13:19:53]RAPDU: 90 00 [13:19:53]wFMCommunicate OK [13:19:53]wFMCommunicate request_size=4 [13:19:53]MH_SAM_APDU [13:19:53]CAPDU: 80 0D 03 02 [13:19:53]Write to MH i2c: E2 08 00 41 65 80 0D 03 02 00 00 00 00 21 [13:19:53]Write i2c OK [13:19:53]MH_I2C_Read... [13:19:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:19:53]Read from MH i2c: E2 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: E2 0B 00 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: E2 0B 00 41 65 00 1E 4C 76 E4 AB A8 65 77 90 00 15 [13:19:53]RAPDU: 1E 4C 76 E4 AB A8 65 77 90 00 [13:19:53]wFMCommunicate OK [13:19:53]SAM_PROTO_SignData done [13:19:53]FM_MakeSignedData done [13:19:53]CreateOFDProtocolMessage [13:19:53]wFMCommunicate request_size=4 [13:19:53]MH_SAM_APDU [13:19:53]CAPDU: 80 11 00 00 [13:19:53]Write to MH i2c: E2 08 00 42 65 80 11 00 00 00 00 00 00 21 [13:19:53]Write i2c OK [13:19:53]MH_I2C_Read... [13:19:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:53]Read from MH i2c: E2 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: E2 17 00 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: E2 17 00 42 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 73 [13:19:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:19:53]wFMCommunicate OK [13:19:53]CreateOFDProtocolMessage done [13:19:53]OFDSenderStorePacket 111666 [13:19:53]StoreOFDPacket docnum=111666 [13:19:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 18 8F 07 01 7A 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2C 15 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 76 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 9D 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 74 00 00 00 F4 03 04 00 9A 2C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 32 B4 01 00 35 04 06 00 0A 6B 44 A6 A3 2E 1E 4C 76 E4 AB A8 65 77 [13:19:53]CheckFolder [13:19:53]dirname=/storage/ofd_packets [13:19:53]CheckFolder done [13:19:53]ProducePacketName [13:19:53]name=ofd_packets/00111666 [13:19:53]NVStorageSaveData ofd_packets/00111666 [13:19:53]File name is /storage/ofd_packets/00111666 [13:19:53]Write 301 bytes [13:19:53]NVStorageSaveData done [13:19:53]OFDSenderStorePacket done [13:19:53]KKMCreateOFDPacket done [13:19:53]NVStorageSaveData kkm_last_timestamp [13:19:53]File name is /storage/kkm_last_timestamp [13:19:53]Write 4 bytes [13:19:53]NVStorageSaveData done [13:19:53]ExternCall_PrintAddStr [13:19:53]wPrintStart [13:19:53]Write to MH i2c: 01 00 00 43 65 A8 [13:19:53]Write i2c OK [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: 01 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: 01 07 00 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: 01 07 00 43 65 00 00 00 00 00 FF 0F BD [13:19:53]RasterBufferAndPrint [13:19:53]line Счет N : (1)320268 [13:19:53]line ИНН: 02508201610067 [13:19:53]line Контрольно-Кассовый Чек [13:19:53]line ПРОДАЖА [13:19:53]line ТРК (МРК, ГНК) : 12 [13:19:53]line Товар: 2710124500 [13:19:53]line Аи-95-К-5 [13:19:53]line 5.420 * 73.90 [13:19:53]line = 400.54 [13:19:53]line НДС 12% НСП 1% [13:19:53]line > о реализуемом товаре [13:19:53]line ОКРУГЛЕНИЕ: -0.54 [13:19:53]line ИТОГО: 400.00 [13:19:53]line Внесено: 400.00 [13:19:53]line СДАЧА: 0.00 [13:19:53]line НСП 1% : 3.54 [13:19:53]line НДС 12% : 42.53 [13:19:53]line Наличными: 400.00 [13:19:53]line Безнал.: 0.00 [13:19:53]line Место: АЗС № 65 "Партнер Нефть" [13:19:53]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:19:53]line СНО: Общий режим [13:19:53]line Чек 116 20.06.2024 13:20 [13:19:53]line Смена: 389 ФФД: 1.0 [13:19:53]line ЗНМ: 0300000198 [13:19:53]line РНМ: 0000000000092771 [13:19:53]line Версия ККМ: 001 [13:19:53]line ФМ: 0000000000875083 [13:19:53]line ФД: 111666 [13:19:53]line ФПД: 11455829549870 [13:19:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T132026&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111666&fm=11455829549870&tin=02508201610067®Number=0000000000092771&sum=40000 [13:19:53]OFD Sender: Processing packet 111666 [packets to send 38, broken 37] [13:19:53]ProducePacketName [13:19:53]name=ofd_packets/00111666 [13:19:53]OFD Sender: To server: pG, [13:19:53]CommunicateWithHost lk.salyk.kg:30040 [13:19:53]ConnectInit lk.salyk.kg [13:19:53]written 0, free lines is 4095 [13:19:53]Connected sock=10 [13:19:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 18 8F 07 01 7A 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2C 15 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 76 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 9D 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 74 00 00 00 F4 03 04 00 9A 2C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 32 B4 01 00 35 04 06 00 0A 6B 44 A6 A3 2E 1E 4C 76 E4 AB A8 65 77 [13:19:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 68 C6 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 35 30 38 33 10 04 04 00 32 B4 01 00 F4 03 04 00 E4 C3 73 66 B6 04 01 00 00 13 DD F4 D1 8E D5 B4 40 [13:19:53]CommunicateWithHost err = 0 [13:19:53]CheckOFDResponse [13:19:53]1017 (14) - 77093643461234 [13:19:53]1041 (16) - 0000000000875083 [13:19:53]1040 (4) - 111666 [13:19:53]1012 (4) - 20.06.2024 05:53 [13:19:53]1206 (1) - 0 [13:19:53]OFD Sender: Remove packet 111666 [13:19:53]ProducePacketName [13:19:53]name=ofd_packets/00111666 [13:19:53]NVStorageDeleteData [13:19:54]Write to MH i2c: 01 00 00 6E 65 D3 [13:19:54]Write i2c OK [13:19:54]MH_I2C_Read... [13:19:54]Read from MH i2c: 01 [13:19:54]MH_I2C_Read... [13:19:54]Read from MH i2c: 01 07 00 [13:19:54]MH_I2C_Read... [13:19:54]Read from MH i2c: 01 07 00 6E 65 00 00 00 00 00 CA 0C B0 [13:19:54]RasterBufferAndPrint [13:19:54]line [13:19:54]line [13:19:54]line [13:19:54]line [13:19:54]line [13:19:54]written 0, free lines is 3280 [13:19:54]MH_Cut [13:19:54]Write to MH i2c: D1 01 00 75 65 01 AC [13:19:54]Write i2c OK [13:19:54]MH_I2C_Read... [13:19:54]Read from MH i2c: D1 [13:19:54]MH_I2C_Read... [13:19:54]Read from MH i2c: D1 01 00 [13:19:54]MH_I2C_Read... [13:19:54]Read from MH i2c: D1 01 00 75 65 00 AB [13:19:54]Write to MH i2c: 01 00 00 76 65 DB [13:19:54]Write i2c OK [13:19:54]MH_I2C_Read... [13:19:54]OFD Sender: No OFD packet to send [13:19:54]*** Cut start [13:19:54]*** Partial cut [13:19:54]*** CUTSNS_PIN = 1 [13:19:54]*** CUTSNS_PIN = 0 [13:19:55]*** Brake cut motor [13:19:55]Read from MH i2c: 01 [13:19:55]MH_I2C_Read... [13:19:55]*** Stop cut motor [13:19:55]*** Cut end [13:19:55]Read from MH i2c: 01 07 00 [13:19:55]MH_I2C_Read... [13:19:55]Read from MH i2c: 01 07 00 76 65 00 00 00 00 00 FF 0F F0 [13:19:55]process_action close_receipt done [13:19:55]requested_data is exist [13:19:55]produce_requested_data [13:19:55]requested_item fm.sn is exist - process it [13:19:55]wFMCommunicate request_size=4 [13:19:55]MH_SAM_APDU [13:19:55]CAPDU: 80 11 00 00 [13:19:55]Write to MH i2c: E2 08 00 77 65 80 11 00 00 00 00 00 00 56 [13:19:55]Write i2c OK [13:19:55]MH_I2C_Read... [13:19:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:55]Read from MH i2c: E2 [13:19:55]MH_I2C_Read... [13:19:55]Read from MH i2c: E2 17 00 [13:19:55]MH_I2C_Read... [13:19:55]Read from MH i2c: E2 17 00 77 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A8 [13:19:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:19:55]wFMCommunicate OK [13:19:55]requested_item fd.num is exist - process it [13:19:55]SAM_PROTO_GetFieldsCounters [13:19:55]wFMCommunicate request_size=4 [13:19:55]MH_SAM_APDU [13:19:55]CAPDU: 80 13 00 00 [13:19:55]Write to MH i2c: E2 08 00 78 65 80 13 00 00 00 00 00 00 59 [13:19:55]Write i2c OK [13:19:55]MH_I2C_Read... [13:19:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:55]Read from MH i2c: E2 [13:19:55]MH_I2C_Read... [13:19:55]Read from MH i2c: E2 62 00 [13:19:55]MH_I2C_Read... [13:19:55]Read from MH i2c: E2 62 00 78 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 32 B4 01 00 0E 04 04 00 85 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 43 [13:19:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 32 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:19:55]wFMCommunicate OK [13:19:55]SAM_PROTO_GetFieldsCounters done [13:19:55]requested_item shift.num is exist - process it [13:19:55]requested_item shift.opened is exist - process it [13:19:55]req_shift_opened [13:19:55]FM_GetShiftState [13:19:55]SAM_PROTO_GetShiftState [13:19:55]wFMCommunicate request_size=4 [13:19:55]MH_SAM_APDU [13:19:55]CAPDU: 80 13 01 00 [13:19:55]Write to MH i2c: E2 08 00 79 65 80 13 01 00 00 00 00 00 5B [13:19:55]Write i2c OK [13:19:55]MH_I2C_Read... [13:19:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:55]Read from MH i2c: E2 [13:19:55]MH_I2C_Read... [13:19:55]Read from MH i2c: E2 0E 00 [13:19:55]MH_I2C_Read... [13:19:55]Read from MH i2c: E2 0E 00 79 65 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 D6 [13:19:55]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:19:55]wFMCommunicate OK [13:19:55]SAM_PROTO_GetShiftState done [13:19:55]FM_GetShiftState done [13:19:55]req_shift_opened done [13:19:55]requested_item shift.open_date is exist - process it [13:19:55]req_shift_open_date [13:19:55]req_shift_open_date done [13:19:55]produce_requested_data done [13:19:55]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111666,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [13:19:55]process_action_free close_receipt [13:19:55]json_value_free [13:19:55]json_value_free done [13:19:55]process_json_proto returns [13:19:55]Send response to host [13:19:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111666,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [13:19:55]free response buf [13:19:55]execute_script done [13:19:55]execute_script returns [13:19:55]free content buf [13:19:55]Sock 9.Close socket [13:19:55]Sock 9.Thread stoped [13:19:59]OFD Sender: No OFD packet to send [13:20:04]OFD Sender: No OFD packet to send [13:20:09]OFD Sender: No OFD packet to send [13:20:14]OFD Sender: No OFD packet to send [13:20:15]accept exits with 7 [13:20:15]New connection [13:20:15]New thread 3067321700 created [13:20:15]Thread 3067465060 joined [13:20:15]Waiting for new connection... [13:20:15] Sock 7.Parse request [13:20:15]Sock 7.Check first char [13:20:15]Sock 7.First char is OK [13:20:15]request: POST /json_proto HTTP/1.0 [13:20:15]Method: POST [13:20:15]URL: /json_proto [13:20:15]Method is POST - this is cgi request [13:20:15]url: /json_proto [13:20:15]query_string will be loaded in cgi processing [13:20:15]execute_cgi json_proto POST (null) [13:20:15]execute_cgi path=json_proto method=POST [13:20:15]POST find Content-Length [13:20:15]Host: 172.17.59.68:8080 [13:20:15]Content-Length: 677 [13:20:15]Content-Type: application/json [13:20:15] [13:20:15]POST finish read [13:20:15]Found Content-Length = 677 [13:20:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 2.010, "sum" : 133.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 133.00, "total" : 133.00, "payments": [ { "type": 0, "sum" : 133.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:15]execute_script... [13:20: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)320269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 2.010, "sum" : 133.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 133.00, "total" : 133.00, "payments": [ { "type": 0, "sum" : 133.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:15]POST & json_proto [13:20:15]process_json_proto [13:20:15]json parsed OK: [13:20:15]protocol is kg_v1.0 [13:20:15]action value=close_receipt [13:20:15]process_action close_receipt [13:20:15]cmd_close_receipt [13:20:15]MH_GetDate [13:20:15]Write to MH i2c: F0 00 00 7A 65 CE [13:20:15]Write i2c OK [13:20:15]MH_I2C_Read... [13:20:15]Read from MH i2c: F0 [13:20:15]MH_I2C_Read... [13:20:15]Read from MH i2c: F0 09 00 [13:20:15]MH_I2C_Read... [13:20:15]Read from MH i2c: F0 09 00 7A 65 00 B2 2C 74 66 BC EC 60 65 FC [13:20:15]GetLastDocTimeStamp 1718889626 [13:20:15]current date 1718889650 [13:20:15]FM_GetShiftState [13:20:15]SAM_PROTO_GetShiftState [13:20:15]wFMCommunicate request_size=4 [13:20:15]MH_SAM_APDU [13:20:15]CAPDU: 80 13 01 00 [13:20:15]Write to MH i2c: E2 08 00 7B 65 80 13 01 00 00 00 00 00 5D [13:20:15]Write i2c OK [13:20:15]MH_I2C_Read... [13:20:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:15]Read from MH i2c: E2 [13:20:15]MH_I2C_Read... [13:20:15]Read from MH i2c: E2 0E 00 [13:20:15]MH_I2C_Read... [13:20:15]Read from MH i2c: E2 0E 00 7B 65 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 D8 [13:20:15]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:20:15]wFMCommunicate OK [13:20:15]SAM_PROTO_GetShiftState done [13:20:15]FM_GetShiftState done [13:20:15]opened in 1718847247 [13:20:15]opened+sec_in_day 1718933647 [13:20:15]quantity*price = 13346 [13:20:15]sum+1 = 13347 [13:20:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 133.00 Внесено: 133.00 СДАЧА: 0.00 НСП 1% : 1.18 НДС 12% : 14.17 Наличными: 133.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 117 20.06.2024 13:20 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111667 ФПД: 3622991454863 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T132050&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111667&fm=3622991454863&tin=02508201610067®Number=0000000000092771&sum=13300 [13:20:16]StoreToDocumentArchive [13:20:16]shift 389 fd 111667 [13:20:16]save to /storage/0389/doc_00111667 [13:20:16]save last doc name /storage/0389/doc_00111667 to /storage/kkm_last_doc_name [13:20:16]save OK [13:20:16]Clear old archive folders... [13:20:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:20:16]tlvbuf is 00F1EC50 [13:20:16]SAM_PROTO_ClearQueue [13:20:16]wFMCommunicate request_size=4 [13:20:16]MH_SAM_APDU [13:20:16]CAPDU: 80 09 00 00 [13:20:16]Write to MH i2c: E2 08 00 88 65 80 09 00 00 00 00 00 00 5F [13:20:16]Write i2c OK [13:20:16]MH_I2C_Read... [13:20:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:20:16]Read from MH i2c: E2 [13:20:16]MH_I2C_Read... [13:20:16]Read from MH i2c: E2 03 00 [13:20:16]MH_I2C_Read... [13:20:16]Read from MH i2c: E2 03 00 88 65 00 90 00 61 [13:20:16]RAPDU: 90 00 [13:20:16]wFMCommunicate OK [13:20:16]SAM_PROTO_ClearQueue done [13:20:16]KKMCreateOFDPacket [13:20:16]OFDProtocolAddRootSTLVToBuf [13:20:16]FM_MakeSignedData [13:20:16]FM_MakeSignedData [13:20:16]SAM_PROTO_SignData [13:20:16]wFMCommunicate request_size=4 [13:20:16]MH_SAM_APDU [13:20:16]CAPDU: 80 0D 01 02 [13:20:16]Write to MH i2c: E2 08 00 89 65 80 0D 01 02 00 00 00 00 67 [13:20:16]Write i2c OK [13:20:16]MH_I2C_Read... [13:20:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:20:17]Read from MH i2c: E2 [13:20:17]MH_I2C_Read... [13:20:17]Read from MH i2c: E2 03 00 [13:20:17]MH_I2C_Read... [13:20:17]Read from MH i2c: E2 03 00 89 65 00 90 00 62 [13:20:17]RAPDU: 90 00 [13:20:17]wFMCommunicate OK [13:20:17]wFMCommunicate request_size=255 [13:20:17]MH_SAM_APDU [13:20: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 DA 07 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 22 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 05 00 00 00 00 07 04 06 00 F4 33 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 B2 2C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 33 B4 01 00 35 04 06 00 03 [13:20:17]Write to MH i2c: E2 02 01 8A 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 07 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 22 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 05 00 00 00 00 07 04 06 00 F4 33 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 B2 2C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 33 B4 01 00 35 04 06 00 03 00 00 A1 [13:20:17]Write i2c OK [13:20:17]MH_I2C_Read... [13:20:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:17]Read from MH i2c: E2 [13:20:17]MH_I2C_Read... [13:20:17]Read from MH i2c: E2 03 00 [13:20:17]MH_I2C_Read... [13:20:17]Read from MH i2c: E2 03 00 8A 65 00 90 00 63 [13:20:17]RAPDU: 90 00 [13:20:17]wFMCommunicate OK [13:20:17]wFMCommunicate request_size=10 [13:20:17]MH_SAM_APDU [13:20:17]CAPDU: 80 0D 02 02 05 4B 8B 1E 62 8F [13:20:17]Write to MH i2c: E2 0D 00 8B 65 80 0D 02 02 05 00 4B 8B 1E 62 8F 00 00 59 [13:20:17]Write i2c OK [13:20:17]MH_I2C_Read... [13:20:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:17]Read from MH i2c: E2 [13:20:17]MH_I2C_Read... [13:20:17]Read from MH i2c: E2 03 00 [13:20:17]MH_I2C_Read... [13:20:17]Read from MH i2c: E2 03 00 8B 65 00 90 00 64 [13:20:17]RAPDU: 90 00 [13:20:17]wFMCommunicate OK [13:20:17]wFMCommunicate request_size=4 [13:20:17]MH_SAM_APDU [13:20:17]CAPDU: 80 0D 03 02 [13:20:17]Write to MH i2c: E2 08 00 8C 65 80 0D 03 02 00 00 00 00 6C [13:20:17]Write i2c OK [13:20:17]MH_I2C_Read... [13:20:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:20:17]Read from MH i2c: E2 [13:20:17]MH_I2C_Read... [13:20:17]Read from MH i2c: E2 0B 00 [13:20:17]MH_I2C_Read... [13:20:17]Read from MH i2c: E2 0B 00 8C 65 00 6E 22 02 83 2D AB 65 4C 90 00 0B [13:20:17]RAPDU: 6E 22 02 83 2D AB 65 4C 90 00 [13:20:17]wFMCommunicate OK [13:20:17]SAM_PROTO_SignData done [13:20:17]FM_MakeSignedData done [13:20:17]CreateOFDProtocolMessage [13:20:17]wFMCommunicate request_size=4 [13:20:17]MH_SAM_APDU [13:20:17]CAPDU: 80 11 00 00 [13:20:17]Write to MH i2c: E2 08 00 8D 65 80 11 00 00 00 00 00 00 6C [13:20:17]Write i2c OK [13:20:17]MH_I2C_Read... [13:20:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:17]Read from MH i2c: E2 [13:20:17]MH_I2C_Read... [13:20:17]Read from MH i2c: E2 17 00 [13:20:17]MH_I2C_Read... [13:20:17]Read from MH i2c: E2 17 00 8D 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BE [13:20:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:20:17]wFMCommunicate OK [13:20:17]CreateOFDProtocolMessage done [13:20:17]OFDSenderStorePacket 111667 [13:20:17]StoreOFDPacket docnum=111667 [13:20:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 09 4C 07 01 D9 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 07 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 22 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 05 00 00 00 00 07 04 06 00 F4 33 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 B2 2C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 33 B4 01 00 35 04 06 00 03 4B 8B 1E 62 8F 6E 22 02 83 2D AB 65 4C [13:20:17]CheckFolder [13:20:17]dirname=/storage/ofd_packets [13:20:17]CheckFolder done [13:20:17]ProducePacketName [13:20:17]name=ofd_packets/00111667 [13:20:17]NVStorageSaveData ofd_packets/00111667 [13:20:17]File name is /storage/ofd_packets/00111667 [13:20:17]Write 301 bytes [13:20:17]NVStorageSaveData done [13:20:17]OFDSenderStorePacket done [13:20:17]KKMCreateOFDPacket done [13:20:17]NVStorageSaveData kkm_last_timestamp [13:20:17]File name is /storage/kkm_last_timestamp [13:20:17]Write 4 bytes [13:20:17]NVStorageSaveData done [13:20:17]ExternCall_PrintAddStr [13:20:17]wPrintStart [13:20:17]Write to MH i2c: 01 00 00 8E 65 F3 [13:20:17]Write i2c OK [13:20:17]MH_I2C_Read... [13:20:17]Read from MH i2c: 01 [13:20:17]MH_I2C_Read... [13:20:17]Read from MH i2c: 01 07 00 [13:20:17]MH_I2C_Read... [13:20:17]Read from MH i2c: 01 07 00 8E 65 00 00 00 00 00 FF 0F 08 [13:20:17]RasterBufferAndPrint [13:20:17]line Счет N : (1)320269 [13:20:17]line ИНН: 02508201610067 [13:20:17]line Контрольно-Кассовый Чек [13:20:17]line ПРОДАЖА [13:20:17]line ТРК (МРК, ГНК) : 11 [13:20:17]line Товар: 2710124130 [13:20:17]line Аи-92-К-5 [13:20:17]line 2.010 * 66.40 [13:20:17]line = 133.46 [13:20:17]line НДС 12% НСП 1% [13:20:17]line > о реализуемом товаре [13:20:17]line ОКРУГЛЕНИЕ: -0.46 [13:20:17]line ИТОГО: 133.00 [13:20:17]line Внесено: 133.00 [13:20:17]line СДАЧА: 0.00 [13:20:17]line НСП 1% : 1.18 [13:20:17]line НДС 12% : 14.17 [13:20:17]line Наличными: 133.00 [13:20:17]line Безнал.: 0.00 [13:20:17]line Место: АЗС № 65 "Партнер Нефть" [13:20:17]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:20:17]line СНО: Общий режим [13:20:17]line Чек 117 20.06.2024 13:20 [13:20:17]line Смена: 389 ФФД: 1.0 [13:20:17]line ЗНМ: 0300000198 [13:20:17]line РНМ: 0000000000092771 [13:20:17]line Версия ККМ: 001 [13:20:17]line ФМ: 0000000000875083 [13:20:17]line ФД: 111667 [13:20:17]line ФПД: 3622991454863 [13:20:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T132050&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111667&fm=3622991454863&tin=02508201610067®Number=0000000000092771&sum=13300 [13:20:17]written 0, free lines is 4095 [13:20:17]OFD Sender: Processing packet 111667 [packets to send 38, broken 37] [13:20:17]ProducePacketName [13:20:17]name=ofd_packets/00111667 [13:20:17]OFD Sender: To server: pG, [13:20:17]CommunicateWithHost lk.salyk.kg:30040 [13:20:17]ConnectInit lk.salyk.kg [13:20:17]Connected sock=11 [13:20:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 09 4C 07 01 D9 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 07 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 22 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 05 00 00 00 00 07 04 06 00 F4 33 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 B2 2C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 33 B4 01 00 35 04 06 00 03 4B 8B 1E 62 8F 6E 22 02 83 2D AB 65 4C [13:20:17]Write to MH i2c: 01 00 00 B9 65 1E [13:20:17]Write i2c OK [13:20:17]MH_I2C_Read... [13:20:17]Read from MH i2c: 01 [13:20:17]MH_I2C_Read... [13:20:17]Read from MH i2c: 01 07 00 [13:20:17]MH_I2C_Read... [13:20:17]Read from MH i2c: 01 07 00 B9 65 00 00 00 00 00 CE 0C FF [13:20:17]RasterBufferAndPrint [13:20:17]line [13:20:17]line [13:20:17]line [13:20:17]line [13:20:17]line [13:20:17]written 0, free lines is 3284 [13:20:17]MH_Cut [13:20:17]Write to MH i2c: D1 01 00 C0 65 01 F7 [13:20:17]Write i2c OK [13:20:17]MH_I2C_Read... [13:20:17]Read from MH i2c: D1 [13:20:17]MH_I2C_Read... [13:20:17]Read from MH i2c: D1 01 00 [13:20:17]MH_I2C_Read... [13:20:17]Read from MH i2c: D1 01 00 C0 65 00 F6 [13:20:17]Write to MH i2c: 01 00 00 C1 65 26 [13:20:17]Write i2c OK [13:20:17]MH_I2C_Read... [13:20:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E2 45 47 00 5D D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 33 B4 01 00 F4 03 04 00 FC C3 73 66 B6 04 01 00 00 9E CE 7F 26 7B 09 81 40 [13:20:18]CommunicateWithHost err = 0 [13:20:18]CheckOFDResponse [13:20:18]1017 (14) - 77093643461234 [13:20:18]1041 (16) - 0000000000875083 [13:20:18]1040 (4) - 111667 [13:20:18]1012 (4) - 20.06.2024 05:54 [13:20:18]1206 (1) - 0 [13:20:18]OFD Sender: Remove packet 111667 [13:20:18]ProducePacketName [13:20:18]name=ofd_packets/00111667 [13:20:18]NVStorageDeleteData [13:20:18]OFD Sender: No OFD packet to send [13:20:18]*** Cut start [13:20:18]*** Partial cut [13:20:18]*** CUTSNS_PIN = 1 [13:20:18]*** CUTSNS_PIN = 0 [13:20:18]*** Brake cut motor [13:20:19]Read from MH i2c: 01 [13:20:19]MH_I2C_Read... [13:20:19]*** Stop cut motor [13:20:19]*** Cut end [13:20:19]Read from MH i2c: 01 07 00 [13:20:19]MH_I2C_Read... [13:20:19]Read from MH i2c: 01 07 00 C1 65 00 00 00 00 00 FF 0F 3B [13:20:19]process_action close_receipt done [13:20:19]requested_data is exist [13:20:19]produce_requested_data [13:20:19]requested_item fm.sn is exist - process it [13:20:19]wFMCommunicate request_size=4 [13:20:19]MH_SAM_APDU [13:20:19]CAPDU: 80 11 00 00 [13:20:19]Write to MH i2c: E2 08 00 C2 65 80 11 00 00 00 00 00 00 A1 [13:20:19]Write i2c OK [13:20:19]MH_I2C_Read... [13:20:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:19]Read from MH i2c: E2 [13:20:19]MH_I2C_Read... [13:20:19]Read from MH i2c: E2 17 00 [13:20:19]MH_I2C_Read... [13:20:19]Read from MH i2c: E2 17 00 C2 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F3 [13:20:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:20:19]wFMCommunicate OK [13:20:19]requested_item fd.num is exist - process it [13:20:19]SAM_PROTO_GetFieldsCounters [13:20:19]wFMCommunicate request_size=4 [13:20:19]MH_SAM_APDU [13:20:19]CAPDU: 80 13 00 00 [13:20:19]Write to MH i2c: E2 08 00 C3 65 80 13 00 00 00 00 00 00 A4 [13:20:19]Write i2c OK [13:20:19]MH_I2C_Read... [13:20:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:20:19]Read from MH i2c: E2 [13:20:19]MH_I2C_Read... [13:20:19]Read from MH i2c: E2 62 00 [13:20:19]MH_I2C_Read... [13:20:19]Read from MH i2c: E2 62 00 C3 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 33 B4 01 00 0E 04 04 00 85 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 92 [13:20:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 33 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:20:19]wFMCommunicate OK [13:20:19]SAM_PROTO_GetFieldsCounters done [13:20:19]requested_item shift.num is exist - process it [13:20:19]requested_item shift.opened is exist - process it [13:20:19]req_shift_opened [13:20:19]FM_GetShiftState [13:20:19]SAM_PROTO_GetShiftState [13:20:19]wFMCommunicate request_size=4 [13:20:19]MH_SAM_APDU [13:20:19]CAPDU: 80 13 01 00 [13:20:19]Write to MH i2c: E2 08 00 C4 65 80 13 01 00 00 00 00 00 A6 [13:20:19]Write i2c OK [13:20:19]MH_I2C_Read... [13:20:19]Read from MH i2c: E2 [13:20:19]MH_I2C_Read... [13:20:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:19]Read from MH i2c: E2 0E 00 [13:20:19]MH_I2C_Read... [13:20:19]Read from MH i2c: E2 0E 00 C4 65 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 21 [13:20:19]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:20:19]wFMCommunicate OK [13:20:19]SAM_PROTO_GetShiftState done [13:20:19]FM_GetShiftState done [13:20:19]req_shift_opened done [13:20:19]requested_item shift.open_date is exist - process it [13:20:19]req_shift_open_date [13:20:19]req_shift_open_date done [13:20:19]produce_requested_data done [13:20:19]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111667,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [13:20:19]process_action_free close_receipt [13:20:19]json_value_free [13:20:19]json_value_free done [13:20:19]process_json_proto returns [13:20:19]Send response to host [13:20:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111667,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [13:20:19]free response buf [13:20:19]execute_script done [13:20:19]execute_script returns [13:20:19]free content buf [13:20:19]Sock 7.Close socket [13:20:19]Sock 7.Thread stoped [13:20:23]OFD Sender: No OFD packet to send [13:20:28]OFD Sender: No OFD packet to send [13:20:33]OFD Sender: No OFD packet to send [13:20:38]OFD Sender: No OFD packet to send [13:20:43]OFD Sender: No OFD packet to send [13:20:48]OFD Sender: No OFD packet to send [13:20:53]OFD Sender: No OFD packet to send [13:20:58]OFD Sender: No OFD packet to send [13:21:03]OFD Sender: No OFD packet to send [13:21:08]OFD Sender: No OFD packet to send [13:21:13]OFD Sender: No OFD packet to send [13:21:18]OFD Sender: No OFD packet to send [13:21:23]OFD Sender: No OFD packet to send [13:21:28]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:42]accept exits with 9 [13:24:42]New connection [13:24:42]New thread 3067465060 created [13:24:42]Thread 3067321700 joined [13:24:42]Waiting for new connection... [13:24:42] Sock 9.Parse request [13:24:42]Sock 9.Check first char [13:24:42]Sock 9.First char is OK [13:24:42]request: POST /json_proto HTTP/1.0 [13:24:42]Method: POST [13:24:42]URL: /json_proto [13:24:42]Method is POST - this is cgi request [13:24:42]url: /json_proto [13:24:42]query_string will be loaded in cgi processing [13:24:42]execute_cgi json_proto POST (null) [13:24:42]execute_cgi path=json_proto method=POST [13:24:42]POST find Content-Length [13:24:42]Host: 172.17.59.68:8080 [13:24:42]Content-Length: 640 [13:24:42]Content-Type: application/json [13:24:42] [13:24:42]POST finish read [13:24:42]Found Content-Length = 640 [13:24:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:42]execute_script... [13:24: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)320270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:42]POST & json_proto [13:24:42]process_json_proto [13:24:42]json parsed OK: [13:24:42]protocol is kg_v1.0 [13:24:42]action value=close_receipt [13:24:42]process_action close_receipt [13:24:42]cmd_close_receipt [13:24:42]MH_GetDate [13:24:42]Write to MH i2c: F0 00 00 C5 65 19 [13:24:42]Write i2c OK [13:24:42]MH_I2C_Read... [13:24:42]Read from MH i2c: F0 [13:24:42]MH_I2C_Read... [13:24:42]Read from MH i2c: F0 09 00 [13:24:42]MH_I2C_Read... [13:24:42]Read from MH i2c: F0 09 00 C5 65 00 BD 2D 74 66 BC EC 60 65 53 [13:24:42]GetLastDocTimeStamp 1718889650 [13:24:42]current date 1718889917 [13:24:42]FM_GetShiftState [13:24:42]SAM_PROTO_GetShiftState [13:24:42]wFMCommunicate request_size=4 [13:24:42]MH_SAM_APDU [13:24:42]CAPDU: 80 13 01 00 [13:24:42]Write to MH i2c: E2 08 00 C6 65 80 13 01 00 00 00 00 00 A8 [13:24:42]Write i2c OK [13:24:42]MH_I2C_Read... [13:24:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:42]Read from MH i2c: E2 [13:24:42]MH_I2C_Read... [13:24:42]Read from MH i2c: E2 0E 00 [13:24:42]MH_I2C_Read... [13:24:42]Read from MH i2c: E2 0E 00 C6 65 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 23 [13:24:42]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:24:42]wFMCommunicate OK [13:24:42]SAM_PROTO_GetShiftState done [13:24:42]FM_GetShiftState done [13:24:42]opened in 1718847247 [13:24:42]opened+sec_in_day 1718933647 [13:24:42]quantity*price = 66400 [13:24:42]sum+1 = 66401 [13:24:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 664.00 НСП 1% : 5.88 НДС 12% : 70.51 Наличными: 664.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 118 20.06.2024 13:25 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111668 ФПД: 25667043676216 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T132517&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111668&fm=25667043676216&tin=02508201610067®Number=0000000000092771&sum=66400 [13:24:43]StoreToDocumentArchive [13:24:43]shift 389 fd 111668 [13:24:43]save to /storage/0389/doc_00111668 [13:24:43]save last doc name /storage/0389/doc_00111668 to /storage/kkm_last_doc_name [13:24:43]save OK [13:24:43]Clear old archive folders... [13:24:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:24:43]tlvbuf is 00F0CF90 [13:24:43]SAM_PROTO_ClearQueue [13:24:43]wFMCommunicate request_size=4 [13:24:43]MH_SAM_APDU [13:24:43]CAPDU: 80 09 00 00 [13:24:43]Write to MH i2c: E2 08 00 D3 65 80 09 00 00 00 00 00 00 AA [13:24:43]Write i2c OK [13:24:43]MH_I2C_Read... [13:24:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:24:43]Read from MH i2c: E2 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: E2 03 00 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: E2 03 00 D3 65 00 90 00 AC [13:24:43]RAPDU: 90 00 [13:24:43]wFMCommunicate OK [13:24:43]SAM_PROTO_ClearQueue done [13:24:43]KKMCreateOFDPacket [13:24:43]OFDProtocolAddRootSTLVToBuf [13:24:43]FM_MakeSignedData [13:24:43]FM_MakeSignedData [13:24:43]SAM_PROTO_SignData [13:24:43]wFMCommunicate request_size=4 [13:24:43]MH_SAM_APDU [13:24:43]CAPDU: 80 0D 01 02 [13:24:43]Write to MH i2c: E2 08 00 D4 65 80 0D 01 02 00 00 00 00 B2 [13:24:43]Write i2c OK [13:24:43]MH_I2C_Read... [13:24:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:24:43]Read from MH i2c: E2 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: E2 03 00 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: E2 03 00 D4 65 00 90 00 AD [13:24:43]RAPDU: 90 00 [13:24:43]wFMCommunicate OK [13:24:43]wFMCommunicate request_size=255 [13:24:43]MH_SAM_APDU [13: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 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 BD 2D 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 34 B4 01 00 35 04 06 00 17 [13:24:43]Write to MH i2c: E2 02 01 D5 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 BD 2D 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 34 B4 01 00 35 04 06 00 17 00 00 DC [13:24:43]Write i2c OK [13:24:43]MH_I2C_Read... [13:24:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:43]Read from MH i2c: E2 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: E2 03 00 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: E2 03 00 D5 65 00 90 00 AE [13:24:43]RAPDU: 90 00 [13:24:43]wFMCommunicate OK [13:24:43]wFMCommunicate request_size=10 [13:24:43]MH_SAM_APDU [13:24:43]CAPDU: 80 0D 02 02 05 58 13 05 50 38 [13:24:43]Write to MH i2c: E2 0D 00 D6 65 80 0D 02 02 05 00 58 13 05 50 38 00 00 B7 [13:24:43]Write i2c OK [13:24:43]MH_I2C_Read... [13:24:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:43]Read from MH i2c: E2 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: E2 03 00 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: E2 03 00 D6 65 00 90 00 AF [13:24:43]RAPDU: 90 00 [13:24:43]wFMCommunicate OK [13:24:43]wFMCommunicate request_size=4 [13:24:43]MH_SAM_APDU [13:24:43]CAPDU: 80 0D 03 02 [13:24:43]Write to MH i2c: E2 08 00 D7 65 80 0D 03 02 00 00 00 00 B7 [13:24:43]Write i2c OK [13:24:43]MH_I2C_Read... [13:24:43]OFD Sender: No OFD packet to send [13:24:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:24:43]Read from MH i2c: E2 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: E2 0B 00 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: E2 0B 00 D7 65 00 0E E2 1A 75 53 EA 84 8E 90 00 86 [13:24:43]RAPDU: 0E E2 1A 75 53 EA 84 8E 90 00 [13:24:43]wFMCommunicate OK [13:24:43]SAM_PROTO_SignData done [13:24:43]FM_MakeSignedData done [13:24:43]CreateOFDProtocolMessage [13:24:43]wFMCommunicate request_size=4 [13:24:43]MH_SAM_APDU [13:24:43]CAPDU: 80 11 00 00 [13:24:43]Write to MH i2c: E2 08 00 D8 65 80 11 00 00 00 00 00 00 B7 [13:24:43]Write i2c OK [13:24:43]MH_I2C_Read... [13:24:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:43]Read from MH i2c: E2 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: E2 17 00 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: E2 17 00 D8 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 09 [13:24:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:24:43]wFMCommunicate OK [13:24:43]CreateOFDProtocolMessage done [13:24:43]OFDSenderStorePacket 111668 [13:24:43]StoreOFDPacket docnum=111668 [13:24:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A1 56 07 01 D3 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 BD 2D 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 34 B4 01 00 35 04 06 00 17 58 13 05 50 38 0E E2 1A 75 53 EA 84 8E [13:24:43]CheckFolder [13:24:43]dirname=/storage/ofd_packets [13:24:43]CheckFolder done [13:24:43]ProducePacketName [13:24:43]name=ofd_packets/00111668 [13:24:43]NVStorageSaveData ofd_packets/00111668 [13:24:43]File name is /storage/ofd_packets/00111668 [13:24:43]Write 301 bytes [13:24:43]NVStorageSaveData done [13:24:43]OFDSenderStorePacket done [13:24:43]KKMCreateOFDPacket done [13:24:43]NVStorageSaveData kkm_last_timestamp [13:24:43]File name is /storage/kkm_last_timestamp [13:24:43]Write 4 bytes [13:24:43]NVStorageSaveData done [13:24:43]ExternCall_PrintAddStr [13:24:43]wPrintStart [13:24:43]Write to MH i2c: 01 00 00 D9 65 3E [13:24:43]Write i2c OK [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: 01 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: 01 07 00 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: 01 07 00 D9 65 00 00 00 00 00 FF 0F 53 [13:24:43]RasterBufferAndPrint [13:24:43]line Счет N : (1)320270 [13:24:43]line ИНН: 02508201610067 [13:24:43]line Контрольно-Кассовый Чек [13:24:43]line ПРОДАЖА [13:24:43]line ТРК (МРК, ГНК) : 11 [13:24:43]line Товар: 2710124130 [13:24:43]line Аи-92-К-5 [13:24:43]line 10.000 * 66.40 [13:24:43]line = 664.00 [13:24:43]line НДС 12% НСП 1% [13:24:43]line > о реализуемом товаре [13:24:43]line ИТОГО: 664.00 [13:24:43]line НСП 1% : 5.88 [13:24:43]line НДС 12% : 70.51 [13:24:43]line Наличными: 664.00 [13:24:43]line Безнал.: 0.00 [13:24:43]line Место: АЗС № 65 "Партнер Нефть" [13:24:43]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:24:43]line СНО: Общий режим [13:24:43]line Чек 118 20.06.2024 13:25 [13:24:43]line Смена: 389 ФФД: 1.0 [13:24:43]line ЗНМ: 0300000198 [13:24:43]line РНМ: 0000000000092771 [13:24:43]line Версия ККМ: 001 [13:24:43]line ФМ: 0000000000875083 [13:24:43]line ФД: 111668 [13:24:43]line ФПД: 25667043676216 [13:24:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T132517&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111668&fm=25667043676216&tin=02508201610067®Number=0000000000092771&sum=66400 [13:24:44]OFD Sender: Processing packet 111668 [packets to send 38, broken 37] [13:24:44]ProducePacketName [13:24:44]name=ofd_packets/00111668 [13:24:44]OFD Sender: To server: pG, [13:24:44]CommunicateWithHost lk.salyk.kg:30040 [13:24:44]ConnectInit lk.salyk.kg [13:24:44]written 0, free lines is 4095 [13:24:44]Connected sock=10 [13:24:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A1 56 07 01 D3 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 BD 2D 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 34 B4 01 00 35 04 06 00 17 58 13 05 50 38 0E E2 1A 75 53 EA 84 8E [13:24:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 92 F3 47 00 B3 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 34 B4 01 00 F4 03 04 00 06 C5 73 66 B6 04 01 00 00 3D 91 A6 AD D3 82 16 5B [13:24:44]CommunicateWithHost err = 0 [13:24:44]CheckOFDResponse [13:24:44]1017 (14) - 77093643461234 [13:24:44]1041 (16) - 0000000000875083 [13:24:44]1040 (4) - 111668 [13:24:44]1012 (4) - 20.06.2024 05:58 [13:24:44]1206 (1) - 0 [13:24:44]OFD Sender: Remove packet 111668 [13:24:44]ProducePacketName [13:24:44]name=ofd_packets/00111668 [13:24:44]NVStorageDeleteData [13:24:44]Write to MH i2c: 01 00 00 01 66 67 [13:24:44]Write i2c OK [13:24:44]MH_I2C_Read... [13:24:44]Read from MH i2c: 01 [13:24:44]MH_I2C_Read... [13:24:44]Read from MH i2c: 01 07 00 [13:24:44]MH_I2C_Read... [13:24:44]Read from MH i2c: 01 07 00 01 66 00 00 00 00 00 11 0D 8C [13:24:44]RasterBufferAndPrint [13:24:44]line [13:24:44]line [13:24:44]line [13:24:44]line [13:24:44]line [13:24:44]written 0, free lines is 3355 [13:24:44]MH_Cut [13:24:44]Write to MH i2c: D1 01 00 08 66 01 40 [13:24:44]Write i2c OK [13:24:44]MH_I2C_Read... [13:24:44]Read from MH i2c: D1 [13:24:44]MH_I2C_Read... [13:24:44]Read from MH i2c: D1 01 00 [13:24:44]MH_I2C_Read... [13:24:44]Read from MH i2c: D1 01 00 08 66 00 3F [13:24:44]Write to MH i2c: 01 00 00 09 66 6F [13:24:44]Write i2c OK [13:24:44]MH_I2C_Read... [13:24:45]OFD Sender: No OFD packet to send [13:24:45]*** Cut start [13:24:45]*** Partial cut [13:24:45]*** CUTSNS_PIN = 1 [13:24:45]*** CUTSNS_PIN = 0 [13:24:45]*** Brake cut motor [13:24:45]Read from MH i2c: 01 [13:24:45]MH_I2C_Read... [13:24:45]*** Stop cut motor [13:24:46]*** Cut end [13:24:46]Read from MH i2c: 01 07 00 [13:24:46]MH_I2C_Read... [13:24:46]Read from MH i2c: 01 07 00 09 66 00 00 00 00 00 FF 0F 84 [13:24:46]process_action close_receipt done [13:24:46]requested_data is exist [13:24:46]produce_requested_data [13:24:46]requested_item fm.sn is exist - process it [13:24:46]wFMCommunicate request_size=4 [13:24:46]MH_SAM_APDU [13:24:46]CAPDU: 80 11 00 00 [13:24:46]Write to MH i2c: E2 08 00 0A 66 80 11 00 00 00 00 00 00 EA [13:24:46]Write i2c OK [13:24:46]MH_I2C_Read... [13:24:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:46]Read from MH i2c: E2 [13:24:46]MH_I2C_Read... [13:24:46]Read from MH i2c: E2 17 00 [13:24:46]MH_I2C_Read... [13:24:46]Read from MH i2c: E2 17 00 0A 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3C [13:24:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:24:46]wFMCommunicate OK [13:24:46]requested_item fd.num is exist - process it [13:24:46]SAM_PROTO_GetFieldsCounters [13:24:46]wFMCommunicate request_size=4 [13:24:46]MH_SAM_APDU [13:24:46]CAPDU: 80 13 00 00 [13:24:46]Write to MH i2c: E2 08 00 0B 66 80 13 00 00 00 00 00 00 ED [13:24:46]Write i2c OK [13:24:46]MH_I2C_Read... [13:24:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:46]Read from MH i2c: E2 [13:24:46]MH_I2C_Read... [13:24:46]Read from MH i2c: E2 62 00 [13:24:46]MH_I2C_Read... [13:24:46]Read from MH i2c: E2 62 00 0B 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 34 B4 01 00 0E 04 04 00 85 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 DF [13:24:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 34 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:24:46]wFMCommunicate OK [13:24:46]SAM_PROTO_GetFieldsCounters done [13:24:46]requested_item shift.num is exist - process it [13:24:46]requested_item shift.opened is exist - process it [13:24:46]req_shift_opened [13:24:46]FM_GetShiftState [13:24:46]SAM_PROTO_GetShiftState [13:24:46]wFMCommunicate request_size=4 [13:24:46]MH_SAM_APDU [13:24:46]CAPDU: 80 13 01 00 [13:24:46]Write to MH i2c: E2 08 00 0C 66 80 13 01 00 00 00 00 00 EF [13:24:46]Write i2c OK [13:24:46]MH_I2C_Read... [13:24:46]Read from MH i2c: E2 [13:24:46]MH_I2C_Read... [13:24:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:46]Read from MH i2c: E2 0E 00 [13:24:46]MH_I2C_Read... [13:24:46]Read from MH i2c: E2 0E 00 0C 66 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 6A [13:24:46]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:24:46]wFMCommunicate OK [13:24:46]SAM_PROTO_GetShiftState done [13:24:46]FM_GetShiftState done [13:24:46]req_shift_opened done [13:24:46]requested_item shift.open_date is exist - process it [13:24:46]req_shift_open_date [13:24:46]req_shift_open_date done [13:24:46]produce_requested_data done [13:24:46]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111668,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [13:24:46]process_action_free close_receipt [13:24:46]json_value_free [13:24:46]json_value_free done [13:24:46]process_json_proto returns [13:24:46]Send response to host [13:24:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111668,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [13:24:46]free response buf [13:24:46]execute_script done [13:24:46]execute_script returns [13:24:46]free content buf [13:24:46]Sock 9.Close socket [13:24:46]Sock 9.Thread stoped [13:24:50]OFD Sender: No OFD packet to send [13:24:55]OFD Sender: No OFD packet to send [13:25:00]OFD Sender: No OFD packet to send [13:25:05]OFD Sender: No OFD packet to send [13:25:10]OFD Sender: No OFD packet to send [13:25:15]OFD Sender: No OFD packet to send [13:25:20]OFD Sender: No OFD packet to send [13:25:25]OFD Sender: No OFD packet to send [13:25:30]OFD Sender: No OFD packet to send [13:25:35]OFD Sender: No OFD packet to send [13:25:40]OFD Sender: No OFD packet to send [13:25:45]OFD Sender: No OFD packet to send [13:25:50]OFD Sender: No OFD packet to send [13:25:55]OFD Sender: No OFD packet to send [13:26:00]OFD Sender: No OFD packet to send [13:26:05]OFD Sender: No OFD packet to send [13:26:10]OFD Sender: No OFD packet to send [13:26:15]OFD Sender: No OFD packet to send [13:26:20]OFD Sender: No OFD packet to send [13:26:25]OFD Sender: No OFD packet to send [13:26:30]OFD Sender: No OFD packet to send [13:26:35]OFD Sender: No OFD packet to send [13:26:40]OFD Sender: No OFD packet to send [13:26:45]OFD Sender: No OFD packet to send [13:26:50]OFD Sender: No OFD packet to send [13:26:55]OFD Sender: No OFD packet to send [13:27:00]OFD Sender: No OFD packet to send [13:27:05]OFD Sender: No OFD packet to send [13:27:10]OFD Sender: No OFD packet to send [13:27:15]OFD Sender: No OFD packet to send [13:27:20]OFD Sender: No OFD packet to send [13:27:25]OFD Sender: No OFD packet to send [13:27:30]OFD Sender: No OFD packet to send [13:27:35]OFD Sender: No OFD packet to send [13:27:40]OFD Sender: No OFD packet to send [13:27:45]OFD Sender: No OFD packet to send [13:27:50]OFD Sender: No OFD packet to send [13:27:55]OFD Sender: No OFD packet to send [13:28:00]OFD Sender: No OFD packet to send [13:28:05]OFD Sender: No OFD packet to send [13:28:10]OFD Sender: No OFD packet to send [13:28:15]OFD Sender: No OFD packet to send [13:28:20]OFD Sender: No OFD packet to send [13:28:25]OFD Sender: No OFD packet to send [13:28:30]OFD Sender: No OFD packet to send [13:28:35]OFD Sender: No OFD packet to send [13:28:40]OFD Sender: No OFD packet to send [13:28:45]OFD Sender: No OFD packet to send [13:28:50]OFD Sender: No OFD packet to send [13:28:55]OFD Sender: No OFD packet to send [13:29:00]OFD Sender: No OFD packet to send [13:29:05]OFD Sender: No OFD packet to send [13:29:10]OFD Sender: No OFD packet to send [13:29:15]OFD Sender: No OFD packet to send [13:29:20]OFD Sender: No OFD packet to send [13:29:25]OFD Sender: No OFD packet to send [13:29:30]OFD Sender: No OFD packet to send [13:29:35]OFD Sender: No OFD packet to send [13:29:40]OFD Sender: No OFD packet to send [13:29:45]OFD Sender: No OFD packet to send [13:29:48]accept exits with 7 [13:29:48]New connection [13:29:48]New thread 3067321700 created [13:29:48]Thread 3067465060 joined [13:29:48]Waiting for new connection... [13:29:48] Sock 7.Parse request [13:29:48]Sock 7.Check first char [13:29:48]Sock 7.First char is OK [13:29:48]request: POST /json_proto HTTP/1.0 [13:29:48]Method: POST [13:29:48]URL: /json_proto [13:29:48]Method is POST - this is cgi request [13:29:48]url: /json_proto [13:29:48]query_string will be loaded in cgi processing [13:29:48]execute_cgi json_proto POST (null) [13:29:48]execute_cgi path=json_proto method=POST [13:29:48]POST find Content-Length [13:29:48]Host: 172.17.59.68:8080 [13:29:48]Content-Length: 677 [13:29:48]Content-Type: application/json [13:29:48] [13:29:48]POST finish read [13:29:48]Found Content-Length = 677 [13:29:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 6.770, "sum" : 500.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:48]execute_script... [13:29: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)320271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 6.770, "sum" : 500.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:48]POST & json_proto [13:29:48]process_json_proto [13:29:48]json parsed OK: [13:29:48]protocol is kg_v1.0 [13:29:48]action value=close_receipt [13:29:48]process_action close_receipt [13:29:48]cmd_close_receipt [13:29:48]MH_GetDate [13:29:48]Write to MH i2c: F0 00 00 0D 66 62 [13:29:48]Write i2c OK [13:29:48]MH_I2C_Read... [13:29:48]Read from MH i2c: F0 [13:29:48]MH_I2C_Read... [13:29:48]Read from MH i2c: F0 09 00 [13:29:48]MH_I2C_Read... [13:29:48]Read from MH i2c: F0 09 00 0D 66 00 EF 2E 74 66 BC EC 60 65 CF [13:29:48]GetLastDocTimeStamp 1718889917 [13:29:48]current date 1718890223 [13:29:48]FM_GetShiftState [13:29:48]SAM_PROTO_GetShiftState [13:29:48]wFMCommunicate request_size=4 [13:29:48]MH_SAM_APDU [13:29:48]CAPDU: 80 13 01 00 [13:29:48]Write to MH i2c: E2 08 00 0E 66 80 13 01 00 00 00 00 00 F1 [13:29:48]Write i2c OK [13:29:48]MH_I2C_Read... [13:29:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:48]Read from MH i2c: E2 [13:29:48]MH_I2C_Read... [13:29:48]Read from MH i2c: E2 0E 00 [13:29:48]MH_I2C_Read... [13:29:48]Read from MH i2c: E2 0E 00 0E 66 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 6C [13:29:48]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:29:48]wFMCommunicate OK [13:29:48]SAM_PROTO_GetShiftState done [13:29:48]FM_GetShiftState done [13:29:48]opened in 1718847247 [13:29:48]opened+sec_in_day 1718933647 [13:29:48]quantity*price = 50030 [13:29:48]sum+1 = 50031 [13:29:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 119 20.06.2024 13:30 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111669 ФПД: 46058459061301 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T133023&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111669&fm=46058459061301&tin=02508201610067®Number=0000000000092771&sum=50000 [13:29:49]StoreToDocumentArchive [13:29:49]shift 389 fd 111669 [13:29:49]save to /storage/0389/doc_00111669 [13:29:49]save last doc name /storage/0389/doc_00111669 to /storage/kkm_last_doc_name [13:29:49]save OK [13:29:49]Clear old archive folders... [13:29:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:29:49]tlvbuf is 00F3C1C0 [13:29:49]SAM_PROTO_ClearQueue [13:29:49]wFMCommunicate request_size=4 [13:29:49]MH_SAM_APDU [13:29:49]CAPDU: 80 09 00 00 [13:29:49]Write to MH i2c: E2 08 00 1B 66 80 09 00 00 00 00 00 00 F3 [13:29:49]Write i2c OK [13:29:49]MH_I2C_Read... [13:29:49]Read from MH i2c: E2 [13:29:49]MH_I2C_Read... [13:29:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:49]Read from MH i2c: E2 03 00 [13:29:49]MH_I2C_Read... [13:29:49]Read from MH i2c: E2 03 00 1B 66 00 90 00 F5 [13:29:49]RAPDU: 90 00 [13:29:49]wFMCommunicate OK [13:29:49]SAM_PROTO_ClearQueue done [13:29:49]KKMCreateOFDPacket [13:29:49]OFDProtocolAddRootSTLVToBuf [13:29:49]FM_MakeSignedData [13:29:49]FM_MakeSignedData [13:29:49]SAM_PROTO_SignData [13:29:49]wFMCommunicate request_size=4 [13:29:49]MH_SAM_APDU [13:29:49]CAPDU: 80 0D 01 02 [13:29:49]Write to MH i2c: E2 08 00 1C 66 80 0D 01 02 00 00 00 00 FB [13:29:49]Write i2c OK [13:29:49]MH_I2C_Read... [13:29:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:49]Read from MH i2c: E2 [13:29:49]MH_I2C_Read... [13:29:49]Read from MH i2c: E2 03 00 [13:29:49]MH_I2C_Read... [13:29:49]Read from MH i2c: E2 03 00 1C 66 00 90 00 F6 [13:29:49]RAPDU: 90 00 [13:29:49]wFMCommunicate OK [13:29:49]wFMCommunicate request_size=255 [13:29:49]MH_SAM_APDU [13:29: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 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 EF 2E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 35 B4 01 00 35 04 06 00 29 [13:29:49]Write to MH i2c: E2 02 01 1D 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 EF 2E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 35 B4 01 00 35 04 06 00 29 00 00 7E [13:29:49]Write i2c OK [13:29:49]MH_I2C_Read... [13:29:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:49]Read from MH i2c: E2 [13:29:49]MH_I2C_Read... [13:29:49]Read from MH i2c: E2 03 00 [13:29:49]MH_I2C_Read... [13:29:49]Read from MH i2c: E2 03 00 1D 66 00 90 00 F7 [13:29:49]RAPDU: 90 00 [13:29:49]wFMCommunicate OK [13:29:49]wFMCommunicate request_size=10 [13:29:49]MH_SAM_APDU [13:29:49]CAPDU: 80 0D 02 02 05 E3 D2 17 5C 35 [13:29:49]Write to MH i2c: E2 0D 00 1E 66 80 0D 02 02 05 00 E3 D2 17 5C 35 00 00 65 [13:29:49]Write i2c OK [13:29:49]MH_I2C_Read... [13:29:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:49]Read from MH i2c: E2 [13:29:49]MH_I2C_Read... [13:29:49]Read from MH i2c: E2 03 00 [13:29:49]MH_I2C_Read... [13:29:49]Read from MH i2c: E2 03 00 1E 66 00 90 00 F8 [13:29:49]RAPDU: 90 00 [13:29:49]wFMCommunicate OK [13:29:49]wFMCommunicate request_size=4 [13:29:49]MH_SAM_APDU [13:29:49]CAPDU: 80 0D 03 02 [13:29:49]Write to MH i2c: E2 08 00 1F 66 80 0D 03 02 00 00 00 00 00 [13:29:49]Write i2c OK [13:29:49]MH_I2C_Read... [13:29:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:49]Read from MH i2c: E2 [13:29:49]MH_I2C_Read... [13:29:49]Read from MH i2c: E2 0B 00 [13:29:49]MH_I2C_Read... [13:29:49]Read from MH i2c: E2 0B 00 1F 66 00 17 4D 5B 36 3A CD 7E B5 90 00 30 [13:29:49]RAPDU: 17 4D 5B 36 3A CD 7E B5 90 00 [13:29:49]wFMCommunicate OK [13:29:49]SAM_PROTO_SignData done [13:29:49]FM_MakeSignedData done [13:29:49]CreateOFDProtocolMessage [13:29:49]wFMCommunicate request_size=4 [13:29:49]MH_SAM_APDU [13:29:49]CAPDU: 80 11 00 00 [13:29:49]Write to MH i2c: E2 08 00 20 66 80 11 00 00 00 00 00 00 00 [13:29:49]Write i2c OK [13:29:49]MH_I2C_Read... [13:29:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:49]Read from MH i2c: E2 [13:29:49]MH_I2C_Read... [13:29:49]Read from MH i2c: E2 17 00 [13:29:49]MH_I2C_Read... [13:29:49]Read from MH i2c: E2 17 00 20 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 52 [13:29:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:29:49]wFMCommunicate OK [13:29:49]CreateOFDProtocolMessage done [13:29:49]OFDSenderStorePacket 111669 [13:29:49]StoreOFDPacket docnum=111669 [13:29:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B4 A7 07 01 A2 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 EF 2E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 35 B4 01 00 35 04 06 00 29 E3 D2 17 5C 35 17 4D 5B 36 3A CD 7E B5 [13:29:49]CheckFolder [13:29:49]dirname=/storage/ofd_packets [13:29:49]CheckFolder done [13:29:49]ProducePacketName [13:29:49]name=ofd_packets/00111669 [13:29:49]NVStorageSaveData ofd_packets/00111669 [13:29:49]File name is /storage/ofd_packets/00111669 [13:29:49]Write 301 bytes [13:29:49]NVStorageSaveData done [13:29:49]OFDSenderStorePacket done [13:29:49]KKMCreateOFDPacket done [13:29:49]NVStorageSaveData kkm_last_timestamp [13:29:49]File name is /storage/kkm_last_timestamp [13:29:49]Write 4 bytes [13:29:49]NVStorageSaveData done [13:29:49]ExternCall_PrintAddStr [13:29:49]wPrintStart [13:29:49]Write to MH i2c: 01 00 00 21 66 87 [13:29:49]Write i2c OK [13:29:49]MH_I2C_Read... [13:29:49]Read from MH i2c: 01 [13:29:49]MH_I2C_Read... [13:29:49]Read from MH i2c: 01 07 00 [13:29:49]MH_I2C_Read... [13:29:49]Read from MH i2c: 01 07 00 21 66 00 00 00 00 00 FF 0F 9C [13:29:49]RasterBufferAndPrint [13:29:49]line Счет N : (1)320271 [13:29:49]line ИНН: 02508201610067 [13:29:49]line Контрольно-Кассовый Чек [13:29:49]line ПРОДАЖА [13:29:49]line ТРК (МРК, ГНК) : 12 [13:29:49]line Товар: 2710124500 [13:29:49]line Аи-95-К-5 [13:29:49]line 6.770 * 73.90 [13:29:49]line = 500.30 [13:29:49]line НДС 12% НСП 1% [13:29:49]line > о реализуемом товаре [13:29:49]line ОКРУГЛЕНИЕ: -0.30 [13:29:49]line ИТОГО: 500.00 [13:29:49]line Внесено: 500.00 [13:29:49]line СДАЧА: 0.00 [13:29:49]line НСП 1% : 4.43 [13:29:49]line НДС 12% : 53.13 [13:29:49]line Наличными: 500.00 [13:29:49]line Безнал.: 0.00 [13:29:49]line Место: АЗС № 65 "Партнер Нефть" [13:29:49]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:29:49]line СНО: Общий режим [13:29:49]line Чек 119 20.06.2024 13:30 [13:29:49]line Смена: 389 ФФД: 1.0 [13:29:49]line ЗНМ: 0300000198 [13:29:49]line РНМ: 0000000000092771 [13:29:49]line Версия ККМ: 001 [13:29:49]line ФМ: 0000000000875083 [13:29:49]line ФД: 111669 [13:29:49]line ФПД: 46058459061301 [13:29:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T133023&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111669&fm=46058459061301&tin=02508201610067®Number=0000000000092771&sum=50000 [13:29:50]OFD Sender: Processing packet 111669 [packets to send 38, broken 37] [13:29:50]ProducePacketName [13:29:50]name=ofd_packets/00111669 [13:29:50]OFD Sender: To server: pG, [13:29:50]CommunicateWithHost lk.salyk.kg:30040 [13:29:50]ConnectInit lk.salyk.kg [13:29:50]written 0, free lines is 4095 [13:29:50]Connected sock=10 [13:29:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B4 A7 07 01 A2 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 EF 2E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 35 B4 01 00 35 04 06 00 29 E3 D2 17 5C 35 17 4D 5B 36 3A CD 7E B5 [13:29:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C4 C9 47 00 E2 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 35 B4 01 00 F4 03 04 00 38 C6 73 66 B6 04 01 00 00 4E 4F 9F BB C2 D4 60 63 [13:29:50]CommunicateWithHost err = 0 [13:29:50]CheckOFDResponse [13:29:50]1017 (14) - 77093643461234 [13:29:50]1041 (16) - 0000000000875083 [13:29:50]1040 (4) - 111669 [13:29:50]1012 (4) - 20.06.2024 06:03 [13:29:50]1206 (1) - 0 [13:29:50]OFD Sender: Remove packet 111669 [13:29:50]ProducePacketName [13:29:50]name=ofd_packets/00111669 [13:29:50]NVStorageDeleteData [13:29:50]Write to MH i2c: 01 00 00 4C 66 B2 [13:29:50]Write i2c OK [13:29:50]MH_I2C_Read... [13:29:50]Read from MH i2c: 01 [13:29:50]MH_I2C_Read... [13:29:50]Read from MH i2c: 01 07 00 [13:29:50]MH_I2C_Read... [13:29:50]Read from MH i2c: 01 07 00 4C 66 00 00 00 00 00 D3 0C 98 [13:29:50]RasterBufferAndPrint [13:29:50]line [13:29:50]line [13:29:50]line [13:29:50]line [13:29:50]line [13:29:50]written 0, free lines is 3290 [13:29:50]MH_Cut [13:29:50]Write to MH i2c: D1 01 00 53 66 01 8B [13:29:50]Write i2c OK [13:29:50]MH_I2C_Read... [13:29:50]Read from MH i2c: D1 [13:29:50]MH_I2C_Read... [13:29:50]Read from MH i2c: D1 01 00 [13:29:50]MH_I2C_Read... [13:29:50]Read from MH i2c: D1 01 00 53 66 00 8A [13:29:50]Write to MH i2c: 01 00 00 54 66 BA [13:29:50]Write i2c OK [13:29:50]MH_I2C_Read... [13:29:50]OFD Sender: No OFD packet to send [13:29:51]*** Cut start [13:29:51]*** Partial cut [13:29:51]*** CUTSNS_PIN = 1 [13:29:51]*** CUTSNS_PIN = 0 [13:29:51]*** Brake cut motor [13:29:51]Read from MH i2c: 01 [13:29:51]MH_I2C_Read... [13:29:51]*** Stop cut motor [13:29:51]*** Cut end [13:29:51]Read from MH i2c: 01 07 00 [13:29:51]MH_I2C_Read... [13:29:51]Read from MH i2c: 01 07 00 54 66 00 00 00 00 00 FF 0F CF [13:29:51]process_action close_receipt done [13:29:51]requested_data is exist [13:29:51]produce_requested_data [13:29:51]requested_item fm.sn is exist - process it [13:29:51]wFMCommunicate request_size=4 [13:29:51]MH_SAM_APDU [13:29:51]CAPDU: 80 11 00 00 [13:29:51]Write to MH i2c: E2 08 00 55 66 80 11 00 00 00 00 00 00 35 [13:29:51]Write i2c OK [13:29:51]MH_I2C_Read... [13:29:52]Read from MH i2c: E2 [13:29:52]MH_I2C_Read... [13:29:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:52]Read from MH i2c: E2 17 00 [13:29:52]MH_I2C_Read... [13:29:52]Read from MH i2c: E2 17 00 55 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 87 [13:29:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:29:52]wFMCommunicate OK [13:29:52]requested_item fd.num is exist - process it [13:29:52]SAM_PROTO_GetFieldsCounters [13:29:52]wFMCommunicate request_size=4 [13:29:52]MH_SAM_APDU [13:29:52]CAPDU: 80 13 00 00 [13:29:52]Write to MH i2c: E2 08 00 56 66 80 13 00 00 00 00 00 00 38 [13:29:52]Write i2c OK [13:29:52]MH_I2C_Read... [13:29:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:52]Read from MH i2c: E2 [13:29:52]MH_I2C_Read... [13:29:52]Read from MH i2c: E2 62 00 [13:29:52]MH_I2C_Read... [13:29:52]Read from MH i2c: E2 62 00 56 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 35 B4 01 00 0E 04 04 00 85 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 2E [13:29:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 35 B4 01 00 0E 04 04 00 85 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 [13:29:52]wFMCommunicate OK [13:29:52]SAM_PROTO_GetFieldsCounters done [13:29:52]requested_item shift.num is exist - process it [13:29:52]requested_item shift.opened is exist - process it [13:29:52]req_shift_opened [13:29:52]FM_GetShiftState [13:29:52]SAM_PROTO_GetShiftState [13:29:52]wFMCommunicate request_size=4 [13:29:52]MH_SAM_APDU [13:29:52]CAPDU: 80 13 01 00 [13:29:52]Write to MH i2c: E2 08 00 57 66 80 13 01 00 00 00 00 00 3A [13:29:52]Write i2c OK [13:29:52]MH_I2C_Read... [13:29:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:52]Read from MH i2c: E2 [13:29:52]MH_I2C_Read... [13:29:52]Read from MH i2c: E2 0E 00 [13:29:52]MH_I2C_Read... [13:29:52]Read from MH i2c: E2 0E 00 57 66 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 B5 [13:29:52]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:29:52]wFMCommunicate OK [13:29:52]SAM_PROTO_GetShiftState done [13:29:52]FM_GetShiftState done [13:29:52]req_shift_opened done [13:29:52]requested_item shift.open_date is exist - process it [13:29:52]req_shift_open_date [13:29:52]req_shift_open_date done [13:29:52]produce_requested_data done [13:29:52]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111669,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [13:29:52]process_action_free close_receipt [13:29:52]json_value_free [13:29:52]json_value_free done [13:29:52]process_json_proto returns [13:29:52]Send response to host [13:29:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111669,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [13:29:52]free response buf [13:29:52]execute_script done [13:29:52]execute_script returns [13:29:52]free content buf [13:29:52]Sock 7.Close socket [13:29:52]Sock 7.Thread stoped [13:29:55]OFD Sender: No OFD packet to send [13:30:00]OFD Sender: No OFD packet to send [13:30:05]OFD Sender: No OFD packet to send [13:30:10]OFD Sender: No OFD packet to send [13:30:15]OFD Sender: No OFD packet to send [13:30:20]OFD Sender: No OFD packet to send [13:30:25]OFD Sender: No OFD packet to send [13:30:30]OFD Sender: No OFD packet to send [13:30:35]OFD Sender: No OFD packet to send [13:30:40]OFD Sender: No OFD packet to send [13:30:46]OFD Sender: No OFD packet to send [13:30:51]OFD Sender: No OFD packet to send [13:30:56]OFD Sender: No OFD packet to send [13:31:01]OFD Sender: No OFD packet to send [13:31:06]OFD Sender: No OFD packet to send [13:31:11]OFD Sender: No OFD packet to send [13:31:16]OFD Sender: No OFD packet to send [13:31:21]OFD Sender: No OFD packet to send [13:31:26]OFD Sender: No OFD packet to send [13:31:31]OFD Sender: No OFD packet to send [13:31:36]OFD Sender: No OFD packet to send [13:31:41]OFD Sender: No OFD packet to send [13:31:46]OFD Sender: No OFD packet to send [13:31:51]OFD Sender: No OFD packet to send [13:31:56]OFD Sender: No OFD packet to send [13:32:01]OFD Sender: No OFD packet to send [13:32: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:30]accept exits with 9 [13:33:30]New connection [13:33:30]New thread 3067465060 created [13:33:30]Thread 3067321700 joined [13:33:30]Waiting for new connection... [13:33:30] Sock 9.Parse request [13:33:30]Sock 9.Check first char [13:33:30]Sock 9.First char is OK [13:33:30]request: POST /json_proto HTTP/1.0 [13:33:30]Method: POST [13:33:30]URL: /json_proto [13:33:30]Method is POST - this is cgi request [13:33:30]url: /json_proto [13:33:30]query_string will be loaded in cgi processing [13:33:30]execute_cgi json_proto POST (null) [13:33:30]execute_cgi path=json_proto method=POST [13:33:30]POST find Content-Length [13:33:30]Host: 172.17.59.68:8080 [13:33:30]Content-Length: 677 [13:33:30]Content-Type: application/json [13:33:30] [13:33:30]POST finish read [13:33:30]Found Content-Length = 677 [13:33:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:30]execute_script... [13: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)320272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:30]POST & json_proto [13:33:30]process_json_proto [13:33:30]json parsed OK: [13:33:30]protocol is kg_v1.0 [13:33:30]action value=close_receipt [13:33:30]process_action close_receipt [13:33:30]cmd_close_receipt [13:33:30]MH_GetDate [13:33:30]Write to MH i2c: F0 00 00 58 66 AD [13:33:30]Write i2c OK [13:33:30]MH_I2C_Read... [13:33:30]Read from MH i2c: F0 [13:33:30]MH_I2C_Read... [13:33:30]Read from MH i2c: F0 09 00 [13:33:30]MH_I2C_Read... [13:33:30]Read from MH i2c: F0 09 00 58 66 00 CE 2F 74 66 BC EC 60 65 FA [13:33:30]GetLastDocTimeStamp 1718890223 [13:33:30]current date 1718890446 [13:33:30]FM_GetShiftState [13:33:30]SAM_PROTO_GetShiftState [13:33:30]wFMCommunicate request_size=4 [13:33:30]MH_SAM_APDU [13:33:30]CAPDU: 80 13 01 00 [13:33:30]Write to MH i2c: E2 08 00 59 66 80 13 01 00 00 00 00 00 3C [13:33:30]Write i2c OK [13:33:30]MH_I2C_Read... [13:33:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:30]Read from MH i2c: E2 [13:33:30]MH_I2C_Read... [13:33:30]Read from MH i2c: E2 0E 00 [13:33:30]MH_I2C_Read... [13:33:30]Read from MH i2c: E2 0E 00 59 66 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 B7 [13:33:30]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:33:30]wFMCommunicate OK [13:33:30]SAM_PROTO_GetShiftState done [13:33:30]FM_GetShiftState done [13:33:30]opened in 1718847247 [13:33:30]opened+sec_in_day 1718933647 [13:33:30]quantity*price = 30012 [13:33:30]sum+1 = 30014 [13:33:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 120 20.06.2024 13:34 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111670 ФПД: 262015886635084 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T133406&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111670&fm=262015886635084&tin=02508201610067®Number=0000000000092771&sum=30000 [13:33:31]StoreToDocumentArchive [13:33:31]shift 389 fd 111670 [13:33:31]save to /storage/0389/doc_00111670 [13:33:31]save last doc name /storage/0389/doc_00111670 to /storage/kkm_last_doc_name [13:33:31]save OK [13:33:31]Clear old archive folders... [13:33:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:33:31]tlvbuf is 00F08090 [13:33:31]SAM_PROTO_ClearQueue [13:33:31]wFMCommunicate request_size=4 [13:33:31]MH_SAM_APDU [13:33:31]CAPDU: 80 09 00 00 [13:33:31]Write to MH i2c: E2 08 00 66 66 80 09 00 00 00 00 00 00 3E [13:33:31]Write i2c OK [13:33:31]MH_I2C_Read... [13:33:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:33:31]Read from MH i2c: E2 [13:33:31]MH_I2C_Read... [13:33:31]Read from MH i2c: E2 03 00 [13:33:31]MH_I2C_Read... [13:33:31]Read from MH i2c: E2 03 00 66 66 00 90 00 40 [13:33:31]RAPDU: 90 00 [13:33:31]wFMCommunicate OK [13:33:31]SAM_PROTO_ClearQueue done [13:33:31]KKMCreateOFDPacket [13:33:31]OFDProtocolAddRootSTLVToBuf [13:33:31]FM_MakeSignedData [13:33:31]FM_MakeSignedData [13:33:31]SAM_PROTO_SignData [13:33:31]wFMCommunicate request_size=4 [13:33:31]MH_SAM_APDU [13:33:31]CAPDU: 80 0D 01 02 [13:33:31]Write to MH i2c: E2 08 00 67 66 80 0D 01 02 00 00 00 00 46 [13:33:31]Write i2c OK [13:33:31]MH_I2C_Read... [13:33:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:33:31]Read from MH i2c: E2 [13:33:31]MH_I2C_Read... [13:33:31]Read from MH i2c: E2 03 00 [13:33:31]MH_I2C_Read... [13:33:31]Read from MH i2c: E2 03 00 67 66 00 90 00 41 [13:33:31]RAPDU: 90 00 [13:33:31]wFMCommunicate OK [13:33:31]wFMCommunicate request_size=255 [13:33:31]MH_SAM_APDU [13: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 CE 2F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 36 B4 01 00 35 04 06 00 EE [13:33:31]Write to MH i2c: E2 02 01 68 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 CE 2F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 36 B4 01 00 35 04 06 00 EE 00 00 46 [13:33:31]Write i2c OK [13:33:31]MH_I2C_Read... [13:33:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:32]Read from MH i2c: E2 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: E2 03 00 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: E2 03 00 68 66 00 90 00 42 [13:33:32]RAPDU: 90 00 [13:33:32]wFMCommunicate OK [13:33:32]wFMCommunicate request_size=10 [13:33:32]MH_SAM_APDU [13:33:32]CAPDU: 80 0D 02 02 05 4D 53 D9 30 4C [13:33:32]Write to MH i2c: E2 0D 00 69 66 80 0D 02 02 05 00 4D 53 D9 30 4C 00 00 48 [13:33:32]Write i2c OK [13:33:32]MH_I2C_Read... [13:33:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:32]Read from MH i2c: E2 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: E2 03 00 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: E2 03 00 69 66 00 90 00 43 [13:33:32]RAPDU: 90 00 [13:33:32]wFMCommunicate OK [13:33:32]wFMCommunicate request_size=4 [13:33:32]MH_SAM_APDU [13:33:32]CAPDU: 80 0D 03 02 [13:33:32]Write to MH i2c: E2 08 00 6A 66 80 0D 03 02 00 00 00 00 4B [13:33:32]Write i2c OK [13:33:32]MH_I2C_Read... [13:33:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:33:32]Read from MH i2c: E2 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: E2 0B 00 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: E2 0B 00 6A 66 00 3B 3D 88 D8 53 FC 2A BA 90 00 57 [13:33:32]RAPDU: 3B 3D 88 D8 53 FC 2A BA 90 00 [13:33:32]wFMCommunicate OK [13:33:32]SAM_PROTO_SignData done [13:33:32]FM_MakeSignedData done [13:33:32]CreateOFDProtocolMessage [13:33:32]wFMCommunicate request_size=4 [13:33:32]MH_SAM_APDU [13:33:32]CAPDU: 80 11 00 00 [13:33:32]Write to MH i2c: E2 08 00 6B 66 80 11 00 00 00 00 00 00 4B [13:33:32]Write i2c OK [13:33:32]MH_I2C_Read... [13:33:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:32]Read from MH i2c: E2 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: E2 17 00 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: E2 17 00 6B 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9D [13:33:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:33:32]wFMCommunicate OK [13:33:32]CreateOFDProtocolMessage done [13:33:32]OFDSenderStorePacket 111670 [13:33:32]StoreOFDPacket docnum=111670 [13:33:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E1 75 07 01 3C 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 CE 2F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 36 B4 01 00 35 04 06 00 EE 4D 53 D9 30 4C 3B 3D 88 D8 53 FC 2A BA [13:33:32]CheckFolder [13:33:32]dirname=/storage/ofd_packets [13:33:32]CheckFolder done [13:33:32]ProducePacketName [13:33:32]name=ofd_packets/00111670 [13:33:32]NVStorageSaveData ofd_packets/00111670 [13:33:32]File name is /storage/ofd_packets/00111670 [13:33:32]Write 301 bytes [13:33:32]NVStorageSaveData done [13:33:32]OFDSenderStorePacket done [13:33:32]KKMCreateOFDPacket done [13:33:32]NVStorageSaveData kkm_last_timestamp [13:33:32]File name is /storage/kkm_last_timestamp [13:33:32]Write 4 bytes [13:33:32]NVStorageSaveData done [13:33:32]ExternCall_PrintAddStr [13:33:32]wPrintStart [13:33:32]Write to MH i2c: 01 00 00 6C 66 D2 [13:33:32]Write i2c OK [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: 01 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: 01 07 00 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: 01 07 00 6C 66 00 00 00 00 00 FF 0F E7 [13:33:32]RasterBufferAndPrint [13:33:32]line Счет N : (1)320272 [13:33:32]line ИНН: 02508201610067 [13:33:32]line Контрольно-Кассовый Чек [13:33:32]line ПРОДАЖА [13:33:32]line ТРК (МРК, ГНК) : 11 [13:33:32]line Товар: 2710124130 [13:33:32]line Аи-92-К-5 [13:33:32]line 4.520 * 66.40 [13:33:32]line = 300.13 [13:33:32]line НДС 12% НСП 1% [13:33:32]line > о реализуемом товаре [13:33:32]line ОКРУГЛЕНИЕ: -0.13 [13:33:32]line ИТОГО: 300.00 [13:33:32]line Внесено: 300.00 [13:33:32]line СДАЧА: 0.00 [13:33:32]line НСП 1% : 2.66 [13:33:32]line НДС 12% : 31.87 [13:33:32]line Наличными: 300.00 [13:33:32]line Безнал.: 0.00 [13:33:32]line Место: АЗС № 65 "Партнер Нефть" [13:33:32]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:33:32]line СНО: Общий режим [13:33:32]line Чек 120 20.06.2024 13:34 [13:33:32]line Смена: 389 ФФД: 1.0 [13:33:32]line ЗНМ: 0300000198 [13:33:32]line РНМ: 0000000000092771 [13:33:32]line Версия ККМ: 001 [13:33:32]line ФМ: 0000000000875083 [13:33:32]line ФД: 111670 [13:33:32]line ФПД: 262015886635084 [13:33:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T133406&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111670&fm=262015886635084&tin=02508201610067®Number=0000000000092771&sum=30000 [13:33:32]written 0, free lines is 4095 [13:33:32]OFD Sender: Processing packet 111670 [packets to send 38, broken 37] [13:33:32]ProducePacketName [13:33:32]name=ofd_packets/00111670 [13:33:32]OFD Sender: To server: pG, [13:33:32]CommunicateWithHost lk.salyk.kg:30040 [13:33:32]ConnectInit lk.salyk.kg [13:33:32]Connected sock=10 [13: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 35 30 38 33 0F 01 00 00 E1 75 07 01 3C 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 CE 2F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 36 B4 01 00 35 04 06 00 EE 4D 53 D9 30 4C 3B 3D 88 D8 53 FC 2A BA [13:33:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 8F B2 47 00 56 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 36 B4 01 00 F4 03 04 00 16 C7 73 66 B6 04 01 00 00 0D 14 DE 3C DA 2E B1 78 [13:33:32]CommunicateWithHost err = 0 [13:33:32]CheckOFDResponse [13:33:32]1017 (14) - 77093643461234 [13:33:32]1041 (16) - 0000000000875083 [13:33:32]1040 (4) - 111670 [13:33:32]1012 (4) - 20.06.2024 06:07 [13:33:32]1206 (1) - 0 [13:33:32]OFD Sender: Remove packet 111670 [13:33:32]ProducePacketName [13:33:32]name=ofd_packets/00111670 [13:33:32]NVStorageDeleteData [13:33:32]Write to MH i2c: 01 00 00 97 66 FD [13:33:32]Write i2c OK [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: 01 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: 01 07 00 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: 01 07 00 97 66 00 00 00 00 00 DA 0C EA [13:33:32]RasterBufferAndPrint [13:33:32]line [13:33:32]line [13:33:32]line [13:33:32]line [13:33:32]line [13:33:32]written 0, free lines is 3297 [13:33:32]MH_Cut [13:33:32]Write to MH i2c: D1 01 00 9E 66 01 D6 [13:33:32]Write i2c OK [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: D1 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: D1 01 00 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: D1 01 00 9E 66 00 D5 [13:33:32]Write to MH i2c: 01 00 00 9F 66 05 [13:33:32]Write i2c OK [13:33:32]MH_I2C_Read... [13:33:33]OFD Sender: No OFD packet to send [13:33:33]*** Cut start [13:33:33]*** Partial cut [13:33:33]*** CUTSNS_PIN = 1 [13:33:33]*** CUTSNS_PIN = 0 [13:33:33]*** Brake cut motor [13:33:34]Read from MH i2c: 01 [13:33:34]MH_I2C_Read... [13:33:34]*** Stop cut motor [13:33:34]*** Cut end [13:33:34]Read from MH i2c: 01 07 00 [13:33:34]MH_I2C_Read... [13:33:34]Read from MH i2c: 01 07 00 9F 66 00 00 00 00 00 FF 0F 1A [13:33:34]process_action close_receipt done [13:33:34]requested_data is exist [13:33:34]produce_requested_data [13:33:34]requested_item fm.sn is exist - process it [13:33:34]wFMCommunicate request_size=4 [13:33:34]MH_SAM_APDU [13:33:34]CAPDU: 80 11 00 00 [13:33:34]Write to MH i2c: E2 08 00 A0 66 80 11 00 00 00 00 00 00 80 [13:33:34]Write i2c OK [13:33:34]MH_I2C_Read... [13:33:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:34]Read from MH i2c: E2 [13:33:34]MH_I2C_Read... [13:33:34]Read from MH i2c: E2 17 00 [13:33:34]MH_I2C_Read... [13:33:34]Read from MH i2c: E2 17 00 A0 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D2 [13:33:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:33:34]wFMCommunicate OK [13:33:34]requested_item fd.num is exist - process it [13:33:34]SAM_PROTO_GetFieldsCounters [13:33:34]wFMCommunicate request_size=4 [13:33:34]MH_SAM_APDU [13:33:34]CAPDU: 80 13 00 00 [13:33:34]Write to MH i2c: E2 08 00 A1 66 80 13 00 00 00 00 00 00 83 [13:33:34]Write i2c OK [13:33:34]MH_I2C_Read... [13:33:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:33:34]Read from MH i2c: E2 [13:33:34]MH_I2C_Read... [13:33:34]Read from MH i2c: E2 62 00 [13:33:34]MH_I2C_Read... [13:33:34]Read from MH i2c: E2 62 00 A1 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 36 B4 01 00 0E 04 04 00 85 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 7D [13:33:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 36 B4 01 00 0E 04 04 00 85 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 [13:33:34]wFMCommunicate OK [13:33:34]SAM_PROTO_GetFieldsCounters done [13:33:34]requested_item shift.num is exist - process it [13:33:34]requested_item shift.opened is exist - process it [13:33:34]req_shift_opened [13:33:34]FM_GetShiftState [13:33:34]SAM_PROTO_GetShiftState [13:33:34]wFMCommunicate request_size=4 [13:33:34]MH_SAM_APDU [13:33:34]CAPDU: 80 13 01 00 [13:33:34]Write to MH i2c: E2 08 00 A2 66 80 13 01 00 00 00 00 00 85 [13:33:34]Write i2c OK [13:33:34]MH_I2C_Read... [13:33:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:34]Read from MH i2c: E2 [13:33:34]MH_I2C_Read... [13:33:34]Read from MH i2c: E2 0E 00 [13:33:34]MH_I2C_Read... [13:33:34]Read from MH i2c: E2 0E 00 A2 66 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 00 [13:33:34]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:33:34]wFMCommunicate OK [13:33:34]SAM_PROTO_GetShiftState done [13:33:34]FM_GetShiftState done [13:33:34]req_shift_opened done [13:33:34]requested_item shift.open_date is exist - process it [13:33:34]req_shift_open_date [13:33:34]req_shift_open_date done [13:33:34]produce_requested_data done [13:33:34]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111670,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [13:33:34]process_action_free close_receipt [13:33:34]json_value_free [13:33:34]json_value_free done [13:33:34]process_json_proto returns [13:33:34]Send response to host [13:33:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111670,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [13:33:34]free response buf [13:33:34]execute_script done [13:33:34]execute_script returns [13:33:34]free content buf [13:33:34]Sock 9.Close socket [13:33:34]Sock 9.Thread stoped [13:33:38]OFD Sender: No OFD packet to send [13:33:43]OFD Sender: No OFD packet to send [13:33:48]OFD Sender: No OFD packet to send [13:33:53]OFD Sender: No OFD packet to send [13:33:58]OFD Sender: No OFD packet to send [13:34:03]OFD Sender: No OFD packet to send [13:34:08]OFD Sender: No OFD packet to send [13:34:13]OFD Sender: No OFD packet to send [13:34:18]OFD Sender: No OFD packet to send [13:34:23]OFD Sender: No OFD packet to send [13:34:28]OFD Sender: No OFD packet to send [13:34:33]OFD Sender: No OFD packet to send [13:34:38]OFD Sender: No OFD packet to send [13:34:43]OFD Sender: No OFD packet to send [13:34:48]OFD Sender: No OFD packet to send [13:34:53]OFD Sender: No OFD packet to send [13:34:58]OFD Sender: No OFD packet to send [13:35:03]OFD Sender: No OFD packet to send [13:35:08]OFD Sender: No OFD packet to send [13:35:13]OFD Sender: No OFD packet to send [13:35:18]OFD Sender: No OFD packet to send [13:35:23]OFD Sender: No OFD packet to send [13:35:28]OFD Sender: No OFD packet to send [13:35:33]OFD Sender: No OFD packet to send [13:35:38]OFD Sender: No OFD packet to send [13:35:43]OFD Sender: No OFD packet to send [13:35:48]OFD Sender: No OFD packet to send [13:35:53]OFD Sender: No OFD packet to send [13:35:58]OFD Sender: No OFD packet to send [13:36:03]OFD Sender: No OFD packet to send [13:36:08]OFD Sender: No OFD packet to send [13:36:12]accept exits with 7 [13:36:12]New connection [13:36:12]New thread 3067321700 created [13:36:12]Thread 3067465060 joined [13:36:12]Waiting for new connection... [13:36:12] Sock 7.Parse request [13:36:12]Sock 7.Check first char [13:36:12]Sock 7.First char is OK [13:36:12]request: POST /json_proto HTTP/1.0 [13:36:12]Method: POST [13:36:12]URL: /json_proto [13:36:12]Method is POST - this is cgi request [13:36:12]url: /json_proto [13:36:12]query_string will be loaded in cgi processing [13:36:12]execute_cgi json_proto POST (null) [13:36:12]execute_cgi path=json_proto method=POST [13:36:12]POST find Content-Length [13:36:12]Host: 172.17.59.68:8080 [13:36:12]Content-Length: 678 [13:36:12]Content-Type: application/json [13:36:12] [13:36:12]POST finish read [13:36:12]Found Content-Length = 678 [13:36:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:12]execute_script... [13:36: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)320273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:12]POST & json_proto [13:36:12]process_json_proto [13:36:12]json parsed OK: [13:36:12]protocol is kg_v1.0 [13:36:12]action value=close_receipt [13:36:12]process_action close_receipt [13:36:12]cmd_close_receipt [13:36:12]MH_GetDate [13:36:12]Write to MH i2c: F0 00 00 A3 66 F8 [13:36:12]Write i2c OK [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: F0 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: F0 09 00 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: F0 09 00 A3 66 00 6F 30 74 66 BC EC 60 65 E7 [13:36:12]GetLastDocTimeStamp 1718890446 [13:36:12]current date 1718890607 [13:36:12]FM_GetShiftState [13:36:12]SAM_PROTO_GetShiftState [13:36:12]wFMCommunicate request_size=4 [13:36:12]MH_SAM_APDU [13:36:12]CAPDU: 80 13 01 00 [13:36:12]Write to MH i2c: E2 08 00 A4 66 80 13 01 00 00 00 00 00 87 [13:36:12]Write i2c OK [13:36:12]MH_I2C_Read... [13:36:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:12]Read from MH i2c: E2 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: E2 0E 00 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: E2 0E 00 A4 66 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 02 [13:36:12]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:36:12]wFMCommunicate OK [13:36:12]SAM_PROTO_GetShiftState done [13:36:12]FM_GetShiftState done [13:36:12]opened in 1718847247 [13:36:12]opened+sec_in_day 1718933647 [13:36:12]quantity*price = 70052 [13:36:12]sum+1 = 70053 [13:36:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 121 20.06.2024 13:36 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111671 ФПД: 74070297104719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T133647&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111671&fm=74070297104719&tin=02508201610067®Number=0000000000092771&sum=70000 [13:36:13]StoreToDocumentArchive [13:36:13]shift 389 fd 111671 [13:36:13]save to /storage/0389/doc_00111671 [13:36:13]save last doc name /storage/0389/doc_00111671 to /storage/kkm_last_doc_name [13:36:13]save OK [13:36:13]Clear old archive folders... [13:36:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:36:13]tlvbuf is 00F0C690 [13:36:13]SAM_PROTO_ClearQueue [13:36:13]wFMCommunicate request_size=4 [13:36:13]MH_SAM_APDU [13:36:13]CAPDU: 80 09 00 00 [13:36:13]Write to MH i2c: E2 08 00 B1 66 80 09 00 00 00 00 00 00 89 [13:36:13]Write i2c OK [13:36:13]MH_I2C_Read... [13:36:13]OFD Sender: No OFD packet to send [13:36:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:36:13]Read from MH i2c: E2 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: E2 03 00 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: E2 03 00 B1 66 00 90 00 8B [13:36:13]RAPDU: 90 00 [13:36:13]wFMCommunicate OK [13:36:13]SAM_PROTO_ClearQueue done [13:36:13]KKMCreateOFDPacket [13:36:13]OFDProtocolAddRootSTLVToBuf [13:36:13]FM_MakeSignedData [13:36:13]FM_MakeSignedData [13:36:13]SAM_PROTO_SignData [13:36:13]wFMCommunicate request_size=4 [13:36:13]MH_SAM_APDU [13:36:13]CAPDU: 80 0D 01 02 [13:36:13]Write to MH i2c: E2 08 00 B2 66 80 0D 01 02 00 00 00 00 91 [13:36:13]Write i2c OK [13:36:13]MH_I2C_Read... [13:36:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:36:13]Read from MH i2c: E2 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: E2 03 00 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: E2 03 00 B2 66 00 90 00 8C [13:36:13]RAPDU: 90 00 [13:36:13]wFMCommunicate OK [13:36:13]wFMCommunicate request_size=255 [13:36:13]MH_SAM_APDU [13:36: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 6F 30 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 37 B4 01 00 35 04 06 00 43 [13:36:13]Write to MH i2c: E2 02 01 B3 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 6F 30 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 37 B4 01 00 35 04 06 00 43 00 00 FE [13:36:13]Write i2c OK [13:36:13]MH_I2C_Read... [13:36:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:13]Read from MH i2c: E2 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: E2 03 00 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: E2 03 00 B3 66 00 90 00 8D [13:36:13]RAPDU: 90 00 [13:36:13]wFMCommunicate OK [13:36:13]wFMCommunicate request_size=10 [13:36:13]MH_SAM_APDU [13:36:13]CAPDU: 80 0D 02 02 05 5D D5 BF 51 4F [13:36:13]Write to MH i2c: E2 0D 00 B4 66 80 0D 02 02 05 00 5D D5 BF 51 4F 00 00 2F [13:36:13]Write i2c OK [13:36:13]MH_I2C_Read... [13:36:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:13]Read from MH i2c: E2 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: E2 03 00 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: E2 03 00 B4 66 00 90 00 8E [13:36:13]RAPDU: 90 00 [13:36:13]wFMCommunicate OK [13:36:13]wFMCommunicate request_size=4 [13:36:13]MH_SAM_APDU [13:36:13]CAPDU: 80 0D 03 02 [13:36:13]Write to MH i2c: E2 08 00 B5 66 80 0D 03 02 00 00 00 00 96 [13:36:13]Write i2c OK [13:36:13]MH_I2C_Read... [13:36:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:36:13]Read from MH i2c: E2 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: E2 0B 00 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: E2 0B 00 B5 66 00 68 1A AE 44 9B 75 13 74 90 00 A2 [13:36:13]RAPDU: 68 1A AE 44 9B 75 13 74 90 00 [13:36:13]wFMCommunicate OK [13:36:13]SAM_PROTO_SignData done [13:36:13]FM_MakeSignedData done [13:36:13]CreateOFDProtocolMessage [13:36:13]wFMCommunicate request_size=4 [13:36:13]MH_SAM_APDU [13:36:13]CAPDU: 80 11 00 00 [13:36:13]Write to MH i2c: E2 08 00 B6 66 80 11 00 00 00 00 00 00 96 [13:36:13]Write i2c OK [13:36:13]MH_I2C_Read... [13:36:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:13]Read from MH i2c: E2 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: E2 17 00 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: E2 17 00 B6 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E8 [13:36:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:36:13]wFMCommunicate OK [13:36:13]CreateOFDProtocolMessage done [13:36:13]OFDSenderStorePacket 111671 [13:36:13]StoreOFDPacket docnum=111671 [13:36:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 95 FB 07 01 02 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 6F 30 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 37 B4 01 00 35 04 06 00 43 5D D5 BF 51 4F 68 1A AE 44 9B 75 13 74 [13:36:13]CheckFolder [13:36:13]dirname=/storage/ofd_packets [13:36:13]CheckFolder done [13:36:13]ProducePacketName [13:36:13]name=ofd_packets/00111671 [13:36:13]NVStorageSaveData ofd_packets/00111671 [13:36:13]File name is /storage/ofd_packets/00111671 [13:36:13]Write 301 bytes [13:36:13]NVStorageSaveData done [13:36:13]OFDSenderStorePacket done [13:36:13]KKMCreateOFDPacket done [13:36:13]NVStorageSaveData kkm_last_timestamp [13:36:13]File name is /storage/kkm_last_timestamp [13:36:13]Write 4 bytes [13:36:13]NVStorageSaveData done [13:36:13]ExternCall_PrintAddStr [13:36:13]wPrintStart [13:36:13]Write to MH i2c: 01 00 00 B7 66 1D [13:36:13]Write i2c OK [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: 01 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: 01 07 00 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: 01 07 00 B7 66 00 00 00 00 00 FF 0F 32 [13:36:13]RasterBufferAndPrint [13:36:13]line Счет N : (1)320273 [13:36:13]line ИНН: 02508201610067 [13:36:13]line Контрольно-Кассовый Чек [13:36:13]line ПРОДАЖА [13:36:13]line ТРК (МРК, ГНК) : 11 [13:36:13]line Товар: 2710124130 [13:36:13]line Аи-92-К-5 [13:36:13]line 10.550 * 66.40 [13:36:13]line = 700.52 [13:36:13]line НДС 12% НСП 1% [13:36:13]line > о реализуемом товаре [13:36:13]line ОКРУГЛЕНИЕ: -0.52 [13:36:13]line ИТОГО: 700.00 [13:36:13]line Внесено: 700.00 [13:36:13]line СДАЧА: 0.00 [13:36:13]line НСП 1% : 6.20 [13:36:13]line НДС 12% : 74.39 [13:36:13]line Наличными: 700.00 [13:36:13]line Безнал.: 0.00 [13:36:13]line Место: АЗС № 65 "Партнер Нефть" [13:36:13]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:36:13]line СНО: Общий режим [13:36:13]line Чек 121 20.06.2024 13:36 [13:36:13]line Смена: 389 ФФД: 1.0 [13:36:13]line ЗНМ: 0300000198 [13:36:13]line РНМ: 0000000000092771 [13:36:13]line Версия ККМ: 001 [13:36:13]line ФМ: 0000000000875083 [13:36:13]line ФД: 111671 [13:36:13]line ФПД: 74070297104719 [13:36:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T133647&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111671&fm=74070297104719&tin=02508201610067®Number=0000000000092771&sum=70000 [13:36:14]OFD Sender: Processing packet 111671 [packets to send 38, broken 37] [13:36:14]ProducePacketName [13:36:14]name=ofd_packets/00111671 [13:36:14]OFD Sender: To server: pG, [13:36:14]CommunicateWithHost lk.salyk.kg:30040 [13:36:14]ConnectInit lk.salyk.kg [13:36:14]written 0, free lines is 4095 [13:36:14]Connected sock=10 [13:36:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 95 FB 07 01 02 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 6F 30 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 37 B4 01 00 35 04 06 00 43 5D D5 BF 51 4F 68 1A AE 44 9B 75 13 74 [13:36:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 62 50 47 00 0A B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 37 B4 01 00 F4 03 04 00 B8 C7 73 66 B6 04 01 00 00 CC 28 53 EB 94 A4 F6 DB [13:36:14]CommunicateWithHost err = 0 [13:36:14]CheckOFDResponse [13:36:14]1017 (14) - 77093643461234 [13:36:14]1041 (16) - 0000000000875083 [13:36:14]1040 (4) - 111671 [13:36:14]1012 (4) - 20.06.2024 06:10 [13:36:14]1206 (1) - 0 [13:36:14]OFD Sender: Remove packet 111671 [13:36:14]ProducePacketName [13:36:14]name=ofd_packets/00111671 [13:36:14]NVStorageDeleteData [13:36:14]Write to MH i2c: 01 00 00 E2 66 48 [13:36:14]Write i2c OK [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: 01 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: 01 07 00 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: 01 07 00 E2 66 00 00 00 00 00 C9 0C 24 [13:36:14]RasterBufferAndPrint [13:36:14]line [13:36:14]line [13:36:14]line [13:36:14]line [13:36:14]line [13:36:14]written 0, free lines is 3280 [13:36:14]MH_Cut [13:36:14]Write to MH i2c: D1 01 00 E9 66 01 21 [13:36:14]Write i2c OK [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: D1 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: D1 01 00 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: D1 01 00 E9 66 00 20 [13:36:14]Write to MH i2c: 01 00 00 EA 66 50 [13:36:14]Write i2c OK [13:36:14]MH_I2C_Read... [13:36:14]OFD Sender: No OFD packet to send [13:36:15]*** Cut start [13:36:15]*** Partial cut [13:36:15]*** CUTSNS_PIN = 1 [13:36:15]*** CUTSNS_PIN = 0 [13:36:15]*** Brake cut motor [13:36:15]Read from MH i2c: 01 [13:36:15]MH_I2C_Read... [13:36:15]*** Stop cut motor [13:36:15]*** Cut end [13:36:15]Read from MH i2c: 01 07 00 [13:36:15]MH_I2C_Read... [13:36:15]Read from MH i2c: 01 07 00 EA 66 00 00 00 00 00 FF 0F 65 [13:36:15]process_action close_receipt done [13:36:15]requested_data is exist [13:36:15]produce_requested_data [13:36:15]requested_item fm.sn is exist - process it [13:36:15]wFMCommunicate request_size=4 [13:36:15]MH_SAM_APDU [13:36:15]CAPDU: 80 11 00 00 [13:36:15]Write to MH i2c: E2 08 00 EB 66 80 11 00 00 00 00 00 00 CB [13:36:15]Write i2c OK [13:36:15]MH_I2C_Read... [13:36:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:16]Read from MH i2c: E2 [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: E2 17 00 [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: E2 17 00 EB 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1D [13:36:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:36:16]wFMCommunicate OK [13:36:16]requested_item fd.num is exist - process it [13:36:16]SAM_PROTO_GetFieldsCounters [13:36:16]wFMCommunicate request_size=4 [13:36:16]MH_SAM_APDU [13:36:16]CAPDU: 80 13 00 00 [13:36:16]Write to MH i2c: E2 08 00 EC 66 80 13 00 00 00 00 00 00 CE [13:36:16]Write i2c OK [13:36:16]MH_I2C_Read... [13:36:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:36:16]Read from MH i2c: E2 [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: E2 62 00 [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: E2 62 00 EC 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 37 B4 01 00 0E 04 04 00 85 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 CC [13:36:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 37 B4 01 00 0E 04 04 00 85 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 [13:36:16]wFMCommunicate OK [13:36:16]SAM_PROTO_GetFieldsCounters done [13:36:16]requested_item shift.num is exist - process it [13:36:16]requested_item shift.opened is exist - process it [13:36:16]req_shift_opened [13:36:16]FM_GetShiftState [13:36:16]SAM_PROTO_GetShiftState [13:36:16]wFMCommunicate request_size=4 [13:36:16]MH_SAM_APDU [13:36:16]CAPDU: 80 13 01 00 [13:36:16]Write to MH i2c: E2 08 00 ED 66 80 13 01 00 00 00 00 00 D0 [13:36:16]Write i2c OK [13:36:16]MH_I2C_Read... [13:36:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:16]Read from MH i2c: E2 [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: E2 0E 00 [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: E2 0E 00 ED 66 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 4B [13:36:16]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:36:16]wFMCommunicate OK [13:36:16]SAM_PROTO_GetShiftState done [13:36:16]FM_GetShiftState done [13:36:16]req_shift_opened done [13:36:16]requested_item shift.open_date is exist - process it [13:36:16]req_shift_open_date [13:36:16]req_shift_open_date done [13:36:16]produce_requested_data done [13:36:16]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111671,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [13:36:16]process_action_free close_receipt [13:36:16]json_value_free [13:36:16]json_value_free done [13:36:16]process_json_proto returns [13:36:16]Send response to host [13:36:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111671,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [13:36:16]free response buf [13:36:16]execute_script done [13:36:16]execute_script returns [13:36:16]free content buf [13:36:16]Sock 7.Close socket [13:36:16]Sock 7.Thread stoped [13:36:19]OFD Sender: No OFD packet to send [13:36:24]OFD Sender: No OFD packet to send [13:36:29]OFD Sender: No OFD packet to send [13:36:34]OFD Sender: No OFD packet to send [13:36:39]OFD Sender: No OFD packet to send [13:36:45]OFD Sender: No OFD packet to send [13:36:50]OFD Sender: No OFD packet to send [13:36:55]OFD Sender: No OFD packet to send [13:37:00]OFD Sender: No OFD packet to send [13:37:05]OFD Sender: No OFD packet to send [13:37:10]OFD Sender: No OFD packet to send [13:37:15]OFD Sender: No OFD packet to send [13:37:20]OFD Sender: No OFD packet to send [13:37:25]OFD Sender: No OFD packet to send [13:37:30]OFD Sender: No OFD packet to send [13:37:35]OFD Sender: No OFD packet to send [13:37:40]OFD Sender: No OFD packet to send [13:37:45]OFD Sender: No OFD packet to send [13:37:50]OFD Sender: No OFD packet to send [13:37:55]OFD Sender: No OFD packet to send [13:38:00]OFD Sender: No OFD packet to send [13:38:05]OFD Sender: No OFD packet to send [13:38:09]accept exits with 9 [13:38:09]New connection [13:38:09]New thread 3067465060 created [13:38:09]Thread 3067321700 joined [13:38:09]Waiting for new connection... [13:38:09] Sock 9.Parse request [13:38:09]Sock 9.Check first char [13:38:09]Sock 9.First char is OK [13:38:09]request: POST /json_proto HTTP/1.0 [13:38:09]Method: POST [13:38:09]URL: /json_proto [13:38:09]Method is POST - this is cgi request [13:38:09]url: /json_proto [13:38:09]query_string will be loaded in cgi processing [13:38:09]execute_cgi json_proto POST (null) [13:38:09]execute_cgi path=json_proto method=POST [13:38:09]POST find Content-Length [13:38:09]Host: 172.17.59.68:8080 [13:38:09]Content-Length: 682 [13:38:09]Content-Type: application/json [13:38:09] [13:38:09]POST finish read [13:38:09]Found Content-Length = 682 [13:38:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:09]execute_script... [13:38: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)320274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:09]POST & json_proto [13:38:09]process_json_proto [13:38:09]json parsed OK: [13:38:09]protocol is kg_v1.0 [13:38:09]action value=close_receipt [13:38:09]process_action close_receipt [13:38:09]cmd_close_receipt [13:38:09]MH_GetDate [13:38:09]Write to MH i2c: F0 00 00 EE 66 43 [13:38:09]Write i2c OK [13:38:09]MH_I2C_Read... [13:38:09]Read from MH i2c: F0 [13:38:09]MH_I2C_Read... [13:38:09]Read from MH i2c: F0 09 00 [13:38:09]MH_I2C_Read... [13:38:09]Read from MH i2c: F0 09 00 EE 66 00 E5 30 74 66 BC EC 60 65 A8 [13:38:09]GetLastDocTimeStamp 1718890607 [13:38:09]current date 1718890725 [13:38:09]FM_GetShiftState [13:38:09]SAM_PROTO_GetShiftState [13:38:09]wFMCommunicate request_size=4 [13:38:09]MH_SAM_APDU [13:38:09]CAPDU: 80 13 01 00 [13:38:09]Write to MH i2c: E2 08 00 EF 66 80 13 01 00 00 00 00 00 D2 [13:38:09]Write i2c OK [13:38:09]MH_I2C_Read... [13:38:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:09]Read from MH i2c: E2 [13:38:09]MH_I2C_Read... [13:38:09]Read from MH i2c: E2 0E 00 [13:38:09]MH_I2C_Read... [13:38:09]Read from MH i2c: E2 0E 00 EF 66 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 4D [13:38:09]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:38:09]wFMCommunicate OK [13:38:09]SAM_PROTO_GetShiftState done [13:38:09]FM_GetShiftState done [13:38:09]opened in 1718847247 [13:38:09]opened+sec_in_day 1718933647 [13:38:09]quantity*price = 200063 [13:38:09]sum+1 = 200064 [13:38:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 122 20.06.2024 13:38 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111672 ФПД: 138256465235135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T133845&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111672&fm=138256465235135&tin=02508201610067®Number=0000000000092771&sum=200000 [13:38:10]StoreToDocumentArchive [13:38:10]shift 389 fd 111672 [13:38:10]save to /storage/0389/doc_00111672 [13:38:10]save last doc name /storage/0389/doc_00111672 to /storage/kkm_last_doc_name [13:38:10]save OK [13:38:10]Clear old archive folders... [13:38:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:38:10]tlvbuf is 00F17710 [13:38:10]SAM_PROTO_ClearQueue [13:38:10]wFMCommunicate request_size=4 [13:38:10]MH_SAM_APDU [13:38:10]CAPDU: 80 09 00 00 [13:38:10]Write to MH i2c: E2 08 00 FC 66 80 09 00 00 00 00 00 00 D4 [13:38:10]Write i2c OK [13:38:10]MH_I2C_Read... [13:38:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:38:10]Read from MH i2c: E2 [13:38:10]MH_I2C_Read... [13:38:10]Read from MH i2c: E2 03 00 [13:38:10]MH_I2C_Read... [13:38:10]Read from MH i2c: E2 03 00 FC 66 00 90 00 D6 [13:38:10]RAPDU: 90 00 [13:38:10]wFMCommunicate OK [13:38:10]SAM_PROTO_ClearQueue done [13:38:10]KKMCreateOFDPacket [13:38:10]OFDProtocolAddRootSTLVToBuf [13:38:10]FM_MakeSignedData [13:38:10]FM_MakeSignedData [13:38:10]SAM_PROTO_SignData [13:38:10]wFMCommunicate request_size=4 [13:38:10]MH_SAM_APDU [13:38:10]CAPDU: 80 0D 01 02 [13:38:10]Write to MH i2c: E2 08 00 FD 66 80 0D 01 02 00 00 00 00 DC [13:38:10]Write i2c OK [13:38:10]MH_I2C_Read... [13:38:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:38:10]Read from MH i2c: E2 [13:38:10]MH_I2C_Read... [13:38:10]Read from MH i2c: E2 03 00 [13:38:10]MH_I2C_Read... [13:38:10]Read from MH i2c: E2 03 00 FD 66 00 90 00 D7 [13:38:10]RAPDU: 90 00 [13:38:10]wFMCommunicate OK [13:38:10]wFMCommunicate request_size=255 [13:38:10]MH_SAM_APDU [13:38: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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 E5 30 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 38 B4 01 00 35 04 06 00 7D [13:38:10]Write to MH i2c: E2 02 01 FE 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 E5 30 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 38 B4 01 00 35 04 06 00 7D 00 00 DE [13:38:10]Write i2c OK [13:38:10]MH_I2C_Read... [13:38:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:11]Read from MH i2c: E2 [13:38:11]MH_I2C_Read... [13:38:11]Read from MH i2c: E2 03 00 [13:38:11]MH_I2C_Read... [13:38:11]Read from MH i2c: E2 03 00 FE 66 00 90 00 D8 [13:38:11]RAPDU: 90 00 [13:38:11]wFMCommunicate OK [13:38:11]wFMCommunicate request_size=10 [13:38:11]MH_SAM_APDU [13:38:11]CAPDU: 80 0D 02 02 05 BE 57 7F 8C BF [13:38:11]Write to MH i2c: E2 0D 00 FF 66 80 0D 02 02 05 00 BE 57 7F 8C BF 00 00 C8 [13:38:11]Write i2c OK [13:38:11]MH_I2C_Read... [13:38:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:11]Read from MH i2c: E2 [13:38:11]MH_I2C_Read... [13:38:11]Read from MH i2c: E2 03 00 [13:38:11]MH_I2C_Read... [13:38:11]Read from MH i2c: E2 03 00 FF 66 00 90 00 D9 [13:38:11]RAPDU: 90 00 [13:38:11]wFMCommunicate OK [13:38:11]wFMCommunicate request_size=4 [13:38:11]MH_SAM_APDU [13:38:11]CAPDU: 80 0D 03 02 [13:38:11]Write to MH i2c: E2 08 00 00 67 80 0D 03 02 00 00 00 00 E2 [13:38:11]Write i2c OK [13:38:11]MH_I2C_Read... [13:38:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:38:11]Read from MH i2c: E2 [13:38:11]MH_I2C_Read... [13:38:11]Read from MH i2c: E2 0B 00 [13:38:11]MH_I2C_Read... [13:38:11]Read from MH i2c: E2 0B 00 00 67 00 F0 F5 F4 D8 CC 61 9D 7E 90 00 DC [13:38:11]RAPDU: F0 F5 F4 D8 CC 61 9D 7E 90 00 [13:38:11]wFMCommunicate OK [13:38:11]SAM_PROTO_SignData done [13:38:11]FM_MakeSignedData done [13:38:11]CreateOFDProtocolMessage [13:38:11]wFMCommunicate request_size=4 [13:38:11]MH_SAM_APDU [13:38:11]CAPDU: 80 11 00 00 [13:38:11]Write to MH i2c: E2 08 00 01 67 80 11 00 00 00 00 00 00 E2 [13:38:11]Write i2c OK [13:38:11]MH_I2C_Read... [13:38:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:11]Read from MH i2c: E2 [13:38:11]MH_I2C_Read... [13:38:11]Read from MH i2c: E2 17 00 [13:38:11]MH_I2C_Read... [13:38:11]Read from MH i2c: E2 17 00 01 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 34 [13:38:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:38:11]wFMCommunicate OK [13:38:11]CreateOFDProtocolMessage done [13:38:11]OFDSenderStorePacket 111672 [13:38:11]StoreOFDPacket docnum=111672 [13:38:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 87 57 07 01 D8 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 E5 30 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 38 B4 01 00 35 04 06 00 7D BE 57 7F 8C BF F0 F5 F4 D8 CC 61 9D 7E [13:38:11]CheckFolder [13:38:11]dirname=/storage/ofd_packets [13:38:11]CheckFolder done [13:38:11]ProducePacketName [13:38:11]name=ofd_packets/00111672 [13:38:11]NVStorageSaveData ofd_packets/00111672 [13:38:11]File name is /storage/ofd_packets/00111672 [13:38:11]Write 301 bytes [13:38:11]NVStorageSaveData done [13:38:11]OFDSenderStorePacket done [13:38:11]KKMCreateOFDPacket done [13:38:11]NVStorageSaveData kkm_last_timestamp [13:38:11]File name is /storage/kkm_last_timestamp [13:38:11]Write 4 bytes [13:38:11]NVStorageSaveData done [13:38:11]ExternCall_PrintAddStr [13:38:11]wPrintStart [13:38:11]Write to MH i2c: 01 00 00 02 67 69 [13:38:11]Write i2c OK [13:38:11]MH_I2C_Read... [13:38:11]Read from MH i2c: 01 [13:38:11]MH_I2C_Read... [13:38:11]Read from MH i2c: 01 07 00 [13:38:11]MH_I2C_Read... [13:38:11]Read from MH i2c: 01 07 00 02 67 00 00 00 00 00 FF 0F 7E [13:38:11]RasterBufferAndPrint [13:38:11]line Счет N : (1)320274 [13:38:11]line ИНН: 02508201610067 [13:38:11]line Контрольно-Кассовый Чек [13:38:11]line ПРОДАЖА [13:38:11]line ТРК (МРК, ГНК) : 11 [13:38:11]line Товар: 2710124130 [13:38:11]line Аи-92-К-5 [13:38:11]line 30.130 * 66.40 [13:38:11]line = 2000.63 [13:38:11]line НДС 12% НСП 1% [13:38:11]line > о реализуемом товаре [13:38:11]line ОКРУГЛЕНИЕ: -0.63 [13:38:11]line ИТОГО: 2000.00 [13:38:11]line Внесено: 2000.00 [13:38:11]line СДАЧА: 0.00 [13:38:11]line НСП 1% : 17.70 [13:38:11]line НДС 12% : 212.46 [13:38:11]line Наличными: 2000.00 [13:38:11]line Безнал.: 0.00 [13:38:11]line Место: АЗС № 65 "Партнер Нефть" [13:38:11]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:38:11]line СНО: Общий режим [13:38:11]line Чек 122 20.06.2024 13:38 [13:38:11]line Смена: 389 ФФД: 1.0 [13:38:11]line ЗНМ: 0300000198 [13:38:11]line РНМ: 0000000000092771 [13:38:11]line Версия ККМ: 001 [13:38:11]line ФМ: 0000000000875083 [13:38:11]line ФД: 111672 [13:38:11]line ФПД: 138256465235135 [13:38:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T133845&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111672&fm=138256465235135&tin=02508201610067®Number=0000000000092771&sum=200000 [13:38:11]OFD Sender: Processing packet 111672 [packets to send 38, broken 37] [13:38:11]ProducePacketName [13:38:11]name=ofd_packets/00111672 [13:38:11]OFD Sender: To server: pG, [13:38:11]CommunicateWithHost lk.salyk.kg:30040 [13:38:11]ConnectInit lk.salyk.kg [13:38:11]written 0, free lines is 4095 [13:38:11]Connected sock=10 [13:38:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 87 57 07 01 D8 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 E5 30 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 38 B4 01 00 35 04 06 00 7D BE 57 7F 8C BF F0 F5 F4 D8 CC 61 9D 7E [13:38:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 EE 4C 47 00 CB 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 38 B4 01 00 F4 03 04 00 2E C8 73 66 B6 04 01 00 00 DB B6 D6 E9 93 A2 73 CF [13:38:12]CommunicateWithHost err = 0 [13:38:12]CheckOFDResponse [13:38:12]1017 (14) - 77093643461234 [13:38:12]1041 (16) - 0000000000875083 [13:38:12]1040 (4) - 111672 [13:38:12]1012 (4) - 20.06.2024 06:11 [13:38:12]1206 (1) - 0 [13:38:12]OFD Sender: Remove packet 111672 [13:38:12]ProducePacketName [13:38:12]name=ofd_packets/00111672 [13:38:12]NVStorageDeleteData [13:38:12]Write to MH i2c: 01 00 00 2D 67 94 [13:38:12]Write i2c OK [13:38:12]MH_I2C_Read... [13:38:12]Read from MH i2c: 01 [13:38:12]MH_I2C_Read... [13:38:12]Read from MH i2c: 01 07 00 [13:38:12]MH_I2C_Read... [13:38:12]Read from MH i2c: 01 07 00 2D 67 00 00 00 00 00 E5 0C 8C [13:38:12]RasterBufferAndPrint [13:38:12]line [13:38:12]line [13:38:12]line [13:38:12]line [13:38:12]line [13:38:12]written 0, free lines is 3307 [13:38:12]MH_Cut [13:38:12]Write to MH i2c: D1 01 00 34 67 01 6D [13:38:12]Write i2c OK [13:38:12]MH_I2C_Read... [13:38:12]Read from MH i2c: D1 [13:38:12]MH_I2C_Read... [13:38:12]Read from MH i2c: D1 01 00 [13:38:12]MH_I2C_Read... [13:38:12]Read from MH i2c: D1 01 00 34 67 00 6C [13:38:12]Write to MH i2c: 01 00 00 35 67 9C [13:38:12]Write i2c OK [13:38:12]MH_I2C_Read... [13:38:12]OFD Sender: No OFD packet to send [13:38:12]*** Cut start [13:38:12]*** Partial cut [13:38:12]*** CUTSNS_PIN = 1 [13:38:12]*** CUTSNS_PIN = 0 [13:38:13]*** Brake cut motor [13:38:13]Read from MH i2c: 01 [13:38:13]MH_I2C_Read... [13:38:13]*** Stop cut motor [13:38:13]*** Cut end [13:38:13]Read from MH i2c: 01 07 00 [13:38:13]MH_I2C_Read... [13:38:13]Read from MH i2c: 01 07 00 35 67 00 00 00 00 00 FF 0F B1 [13:38:13]process_action close_receipt done [13:38:13]requested_data is exist [13:38:13]produce_requested_data [13:38:13]requested_item fm.sn is exist - process it [13:38:13]wFMCommunicate request_size=4 [13:38:13]MH_SAM_APDU [13:38:13]CAPDU: 80 11 00 00 [13:38:13]Write to MH i2c: E2 08 00 36 67 80 11 00 00 00 00 00 00 17 [13:38:13]Write i2c OK [13:38:13]MH_I2C_Read... [13:38:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:13]Read from MH i2c: E2 [13:38:13]MH_I2C_Read... [13:38:13]Read from MH i2c: E2 17 00 [13:38:13]MH_I2C_Read... [13:38:13]Read from MH i2c: E2 17 00 36 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 69 [13:38:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:38:13]wFMCommunicate OK [13:38:13]requested_item fd.num is exist - process it [13:38:13]SAM_PROTO_GetFieldsCounters [13:38:13]wFMCommunicate request_size=4 [13:38:13]MH_SAM_APDU [13:38:13]CAPDU: 80 13 00 00 [13:38:13]Write to MH i2c: E2 08 00 37 67 80 13 00 00 00 00 00 00 1A [13:38:13]Write i2c OK [13:38:13]MH_I2C_Read... [13:38:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:13]Read from MH i2c: E2 [13:38:13]MH_I2C_Read... [13:38:13]Read from MH i2c: E2 62 00 [13:38:13]MH_I2C_Read... [13:38:13]Read from MH i2c: E2 62 00 37 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 38 B4 01 00 0E 04 04 00 85 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 1C [13:38:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 38 B4 01 00 0E 04 04 00 85 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 [13:38:13]wFMCommunicate OK [13:38:13]SAM_PROTO_GetFieldsCounters done [13:38:13]requested_item shift.num is exist - process it [13:38:13]requested_item shift.opened is exist - process it [13:38:13]req_shift_opened [13:38:13]FM_GetShiftState [13:38:13]SAM_PROTO_GetShiftState [13:38:13]wFMCommunicate request_size=4 [13:38:13]MH_SAM_APDU [13:38:13]CAPDU: 80 13 01 00 [13:38:13]Write to MH i2c: E2 08 00 38 67 80 13 01 00 00 00 00 00 1C [13:38:13]Write i2c OK [13:38:13]MH_I2C_Read... [13:38:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:13]Read from MH i2c: E2 [13:38:13]MH_I2C_Read... [13:38:13]Read from MH i2c: E2 0E 00 [13:38:13]MH_I2C_Read... [13:38:13]Read from MH i2c: E2 0E 00 38 67 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 97 [13:38:13]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:38:13]wFMCommunicate OK [13:38:13]SAM_PROTO_GetShiftState done [13:38:13]FM_GetShiftState done [13:38:13]req_shift_opened done [13:38:13]requested_item shift.open_date is exist - process it [13:38:13]req_shift_open_date [13:38:13]req_shift_open_date done [13:38:13]produce_requested_data done [13:38:13]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111672,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [13:38:13]process_action_free close_receipt [13:38:13]json_value_free [13:38:13]json_value_free done [13:38:13]process_json_proto returns [13:38:13]Send response to host [13:38:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111672,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [13:38:13]free response buf [13:38:13]execute_script done [13:38:13]execute_script returns [13:38:13]free content buf [13:38:13]Sock 9.Close socket [13:38:13]Sock 9.Thread stoped [13:38:17]OFD Sender: No OFD packet to send [13:38:22]OFD Sender: No OFD packet to send [13:38:27]OFD Sender: No OFD packet to send [13:38:32]OFD Sender: No OFD packet to send [13:38:37]OFD Sender: No OFD packet to send [13:38:42]OFD Sender: No OFD packet to send [13:38:47]OFD Sender: No OFD packet to send [13:38:52]OFD Sender: No OFD packet to send [13:38:57]OFD Sender: No OFD packet to send [13:39:02]OFD Sender: No OFD packet to send [13:39:07]OFD Sender: No OFD packet to send [13:39:12]OFD Sender: No OFD packet to send [13:39:17]OFD Sender: No OFD packet to send [13:39:22]OFD Sender: No OFD packet to send [13:39:27]OFD Sender: No OFD packet to send [13:39:32]OFD Sender: No OFD packet to send [13:39:37]OFD Sender: No OFD packet to send [13:39:42]OFD Sender: No OFD packet to send [13:39:47]OFD Sender: No OFD packet to send [13:39:52]OFD Sender: No OFD packet to send [13:39:57]OFD Sender: No OFD packet to send [13:40:02]OFD Sender: No OFD packet to send [13:40:07]OFD Sender: No OFD packet to send [13:40:12]OFD Sender: No OFD packet to send [13:40:17]OFD Sender: No OFD packet to send [13:40:20]accept exits with 7 [13:40:20]New connection [13:40:20]New thread 3067321700 created [13:40:20]Thread 3067465060 joined [13:40:20]Waiting for new connection... [13:40:20] Sock 7.Parse request [13:40:20]Sock 7.Check first char [13:40:20]Sock 7.First char is OK [13:40:20]request: POST /json_proto HTTP/1.0 [13:40:20]Method: POST [13:40:20]URL: /json_proto [13:40:20]Method is POST - this is cgi request [13:40:20]url: /json_proto [13:40:20]query_string will be loaded in cgi processing [13:40:20]execute_cgi json_proto POST (null) [13:40:20]execute_cgi path=json_proto method=POST [13:40:20]POST find Content-Length [13:40:20]Host: 172.17.59.68:8080 [13:40:20]Content-Length: 677 [13:40:20]Content-Type: application/json [13:40:20] [13:40:20]POST finish read [13:40:20]Found Content-Length = 677 [13:40:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:20]execute_script... [13:40: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)320275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:20]POST & json_proto [13:40:20]process_json_proto [13:40:20]json parsed OK: [13:40:20]protocol is kg_v1.0 [13:40:20]action value=close_receipt [13:40:20]process_action close_receipt [13:40:20]cmd_close_receipt [13:40:20]MH_GetDate [13:40:20]Write to MH i2c: F0 00 00 39 67 8F [13:40:20]Write i2c OK [13:40:20]MH_I2C_Read... [13:40:20]Read from MH i2c: F0 [13:40:20]MH_I2C_Read... [13:40:20]Read from MH i2c: F0 09 00 [13:40:20]MH_I2C_Read... [13:40:20]Read from MH i2c: F0 09 00 39 67 00 68 31 74 66 BC EC 60 65 78 [13:40:20]GetLastDocTimeStamp 1718890725 [13:40:20]current date 1718890856 [13:40:20]FM_GetShiftState [13:40:20]SAM_PROTO_GetShiftState [13:40:20]wFMCommunicate request_size=4 [13:40:20]MH_SAM_APDU [13:40:20]CAPDU: 80 13 01 00 [13:40:20]Write to MH i2c: E2 08 00 3A 67 80 13 01 00 00 00 00 00 1E [13:40:20]Write i2c OK [13:40:20]MH_I2C_Read... [13:40:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:21]Read from MH i2c: E2 [13:40:21]MH_I2C_Read... [13:40:21]Read from MH i2c: E2 0E 00 [13:40:21]MH_I2C_Read... [13:40:21]Read from MH i2c: E2 0E 00 3A 67 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 99 [13:40:21]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:40:21]wFMCommunicate OK [13:40:21]SAM_PROTO_GetShiftState done [13:40:21]FM_GetShiftState done [13:40:21]opened in 1718847247 [13:40:21]opened+sec_in_day 1718933647 [13:40:21]quantity*price = 50065 [13:40:21]sum+1 = 50067 [13:40:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 123 20.06.2024 13:40 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111673 ФПД: 114220711826560 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T134056&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111673&fm=114220711826560&tin=02508201610067®Number=0000000000092771&sum=50000 [13:40:22]StoreToDocumentArchive [13:40:22]shift 389 fd 111673 [13:40:22]save to /storage/0389/doc_00111673 [13:40:22]save last doc name /storage/0389/doc_00111673 to /storage/kkm_last_doc_name [13:40:22]save OK [13:40:22]Clear old archive folders... [13:40:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:40:22]tlvbuf is 01031910 [13:40:22]SAM_PROTO_ClearQueue [13:40:22]wFMCommunicate request_size=4 [13:40:22]MH_SAM_APDU [13:40:22]CAPDU: 80 09 00 00 [13:40:22]Write to MH i2c: E2 08 00 47 67 80 09 00 00 00 00 00 00 20 [13:40:22]Write i2c OK [13:40:22]MH_I2C_Read... [13:40:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:40:22]Read from MH i2c: E2 [13:40:22]MH_I2C_Read... [13:40:22]Read from MH i2c: E2 03 00 [13:40:22]MH_I2C_Read... [13:40:22]Read from MH i2c: E2 03 00 47 67 00 90 00 22 [13:40:22]RAPDU: 90 00 [13:40:22]wFMCommunicate OK [13:40:22]SAM_PROTO_ClearQueue done [13:40:22]KKMCreateOFDPacket [13:40:22]OFDProtocolAddRootSTLVToBuf [13:40:22]FM_MakeSignedData [13:40:22]FM_MakeSignedData [13:40:22]SAM_PROTO_SignData [13:40:22]wFMCommunicate request_size=4 [13:40:22]MH_SAM_APDU [13:40:22]CAPDU: 80 0D 01 02 [13:40:22]Write to MH i2c: E2 08 00 48 67 80 0D 01 02 00 00 00 00 28 [13:40:22]Write i2c OK [13:40:22]MH_I2C_Read... [13:40:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:40:22]Read from MH i2c: E2 [13:40:22]MH_I2C_Read... [13:40:22]Read from MH i2c: E2 03 00 [13:40:22]MH_I2C_Read... [13:40:22]Read from MH i2c: E2 03 00 48 67 00 90 00 23 [13:40:22]RAPDU: 90 00 [13:40:22]wFMCommunicate OK [13:40:22]wFMCommunicate request_size=255 [13:40:22]MH_SAM_APDU [13:40: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 68 31 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 39 B4 01 00 35 04 06 00 67 [13:40:22]Write to MH i2c: E2 02 01 49 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 68 31 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 39 B4 01 00 35 04 06 00 67 00 00 A5 [13:40:22]Write i2c OK [13:40:22]MH_I2C_Read... [13:40:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:22]Read from MH i2c: E2 [13:40:22]MH_I2C_Read... [13:40:22]Read from MH i2c: E2 03 00 [13:40:22]MH_I2C_Read... [13:40:22]Read from MH i2c: E2 03 00 49 67 00 90 00 24 [13:40:22]RAPDU: 90 00 [13:40:22]wFMCommunicate OK [13:40:22]wFMCommunicate request_size=10 [13:40:22]MH_SAM_APDU [13:40:22]CAPDU: 80 0D 02 02 05 E2 14 F4 54 80 [13:40:22]Write to MH i2c: E2 0D 00 4A 67 80 0D 02 02 05 00 E2 14 F4 54 80 00 00 F3 [13:40:22]Write i2c OK [13:40:22]MH_I2C_Read... [13:40:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:22]Read from MH i2c: E2 [13:40:22]MH_I2C_Read... [13:40:22]Read from MH i2c: E2 03 00 [13:40:22]MH_I2C_Read... [13:40:22]Read from MH i2c: E2 03 00 4A 67 00 90 00 25 [13:40:22]RAPDU: 90 00 [13:40:22]wFMCommunicate OK [13:40:22]wFMCommunicate request_size=4 [13:40:22]MH_SAM_APDU [13:40:22]CAPDU: 80 0D 03 02 [13:40:22]Write to MH i2c: E2 08 00 4B 67 80 0D 03 02 00 00 00 00 2D [13:40:22]Write i2c OK [13:40:22]MH_I2C_Read... [13:40:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:40:22]Read from MH i2c: E2 [13:40:22]MH_I2C_Read... [13:40:22]Read from MH i2c: E2 0B 00 [13:40:22]MH_I2C_Read... [13:40:22]Read from MH i2c: E2 0B 00 4B 67 00 98 42 6E 82 52 09 E9 F3 90 00 2F [13:40:22]RAPDU: 98 42 6E 82 52 09 E9 F3 90 00 [13:40:22]wFMCommunicate OK [13:40:22]SAM_PROTO_SignData done [13:40:22]FM_MakeSignedData done [13:40:22]CreateOFDProtocolMessage [13:40:22]wFMCommunicate request_size=4 [13:40:22]MH_SAM_APDU [13:40:22]CAPDU: 80 11 00 00 [13:40:22]Write to MH i2c: E2 08 00 4C 67 80 11 00 00 00 00 00 00 2D [13:40:22]Write i2c OK [13:40:22]MH_I2C_Read... [13:40:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:22]Read from MH i2c: E2 [13:40:22]MH_I2C_Read... [13:40:22]Read from MH i2c: E2 17 00 [13:40:22]MH_I2C_Read... [13:40:22]Read from MH i2c: E2 17 00 4C 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7F [13:40:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:40:22]wFMCommunicate OK [13:40:22]CreateOFDProtocolMessage done [13:40:22]OFDSenderStorePacket 111673 [13:40:22]StoreOFDPacket docnum=111673 [13:40:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 83 AC 07 01 49 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 68 31 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 39 B4 01 00 35 04 06 00 67 E2 14 F4 54 80 98 42 6E 82 52 09 E9 F3 [13:40:22]CheckFolder [13:40:22]dirname=/storage/ofd_packets [13:40:22]CheckFolder done [13:40:22]ProducePacketName [13:40:22]name=ofd_packets/00111673 [13:40:22]NVStorageSaveData ofd_packets/00111673 [13:40:22]File name is /storage/ofd_packets/00111673 [13:40:22]Write 301 bytes [13:40:22]NVStorageSaveData done [13:40:22]OFDSenderStorePacket done [13:40:22]KKMCreateOFDPacket done [13:40:22]NVStorageSaveData kkm_last_timestamp [13:40:22]File name is /storage/kkm_last_timestamp [13:40:22]Write 4 bytes [13:40:22]NVStorageSaveData done [13:40:22]ExternCall_PrintAddStr [13:40:22]wPrintStart [13:40:22]Write to MH i2c: 01 00 00 4D 67 B4 [13:40:22]Write i2c OK [13:40:22]MH_I2C_Read... [13:40:22]Read from MH i2c: 01 [13:40:22]MH_I2C_Read... [13:40:22]Read from MH i2c: 01 07 00 [13:40:22]MH_I2C_Read... [13:40:22]Read from MH i2c: 01 07 00 4D 67 00 00 00 00 00 FF 0F C9 [13:40:22]RasterBufferAndPrint [13:40:22]line Счет N : (1)320275 [13:40:22]line ИНН: 02508201610067 [13:40:22]line Контрольно-Кассовый Чек [13:40:22]line ПРОДАЖА [13:40:22]line ТРК (МРК, ГНК) : 11 [13:40:22]line Товар: 2710124130 [13:40:22]line Аи-92-К-5 [13:40:22]line 7.540 * 66.40 [13:40:22]line = 500.66 [13:40:22]line НДС 12% НСП 1% [13:40:22]line > о реализуемом товаре [13:40:22]line ОКРУГЛЕНИЕ: -0.66 [13:40:22]line ИТОГО: 500.00 [13:40:22]line Внесено: 500.00 [13:40:22]line СДАЧА: 0.00 [13:40:22]line НСП 1% : 4.43 [13:40:22]line НДС 12% : 53.17 [13:40:22]line Наличными: 500.00 [13:40:22]line Безнал.: 0.00 [13:40:22]line Место: АЗС № 65 "Партнер Нефть" [13:40:22]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:40:22]line СНО: Общий режим [13:40:22]line Чек 123 20.06.2024 13:40 [13:40:22]line Смена: 389 ФФД: 1.0 [13:40:22]line ЗНМ: 0300000198 [13:40:22]line РНМ: 0000000000092771 [13:40:22]line Версия ККМ: 001 [13:40:22]line ФМ: 0000000000875083 [13:40:22]line ФД: 111673 [13:40:22]line ФПД: 114220711826560 [13:40:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T134056&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111673&fm=114220711826560&tin=02508201610067®Number=0000000000092771&sum=50000 [13:40:23]OFD Sender: Processing packet 111673 [packets to send 38, broken 37] [13:40:23]ProducePacketName [13:40:23]name=ofd_packets/00111673 [13:40:23]OFD Sender: To server: pG, [13:40:23]CommunicateWithHost lk.salyk.kg:30040 [13:40:23]ConnectInit lk.salyk.kg [13:40:23]written 0, free lines is 4095 [13:40:23]Connected sock=10 [13:40:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 83 AC 07 01 49 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 68 31 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 39 B4 01 00 35 04 06 00 67 E2 14 F4 54 80 98 42 6E 82 52 09 E9 F3 [13:40:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 AC B5 47 00 E0 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 39 B4 01 00 F4 03 04 00 B1 C8 73 66 B6 04 01 00 00 E9 35 72 FB C3 21 E0 30 [13:40:23]CommunicateWithHost err = 0 [13:40:23]CheckOFDResponse [13:40:23]1017 (14) - 77093643461234 [13:40:23]1041 (16) - 0000000000875083 [13:40:23]1040 (4) - 111673 [13:40:23]1012 (4) - 20.06.2024 06:14 [13:40:23]1206 (1) - 0 [13:40:23]OFD Sender: Remove packet 111673 [13:40:23]ProducePacketName [13:40:23]name=ofd_packets/00111673 [13:40:23]NVStorageDeleteData [13:40:23]Write to MH i2c: 01 00 00 78 67 DF [13:40:23]Write i2c OK [13:40:23]MH_I2C_Read... [13:40:23]Read from MH i2c: 01 [13:40:23]MH_I2C_Read... [13:40:23]Read from MH i2c: 01 07 00 [13:40:23]MH_I2C_Read... [13:40:23]Read from MH i2c: 01 07 00 78 67 00 00 00 00 00 CD 0C BF [13:40:23]RasterBufferAndPrint [13:40:23]line [13:40:23]line [13:40:23]line [13:40:23]line [13:40:23]line [13:40:23]written 0, free lines is 3283 [13:40:23]MH_Cut [13:40:23]Write to MH i2c: D1 01 00 7F 67 01 B8 [13:40:23]Write i2c OK [13:40:23]MH_I2C_Read... [13:40:23]Read from MH i2c: D1 [13:40:23]MH_I2C_Read... [13:40:23]Read from MH i2c: D1 01 00 [13:40:23]MH_I2C_Read... [13:40:23]Read from MH i2c: D1 01 00 7F 67 00 B7 [13:40:23]Write to MH i2c: 01 00 00 80 67 E7 [13:40:23]Write i2c OK [13:40:23]MH_I2C_Read... [13:40:23]OFD Sender: No OFD packet to send [13:40:24]*** Cut start [13:40:24]*** Partial cut [13:40:24]*** CUTSNS_PIN = 1 [13:40:24]*** CUTSNS_PIN = 0 [13:40:24]*** Brake cut motor [13:40:24]Read from MH i2c: 01 [13:40:24]MH_I2C_Read... [13:40:24]*** Stop cut motor [13:40:24]*** Cut end [13:40:24]Read from MH i2c: 01 07 00 [13:40:24]MH_I2C_Read... [13:40:24]Read from MH i2c: 01 07 00 80 67 00 00 00 00 00 FF 0F FC [13:40:24]process_action close_receipt done [13:40:24]requested_data is exist [13:40:24]produce_requested_data [13:40:24]requested_item fm.sn is exist - process it [13:40:24]wFMCommunicate request_size=4 [13:40:24]MH_SAM_APDU [13:40:24]CAPDU: 80 11 00 00 [13:40:24]Write to MH i2c: E2 08 00 81 67 80 11 00 00 00 00 00 00 62 [13:40:24]Write i2c OK [13:40:24]MH_I2C_Read... [13:40:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:24]Read from MH i2c: E2 [13:40:24]MH_I2C_Read... [13:40:24]Read from MH i2c: E2 17 00 [13:40:24]MH_I2C_Read... [13:40:24]Read from MH i2c: E2 17 00 81 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B4 [13:40:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:40:24]wFMCommunicate OK [13:40:24]requested_item fd.num is exist - process it [13:40:24]SAM_PROTO_GetFieldsCounters [13:40:24]wFMCommunicate request_size=4 [13:40:24]MH_SAM_APDU [13:40:24]CAPDU: 80 13 00 00 [13:40:24]Write to MH i2c: E2 08 00 82 67 80 13 00 00 00 00 00 00 65 [13:40:24]Write i2c OK [13:40:24]MH_I2C_Read... [13:40:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:40:25]Read from MH i2c: E2 [13:40:25]MH_I2C_Read... [13:40:25]Read from MH i2c: E2 62 00 [13:40:25]MH_I2C_Read... [13:40:25]Read from MH i2c: E2 62 00 82 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 39 B4 01 00 0E 04 04 00 85 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 6B [13:40:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 39 B4 01 00 0E 04 04 00 85 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 [13:40:25]wFMCommunicate OK [13:40:25]SAM_PROTO_GetFieldsCounters done [13:40:25]requested_item shift.num is exist - process it [13:40:25]requested_item shift.opened is exist - process it [13:40:25]req_shift_opened [13:40:25]FM_GetShiftState [13:40:25]SAM_PROTO_GetShiftState [13:40:25]wFMCommunicate request_size=4 [13:40:25]MH_SAM_APDU [13:40:25]CAPDU: 80 13 01 00 [13:40:25]Write to MH i2c: E2 08 00 83 67 80 13 01 00 00 00 00 00 67 [13:40:25]Write i2c OK [13:40:25]MH_I2C_Read... [13:40:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:25]Read from MH i2c: E2 [13:40:25]MH_I2C_Read... [13:40:25]Read from MH i2c: E2 0E 00 [13:40:25]MH_I2C_Read... [13:40:25]Read from MH i2c: E2 0E 00 83 67 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 E2 [13:40:25]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:40:25]wFMCommunicate OK [13:40:25]SAM_PROTO_GetShiftState done [13:40:25]FM_GetShiftState done [13:40:25]req_shift_opened done [13:40:25]requested_item shift.open_date is exist - process it [13:40:25]req_shift_open_date [13:40:25]req_shift_open_date done [13:40:25]produce_requested_data done [13:40:25]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111673,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [13:40:25]process_action_free close_receipt [13:40:25]json_value_free [13:40:25]json_value_free done [13:40:25]process_json_proto returns [13:40:25]Send response to host [13:40:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111673,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [13:40:25]free response buf [13:40:25]execute_script done [13:40:25]execute_script returns [13:40:25]free content buf [13:40:25]Sock 7.Close socket [13:40:25]Sock 7.Thread stoped [13:40:28]OFD Sender: No OFD packet to send [13:40:33]OFD Sender: No OFD packet to send [13:40:38]OFD Sender: No OFD packet to send [13:40:43]OFD Sender: No OFD packet to send [13:40:48]OFD Sender: No OFD packet to send [13:40:53]OFD Sender: No OFD packet to send [13:40:58]OFD Sender: No OFD packet to send [13:41:03]OFD Sender: No OFD packet to send [13:41:08]OFD Sender: No OFD packet to send [13:41:13]OFD Sender: No OFD packet to send [13:41:18]OFD Sender: No OFD packet to send [13:41:23]OFD Sender: No OFD packet to send [13:41:28]OFD Sender: No OFD packet to send [13:41:33]OFD Sender: No OFD packet to send [13:41:38]OFD Sender: No OFD packet to send [13:41:43]OFD Sender: No OFD packet to send [13:41:48]OFD Sender: No OFD packet to send [13:41:53]OFD Sender: No OFD packet to send [13:41:58]OFD Sender: No OFD packet to send [13:42:03]OFD Sender: No OFD packet to send [13:42:08]OFD Sender: No OFD packet to send [13:42:13]OFD Sender: No OFD packet to send [13:42:18]OFD Sender: No OFD packet to send [13:42:23]OFD Sender: No OFD packet to send [13:42:28]OFD Sender: No OFD packet to send [13:42:33]OFD Sender: No OFD packet to send [13:42:38]OFD Sender: No OFD packet to send [13:42:43]OFD Sender: No OFD packet to send [13:42:48]OFD Sender: No OFD packet to send [13:42:53]OFD Sender: No OFD packet to send [13:42:58]OFD Sender: No OFD packet to send [13:43:03]OFD Sender: No OFD packet to send [13:43:08]OFD Sender: No OFD packet to send [13:43:13]OFD Sender: No OFD packet to send [13:43:18]OFD Sender: No OFD packet to send [13:43:23]OFD Sender: No OFD packet to send [13:43:28]OFD Sender: No OFD packet to send [13:43:33]OFD Sender: No OFD packet to send [13:43: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:09]OFD Sender: No OFD packet to send [13:44:14]OFD Sender: No OFD packet to send [13:44:19]OFD Sender: No OFD packet to send [13:44:24]OFD Sender: No OFD packet to send [13:44:29]OFD Sender: No OFD packet to send [13:44:34]OFD Sender: No OFD packet to send [13:44:39]OFD Sender: No OFD packet to send [13:44:44]OFD Sender: No OFD packet to send [13:44:49]OFD Sender: No OFD packet to send [13:44:54]OFD Sender: No OFD packet to send [13:44:59]OFD Sender: No OFD packet to send [13:45:04]OFD Sender: No OFD packet to send [13:45:09]OFD Sender: No OFD packet to send [13:45:14]OFD Sender: No OFD packet to send [13:45:19]OFD Sender: No OFD packet to send [13:45:24]OFD Sender: No OFD packet to send [13:45:29]OFD Sender: No OFD packet to send [13:45:34]OFD Sender: No OFD packet to send [13:45:39]OFD Sender: No OFD packet to send [13:45:43]accept exits with 9 [13:45:43]New connection [13:45:43]New thread 3067465060 created [13:45:43]Thread 3067321700 joined [13:45:43]Waiting for new connection... [13:45:43] Sock 9.Parse request [13:45:43]Sock 9.Check first char [13:45:43]Sock 9.First char is OK [13:45:43]request: POST /json_proto HTTP/1.0 [13:45:43]Method: POST [13:45:43]URL: /json_proto [13:45:43]Method is POST - this is cgi request [13:45:43]url: /json_proto [13:45:43]query_string will be loaded in cgi processing [13:45:43]execute_cgi json_proto POST (null) [13:45:43]execute_cgi path=json_proto method=POST [13:45:43]POST find Content-Length [13:45:43]Host: 172.17.59.68:8080 [13:45:43]Content-Length: 677 [13:45:43]Content-Type: application/json [13:45:43] [13:45:43]POST finish read [13:45:43]Found Content-Length = 677 [13:45:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:43]execute_script... [13:45: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)320276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:43]POST & json_proto [13:45:43]process_json_proto [13:45:43]json parsed OK: [13:45:43]protocol is kg_v1.0 [13:45:43]action value=close_receipt [13:45:43]process_action close_receipt [13:45:43]cmd_close_receipt [13:45:43]MH_GetDate [13:45:43]Write to MH i2c: F0 00 00 84 67 DA [13:45:43]Write i2c OK [13:45:43]MH_I2C_Read... [13:45:43]Read from MH i2c: F0 [13:45:43]MH_I2C_Read... [13:45:43]Read from MH i2c: F0 09 00 [13:45:43]MH_I2C_Read... [13:45:43]Read from MH i2c: F0 09 00 84 67 00 AB 32 74 66 BC EC 60 65 07 [13:45:43]GetLastDocTimeStamp 1718890856 [13:45:43]current date 1718891179 [13:45:43]FM_GetShiftState [13:45:43]SAM_PROTO_GetShiftState [13:45:43]wFMCommunicate request_size=4 [13:45:43]MH_SAM_APDU [13:45:43]CAPDU: 80 13 01 00 [13:45:43]Write to MH i2c: E2 08 00 85 67 80 13 01 00 00 00 00 00 69 [13:45:43]Write i2c OK [13:45:43]MH_I2C_Read... [13:45:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:43]Read from MH i2c: E2 [13:45:43]MH_I2C_Read... [13:45:43]Read from MH i2c: E2 0E 00 [13:45:43]MH_I2C_Read... [13:45:43]Read from MH i2c: E2 0E 00 85 67 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 E4 [13:45:43]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:45:43]wFMCommunicate OK [13:45:43]SAM_PROTO_GetShiftState done [13:45:43]FM_GetShiftState done [13:45:43]opened in 1718847247 [13:45:43]opened+sec_in_day 1718933647 [13:45:43]quantity*price = 60025 [13:45:43]sum+1 = 60027 [13:45:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 124 20.06.2024 13:46 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111674 ФПД: 125653614502490 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T134619&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111674&fm=125653614502490&tin=02508201610067®Number=0000000000092771&sum=60000 [13:45:44]StoreToDocumentArchive [13:45:44]shift 389 fd 111674 [13:45:44]save to /storage/0389/doc_00111674 [13:45:44]save last doc name /storage/0389/doc_00111674 to /storage/kkm_last_doc_name [13:45:44]save OK [13:45:44]Clear old archive folders... [13:45:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:45:44]tlvbuf is B6FD2200 [13:45:44]SAM_PROTO_ClearQueue [13:45:44]wFMCommunicate request_size=4 [13:45:44]MH_SAM_APDU [13:45:44]CAPDU: 80 09 00 00 [13:45:44]Write to MH i2c: E2 08 00 92 67 80 09 00 00 00 00 00 00 6B [13:45:44]Write i2c OK [13:45:44]MH_I2C_Read... [13:45:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:44]Read from MH i2c: E2 [13:45:44]MH_I2C_Read... [13:45:44]Read from MH i2c: E2 03 00 [13:45:44]MH_I2C_Read... [13:45:44]Read from MH i2c: E2 03 00 92 67 00 90 00 6D [13:45:44]RAPDU: 90 00 [13:45:44]wFMCommunicate OK [13:45:44]SAM_PROTO_ClearQueue done [13:45:44]KKMCreateOFDPacket [13:45:44]OFDProtocolAddRootSTLVToBuf [13:45:44]FM_MakeSignedData [13:45:44]FM_MakeSignedData [13:45:44]SAM_PROTO_SignData [13:45:44]wFMCommunicate request_size=4 [13:45:44]MH_SAM_APDU [13:45:44]CAPDU: 80 0D 01 02 [13:45:44]Write to MH i2c: E2 08 00 93 67 80 0D 01 02 00 00 00 00 73 [13:45:44]Write i2c OK [13:45:44]MH_I2C_Read... [13:45:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:44]Read from MH i2c: E2 [13:45:44]MH_I2C_Read... [13:45:44]Read from MH i2c: E2 03 00 [13:45:44]MH_I2C_Read... [13:45:44]Read from MH i2c: E2 03 00 93 67 00 90 00 6E [13:45:44]RAPDU: 90 00 [13:45:44]wFMCommunicate OK [13:45:44]wFMCommunicate request_size=255 [13:45:44]MH_SAM_APDU [13:45: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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 AB 32 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3A B4 01 00 35 04 06 00 72 [13:45:44]Write to MH i2c: E2 02 01 94 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 AB 32 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3A B4 01 00 35 04 06 00 72 00 00 1E [13:45:44]Write i2c OK [13:45:44]MH_I2C_Read... [13:45:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:45]Read from MH i2c: E2 [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: E2 03 00 [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: E2 03 00 94 67 00 90 00 6F [13:45:45]RAPDU: 90 00 [13:45:45]wFMCommunicate OK [13:45:45]wFMCommunicate request_size=10 [13:45:45]MH_SAM_APDU [13:45:45]CAPDU: 80 0D 02 02 05 48 03 0E A2 5A [13:45:45]Write to MH i2c: E2 0D 00 95 67 80 0D 02 02 05 00 48 03 0E A2 5A 00 00 D5 [13:45:45]Write i2c OK [13:45:45]MH_I2C_Read... [13:45:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:45]Read from MH i2c: E2 [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: E2 03 00 [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: E2 03 00 95 67 00 90 00 70 [13:45:45]RAPDU: 90 00 [13:45:45]wFMCommunicate OK [13:45:45]wFMCommunicate request_size=4 [13:45:45]MH_SAM_APDU [13:45:45]CAPDU: 80 0D 03 02 [13:45:45]Write to MH i2c: E2 08 00 96 67 80 0D 03 02 00 00 00 00 78 [13:45:45]Write i2c OK [13:45:45]MH_I2C_Read... [13:45:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:45]Read from MH i2c: E2 [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: E2 0B 00 [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: E2 0B 00 96 67 00 CC 26 5E 9B 8D 0F E6 91 90 00 77 [13:45:45]RAPDU: CC 26 5E 9B 8D 0F E6 91 90 00 [13:45:45]wFMCommunicate OK [13:45:45]SAM_PROTO_SignData done [13:45:45]FM_MakeSignedData done [13:45:45]CreateOFDProtocolMessage [13:45:45]wFMCommunicate request_size=4 [13:45:45]MH_SAM_APDU [13:45:45]CAPDU: 80 11 00 00 [13:45:45]Write to MH i2c: E2 08 00 97 67 80 11 00 00 00 00 00 00 78 [13:45:45]Write i2c OK [13:45:45]MH_I2C_Read... [13:45:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:45]Read from MH i2c: E2 [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: E2 17 00 [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: E2 17 00 97 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CA [13:45:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:45:45]wFMCommunicate OK [13:45:45]CreateOFDProtocolMessage done [13:45:45]OFDSenderStorePacket 111674 [13:45:45]StoreOFDPacket docnum=111674 [13:45:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 69 58 07 01 0C 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 AB 32 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3A B4 01 00 35 04 06 00 72 48 03 0E A2 5A CC 26 5E 9B 8D 0F E6 91 [13:45:45]CheckFolder [13:45:45]dirname=/storage/ofd_packets [13:45:45]CheckFolder done [13:45:45]ProducePacketName [13:45:45]name=ofd_packets/00111674 [13:45:45]NVStorageSaveData ofd_packets/00111674 [13:45:45]File name is /storage/ofd_packets/00111674 [13:45:45]Write 301 bytes [13:45:45]NVStorageSaveData done [13:45:45]OFDSenderStorePacket done [13:45:45]KKMCreateOFDPacket done [13:45:45]NVStorageSaveData kkm_last_timestamp [13:45:45]File name is /storage/kkm_last_timestamp [13:45:45]Write 4 bytes [13:45:45]NVStorageSaveData done [13:45:45]ExternCall_PrintAddStr [13:45:45]wPrintStart [13:45:45]Write to MH i2c: 01 00 00 98 67 FF [13:45:45]Write i2c OK [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: 01 [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: 01 07 00 [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: 01 07 00 98 67 00 00 00 00 00 FF 0F 14 [13:45:45]RasterBufferAndPrint [13:45:45]line Счет N : (1)320276 [13:45:45]line ИНН: 02508201610067 [13:45:45]line Контрольно-Кассовый Чек [13:45:45]line ПРОДАЖА [13:45:45]line ТРК (МРК, ГНК) : 11 [13:45:45]line Товар: 2710124130 [13:45:45]line Аи-92-К-5 [13:45:45]line 9.040 * 66.40 [13:45:45]line = 600.26 [13:45:45]line НДС 12% НСП 1% [13:45:45]line > о реализуемом товаре [13:45:45]line ОКРУГЛЕНИЕ: -0.26 [13:45:45]line ИТОГО: 600.00 [13:45:45]line Внесено: 600.00 [13:45:45]line СДАЧА: 0.00 [13:45:45]line НСП 1% : 5.31 [13:45:45]line НДС 12% : 63.74 [13:45:45]line Наличными: 600.00 [13:45:45]line Безнал.: 0.00 [13:45:45]line Место: АЗС № 65 "Партнер Нефть" [13:45:45]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:45:45]line СНО: Общий режим [13:45:45]line Чек 124 20.06.2024 13:46 [13:45:45]line Смена: 389 ФФД: 1.0 [13:45:45]line ЗНМ: 0300000198 [13:45:45]line РНМ: 0000000000092771 [13:45:45]line Версия ККМ: 001 [13:45:45]line ФМ: 0000000000875083 [13:45:45]line ФД: 111674 [13:45:45]line ФПД: 125653614502490 [13:45:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T134619&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111674&fm=125653614502490&tin=02508201610067®Number=0000000000092771&sum=60000 [13:45:45]OFD Sender: Processing packet 111674 [packets to send 38, broken 37] [13:45:45]ProducePacketName [13:45:45]name=ofd_packets/00111674 [13:45:45]OFD Sender: To server: pG, [13:45:45]CommunicateWithHost lk.salyk.kg:30040 [13:45:45]ConnectInit lk.salyk.kg [13:45:45]written 0, free lines is 4095 [13:45:45]Connected sock=10 [13:45:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 69 58 07 01 0C 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 AB 32 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3A B4 01 00 35 04 06 00 72 48 03 0E A2 5A CC 26 5E 9B 8D 0F E6 91 [13:45:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 CB E8 47 00 CC 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 35 30 38 33 10 04 04 00 3A B4 01 00 F4 03 04 00 F4 C9 73 66 B6 04 01 00 00 DC 09 64 41 DC 48 C3 5B [13:45:46]CommunicateWithHost err = 0 [13:45:46]CheckOFDResponse [13:45:46]1017 (14) - 77093643461234 [13:45:46]1041 (16) - 0000000000875083 [13:45:46]1040 (4) - 111674 [13:45:46]1012 (4) - 20.06.2024 06:19 [13:45:46]1206 (1) - 0 [13:45:46]OFD Sender: Remove packet 111674 [13:45:46]ProducePacketName [13:45:46]name=ofd_packets/00111674 [13:45:46]NVStorageDeleteData [13:45:46]Write to MH i2c: 01 00 00 C3 67 2A [13:45:46]Write i2c OK [13:45:46]MH_I2C_Read... [13:45:46]Read from MH i2c: 01 [13:45:46]MH_I2C_Read... [13:45:46]Read from MH i2c: 01 07 00 [13:45:46]MH_I2C_Read... [13:45:46]Read from MH i2c: 01 07 00 C3 67 00 00 00 00 00 E5 0C 22 [13:45:46]RasterBufferAndPrint [13:45:46]line [13:45:46]line [13:45:46]line [13:45:46]line [13:45:46]line [13:45:46]written 0, free lines is 3310 [13:45:46]MH_Cut [13:45:46]Write to MH i2c: D1 01 00 CA 67 01 03 [13:45:46]Write i2c OK [13:45:46]MH_I2C_Read... [13:45:46]Read from MH i2c: D1 [13:45:46]MH_I2C_Read... [13:45:46]Read from MH i2c: D1 01 00 [13:45:46]MH_I2C_Read... [13:45:46]Read from MH i2c: D1 01 00 CA 67 00 02 [13:45:46]Write to MH i2c: 01 00 00 CB 67 32 [13:45:46]Write i2c OK [13:45:46]MH_I2C_Read... [13:45:46]OFD Sender: No OFD packet to send [13:45:46]*** Cut start [13:45:46]*** Partial cut [13:45:46]*** CUTSNS_PIN = 1 [13:45:46]*** CUTSNS_PIN = 0 [13:45:47]*** Brake cut motor [13:45:47]Read from MH i2c: 01 [13:45:47]MH_I2C_Read... [13:45:47]*** Stop cut motor [13:45:47]*** Cut end [13:45:47]Read from MH i2c: 01 07 00 [13:45:47]MH_I2C_Read... [13:45:47]Read from MH i2c: 01 07 00 CB 67 00 00 00 00 00 FF 0F 47 [13:45:47]process_action close_receipt done [13:45:47]requested_data is exist [13:45:47]produce_requested_data [13:45:47]requested_item fm.sn is exist - process it [13:45:47]wFMCommunicate request_size=4 [13:45:47]MH_SAM_APDU [13:45:47]CAPDU: 80 11 00 00 [13:45:47]Write to MH i2c: E2 08 00 CC 67 80 11 00 00 00 00 00 00 AD [13:45:47]Write i2c OK [13:45:47]MH_I2C_Read... [13:45:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:47]Read from MH i2c: E2 [13:45:47]MH_I2C_Read... [13:45:47]Read from MH i2c: E2 17 00 [13:45:47]MH_I2C_Read... [13:45:47]Read from MH i2c: E2 17 00 CC 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FF [13:45:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:45:47]wFMCommunicate OK [13:45:47]requested_item fd.num is exist - process it [13:45:47]SAM_PROTO_GetFieldsCounters [13:45:47]wFMCommunicate request_size=4 [13:45:47]MH_SAM_APDU [13:45:47]CAPDU: 80 13 00 00 [13:45:47]Write to MH i2c: E2 08 00 CD 67 80 13 00 00 00 00 00 00 B0 [13:45:47]Write i2c OK [13:45:47]MH_I2C_Read... [13:45:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:47]Read from MH i2c: E2 [13:45:47]MH_I2C_Read... [13:45:47]Read from MH i2c: E2 62 00 [13:45:47]MH_I2C_Read... [13:45:47]Read from MH i2c: E2 62 00 CD 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3A B4 01 00 0E 04 04 00 85 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 BA [13:45:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3A B4 01 00 0E 04 04 00 85 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 [13:45:47]wFMCommunicate OK [13:45:47]SAM_PROTO_GetFieldsCounters done [13:45:47]requested_item shift.num is exist - process it [13:45:47]requested_item shift.opened is exist - process it [13:45:47]req_shift_opened [13:45:47]FM_GetShiftState [13:45:47]SAM_PROTO_GetShiftState [13:45:47]wFMCommunicate request_size=4 [13:45:47]MH_SAM_APDU [13:45:47]CAPDU: 80 13 01 00 [13:45:47]Write to MH i2c: E2 08 00 CE 67 80 13 01 00 00 00 00 00 B2 [13:45:47]Write i2c OK [13:45:47]MH_I2C_Read... [13:45:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:47]Read from MH i2c: E2 [13:45:47]MH_I2C_Read... [13:45:47]Read from MH i2c: E2 0E 00 [13:45:47]MH_I2C_Read... [13:45:47]Read from MH i2c: E2 0E 00 CE 67 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 2D [13:45:47]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:45:47]wFMCommunicate OK [13:45:47]SAM_PROTO_GetShiftState done [13:45:47]FM_GetShiftState done [13:45:47]req_shift_opened done [13:45:47]requested_item shift.open_date is exist - process it [13:45:47]req_shift_open_date [13:45:47]req_shift_open_date done [13:45:47]produce_requested_data done [13:45:47]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111674,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [13:45:47]process_action_free close_receipt [13:45:47]json_value_free [13:45:47]json_value_free done [13:45:47]process_json_proto returns [13:45:47]Send response to host [13:45:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111674,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [13:45:47]free response buf [13:45:47]execute_script done [13:45:47]execute_script returns [13:45:47]free content buf [13:45:47]Sock 9.Close socket [13:45:47]Sock 9.Thread stoped [13:45:51]OFD Sender: No OFD packet to send [13:45:56]OFD Sender: No OFD packet to send [13:46:01]OFD Sender: No OFD packet to send [13:46:06]OFD Sender: No OFD packet to send [13:46:11]OFD Sender: No OFD packet to send [13:46:16]OFD Sender: No OFD packet to send [13:46:21]OFD Sender: No OFD packet to send [13:46:26]OFD Sender: No OFD packet to send [13:46:31]OFD Sender: No OFD packet to send [13:46:36]OFD Sender: No OFD packet to send [13:46:41]OFD Sender: No OFD packet to send [13:46:46]OFD Sender: No OFD packet to send [13:46:51]OFD Sender: No OFD packet to send [13:46:56]OFD Sender: No OFD packet to send [13:47:01]OFD Sender: No OFD packet to send [13:47:06]OFD Sender: No OFD packet to send [13:47:11]OFD Sender: No OFD packet to send [13:47:16]OFD Sender: No OFD packet to send [13:47:21]OFD Sender: No OFD packet to send [13:47: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]accept exits with 7 [13:47:41]New connection [13:47:41]New thread 3067321700 created [13:47:41]Thread 3067465060 joined [13:47:41]Waiting for new connection... [13:47:41] Sock 7.Parse request [13:47:41]Sock 7.Check first char [13:47:41]Sock 7.First char is OK [13:47:41]request: POST /json_proto HTTP/1.0 [13:47:41]Method: POST [13:47:41]URL: /json_proto [13:47:41]Method is POST - this is cgi request [13:47:41]url: /json_proto [13:47:41]query_string will be loaded in cgi processing [13:47:41]execute_cgi json_proto POST (null) [13:47:41]execute_cgi path=json_proto method=POST [13:47:41]POST find Content-Length [13:47:41]Host: 172.17.59.68:8080 [13:47:41]Content-Length: 678 [13:47:41]Content-Type: application/json [13:47:41] [13:47:41]POST finish read [13:47:41]Found Content-Length = 678 [13:47:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:41]execute_script... [13:47:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:41]POST & json_proto [13:47:41]process_json_proto [13:47:41]json parsed OK: [13:47:41]protocol is kg_v1.0 [13:47:41]action value=close_receipt [13:47:41]process_action close_receipt [13:47:41]cmd_close_receipt [13:47:41]MH_GetDate [13:47:41]Write to MH i2c: F0 00 00 CF 67 25 [13:47:41]Write i2c OK [13:47:41]MH_I2C_Read... [13:47:41]Read from MH i2c: F0 [13:47:41]MH_I2C_Read... [13:47:41]Read from MH i2c: F0 09 00 [13:47:41]MH_I2C_Read... [13:47:41]Read from MH i2c: F0 09 00 CF 67 00 21 33 74 66 BC EC 60 65 C9 [13:47:41]GetLastDocTimeStamp 1718891179 [13:47:41]current date 1718891297 [13:47:41]FM_GetShiftState [13:47:41]SAM_PROTO_GetShiftState [13:47:41]wFMCommunicate request_size=4 [13:47:41]MH_SAM_APDU [13:47:41]CAPDU: 80 13 01 00 [13:47:41]Write to MH i2c: E2 08 00 D0 67 80 13 01 00 00 00 00 00 B4 [13:47:41]Write i2c OK [13:47:41]MH_I2C_Read... [13:47:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:41]Read from MH i2c: E2 [13:47:41]MH_I2C_Read... [13:47:41]Read from MH i2c: E2 0E 00 [13:47:41]MH_I2C_Read... [13:47:41]Read from MH i2c: E2 0E 00 D0 67 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 2F [13:47:41]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:47:41]wFMCommunicate OK [13:47:41]SAM_PROTO_GetShiftState done [13:47:41]FM_GetShiftState done [13:47:41]opened in 1718847247 [13:47:41]opened+sec_in_day 1718933647 [13:47:41]quantity*price = 70052 [13:47:41]sum+1 = 70053 [13:47:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 125 20.06.2024 13:48 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111675 ФПД: 219235650171355 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T134817&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111675&fm=219235650171355&tin=02508201610067®Number=0000000000092771&sum=70000 [13:47:42]StoreToDocumentArchive [13:47:42]shift 389 fd 111675 [13:47:42]save to /storage/0389/doc_00111675 [13:47:42]save last doc name /storage/0389/doc_00111675 to /storage/kkm_last_doc_name [13:47:42]save OK [13:47:42]Clear old archive folders... [13:47:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:47:42]tlvbuf is 00EC1680 [13:47:42]SAM_PROTO_ClearQueue [13:47:42]wFMCommunicate request_size=4 [13:47:42]MH_SAM_APDU [13:47:42]CAPDU: 80 09 00 00 [13:47:42]Write to MH i2c: E2 08 00 DD 67 80 09 00 00 00 00 00 00 B6 [13:47:42]Write i2c OK [13:47:42]MH_I2C_Read... [13:47:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:47:42]Read from MH i2c: E2 [13:47:42]MH_I2C_Read... [13:47:42]Read from MH i2c: E2 03 00 [13:47:42]MH_I2C_Read... [13:47:42]Read from MH i2c: E2 03 00 DD 67 00 90 00 B8 [13:47:42]RAPDU: 90 00 [13:47:42]wFMCommunicate OK [13:47:42]SAM_PROTO_ClearQueue done [13:47:42]KKMCreateOFDPacket [13:47:42]OFDProtocolAddRootSTLVToBuf [13:47:42]FM_MakeSignedData [13:47:42]FM_MakeSignedData [13:47:42]SAM_PROTO_SignData [13:47:42]wFMCommunicate request_size=4 [13:47:42]MH_SAM_APDU [13:47:42]CAPDU: 80 0D 01 02 [13:47:42]Write to MH i2c: E2 08 00 DE 67 80 0D 01 02 00 00 00 00 BE [13:47:42]Write i2c OK [13:47:42]MH_I2C_Read... [13:47:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:47:42]Read from MH i2c: E2 [13:47:42]MH_I2C_Read... [13:47:42]Read from MH i2c: E2 03 00 [13:47:42]MH_I2C_Read... [13:47:42]Read from MH i2c: E2 03 00 DE 67 00 90 00 B9 [13:47:42]RAPDU: 90 00 [13:47:42]wFMCommunicate OK [13:47:42]wFMCommunicate request_size=255 [13:47:42]MH_SAM_APDU [13:47: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 21 33 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3B B4 01 00 35 04 06 00 C7 [13:47:42]Write to MH i2c: E2 02 01 DF 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 21 33 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3B B4 01 00 35 04 06 00 C7 00 00 6C [13:47:42]Write i2c OK [13:47:42]MH_I2C_Read... [13:47:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:43]Read from MH i2c: E2 [13:47:43]MH_I2C_Read... [13:47:43]Read from MH i2c: E2 03 00 [13:47:43]MH_I2C_Read... [13:47:43]Read from MH i2c: E2 03 00 DF 67 00 90 00 BA [13:47:43]RAPDU: 90 00 [13:47:43]wFMCommunicate OK [13:47:43]wFMCommunicate request_size=10 [13:47:43]MH_SAM_APDU [13:47:43]CAPDU: 80 0D 02 02 05 64 C7 0C F1 DB [13:47:43]Write to MH i2c: E2 0D 00 E0 67 80 0D 02 02 05 00 64 C7 0C F1 DB 00 00 CE [13:47:43]Write i2c OK [13:47:43]MH_I2C_Read... [13:47:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:43]Read from MH i2c: E2 [13:47:43]MH_I2C_Read... [13:47:43]Read from MH i2c: E2 03 00 [13:47:43]MH_I2C_Read... [13:47:43]Read from MH i2c: E2 03 00 E0 67 00 90 00 BB [13:47:43]RAPDU: 90 00 [13:47:43]wFMCommunicate OK [13:47:43]wFMCommunicate request_size=4 [13:47:43]MH_SAM_APDU [13:47:43]CAPDU: 80 0D 03 02 [13:47:43]Write to MH i2c: E2 08 00 E1 67 80 0D 03 02 00 00 00 00 C3 [13:47:43]Write i2c OK [13:47:43]MH_I2C_Read... [13:47:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:47:43]Read from MH i2c: E2 [13:47:43]MH_I2C_Read... [13:47:43]Read from MH i2c: E2 0B 00 [13:47:43]MH_I2C_Read... [13:47:43]Read from MH i2c: E2 0B 00 E1 67 00 A0 8C A8 3F 6C 27 E3 75 90 00 C2 [13:47:43]RAPDU: A0 8C A8 3F 6C 27 E3 75 90 00 [13:47:43]wFMCommunicate OK [13:47:43]SAM_PROTO_SignData done [13:47:43]FM_MakeSignedData done [13:47:43]CreateOFDProtocolMessage [13:47:43]wFMCommunicate request_size=4 [13:47:43]MH_SAM_APDU [13:47:43]CAPDU: 80 11 00 00 [13:47:43]Write to MH i2c: E2 08 00 E2 67 80 11 00 00 00 00 00 00 C3 [13:47:43]Write i2c OK [13:47:43]MH_I2C_Read... [13:47:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:43]Read from MH i2c: E2 [13:47:43]MH_I2C_Read... [13:47:43]Read from MH i2c: E2 17 00 [13:47:43]MH_I2C_Read... [13:47:43]Read from MH i2c: E2 17 00 E2 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 15 [13:47:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:47:43]wFMCommunicate OK [13:47:43]CreateOFDProtocolMessage done [13:47:43]OFDSenderStorePacket 111675 [13:47:43]StoreOFDPacket docnum=111675 [13:47:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3E 48 07 01 FF 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 21 33 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3B B4 01 00 35 04 06 00 C7 64 C7 0C F1 DB A0 8C A8 3F 6C 27 E3 75 [13:47:43]CheckFolder [13:47:43]dirname=/storage/ofd_packets [13:47:43]CheckFolder done [13:47:43]ProducePacketName [13:47:43]name=ofd_packets/00111675 [13:47:43]NVStorageSaveData ofd_packets/00111675 [13:47:43]File name is /storage/ofd_packets/00111675 [13:47:43]Write 301 bytes [13:47:43]NVStorageSaveData done [13:47:43]OFDSenderStorePacket done [13:47:43]KKMCreateOFDPacket done [13:47:43]NVStorageSaveData kkm_last_timestamp [13:47:43]File name is /storage/kkm_last_timestamp [13:47:43]Write 4 bytes [13:47:43]NVStorageSaveData done [13:47:43]ExternCall_PrintAddStr [13:47:43]wPrintStart [13:47:43]Write to MH i2c: 01 00 00 E3 67 4A [13:47:43]Write i2c OK [13:47:43]MH_I2C_Read... [13:47:43]Read from MH i2c: 01 [13:47:43]MH_I2C_Read... [13:47:43]Read from MH i2c: 01 07 00 [13:47:43]MH_I2C_Read... [13:47:43]Read from MH i2c: 01 07 00 E3 67 00 00 00 00 00 FF 0F 5F [13:47:43]RasterBufferAndPrint [13:47:43]line Счет N : (1)320277 [13:47:43]line ИНН: 02508201610067 [13:47:43]line Контрольно-Кассовый Чек [13:47:43]line ПРОДАЖА [13:47:43]line ТРК (МРК, ГНК) : 11 [13:47:43]line Товар: 2710124130 [13:47:43]line Аи-92-К-5 [13:47:43]line 10.550 * 66.40 [13:47:43]line = 700.52 [13:47:43]line НДС 12% НСП 1% [13:47:43]line > о реализуемом товаре [13:47:43]line ОКРУГЛЕНИЕ: -0.52 [13:47:43]line ИТОГО: 700.00 [13:47:43]line Внесено: 700.00 [13:47:43]line СДАЧА: 0.00 [13:47:43]line НСП 1% : 6.20 [13:47:43]line НДС 12% : 74.39 [13:47:43]line Наличными: 700.00 [13:47:43]line Безнал.: 0.00 [13:47:43]line Место: АЗС № 65 "Партнер Нефть" [13:47:43]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:47:43]line СНО: Общий режим [13:47:43]line Чек 125 20.06.2024 13:48 [13:47:43]line Смена: 389 ФФД: 1.0 [13:47:43]line ЗНМ: 0300000198 [13:47:43]line РНМ: 0000000000092771 [13:47:43]line Версия ККМ: 001 [13:47:43]line ФМ: 0000000000875083 [13:47:43]line ФД: 111675 [13:47:43]line ФПД: 219235650171355 [13:47:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T134817&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111675&fm=219235650171355&tin=02508201610067®Number=0000000000092771&sum=70000 [13:47:43]OFD Sender: Processing packet 111675 [packets to send 38, broken 37] [13:47:43]ProducePacketName [13:47:43]name=ofd_packets/00111675 [13:47:43]OFD Sender: To server: pG, [13:47:43]CommunicateWithHost lk.salyk.kg:30040 [13:47:43]ConnectInit lk.salyk.kg [13:47:43]written 0, free lines is 4095 [13:47:43]Connected sock=10 [13:47:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3E 48 07 01 FF 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 21 33 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3B B4 01 00 35 04 06 00 C7 64 C7 0C F1 DB A0 8C A8 3F 6C 27 E3 75 [13:47:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 0F 0E 47 00 6E 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3B B4 01 00 F4 03 04 00 6A CA 73 66 B6 04 01 00 00 B4 9C FC C5 5F 82 B4 92 [13:47:43]CommunicateWithHost err = 0 [13:47:43]CheckOFDResponse [13:47:43]1017 (14) - 77093643461234 [13:47:43]1041 (16) - 0000000000875083 [13:47:43]1040 (4) - 111675 [13:47:43]1012 (4) - 20.06.2024 06:21 [13:47:43]1206 (1) - 0 [13:47:43]OFD Sender: Remove packet 111675 [13:47:43]ProducePacketName [13:47:43]name=ofd_packets/00111675 [13:47:43]NVStorageDeleteData [13:47:43]Write to MH i2c: 01 00 00 0E 68 76 [13:47:43]Write i2c OK [13:47:43]MH_I2C_Read... [13:47:43]Read from MH i2c: 01 [13:47:43]MH_I2C_Read... [13:47:43]Read from MH i2c: 01 07 00 [13:47:43]MH_I2C_Read... [13:47:43]Read from MH i2c: 01 07 00 0E 68 00 00 00 00 00 DD 0C 66 [13:47:43]RasterBufferAndPrint [13:47:43]line [13:47:43]line [13:47:43]line [13:47:43]line [13:47:43]line [13:47:43]written 0, free lines is 3302 [13:47:44]MH_Cut [13:47:44]Write to MH i2c: D1 01 00 15 68 01 4F [13:47:44]Write i2c OK [13:47:44]MH_I2C_Read... [13:47:44]Read from MH i2c: D1 [13:47:44]MH_I2C_Read... [13:47:44]Read from MH i2c: D1 01 00 [13:47:44]MH_I2C_Read... [13:47:44]Read from MH i2c: D1 01 00 15 68 00 4E [13:47:44]Write to MH i2c: 01 00 00 16 68 7E [13:47:44]Write i2c OK [13:47:44]MH_I2C_Read... [13:47:44]OFD Sender: No OFD packet to send [13:47:44]*** Cut start [13:47:44]*** Partial cut [13:47:44]*** CUTSNS_PIN = 1 [13:47:44]*** CUTSNS_PIN = 0 [13:47:44]*** Brake cut motor [13:47:45]Read from MH i2c: 01 [13:47:45]MH_I2C_Read... [13:47:45]*** Stop cut motor [13:47:45]*** Cut end [13:47:45]Read from MH i2c: 01 07 00 [13:47:45]MH_I2C_Read... [13:47:45]Read from MH i2c: 01 07 00 16 68 00 00 00 00 00 FF 0F 93 [13:47:45]process_action close_receipt done [13:47:45]requested_data is exist [13:47:45]produce_requested_data [13:47:45]requested_item fm.sn is exist - process it [13:47:45]wFMCommunicate request_size=4 [13:47:45]MH_SAM_APDU [13:47:45]CAPDU: 80 11 00 00 [13:47:45]Write to MH i2c: E2 08 00 17 68 80 11 00 00 00 00 00 00 F9 [13:47:45]Write i2c OK [13:47:45]MH_I2C_Read... [13:47:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:45]Read from MH i2c: E2 [13:47:45]MH_I2C_Read... [13:47:45]Read from MH i2c: E2 17 00 [13:47:45]MH_I2C_Read... [13:47:45]Read from MH i2c: E2 17 00 17 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4B [13:47:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:47:45]wFMCommunicate OK [13:47:45]requested_item fd.num is exist - process it [13:47:45]SAM_PROTO_GetFieldsCounters [13:47:45]wFMCommunicate request_size=4 [13:47:45]MH_SAM_APDU [13:47:45]CAPDU: 80 13 00 00 [13:47:45]Write to MH i2c: E2 08 00 18 68 80 13 00 00 00 00 00 00 FC [13:47:45]Write i2c OK [13:47:45]MH_I2C_Read... [13:47:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:47:45]Read from MH i2c: E2 [13:47:45]MH_I2C_Read... [13:47:45]Read from MH i2c: E2 62 00 [13:47:45]MH_I2C_Read... [13:47:45]Read from MH i2c: E2 62 00 18 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3B B4 01 00 0E 04 04 00 85 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 0A [13:47:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3B B4 01 00 0E 04 04 00 85 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 [13:47:45]wFMCommunicate OK [13:47:45]SAM_PROTO_GetFieldsCounters done [13:47:45]requested_item shift.num is exist - process it [13:47:45]requested_item shift.opened is exist - process it [13:47:45]req_shift_opened [13:47:45]FM_GetShiftState [13:47:45]SAM_PROTO_GetShiftState [13:47:45]wFMCommunicate request_size=4 [13:47:45]MH_SAM_APDU [13:47:45]CAPDU: 80 13 01 00 [13:47:45]Write to MH i2c: E2 08 00 19 68 80 13 01 00 00 00 00 00 FE [13:47:45]Write i2c OK [13:47:45]MH_I2C_Read... [13:47:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:45]Read from MH i2c: E2 [13:47:45]MH_I2C_Read... [13:47:45]Read from MH i2c: E2 0E 00 [13:47:45]MH_I2C_Read... [13:47:45]Read from MH i2c: E2 0E 00 19 68 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 79 [13:47:45]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:47:45]wFMCommunicate OK [13:47:45]SAM_PROTO_GetShiftState done [13:47:45]FM_GetShiftState done [13:47:45]req_shift_opened done [13:47:45]requested_item shift.open_date is exist - process it [13:47:45]req_shift_open_date [13:47:45]req_shift_open_date done [13:47:45]produce_requested_data done [13:47:45]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111675,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [13:47:45]process_action_free close_receipt [13:47:45]json_value_free [13:47:45]json_value_free done [13:47:45]process_json_proto returns [13:47:45]Send response to host [13:47:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111675,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [13:47:45]free response buf [13:47:45]execute_script done [13:47:45]execute_script returns [13:47:45]free content buf [13:47:45]Sock 7.Close socket [13:47:45]Sock 7.Thread stoped [13:47:49]OFD Sender: No OFD packet to send [13:47:54]OFD Sender: No OFD packet to send [13:47:59]OFD Sender: No OFD packet to send [13:48:04]OFD Sender: No OFD packet to send [13:48:09]OFD Sender: No OFD packet to send [13:48:14]OFD Sender: No OFD packet to send [13:48:19]OFD Sender: No OFD packet to send [13:48:24]OFD Sender: No OFD packet to send [13:48:29]OFD Sender: No OFD packet to send [13:48:34]OFD Sender: No OFD packet to send [13:48:39]OFD Sender: No OFD packet to send [13:48:44]OFD Sender: No OFD packet to send [13:48:49]OFD Sender: No OFD packet to send [13:48:50]accept exits with 9 [13:48:50]New connection [13:48:50]New thread 3067465060 created [13:48:50]Thread 3067321700 joined [13:48:50]Waiting for new connection... [13:48:50] Sock 9.Parse request [13:48:50]Sock 9.Check first char [13:48:50]Sock 9.First char is OK [13:48:50]request: POST /json_proto HTTP/1.0 [13:48:50]Method: POST [13:48:50]URL: /json_proto [13:48:50]Method is POST - this is cgi request [13:48:50]url: /json_proto [13:48:50]query_string will be loaded in cgi processing [13:48:50]execute_cgi json_proto POST (null) [13:48:50]execute_cgi path=json_proto method=POST [13:48:50]POST find Content-Length [13:48:50]Host: 172.17.59.68:8080 [13:48:50]Content-Length: 679 [13:48:50]Content-Type: application/json [13:48:50] [13:48:50]POST finish read [13:48:50]Found Content-Length = 679 [13:48:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:48:50]execute_script... [13:48:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:48:50]POST & json_proto [13:48:50]process_json_proto [13:48:50]json parsed OK: [13:48:50]protocol is kg_v1.0 [13:48:50]action value=close_receipt [13:48:50]process_action close_receipt [13:48:50]cmd_close_receipt [13:48:50]MH_GetDate [13:48:50]Write to MH i2c: F0 00 00 1A 68 71 [13:48:50]Write i2c OK [13:48:50]MH_I2C_Read... [13:48:50]Read from MH i2c: F0 [13:48:50]MH_I2C_Read... [13:48:50]Read from MH i2c: F0 09 00 [13:48:50]MH_I2C_Read... [13:48:50]Read from MH i2c: F0 09 00 1A 68 00 66 33 74 66 BC EC 60 65 5A [13:48:50]GetLastDocTimeStamp 1718891297 [13:48:50]current date 1718891366 [13:48:50]FM_GetShiftState [13:48:50]SAM_PROTO_GetShiftState [13:48:50]wFMCommunicate request_size=4 [13:48:50]MH_SAM_APDU [13:48:50]CAPDU: 80 13 01 00 [13:48:50]Write to MH i2c: E2 08 00 1B 68 80 13 01 00 00 00 00 00 00 [13:48:50]Write i2c OK [13:48:50]MH_I2C_Read... [13:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:51]Read from MH i2c: E2 [13:48:51]MH_I2C_Read... [13:48:51]Read from MH i2c: E2 0E 00 [13:48:51]MH_I2C_Read... [13:48:51]Read from MH i2c: E2 0E 00 1B 68 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 7B [13:48:51]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:48:51]wFMCommunicate OK [13:48:51]SAM_PROTO_GetShiftState done [13:48:51]FM_GetShiftState done [13:48:51]opened in 1718847247 [13:48:51]opened+sec_in_day 1718933647 [13:48:51]quantity*price = 200037 [13:48:51]sum+1 = 200039 [13:48:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 126 20.06.2024 13:49 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111676 ФПД: 242362356166631 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T134926&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111676&fm=242362356166631&tin=02508201610067®Number=0000000000092771&sum=200000 [13:48:52]StoreToDocumentArchive [13:48:52]shift 389 fd 111676 [13:48:52]save to /storage/0389/doc_00111676 [13:48:52]save last doc name /storage/0389/doc_00111676 to /storage/kkm_last_doc_name [13:48:52]save OK [13:48:52]Clear old archive folders... [13:48:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:48:52]tlvbuf is 010975F0 [13:48:52]SAM_PROTO_ClearQueue [13:48:52]wFMCommunicate request_size=4 [13:48:52]MH_SAM_APDU [13:48:52]CAPDU: 80 09 00 00 [13:48:52]Write to MH i2c: E2 08 00 28 68 80 09 00 00 00 00 00 00 02 [13:48:52]Write i2c OK [13:48:52]MH_I2C_Read... [13:48:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:48:52]Read from MH i2c: E2 [13:48:52]MH_I2C_Read... [13:48:52]Read from MH i2c: E2 03 00 [13:48:52]MH_I2C_Read... [13:48:52]Read from MH i2c: E2 03 00 28 68 00 90 00 04 [13:48:52]RAPDU: 90 00 [13:48:52]wFMCommunicate OK [13:48:52]SAM_PROTO_ClearQueue done [13:48:52]KKMCreateOFDPacket [13:48:52]OFDProtocolAddRootSTLVToBuf [13:48:52]FM_MakeSignedData [13:48:52]FM_MakeSignedData [13:48:52]SAM_PROTO_SignData [13:48:52]wFMCommunicate request_size=4 [13:48:52]MH_SAM_APDU [13:48:52]CAPDU: 80 0D 01 02 [13:48:52]Write to MH i2c: E2 08 00 29 68 80 0D 01 02 00 00 00 00 0A [13:48:52]Write i2c OK [13:48:52]MH_I2C_Read... [13:48:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:48:52]Read from MH i2c: E2 [13:48:52]MH_I2C_Read... [13:48:52]Read from MH i2c: E2 03 00 [13:48:52]MH_I2C_Read... [13:48:52]Read from MH i2c: E2 03 00 29 68 00 90 00 05 [13:48:52]RAPDU: 90 00 [13:48:52]wFMCommunicate OK [13:48:52]wFMCommunicate request_size=255 [13:48:52]MH_SAM_APDU [13:48:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 66 33 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3C B4 01 00 35 04 06 00 DC 6D 62 25 [13:48:52]Write to MH i2c: E2 02 01 2A 68 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 66 33 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3C B4 01 00 35 04 06 00 DC 6D 62 25 00 00 23 [13:48:52]Write i2c OK [13:48:52]MH_I2C_Read... [13:48:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:52]Read from MH i2c: E2 [13:48:52]MH_I2C_Read... [13:48:52]Read from MH i2c: E2 03 00 [13:48:52]MH_I2C_Read... [13:48:52]Read from MH i2c: E2 03 00 2A 68 00 90 00 06 [13:48:52]RAPDU: 90 00 [13:48:52]wFMCommunicate OK [13:48:52]wFMCommunicate request_size=7 [13:48:52]MH_SAM_APDU [13:48:52]CAPDU: 80 0D 02 02 02 6F E7 [13:48:52]Write to MH i2c: E2 0A 00 2B 68 80 0D 02 02 02 00 6F E7 00 00 67 [13:48:52]Write i2c OK [13:48:52]MH_I2C_Read... [13:48:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:52]Read from MH i2c: E2 [13:48:52]MH_I2C_Read... [13:48:52]Read from MH i2c: E2 03 00 [13:48:52]MH_I2C_Read... [13:48:52]Read from MH i2c: E2 03 00 2B 68 00 90 00 07 [13:48:52]RAPDU: 90 00 [13:48:52]wFMCommunicate OK [13:48:52]wFMCommunicate request_size=4 [13:48:52]MH_SAM_APDU [13:48:52]CAPDU: 80 0D 03 02 [13:48:52]Write to MH i2c: E2 08 00 2C 68 80 0D 03 02 00 00 00 00 0F [13:48:52]Write i2c OK [13:48:52]MH_I2C_Read... [13:48:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:48:52]Read from MH i2c: E2 [13:48:52]MH_I2C_Read... [13:48:52]Read from MH i2c: E2 0B 00 [13:48:52]MH_I2C_Read... [13:48:52]Read from MH i2c: E2 0B 00 2C 68 00 56 EF 2A FD 2C AC F5 9E 90 00 E7 [13:48:52]RAPDU: 56 EF 2A FD 2C AC F5 9E 90 00 [13:48:52]wFMCommunicate OK [13:48:52]SAM_PROTO_SignData done [13:48:52]FM_MakeSignedData done [13:48:52]CreateOFDProtocolMessage [13:48:52]wFMCommunicate request_size=4 [13:48:52]MH_SAM_APDU [13:48:52]CAPDU: 80 11 00 00 [13:48:52]Write to MH i2c: E2 08 00 2D 68 80 11 00 00 00 00 00 00 0F [13:48:52]Write i2c OK [13:48:52]MH_I2C_Read... [13:48:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:52]Read from MH i2c: E2 [13:48:52]MH_I2C_Read... [13:48:52]Read from MH i2c: E2 17 00 [13:48:52]MH_I2C_Read... [13:48:52]Read from MH i2c: E2 17 00 2D 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 61 [13:48:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:48:52]wFMCommunicate OK [13:48:52]CreateOFDProtocolMessage done [13:48:52]OFDSenderStorePacket 111676 [13:48:52]StoreOFDPacket docnum=111676 [13:48:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 1F F5 04 01 C7 6B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 66 33 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3C B4 01 00 35 04 06 00 DC 6D 62 25 6F E7 56 EF 2A FD 2C AC F5 9E [13:48:52]CheckFolder [13:48:52]dirname=/storage/ofd_packets [13:48:52]CheckFolder done [13:48:52]ProducePacketName [13:48:52]name=ofd_packets/00111676 [13:48:52]NVStorageSaveData ofd_packets/00111676 [13:48:52]File name is /storage/ofd_packets/00111676 [13:48:52]Write 298 bytes [13:48:52]NVStorageSaveData done [13:48:52]OFDSenderStorePacket done [13:48:52]KKMCreateOFDPacket done [13:48:52]NVStorageSaveData kkm_last_timestamp [13:48:52]File name is /storage/kkm_last_timestamp [13:48:52]Write 4 bytes [13:48:52]NVStorageSaveData done [13:48:52]ExternCall_PrintAddStr [13:48:52]wPrintStart [13:48:52]Write to MH i2c: 01 00 00 2E 68 96 [13:48:52]Write i2c OK [13:48:52]MH_I2C_Read... [13:48:52]Read from MH i2c: 01 [13:48:52]MH_I2C_Read... [13:48:52]Read from MH i2c: 01 07 00 [13:48:52]MH_I2C_Read... [13:48:52]Read from MH i2c: 01 07 00 2E 68 00 00 00 00 00 FF 0F AB [13:48:52]RasterBufferAndPrint [13:48:52]line Счет N : (1)320278 [13:48:52]line ИНН: 02508201610067 [13:48:52]line Контрольно-Кассовый Чек [13:48:52]line ПРОДАЖА [13:48:52]line ТРК (МРК, ГНК) : 22 [13:48:52]line Товар: 2710194210 [13:48:52]line ДТ-К-5 [13:48:52]line 27.440 * 72.90 [13:48:52]line = 2000.38 [13:48:52]line НДС 12% НСП 1% [13:48:52]line > о реализуемом товаре [13:48:52]line ОКРУГЛЕНИЕ: -0.38 [13:48:52]line ИТОГО: 2000.00 [13:48:52]line Внесено: 2000.00 [13:48:52]line СДАЧА: 0.00 [13:48:52]line НСП 1% : 17.70 [13:48:52]line НДС 12% : 212.43 [13:48:52]line Наличными: 2000.00 [13:48:52]line Безнал.: 0.00 [13:48:52]line Место: АЗС № 65 "Партнер Нефть" [13:48:52]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:48:52]line СНО: Общий режим [13:48:52]line Чек 126 20.06.2024 13:49 [13:48:52]line Смена: 389 ФФД: 1.0 [13:48:52]line ЗНМ: 0300000198 [13:48:52]line РНМ: 0000000000092771 [13:48:52]line Версия ККМ: 001 [13:48:52]line ФМ: 0000000000875083 [13:48:52]line ФД: 111676 [13:48:52]line ФПД: 242362356166631 [13:48:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T134926&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111676&fm=242362356166631&tin=02508201610067®Number=0000000000092771&sum=200000 [13:48:53]OFD Sender: Processing packet 111676 [packets to send 38, broken 37] [13:48:53]ProducePacketName [13:48:53]name=ofd_packets/00111676 [13:48:53]OFD Sender: To server: pG, [13:48:53]CommunicateWithHost lk.salyk.kg:30040 [13:48:53]ConnectInit lk.salyk.kg [13:48:53]written 0, free lines is 4095 [13:48:53]Connected sock=10 [13:48:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 1F F5 04 01 C7 6B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 66 33 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3C B4 01 00 35 04 06 00 DC 6D 62 25 6F E7 56 EF 2A FD 2C AC F5 9E [13:48:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 1C 78 47 00 4C 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 35 30 38 33 10 04 04 00 3C B4 01 00 F4 03 04 00 AF CA 73 66 B6 04 01 00 00 E2 9F 11 18 DB 96 E3 D3 [13:48:53]CommunicateWithHost err = 0 [13:48:53]CheckOFDResponse [13:48:53]1017 (14) - 77093643461234 [13:48:53]1041 (16) - 0000000000875083 [13:48:53]1040 (4) - 111676 [13:48:53]1012 (4) - 20.06.2024 06:22 [13:48:53]1206 (1) - 0 [13:48:53]OFD Sender: Remove packet 111676 [13:48:53]ProducePacketName [13:48:53]name=ofd_packets/00111676 [13:48:53]NVStorageDeleteData [13:48:53]Write to MH i2c: 01 00 00 59 68 C1 [13:48:53]Write i2c OK [13:48:53]MH_I2C_Read... [13:48:53]Read from MH i2c: 01 [13:48:53]MH_I2C_Read... [13:48:53]Read from MH i2c: 01 07 00 [13:48:53]MH_I2C_Read... [13:48:53]Read from MH i2c: 01 07 00 59 68 00 00 00 00 00 E0 0C B4 [13:48:53]RasterBufferAndPrint [13:48:53]line [13:48:53]line [13:48:53]line [13:48:53]line [13:48:53]line [13:48:53]written 0, free lines is 3302 [13:48:53]MH_Cut [13:48:53]Write to MH i2c: D1 01 00 60 68 01 9A [13:48:53]Write i2c OK [13:48:53]MH_I2C_Read... [13:48:53]Read from MH i2c: D1 [13:48:53]MH_I2C_Read... [13:48:53]Read from MH i2c: D1 01 00 [13:48:53]MH_I2C_Read... [13:48:53]Read from MH i2c: D1 01 00 60 68 00 99 [13:48:53]Write to MH i2c: 01 00 00 61 68 C9 [13:48:53]Write i2c OK [13:48:53]MH_I2C_Read... [13:48:53]OFD Sender: No OFD packet to send [13:48:54]*** Cut start [13:48:54]*** Partial cut [13:48:54]*** CUTSNS_PIN = 1 [13:48:54]*** CUTSNS_PIN = 0 [13:48:54]*** Brake cut motor [13:48:54]Read from MH i2c: 01 [13:48:54]MH_I2C_Read... [13:48:54]*** Stop cut motor [13:48:54]*** Cut end [13:48:54]Read from MH i2c: 01 07 00 [13:48:54]MH_I2C_Read... [13:48:54]Read from MH i2c: 01 07 00 61 68 00 00 00 00 00 FF 0F DE [13:48:54]process_action close_receipt done [13:48:54]requested_data is exist [13:48:54]produce_requested_data [13:48:54]requested_item fm.sn is exist - process it [13:48:54]wFMCommunicate request_size=4 [13:48:54]MH_SAM_APDU [13:48:54]CAPDU: 80 11 00 00 [13:48:54]Write to MH i2c: E2 08 00 62 68 80 11 00 00 00 00 00 00 44 [13:48:54]Write i2c OK [13:48:54]MH_I2C_Read... [13:48:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:54]Read from MH i2c: E2 [13:48:54]MH_I2C_Read... [13:48:54]Read from MH i2c: E2 17 00 [13:48:54]MH_I2C_Read... [13:48:54]Read from MH i2c: E2 17 00 62 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 96 [13:48:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:48:54]wFMCommunicate OK [13:48:54]requested_item fd.num is exist - process it [13:48:54]SAM_PROTO_GetFieldsCounters [13:48:54]wFMCommunicate request_size=4 [13:48:54]MH_SAM_APDU [13:48:54]CAPDU: 80 13 00 00 [13:48:54]Write to MH i2c: E2 08 00 63 68 80 13 00 00 00 00 00 00 47 [13:48:54]Write i2c OK [13:48:54]MH_I2C_Read... [13:48:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:48:55]Read from MH i2c: E2 [13:48:55]MH_I2C_Read... [13:48:55]Read from MH i2c: E2 62 00 [13:48:55]MH_I2C_Read... [13:48:55]Read from MH i2c: E2 62 00 63 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3C B4 01 00 0E 04 04 00 85 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 59 [13:48:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3C B4 01 00 0E 04 04 00 85 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 [13:48:55]wFMCommunicate OK [13:48:55]SAM_PROTO_GetFieldsCounters done [13:48:55]requested_item shift.num is exist - process it [13:48:55]requested_item shift.opened is exist - process it [13:48:55]req_shift_opened [13:48:55]FM_GetShiftState [13:48:55]SAM_PROTO_GetShiftState [13:48:55]wFMCommunicate request_size=4 [13:48:55]MH_SAM_APDU [13:48:55]CAPDU: 80 13 01 00 [13:48:55]Write to MH i2c: E2 08 00 64 68 80 13 01 00 00 00 00 00 49 [13:48:55]Write i2c OK [13:48:55]MH_I2C_Read... [13:48:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:55]Read from MH i2c: E2 [13:48:55]MH_I2C_Read... [13:48:55]Read from MH i2c: E2 0E 00 [13:48:55]MH_I2C_Read... [13:48:55]Read from MH i2c: E2 0E 00 64 68 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 C4 [13:48:55]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:48:55]wFMCommunicate OK [13:48:55]SAM_PROTO_GetShiftState done [13:48:55]FM_GetShiftState done [13:48:55]req_shift_opened done [13:48:55]requested_item shift.open_date is exist - process it [13:48:55]req_shift_open_date [13:48:55]req_shift_open_date done [13:48:55]produce_requested_data done [13:48:55]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111676,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [13:48:55]process_action_free close_receipt [13:48:55]json_value_free [13:48:55]json_value_free done [13:48:55]process_json_proto returns [13:48:55]Send response to host [13:48:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111676,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [13:48:55]free response buf [13:48:55]execute_script done [13:48:55]execute_script returns [13:48:55]free content buf [13:48:55]Sock 9.Close socket [13:48:55]Sock 9.Thread stoped [13:48:58]OFD Sender: No OFD packet to send [13:49:03]OFD Sender: No OFD packet to send [13:49:08]OFD Sender: No OFD packet to send [13:49:13]OFD Sender: No OFD packet to send [13:49:18]OFD Sender: No OFD packet to send [13:49:23]OFD Sender: No OFD packet to send [13:49:28]OFD Sender: No OFD packet to send [13:49:33]OFD Sender: No OFD packet to send [13:49:38]OFD Sender: No OFD packet to send [13:49:43]OFD Sender: No OFD packet to send [13:49:48]OFD Sender: No OFD packet to send [13:49:53]OFD Sender: No OFD packet to send [13:49:58]OFD Sender: No OFD packet to send [13:50:03]OFD Sender: No OFD packet to send [13:50:08]OFD Sender: No OFD packet to send [13:50:13]OFD Sender: No OFD packet to send [13:50:18]OFD Sender: No OFD packet to send [13:50:23]OFD Sender: No OFD packet to send [13:50:28]OFD Sender: No OFD packet to send [13:50:33]OFD Sender: No OFD packet to send [13:50:38]OFD Sender: No OFD packet to send [13:50:43]OFD Sender: No OFD packet to send [13:50:48]OFD Sender: No OFD packet to send [13:50:53]OFD Sender: No OFD packet to send [13:50:58]OFD Sender: No OFD packet to send [13:51:03]OFD Sender: No OFD packet to send [13:51:08]OFD Sender: No OFD packet to send [13:51:13]OFD Sender: No OFD packet to send [13:51:15]accept exits with 7 [13:51:15]New connection [13:51:15]New thread 3067321700 created [13:51:15]Thread 3067465060 joined [13:51:15]Waiting for new connection... [13:51:15] Sock 7.Parse request [13:51:15]Sock 7.Check first char [13:51:15]Sock 7.First char is OK [13:51:15]request: POST /json_proto HTTP/1.0 [13:51:15]Method: POST [13:51:15]URL: /json_proto [13:51:15]Method is POST - this is cgi request [13:51:15]url: /json_proto [13:51:15]query_string will be loaded in cgi processing [13:51:15]execute_cgi json_proto POST (null) [13:51:15]execute_cgi path=json_proto method=POST [13:51:15]POST find Content-Length [13:51:15]Host: 172.17.59.68:8080 [13:51:15]Content-Length: 215 [13:51:15]Content-Type: application/json [13:51:15] [13:51:15]POST finish read [13:51:15]Found Content-Length = 215 [13:51:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:15]execute_script... [13:51:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:15]POST & json_proto [13:51:15]process_json_proto [13:51:15]json parsed OK: [13:51:15]protocol is kg_v1.0 [13:51:15]action value=get_value [13:51:15]process_action get_value [13:51:15]cmd_get_value [13:51:15]process_action get_value done [13:51:15]requested_data is exist [13:51:15]produce_requested_data [13:51:15]requested_item kkm.sn is exist - process it [13:51:15]requested_item kkm.ver is exist - process it [13:51:15]requested_item fm.sn is exist - process it [13:51:15]wFMCommunicate request_size=4 [13:51:15]MH_SAM_APDU [13:51:15]CAPDU: 80 11 00 00 [13:51:15]Write to MH i2c: E2 08 00 65 68 80 11 00 00 00 00 00 00 47 [13:51:15]Write i2c OK [13:51:15]MH_I2C_Read... [13:51:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:16]Read from MH i2c: E2 [13:51:16]MH_I2C_Read... [13:51:16]Read from MH i2c: E2 17 00 [13:51:16]MH_I2C_Read... [13:51:16]Read from MH i2c: E2 17 00 65 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 99 [13:51:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:51:16]wFMCommunicate OK [13:51:16]requested_item fd.num is exist - process it [13:51:16]SAM_PROTO_GetFieldsCounters [13:51:16]wFMCommunicate request_size=4 [13:51:16]MH_SAM_APDU [13:51:16]CAPDU: 80 13 00 00 [13:51:16]Write to MH i2c: E2 08 00 66 68 80 13 00 00 00 00 00 00 4A [13:51:16]Write i2c OK [13:51:16]MH_I2C_Read... [13:51:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:51:16]Read from MH i2c: E2 [13:51:16]MH_I2C_Read... [13:51:16]Read from MH i2c: E2 62 00 [13:51:16]MH_I2C_Read... [13:51:16]Read from MH i2c: E2 62 00 66 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3C B4 01 00 0E 04 04 00 85 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 5C [13:51:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3C B4 01 00 0E 04 04 00 85 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 [13:51:16]wFMCommunicate OK [13:51:16]SAM_PROTO_GetFieldsCounters done [13:51:16]requested_item shift.num is exist - process it [13:51:16]requested_item shift.opened is exist - process it [13:51:16]req_shift_opened [13:51:16]FM_GetShiftState [13:51:16]SAM_PROTO_GetShiftState [13:51:16]wFMCommunicate request_size=4 [13:51:16]MH_SAM_APDU [13:51:16]CAPDU: 80 13 01 00 [13:51:16]Write to MH i2c: E2 08 00 67 68 80 13 01 00 00 00 00 00 4C [13:51:16]Write i2c OK [13:51:16]MH_I2C_Read... [13:51:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:16]Read from MH i2c: E2 [13:51:16]MH_I2C_Read... [13:51:16]Read from MH i2c: E2 0E 00 [13:51:16]MH_I2C_Read... [13:51:16]Read from MH i2c: E2 0E 00 67 68 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 C7 [13:51:16]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:51:16]wFMCommunicate OK [13:51:16]SAM_PROTO_GetShiftState done [13:51:16]FM_GetShiftState done [13:51:16]req_shift_opened done [13:51:16]requested_item shift.open_date is exist - process it [13:51:16]req_shift_open_date [13:51:16]req_shift_open_date done [13:51:16]produce_requested_data done [13:51:16]produce_requested_data return {"kkm.sn":"0300000198","kkm.ver":"001","fm.sn":"0000000000875083","fd.num":111676,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [13:51:16]process_action_free get_value [13:51:16]json_value_free [13:51:16]json_value_free done [13:51:16]process_json_proto returns [13:51:16]Send response to host [13:51:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000198","kkm.ver":"001","fm.sn":"0000000000875083","fd.num":111676,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [13:51:16]free response buf [13:51:16]execute_script done [13:51:16]execute_script returns [13:51:16]free content buf [13:51:16]Sock 7.Close socket [13:51:16]Sock 7.Thread stoped [13:51:18]OFD Sender: No OFD packet to send [13:51:23]OFD Sender: No OFD packet to send [13:51:28]OFD Sender: No OFD packet to send [13:51:33]OFD Sender: No OFD packet to send [13:51:38]OFD Sender: No OFD packet to send [13:51:43]OFD Sender: No OFD packet to send [13:51:48]OFD Sender: No OFD packet to send [13:51:53]OFD Sender: No OFD packet to send [13:51:58]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]/dev/ttyS4 opened [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 3F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 E4 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 540000000057253F (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: 18040705+1700850876=1718891581 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 3F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 E5 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 3E 34 74 66 BC EC 60 65 B8 [13:53:02]Current date/time: 20.06.2024 13:53 [13:53:02]FM_Init [13:53:02]wFMConnect [13:53:02]MH_SAM_On [13:53:02]Write to MH i2c: E0 00 00 08 00 E7 [13:53:02]Write i2c OK [13:53:02]MH_I2C_Read... [13:53:02]*** iso7816_init finished! [13:53:02]*** atr: [13:53:02]*** 0F 3B D5 18 FF 81 91 FE [13:53:02]*** 1F C3 80 73 C8 21 10 0A [13:53:02]*** 00 00 00 00 00 00 00 00 [13:53:02]*** 00 00 00 00 00 00 00 00 [13:53:02]*** 00 00 00 00 00 00 00 00 [13:53:02]*** 00 00 00 00 00 00 00 00 [13:53:02]*** 00 00 00 00 00 00 00 00 [13:53:02]*** 00 00 00 00 00 00 00 00 [13:53:02]Read from MH i2c: E0 [13:53:02]MH_I2C_Read... [13:53:02]Read from MH i2c: E0 10 00 [13:53:02]MH_I2C_Read... [13:53:02]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 [13:53:02]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [13:53:02]wFMCommunicate request_size=10 [13:53:02]MH_SAM_APDU [13:53:02]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [13:53:02]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [13:53:02]Write i2c OK [13:53:02]MH_I2C_Read... [13:53:02]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [13:53:02]Read from MH i2c: E2 [13:53:02]MH_I2C_Read... [13:53:02]Read from MH i2c: E2 03 00 [13:53:02]MH_I2C_Read... [13:53:02]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [13:53:02]RAPDU: 90 00 [13:53:02]wFMCommunicate OK [13:53:02]wFMCommunicate request_size=4 [13:53:02]MH_SAM_APDU [13:53:02]CAPDU: 80 11 00 00 [13:53:02]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [13:53:02]Write i2c OK [13:53:02]MH_I2C_Read... [13:53:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:02]Read from MH i2c: E2 [13:53:02]MH_I2C_Read... [13:53:02]Read from MH i2c: E2 17 00 [13:53:02]MH_I2C_Read... [13:53:02]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D6 [13:53:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:53:02]wFMCommunicate OK [13:53:02]Detected FM SN is 0000000000875083 [13:53:02]Stored FM SN is 0000000000875083 [13:53:02]wFMCommunicate request_size=9 [13:53:02]MH_SAM_APDU [13:53:02]CAPDU: 80 16 00 00 04 46 5F 00 00 [13:53:02]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 46 5F 00 00 00 00 37 [13:53:02]Write i2c OK [13:53:02]MH_I2C_Read... [13:53:02]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [13:53:02]Read from MH i2c: E2 [13:53:02]MH_I2C_Read... [13:53:02]Read from MH i2c: E2 03 00 [13:53:02]MH_I2C_Read... [13:53:02]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [13:53:02]RAPDU: 90 00 [13:53:02]wFMCommunicate OK [13:53:02]FM PIN OK [13:53:02]wFMCommunicate request_size=8 [13:53:02]MH_SAM_APDU [13:53:02]CAPDU: 80 14 04 00 03 02 00 01 [13:53:02]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [13:53:02]Write i2c OK [13:53:02]MH_I2C_Read... [13:53:02]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [13:53:02]Read from MH i2c: E2 [13:53:02]MH_I2C_Read... [13:53:02]Read from MH i2c: E2 03 00 [13:53:02]MH_I2C_Read... [13:53:02]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [13:53:02]RAPDU: 90 00 [13:53:02]wFMCommunicate OK [13:53:02]wFMCommunicate request_size=13 [13:53:02]MH_SAM_APDU [13:53:02]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [13:53:02]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 [13:53:02]Write i2c OK [13:53:02]MH_I2C_Read... [13:53:02]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [13:53:02]Read from MH i2c: E2 [13:53:02]MH_I2C_Read... [13:53:02]Read from MH i2c: E2 03 00 [13:53:02]MH_I2C_Read... [13:53:02]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [13:53:02]RAPDU: 90 00 [13:53:02]wFMCommunicate OK [13:53:02]wFMCommunicate request_size=4 [13:53:02]MH_SAM_APDU [13:53:02]CAPDU: 80 11 00 00 [13:53:02]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [13:53:02]Write i2c OK [13:53:02]MH_I2C_Read... [13:53:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:02]Read from MH i2c: E2 [13:53:02]MH_I2C_Read... [13:53:02]Read from MH i2c: E2 17 00 [13:53:02]MH_I2C_Read... [13:53:02]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DA [13:53:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:53:02]wFMCommunicate OK [13:53:02]DocumentArchiveInit [13:53:02]Start Httpd... [13:53:02]Httpd thread 3067587940 created [13:53:02]Write to MH i2c: 01 00 00 0F 00 0F [13:53:02]Write i2c OK [13:53:02]MH_I2C_Read... [13:53:02]Read from MH i2c: 01 [13:53:02]MH_I2C_Read... [13:53:02]Read from MH i2c: 01 07 00 [13:53:02]MH_I2C_Read... [13:53:02]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [13:53:02]MH Int Process started [13:53:02]Allocated Socket 8 [13:53:02]Bind OK [13:53:02]Listen OK [13:53:02]httpd running on port 8080 [13:53:02]Waiting for new connection... [13:53:02]OFD Sender: No OFD packet to send [13:53:07]OFD Sender: No OFD packet to send [13:53:12]OFD Sender: No OFD packet to send [13:53:17]OFD Sender: No OFD packet to send [13:53:22]OFD Sender: No OFD packet to send [13:53:23]accept exits with 9 [13:53:23]New connection [13:53:23]New thread 3067301220 created [13:53:23]Waiting for new connection... [13:53:23] Sock 9.Parse request [13:53:23]Sock 9.Check first char [13:53:23]Sock 9.First char is OK [13:53:23]request: POST /json_proto HTTP/1.0 [13:53:23]Method: POST [13:53:23]URL: /json_proto [13:53:23]Method is POST - this is cgi request [13:53:23]url: /json_proto [13:53:23]query_string will be loaded in cgi processing [13:53:23]execute_cgi json_proto POST (null) [13:53:23]execute_cgi path=json_proto method=POST [13:53:23]POST find Content-Length [13:53:23]Host: 172.17.59.68:8080 [13:53:23]Content-Length: 215 [13:53:23]Content-Type: application/json [13:53:23] [13:53:23]POST finish read [13:53:23]Found Content-Length = 215 [13:53:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:23]execute_script... [13:53:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:23]POST & json_proto [13:53:23]process_json_proto [13:53:23]json parsed OK: [13:53:23]protocol is kg_v1.0 [13:53:23]action value=get_value [13:53:23]process_action get_value [13:53:23]cmd_get_value [13:53:23]process_action get_value done [13:53:23]requested_data is exist [13:53:23]produce_requested_data [13:53:23]requested_item kkm.sn is exist - process it [13:53:23]requested_item kkm.ver is exist - process it [13:53:23]requested_item fm.sn is exist - process it [13:53:23]wFMCommunicate request_size=4 [13:53:23]MH_SAM_APDU [13:53:23]CAPDU: 80 11 00 00 [13:53:23]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [13:53:23]Write i2c OK [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: E2 [13:53:23]MH_I2C_Read... [13:53:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:23]Read from MH i2c: E2 17 00 [13:53:23]MH_I2C_Read... [13:53:23]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 35 30 38 33 90 00 DC [13:53:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:53:23]wFMCommunicate OK [13:53:23]requested_item fd.num is exist - process it [13:53:23]SAM_PROTO_GetFieldsCounters [13:53:23]wFMCommunicate request_size=4 [13:53:23]MH_SAM_APDU [13:53:23]CAPDU: 80 13 00 00 [13:53:23]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [13:53:23]Write i2c OK [13:53:23]MH_I2C_Read... [13:53:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:53:23]Read from MH i2c: E2 [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: E2 62 00 [13:53:23]MH_I2C_Read... [13:53:23]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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3C B4 01 00 0E 04 04 00 85 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 9F [13:53:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3C B4 01 00 0E 04 04 00 85 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 [13:53:23]wFMCommunicate OK [13:53:23]SAM_PROTO_GetFieldsCounters done [13:53:23]requested_item shift.num is exist - process it [13:53:23]requested_item shift.opened is exist - process it [13:53:23]req_shift_opened [13:53:23]FM_GetShiftState [13:53:23]SAM_PROTO_GetShiftState [13:53:23]wFMCommunicate request_size=4 [13:53:23]MH_SAM_APDU [13:53:23]CAPDU: 80 13 01 00 [13:53:23]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [13:53:23]Write i2c OK [13:53:23]MH_I2C_Read... [13:53:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:23]Read from MH i2c: E2 [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: E2 0E 00 [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 0A [13:53:23]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [13:53:23]wFMCommunicate OK [13:53:23]SAM_PROTO_GetShiftState done [13:53:23]FM_GetShiftState done [13:53:23]req_shift_opened done [13:53:23]requested_item shift.open_date is exist - process it [13:53:23]req_shift_open_date [13:53:23]req_shift_open_date done [13:53:23]produce_requested_data done [13:53:23]produce_requested_data return {"kkm.sn":"0300000198","kkm.ver":"001","fm.sn":"0000000000875083","fd.num":111676,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [13:53:23]process_action_free get_value [13:53:23]json_value_free [13:53:23]json_value_free done [13:53:23]process_json_proto returns [13:53:23]Send response to host [13:53:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000198","kkm.ver":"001","fm.sn":"0000000000875083","fd.num":111676,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [13:53:23]free response buf [13:53:23]execute_script done [13:53:23]execute_script returns [13:53:23]free content buf [13:53:23]Sock 9.Close socket [13:53:23]Sock 9.Thread stoped [13:53:23]accept exits with 7 [13:53:23]New connection [13:53:23]New thread 3067157860 created [13:53:23]Thread 3067301220 joined [13:53:23]Waiting for new connection... [13:53:23] Sock 7.Parse request [13:53:23]Sock 7.Check first char [13:53:23]Sock 7.First char is OK [13:53:23]request: POST /json_proto HTTP/1.0 [13:53:23]Method: POST [13:53:23]URL: /json_proto [13:53:23]Method is POST - this is cgi request [13:53:23]url: /json_proto [13:53:23]query_string will be loaded in cgi processing [13:53:23]execute_cgi json_proto POST (null) [13:53:23]execute_cgi path=json_proto method=POST [13:53:23]POST find Content-Length [13:53:23]Host: 172.17.59.68:8080 [13:53:23]Content-Length: 331 [13:53:23]Content-Type: application/json [13:53:23] [13:53:23]POST finish read [13:53:23]Found Content-Length = 331 [13:53:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:53:23]execute_script... [13:53:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:53:23]POST & json_proto [13:53:23]process_json_proto [13:53:23]json parsed OK: [13:53:23]protocol is kg_v1.0 [13:53:23]action value=get_value [13:53:23]process_action get_value [13:53:23]cmd_get_value [13:53:23]process_action get_value done [13:53:23]requested_data is exist [13:53:23]produce_requested_data [13:53:23]requested_item fm.sale.total is exist - process it [13:53:23]SAM_PROTO_GetFMData [13:53:23]wFMCommunicate request_size=4 [13:53:23]MH_SAM_APDU [13:53:23]CAPDU: 80 13 03 00 [13:53:23]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [13:53:23]Write i2c OK [13:53:23]MH_I2C_Read... [13:53:24]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:53:24]Read from MH i2c: E2 [13:53:24]MH_I2C_Read... [13:53:24]Read from MH i2c: E2 FD 00 [13:53:24]MH_I2C_Read... [13:53:24]Read from MH i2c: E2 FD 00 13 00 00 BD 04 85 04 B9 04 6E 04 04 00 33 B1 01 00 69 04 A3 00 6F 04 04 00 31 B1 01 00 B1 04 05 00 D2 DD A7 F4 01 70 04 05 00 74 1B 36 E3 01 72 04 04 00 5E C2 71 11 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 33 97 2F 35 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 74 80 6E 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 84 [13:53:24]RAPDU: BD 04 85 04 B9 04 6E 04 04 00 33 B1 01 00 69 04 A3 00 6F 04 04 00 31 B1 01 00 B1 04 05 00 D2 DD A7 F4 01 70 04 05 00 74 1B 36 E3 01 72 04 04 00 5E C2 71 11 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 33 97 2F 35 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 74 80 6E 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 [13:53:24]wFMCommunicate OK [13:53:24]wFMCommunicate request_size=4 [13:53:24]MH_SAM_APDU [13:53:24]CAPDU: 80 17 00 00 [13:53:24]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [13:53:24]Write i2c OK [13:53:24]MH_I2C_Read... [13:53:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:53:24]Read from MH i2c: E2 [13:53:24]MH_I2C_Read... [13:53:24]Read from MH i2c: E2 FD 00 [13:53:24]MH_I2C_Read... [13:53:24]Read from MH i2c: E2 FD 00 14 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E8 [13:53:24]RAPDU: F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:53:24]wFMCommunicate OK [13:53:24]wFMCommunicate request_size=4 [13:53:24]MH_SAM_APDU [13:53:24]CAPDU: 80 17 00 00 [13:53:24]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [13:53:24]Write i2c OK [13:53:24]MH_I2C_Read... [13:53:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:53:24]Read from MH i2c: E2 [13:53:24]MH_I2C_Read... [13:53:24]Read from MH i2c: E2 FD 00 [13:53:24]MH_I2C_Read... [13:53:24]Read from MH i2c: E2 FD 00 15 00 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C7 [13:53:24]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:53:24]wFMCommunicate OK [13:53:24]wFMCommunicate request_size=4 [13:53:24]MH_SAM_APDU [13:53:24]CAPDU: 80 17 00 00 [13:53:24]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [13:53:24]Write i2c OK [13:53:24]MH_I2C_Read... [13:53:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:53:25]Read from MH i2c: E2 [13:53:25]MH_I2C_Read... [13:53:25]Read from MH i2c: E2 FD 00 [13:53:25]MH_I2C_Read... [13:53:25]Read from MH i2c: E2 FD 00 16 00 00 F7 03 00 00 EF 03 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 90 00 0D [13:53:25]RAPDU: F7 03 00 00 EF 03 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 90 00 [13:53:25]wFMCommunicate OK [13:53:25]wFMCommunicate request_size=4 [13:53:25]MH_SAM_APDU [13:53:25]CAPDU: 80 17 00 00 [13:53:25]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [13:53:25]Write i2c OK [13:53:25]MH_I2C_Read... [13:53:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [13:53:25]Read from MH i2c: E2 [13:53:25]MH_I2C_Read... [13:53:25]Read from MH i2c: E2 DA 00 [13:53:25]MH_I2C_Read... [13:53:25]Read from MH i2c: E2 DA 00 17 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 78 [13:53:25]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:53:25]wFMCommunicate OK [13:53:25]SAM_PROTO_GetFMData done [13:53:25]requested_item fm.sale_refund.total is exist - process it [13:53:25]requested_item fm.buy.total is exist - process it [13:53:25]requested_item shift.sale.total is exist - process it [13:53:25]SAM_PROTO_GetShiftData [13:53:25]wFMCommunicate request_size=4 [13:53:25]MH_SAM_APDU [13:53:25]CAPDU: 80 13 02 00 [13:53:25]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [13:53:25]Write i2c OK [13:53:25]MH_I2C_Read... [13:53:25]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:53:25]Read from MH i2c: E2 [13:53:25]MH_I2C_Read... [13:53:25]Read from MH i2c: E2 FD 00 [13:53:25]MH_I2C_Read... [13:53:25]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 7E 00 00 00 69 04 9C 00 6F 04 04 00 7E 00 00 00 B1 04 03 00 63 93 B2 70 04 03 00 18 12 A3 72 04 03 00 4B 81 0F 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 9D F8 12 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 AF 94 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 9D [13:53:25]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 7E 00 00 00 69 04 9C 00 6F 04 04 00 7E 00 00 00 B1 04 03 00 63 93 B2 70 04 03 00 18 12 A3 72 04 03 00 4B 81 0F 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 9D F8 12 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 AF 94 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 [13:53:25]wFMCommunicate OK [13:53:25]wFMCommunicate request_size=4 [13:53:25]MH_SAM_APDU [13:53:25]CAPDU: 80 17 00 00 [13:53:25]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [13:53:25]Write i2c OK [13:53:25]MH_I2C_Read... [13:53:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:53:26]Read from MH i2c: E2 [13:53:26]MH_I2C_Read... [13:53:26]Read from MH i2c: E2 FD 00 [13:53:26]MH_I2C_Read... [13:53:26]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 [13:53:26]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [13:53:26]wFMCommunicate OK [13:53:26]wFMCommunicate request_size=4 [13:53:26]MH_SAM_APDU [13:53:26]CAPDU: 80 17 00 00 [13:53:26]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [13:53:26]Write i2c OK [13:53:26]MH_I2C_Read... [13:53:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:53:26]Read from MH i2c: E2 [13:53:26]MH_I2C_Read... [13:53:26]Read from MH i2c: E2 FD 00 [13:53:26]MH_I2C_Read... [13:53:26]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 [13:53:26]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [13:53:26]wFMCommunicate OK [13:53:26]wFMCommunicate request_size=4 [13:53:26]MH_SAM_APDU [13:53:26]CAPDU: 80 17 00 00 [13:53:26]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [13:53:26]Write i2c OK [13:53:26]MH_I2C_Read... [13:53:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:53:26]Read from MH i2c: E2 [13:53:26]MH_I2C_Read... [13:53:26]Read from MH i2c: E2 FD 00 [13:53:26]MH_I2C_Read... [13:53:26]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 [13:53:26]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [13:53:26]wFMCommunicate OK [13:53:26]wFMCommunicate request_size=4 [13:53:26]MH_SAM_APDU [13:53:26]CAPDU: 80 17 00 00 [13:53:26]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [13:53:26]Write i2c OK [13:53:26]MH_I2C_Read... [13:53:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [13:53:26]Read from MH i2c: E2 [13:53:26]MH_I2C_Read... [13:53:26]Read from MH i2c: E2 CC 00 [13:53:26]MH_I2C_Read... [13:53:26]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 [13:53:26]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:53:26]wFMCommunicate OK [13:53:26]SAM_PROTO_GetShiftData done [13:53:26]requested_item shift.sale.total_cash is exist - process it [13:53:27]requested_item shift.sale_refund.total is exist - process it [13:53:27]requested_item shift.sale_refund.total_cash is exist - process it [13:53:27]requested_item shift.buy.total is exist - process it [13:53:27]requested_item shift.buy.total_cash is exist - process it [13:53:27]produce_requested_data done [13:53:27]produce_requested_data return {"fm.sale.total":83996092.98,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":117031.39,"shift.sale.total_cash":106870.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [13:53:27]process_action_free get_value [13:53:27]json_value_free [13:53:27]json_value_free done [13:53:27]process_json_proto returns [13:53:27]Send response to host [13:53:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":83996092.98,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":117031.39,"shift.sale.total_cash":106870.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [13:53:27]free response buf [13:53:27]execute_script done [13:53:27]execute_script returns [13:53:27]free content buf [13:53:27]Sock 7.Close socket [13:53:27]Sock 7.Thread stoped [13:53:27]OFD Sender: No OFD packet to send [13:53:32]OFD Sender: No OFD packet to send [13:53:37]OFD Sender: No OFD packet to send [13:53:42]OFD Sender: No OFD packet to send [13:53:47]OFD Sender: No OFD packet to send [13:53:52]OFD Sender: No OFD packet to send [13:53:57]OFD Sender: No OFD packet to send [13:54:02]OFD Sender: No OFD packet to send [13:54:07]OFD Sender: No OFD packet to send [13:54:12]OFD Sender: No OFD packet to send [13:54:17]OFD Sender: No OFD packet to send [13:54:22]OFD Sender: No OFD packet to send [13:54:27]OFD Sender: No OFD packet to send [13:54:32]OFD Sender: No OFD packet to send [13:54:37]OFD Sender: No OFD packet to send [13:54:42]OFD Sender: No OFD packet to send [13:54:47]OFD Sender: No OFD packet to send [13:54:52]OFD Sender: No OFD packet to send [13:54:57]OFD Sender: No OFD packet to send [13:55:02]OFD Sender: No OFD packet to send [13:55:07]OFD Sender: No OFD packet to send [13:55:12]OFD Sender: No OFD packet to send [13:55:17]OFD Sender: No OFD packet to send [13:55:22]OFD Sender: No OFD packet to send [13:55:27]OFD Sender: No OFD packet to send [13:55:32]OFD Sender: No OFD packet to send [13:55:37]OFD Sender: No OFD packet to send [13:55:42]OFD Sender: No OFD packet to send [13:55:47]OFD Sender: No OFD packet to send [13:55:52]OFD Sender: No OFD packet to send [13:55:57]OFD Sender: No OFD packet to send [13:56:02]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 3F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 E4 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 540000000057253F (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: 18040922+1700850876=1718891798 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 3F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 E5 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 17 35 74 66 BC EC 60 65 92 [13:56:39]Current date/time: 20.06.2024 13:56 [13:56:39]FM_Init [13:56:39]wFMConnect [13:56:39]MH_SAM_On [13:56:39]Write to MH i2c: E0 00 00 08 00 E7 [13:56:39]Write i2c OK [13:56:39]MH_I2C_Read... [13:56:39]*** iso7816_init finished! [13:56:39]*** atr: [13:56:39]*** 0F 3B D5 18 FF 81 91 FE [13:56:39]*** 1F C3 80 73 C8 21 10 0A [13:56:39]*** 00 00 00 00 00 00 00 00 [13:56:39]*** 00 00 00 00 00 00 00 00 [13:56:39]*** 00 00 00 00 00 00 00 00 [13:56:39]*** 00 00 00 00 00 00 00 00 [13:56:39]*** 00 00 00 00 00 00 00 00 [13:56:39]*** 00 00 00 00 00 00 00 00 [13:56:39]Read from MH i2c: E0 [13:56:39]MH_I2C_Read... [13:56:39]Read from MH i2c: E0 10 00 [13:56:39]MH_I2C_Read... [13:56:39]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [13:56:39]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [13:56:39]wFMCommunicate request_size=10 [13:56:39]MH_SAM_APDU [13:56:39]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [13:56:39]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [13:56:39]Write i2c OK [13:56:39]MH_I2C_Read... [13:56:39]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [13:56:39]Read from MH i2c: E2 [13:56:39]MH_I2C_Read... [13:56:39]Read from MH i2c: E2 03 00 [13:56:39]MH_I2C_Read... [13:56:39]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [13:56:39]RAPDU: 90 00 [13:56:39]wFMCommunicate OK [13:56:39]wFMCommunicate request_size=4 [13:56:39]MH_SAM_APDU [13:56:39]CAPDU: 80 11 00 00 [13:56:39]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [13:56:39]Write i2c OK [13:56:39]MH_I2C_Read... [13:56:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:39]Read from MH i2c: E2 [13:56:39]MH_I2C_Read... [13:56:39]Read from MH i2c: E2 17 00 [13:56:39]MH_I2C_Read... [13:56:39]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D6 [13:56:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:56:39]wFMCommunicate OK [13:56:39]Detected FM SN is 0000000000875083 [13:56:39]Stored FM SN is 0000000000875083 [13:56:39]wFMCommunicate request_size=9 [13:56:39]MH_SAM_APDU [13:56:39]CAPDU: 80 16 00 00 04 46 5F 00 00 [13:56:39]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 46 5F 00 00 00 00 37 [13:56:39]Write i2c OK [13:56:39]MH_I2C_Read... [13:56:39]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [13:56:39]Read from MH i2c: E2 [13:56:39]MH_I2C_Read... [13:56:39]Read from MH i2c: E2 03 00 [13:56:39]MH_I2C_Read... [13:56:39]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [13:56:39]RAPDU: 90 00 [13:56:39]wFMCommunicate OK [13:56:39]FM PIN OK [13:56:39]wFMCommunicate request_size=8 [13:56:39]MH_SAM_APDU [13:56:39]CAPDU: 80 14 04 00 03 02 00 01 [13:56:39]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [13:56:39]Write i2c OK [13:56:39]MH_I2C_Read... [13:56:39]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [13:56:39]Read from MH i2c: E2 [13:56:39]MH_I2C_Read... [13:56:39]Read from MH i2c: E2 03 00 [13:56:39]MH_I2C_Read... [13:56:39]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [13:56:39]RAPDU: 90 00 [13:56:39]wFMCommunicate OK [13:56:39]wFMCommunicate request_size=13 [13:56:39]MH_SAM_APDU [13:56:39]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [13:56:39]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [13:56:39]Write i2c OK [13:56:39]MH_I2C_Read... [13:56:39]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [13:56:39]Read from MH i2c: E2 [13:56:39]MH_I2C_Read... [13:56:39]Read from MH i2c: E2 03 00 [13:56:39]MH_I2C_Read... [13:56:39]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [13:56:39]RAPDU: 90 00 [13:56:39]wFMCommunicate OK [13:56:39]wFMCommunicate request_size=4 [13:56:39]MH_SAM_APDU [13:56:39]CAPDU: 80 11 00 00 [13:56:39]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [13:56:39]Write i2c OK [13:56:39]MH_I2C_Read... [13:56:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:39]Read from MH i2c: E2 [13:56:39]MH_I2C_Read... [13:56:39]Read from MH i2c: E2 17 00 [13:56:39]MH_I2C_Read... [13:56:39]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DA [13:56:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:56:39]wFMCommunicate OK [13:56:39]DocumentArchiveInit [13:56:39]Start Httpd... [13:56:39]Httpd thread 3067039076 created [13:56:39]Write to MH i2c: 01 00 00 0F 00 0F [13:56:39]Write i2c OK [13:56:39]MH_I2C_Read... [13:56:39]Read from MH i2c: 01 [13:56:39]MH_I2C_Read... [13:56:39]Read from MH i2c: 01 07 00 [13:56:39]MH_I2C_Read... [13:56:39]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [13:56:39]MH Int Process started [13:56:39]Allocated Socket 6 [13:56:39]Bind OK [13:56:39]Listen OK [13:56:39]httpd running on port 8080 [13:56:39]Waiting for new connection... [13:56:39]OFD Sender: No OFD packet to send [13:56:44]OFD Sender: No OFD packet to send [13:56:49]OFD Sender: No OFD packet to send [13:56:54]OFD Sender: No OFD packet to send [13:56:59]OFD Sender: No OFD packet to send [13:57:04]OFD Sender: No OFD packet to send [13:57:09]OFD Sender: No OFD packet to send [13:57:14]OFD Sender: No OFD packet to send [13:57:19]OFD Sender: No OFD packet to send [13:57:24]OFD Sender: No OFD packet to send [13:57:29]OFD Sender: No OFD packet to send [13:57:34]OFD Sender: No OFD packet to send [13:57:39]OFD Sender: No OFD packet to send [13:57:44]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]/dev/ttyS4 opened [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 3F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 E4 [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 540000000057253F (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: 18041029+1700850876=1718891905 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 3F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 E5 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 82 35 74 66 BC EC 60 65 FD [13:58:26]Current date/time: 20.06.2024 13:58 [13:58:26]FM_Init [13:58:26]wFMConnect [13:58:26]MH_SAM_On [13:58:26]Write to MH i2c: E0 00 00 08 00 E7 [13:58:26]Write i2c OK [13:58:26]MH_I2C_Read... [13:58:26]*** iso7816_init finished! [13:58:26]*** atr: [13:58:26]*** 0F 3B D5 18 FF 81 91 FE [13:58:26]*** 1F C3 80 73 C8 21 10 0A [13:58:26]*** 00 00 00 00 00 00 00 00 [13:58:26]*** 00 00 00 00 00 00 00 00 [13:58:26]*** 00 00 00 00 00 00 00 00 [13:58:26]*** 00 00 00 00 00 00 00 00 [13:58:26]*** 00 00 00 00 00 00 00 00 [13:58:26]*** 00 00 00 00 00 00 00 00 [13:58:26]Read from MH i2c: E0 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: E0 10 00 [13:58:26]MH_I2C_Read... [13:58:26]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 [13:58:26]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [13:58:26]wFMCommunicate request_size=10 [13:58:26]MH_SAM_APDU [13:58:26]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [13:58:26]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [13:58:26]Write i2c OK [13:58:26]MH_I2C_Read... [13:58:26]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [13:58:26]Read from MH i2c: E2 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: E2 03 00 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [13:58:26]RAPDU: 90 00 [13:58:26]wFMCommunicate OK [13:58:26]wFMCommunicate request_size=4 [13:58:26]MH_SAM_APDU [13:58:26]CAPDU: 80 11 00 00 [13:58:26]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [13:58:26]Write i2c OK [13:58:26]MH_I2C_Read... [13:58:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:26]Read from MH i2c: E2 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: E2 17 00 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D6 [13:58:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:58:26]wFMCommunicate OK [13:58:26]Detected FM SN is 0000000000875083 [13:58:26]Stored FM SN is 0000000000875083 [13:58:26]wFMCommunicate request_size=9 [13:58:26]MH_SAM_APDU [13:58:26]CAPDU: 80 16 00 00 04 46 5F 00 00 [13:58:26]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 46 5F 00 00 00 00 37 [13:58:26]Write i2c OK [13:58:26]MH_I2C_Read... [13:58:26]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [13:58:26]Read from MH i2c: E2 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: E2 03 00 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [13:58:26]RAPDU: 90 00 [13:58:26]wFMCommunicate OK [13:58:26]FM PIN OK [13:58:26]wFMCommunicate request_size=8 [13:58:26]MH_SAM_APDU [13:58:26]CAPDU: 80 14 04 00 03 02 00 01 [13:58:26]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [13:58:26]Write i2c OK [13:58:26]MH_I2C_Read... [13:58:26]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [13:58:26]Read from MH i2c: E2 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: E2 03 00 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [13:58:26]RAPDU: 90 00 [13:58:26]wFMCommunicate OK [13:58:26]wFMCommunicate request_size=13 [13:58:26]MH_SAM_APDU [13:58:26]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [13:58:26]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 [13:58:26]Write i2c OK [13:58:26]MH_I2C_Read... [13:58:26]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [13:58:26]Read from MH i2c: E2 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: E2 03 00 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [13:58:26]RAPDU: 90 00 [13:58:26]wFMCommunicate OK [13:58:26]wFMCommunicate request_size=4 [13:58:26]MH_SAM_APDU [13:58:26]CAPDU: 80 11 00 00 [13:58:26]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [13:58:26]Write i2c OK [13:58:26]MH_I2C_Read... [13:58:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:26]Read from MH i2c: E2 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: E2 17 00 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DA [13:58:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:58:26]wFMCommunicate OK [13:58:26]DocumentArchiveInit [13:58:26]Start Httpd... [13:58:26]Httpd thread 3067493732 created [13:58:26]Write to MH i2c: 01 00 00 0F 00 0F [13:58:26]Write i2c OK [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: 01 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: 01 07 00 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [13:58:26]MH Int Process started [13:58:26]Allocated Socket 8 [13:58:26]Bind OK [13:58:26]Listen OK [13:58:26]httpd running on port 8080 [13:58:26]Waiting for new connection... [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 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 3F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 E4 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** 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 540000000057253F (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: 18041146+1700850876=1718892022 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 3F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 E5 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 F6 35 74 66 BC EC 60 65 71 [14:00:22]Current date/time: 20.06.2024 14:00 [14:00:22]FM_Init [14:00:22]wFMConnect [14:00:22]MH_SAM_On [14:00:22]Write to MH i2c: E0 00 00 08 00 E7 [14:00:22]Write i2c OK [14:00:22]MH_I2C_Read... [14:00:22]*** iso7816_init finished! [14:00:22]*** atr: [14:00:22]*** 0F 3B D5 18 FF 81 91 FE [14:00:22]*** 1F C3 80 73 C8 21 10 0A [14:00:22]*** 00 00 00 00 00 00 00 00 [14:00:22]Read from MH i2c: E0 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: E0 10 00 [14:00:22]MH_I2C_Read... [14:00:22]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 [14:00:22]*** 00 00 00 00 00 00 00 00 [14:00:22]*** 00 00 00 00 00 00 00 00 [14:00:22]*** 00 00 00 00 00 00 00 00 [14:00:22]*** 00 00 00 00 00 00 00 00 [14:00:22]*** 00 00 00 00 00 00 00 00 [14:00:22]*** FLAG_PRN_PAP1 set [14:00:22]*** FLAG_PRN_PAP2 set [14:00:22]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [14:00:22]wFMCommunicate request_size=10 [14:00:22]MH_SAM_APDU [14:00:22]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [14:00:22]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [14:00:22]Write i2c OK [14:00:22]MH_I2C_Read... [14:00:22]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [14:00:22]Read from MH i2c: E2 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: E2 03 00 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [14:00:22]RAPDU: 90 00 [14:00:22]wFMCommunicate OK [14:00:22]wFMCommunicate request_size=4 [14:00:22]MH_SAM_APDU [14:00:22]CAPDU: 80 11 00 00 [14:00:22]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [14:00:22]Write i2c OK [14:00:22]MH_I2C_Read... [14:00:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:22]Read from MH i2c: E2 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: E2 17 00 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D6 [14:00:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:00:22]wFMCommunicate OK [14:00:22]Detected FM SN is 0000000000875083 [14:00:22]Stored FM SN is 0000000000875083 [14:00:22]wFMCommunicate request_size=9 [14:00:22]MH_SAM_APDU [14:00:22]CAPDU: 80 16 00 00 04 46 5F 00 00 [14:00:22]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 46 5F 00 00 00 00 37 [14:00:22]Write i2c OK [14:00:22]MH_I2C_Read... [14:00:22]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [14:00:22]Read from MH i2c: E2 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: E2 03 00 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [14:00:22]RAPDU: 90 00 [14:00:22]wFMCommunicate OK [14:00:22]FM PIN OK [14:00:22]wFMCommunicate request_size=8 [14:00:22]MH_SAM_APDU [14:00:22]CAPDU: 80 14 04 00 03 02 00 01 [14:00:22]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [14:00:22]Write i2c OK [14:00:22]MH_I2C_Read... [14:00:22]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [14:00:22]Read from MH i2c: E2 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: E2 03 00 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [14:00:22]RAPDU: 90 00 [14:00:22]wFMCommunicate OK [14:00:22]wFMCommunicate request_size=13 [14:00:22]MH_SAM_APDU [14:00:22]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [14:00:22]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 [14:00:22]Write i2c OK [14:00:22]MH_I2C_Read... [14:00:22]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [14:00:22]Read from MH i2c: E2 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: E2 03 00 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [14:00:22]RAPDU: 90 00 [14:00:22]wFMCommunicate OK [14:00:22]wFMCommunicate request_size=4 [14:00:22]MH_SAM_APDU [14:00:22]CAPDU: 80 11 00 00 [14:00:22]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [14:00:22]Write i2c OK [14:00:22]MH_I2C_Read... [14:00:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:22]Read from MH i2c: E2 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: E2 17 00 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DA [14:00:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:00:22]wFMCommunicate OK [14:00:22]DocumentArchiveInit [14:00:22]Start Httpd... [14:00:22]Httpd thread 3067223396 created [14:00:22]Write to MH i2c: 01 00 00 0F 00 0F [14:00:22]Write i2c OK [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: 01 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: 01 07 00 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: 01 07 00 0F 00 00 03 00 00 00 FF 0F 27 [14:00:22]MH Int Process started [14:00:22]Allocated Socket 8 [14:00:22]Bind OK [14:00:22]Listen OK [14:00:22]httpd running on port 8080 [14:00:22]Waiting for new connection... [14:00:22]OFD Sender: No OFD packet to send [14:00:27]OFD Sender: No OFD packet to send [14:00:30]int [14:00:30]Write to MH i2c: 01 00 00 10 00 10 [14:00:30]*** FLAG_PRN_PAP2 reset [14:00:30]Write i2c OK [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: 01 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: 01 07 00 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: 01 07 00 10 00 00 01 00 00 00 FF 0F 26 [14:00:30]state=0 [14:00:30]No paper [14:00:31]int [14:00:31]Write to MH i2c: 01 00 00 11 00 11 [14:00:31]*** FLAG_PRN_PAP1 reset [14:00:31]Write i2c OK [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: 01 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: 01 07 00 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: 01 07 00 11 00 00 00 00 00 00 FF 0F 26 [14:00:31]state=0 [14:00:31]int [14:00:31]Write to MH i2c: 01 00 00 12 00 12 [14:00:31]*** FLAG_PRN_PAP1 set [14:00:31]Write i2c OK [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: 01 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: 01 07 00 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: 01 07 00 12 00 00 01 00 00 00 FF 0F 28 [14:00:31]state=0 [14:00:31]No paper [14:00:31]int [14:00:31]Write to MH i2c: 01 00 00 13 00 13 [14:00:31]*** FLAG_PRN_PAP2 set [14:00:31]Write i2c OK [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: 01 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: 01 07 00 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: 01 07 00 13 00 00 03 00 00 00 FF 0F 2B [14:00:31]state=0 [14:00:31]No paper [14:00:31]Cover opened [14:00:32]OFD Sender: No OFD packet to send [14:00:32]int [14:00:32]Write to MH i2c: 01 00 00 14 00 14 [14:00:32]*** FLAG_PRN_PAP2 reset [14:00:32]Write i2c OK [14:00:32]MH_I2C_Read... [14:00:32]Read from MH i2c: 01 [14:00:32]MH_I2C_Read... [14:00:32]Read from MH i2c: 01 07 00 [14:00:32]MH_I2C_Read... [14:00:32]Read from MH i2c: 01 07 00 14 00 00 01 00 00 00 FF 0F 2A [14:00:32]state=3 [14:00:32]No paper [14:00:32]Cover closed [14:00:33]int [14:00:33]Write to MH i2c: 01 00 00 15 00 15 [14:00:33]*** FLAG_PRN_PAP2 set [14:00:33]Write i2c OK [14:00:33]MH_I2C_Read... [14:00:33]Read from MH i2c: 01 [14:00:33]MH_I2C_Read... [14:00:33]Read from MH i2c: 01 07 00 [14:00:33]MH_I2C_Read... [14:00:33]Read from MH i2c: 01 07 00 15 00 00 03 00 00 00 FF 0F 2D [14:00:33]state=0 [14:00:33]No paper [14:00:33]Cover opened [14:00:34]int [14:00:34]Write to MH i2c: 01 00 00 16 00 16 [14:00:34]*** FLAG_PRN_PAP2 reset [14:00:34]Write i2c OK [14:00:34]MH_I2C_Read... [14:00:34]Read from MH i2c: 01 [14:00:34]MH_I2C_Read... [14:00:34]Read from MH i2c: 01 07 00 [14:00:34]MH_I2C_Read... [14:00:34]Read from MH i2c: 01 07 00 16 00 00 01 00 00 00 FF 0F 2C [14:00:34]state=3 [14:00:34]No paper [14:00:34]Cover closed [14:00:34]int [14:00:34]Write to MH i2c: 01 00 00 17 00 17 [14:00:34]*** FLAG_PRN_PAP1 reset [14:00:34]Write i2c OK [14:00:34]MH_I2C_Read... [14:00:34]Read from MH i2c: 01 [14:00:34]MH_I2C_Read... [14:00:34]Read from MH i2c: 01 07 00 [14:00:34]MH_I2C_Read... [14:00:34]Read from MH i2c: 01 07 00 17 00 00 00 00 00 00 FF 0F 2C [14:00:34]state=0 [14:00:37]OFD Sender: No OFD packet to send [14:00:42]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 3F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 E4 [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 540000000057253F (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: 18041202+1700850876=1718892078 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 3F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 E5 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 2F 36 74 66 BC EC 60 65 AB [14:01:19]Current date/time: 20.06.2024 14:01 [14:01:19]FM_Init [14:01:19]wFMConnect [14:01:19]MH_SAM_On [14:01:19]Write to MH i2c: E0 00 00 08 00 E7 [14:01:19]Write i2c OK [14:01:19]MH_I2C_Read... [14:01:19]*** iso7816_init finished! [14:01:19]*** atr: [14:01:19]*** 0F 3B D5 18 FF 81 91 FE [14:01:19]*** 1F C3 80 73 C8 21 10 0A [14:01:19]*** 00 00 00 00 00 00 00 00 [14:01:19]*** 00 00 00 00 00 00 00 00 [14:01:19]*** 00 00 00 00 00 00 00 00 [14:01:19]*** 00 00 00 00 00 00 00 00 [14:01:19]*** 00 00 00 00 00 00 00 00 [14:01:19]*** 00 00 00 00 00 00 00 00 [14:01:19]Read from MH i2c: E0 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: E0 10 00 [14:01:19]MH_I2C_Read... [14:01:19]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 [14:01:19]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [14:01:19]wFMCommunicate request_size=10 [14:01:19]MH_SAM_APDU [14:01:19]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [14:01:19]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [14:01:19]Write i2c OK [14:01:19]MH_I2C_Read... [14:01:19]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [14:01:19]Read from MH i2c: E2 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: E2 03 00 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [14:01:19]RAPDU: 90 00 [14:01:19]wFMCommunicate OK [14:01:19]wFMCommunicate request_size=4 [14:01:19]MH_SAM_APDU [14:01:19]CAPDU: 80 11 00 00 [14:01:19]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [14:01:19]Write i2c OK [14:01:19]MH_I2C_Read... [14:01:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:19]Read from MH i2c: E2 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: E2 17 00 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D6 [14:01:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:01:19]wFMCommunicate OK [14:01:19]Detected FM SN is 0000000000875083 [14:01:19]Stored FM SN is 0000000000875083 [14:01:19]wFMCommunicate request_size=9 [14:01:19]MH_SAM_APDU [14:01:19]CAPDU: 80 16 00 00 04 46 5F 00 00 [14:01:19]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 46 5F 00 00 00 00 37 [14:01:19]Write i2c OK [14:01:19]MH_I2C_Read... [14:01:19]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [14:01:19]Read from MH i2c: E2 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: E2 03 00 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [14:01:19]RAPDU: 90 00 [14:01:19]wFMCommunicate OK [14:01:19]FM PIN OK [14:01:19]wFMCommunicate request_size=8 [14:01:19]MH_SAM_APDU [14:01:19]CAPDU: 80 14 04 00 03 02 00 01 [14:01:19]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [14:01:19]Write i2c OK [14:01:19]MH_I2C_Read... [14:01:19]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [14:01:19]Read from MH i2c: E2 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: E2 03 00 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [14:01:19]RAPDU: 90 00 [14:01:19]wFMCommunicate OK [14:01:19]wFMCommunicate request_size=13 [14:01:19]MH_SAM_APDU [14:01:19]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [14:01:19]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 [14:01:19]Write i2c OK [14:01:19]MH_I2C_Read... [14:01:19]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [14:01:19]Read from MH i2c: E2 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: E2 03 00 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [14:01:19]RAPDU: 90 00 [14:01:19]wFMCommunicate OK [14:01:19]wFMCommunicate request_size=4 [14:01:19]MH_SAM_APDU [14:01:19]CAPDU: 80 11 00 00 [14:01:19]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [14:01:19]Write i2c OK [14:01:19]MH_I2C_Read... [14:01:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:19]Read from MH i2c: E2 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: E2 17 00 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DA [14:01:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:01:19]wFMCommunicate OK [14:01:19]DocumentArchiveInit [14:01:19]Start Httpd... [14:01:19]Httpd thread 3067387236 created [14:01:19]Write to MH i2c: 01 00 00 0F 00 0F [14:01:19]Write i2c OK [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: 01 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: 01 07 00 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [14:01:19]MH Int Process started [14:01:19]Allocated Socket 8 [14:01:19]Bind OK [14:01:19]Listen OK [14:01:19]httpd running on port 8080 [14:01:19]Waiting for new connection... [14:01:19]OFD Sender: No OFD packet to send [14:01:24]OFD Sender: No OFD packet to send [14:01:29]OFD Sender: No OFD packet to send [14:01:34]OFD Sender: No OFD packet to send [14:01:39]OFD Sender: No OFD packet to send [14:01:44]OFD Sender: No OFD packet to send [14:01:49]OFD Sender: No OFD packet to send [14:01:54]OFD Sender: No OFD packet to send [14:01:59]OFD Sender: No OFD packet to send [14:02:04]OFD Sender: No OFD packet to send [14:02:09]OFD Sender: No OFD packet to send [14:02:14]OFD Sender: No OFD packet to send [14:02:19]OFD Sender: No OFD packet to send [14:02:24]OFD Sender: No OFD packet to send [14:02:29]OFD Sender: No OFD packet to send [14:02:34]OFD Sender: No OFD packet to send [14:02:39]OFD Sender: No OFD packet to send [14:02:44]OFD Sender: No OFD packet to send [14:02:49]OFD Sender: No OFD packet to send [14:02:54]OFD Sender: No OFD packet to send [14:02:59]OFD Sender: No OFD packet to send [14:03:04]OFD Sender: No OFD packet to send [14:03:09]OFD Sender: No OFD packet to send [14:03:14]OFD Sender: No OFD packet to send [14:03:19]OFD Sender: No OFD packet to send [14:03:24]OFD Sender: No OFD packet to send [14:03:29]OFD Sender: No OFD packet to send [14:03:34]OFD Sender: No OFD packet to send [14:03:39]OFD Sender: No OFD packet to send [14:03:44]OFD Sender: No OFD packet to send [14:03:49]OFD Sender: No OFD packet to send [14:03:54]OFD Sender: No OFD packet to send [14:03:59]OFD Sender: No OFD packet to send [14:04:04]OFD Sender: No OFD packet to send [14:04:09]OFD Sender: No OFD packet to send [14:04:14]OFD Sender: No OFD packet to send [14:04:19]OFD Sender: No OFD packet to send [14:04:24]OFD Sender: No OFD packet to send [14:04:29]OFD Sender: No OFD packet to send [14:04:34]OFD Sender: No OFD packet to send [14:04:39]OFD Sender: No OFD packet to send [14:04:44]OFD Sender: No OFD packet to send [14:04:49]OFD Sender: No OFD packet to send [14:04:54]OFD Sender: No OFD packet to send [14:04:59]OFD Sender: No OFD packet to send [14:05:04]OFD Sender: No OFD packet to send [14:05:09]OFD Sender: No OFD packet to send [14:05:14]OFD Sender: No OFD packet to send [14:05:19]OFD Sender: No OFD packet to send [14:05:24]OFD Sender: No OFD packet to send [14:05:29]OFD Sender: No OFD packet to send [14:05:34]OFD Sender: No OFD packet to send [14:05:39]OFD Sender: No OFD packet to send [14:05:44]OFD Sender: No OFD packet to send [14:05:49]OFD Sender: No OFD packet to send [00:00:13] *** EcrCore started. Build 196 *** [00:00:13]/dev/ttyS4 opened [00:00:13]MH_InterfaceInit /dev/i2c-1 [00:00:13]Malloc ok [00:00:13]MH_GetMetrics [00:00:13]Write to MH i2c: 00 00 00 01 00 00 [00:00:13]Write i2c OK [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: 00 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: 00 29 00 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 3F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 E4 [00:00:13]Are we in boot? [00:00:13]We are in boot - try to switch [00:00:13]Write to MH i2c: A0 00 00 02 00 A1 [00:00:13]Write i2c OK [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: A0 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: A0 01 00 [00:00:13]MH_I2C_Read... [00:00:13]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:13]*** [00:00:13]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:13]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:13]*** Waiting for read because exit forced [00:00:13]*** 10 ms more... [00:00:13]*** MH1903S init start (LINUX_LIGHT) [00:00:13]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:13]*** Serial: 3139303353513838 540000000057253F (1903SQ88T) [00:00:13]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:13]*** step 0: 5000 (2650, 2350 REF) [00:00:13]*** step 1: 4835 (2500, 2335 REF) [00:00:13]*** step 2: 4676 (2440, 2236 REF) [00:00:13]*** step 3: 4523 (2280, 2243 REF) [00:00:13]*** step 4: 4376 (2160, 2216 REF) [00:00:13]*** step 5: 4235 (2050, 2185 REF) [00:00:13]*** step 6: 4098 (1950, 2148 REF) [00:00:13]*** step 7: 3967 (1870, 2097 REF) [00:00:13]*** step 8: 3840 (1828, 2012 REF) [00:00:13]*** step 9: 3719 (1728, 1991 REF) [00:00:13]*** step 10: 3601 (1675, 1926 REF) [00:00:13]*** step 11: 3488 (1635, 1853 REF) [00:00:13]*** step 12: 3379 (1595, 1784 REF) [00:00:13]*** step 13: 3275 (1565, 1710 REF) [00:00:13]*** step 14: 3174 (1543, 1631 REF) [00:00:13]*** step 15: 3077 (1523, 1554 REF) [00:00:13]*** step 16: 2983 (1503, 1480 REF) [00:00:13]*** step 17: 2893 (1486, 1407 REF) [00:00:13]*** step 18: 2806 (1466, 1340 REF) [00:00:13]*** step 19: 2723 (1426, 1297 REF) [00:00:13]*** step 20: 2642 (1406, 1236 REF) [00:00:13]*** step 21: 2565 (1384, 1181 REF) [00:00:13]*** step 22: 2490 (1364, 1126 REF) [00:00:13]*** step 23: 2418 (1344, 1074 REF) [00:00:13]*** step 24: 2349 (1322, 1027 REF) [00:00:13]*** step 25: 2283 (1302, 981 REF) [00:00:13]*** step 26: 2218 (1282, 936 REF) [00:00:13]*** step 27: 2157 (1262, 895 REF) [00:00:13]*** step 28: 2097 (1242, 855 REF) [00:00:13]*** step 29: 2040 (1222, 818 REF) [00:00:13]*** step 30: 1985 (1202, 783 REF) [00:00:13]*** step 31: 1932 (1191, 741 REF) [00:00:13]*** step 32: 1880 (1181, 699 REF) [00:00:13]*** step 33: 1831 (1171, 660 REF) [00:00:13]*** step 34: 1784 (1161, 623 REF) [00:00:13]*** step 35: 1738 (1151, 587 REF) [00:00:13]*** step 36: 1694 (1141, 553 REF) [00:00:13]*** step 37: 1652 (1131, 521 REF) [00:00:13]*** step 38: 1611 (1121, 490 REF) [00:00:13]*** step 39: 1572 (1111, 461 REF) [00:00:13]*** step 40: 1534 (1103, 431 REF) [00:00:13]*** step 41: 1497 (1093, 404 REF) [00:00:13]*** step 42: 1462 (1083, 379 REF) [00:00:13]*** step 43: 1428 (1073, 355 REF) [00:00:13]*** step 44: 1396 (1063, 333 REF) [00:00:13]*** step 45: 1365 (1053, 312 REF) [00:00:13]*** step 46: 1334 (1043, 291 REF) [00:00:13]*** step 47: 1305 (1033, 272 REF) [00:00:13]*** step 48: 1277 (1023, 254 REF) [00:00:13]*** step 49: 1250 (1013, 237 REF) [00:00:13]*** step 50: 1224 (990, 234 REF) [00:00:13]*** step 51: 1199 (980, 219 REF) [00:00:13]*** step 52: 1175 (970, 205 REF) [00:00:13]*** step 53: 1152 (960, 192 REF) [00:00:13]*** step 54: 1130 (950, 180 REF) [00:00:13]*** step 55: 1108 (940, 168 REF) [00:00:13]*** step 56: 1088 (930, 158 REF) [00:00:13]*** step 57: 1068 (920, 148 REF) [00:00:13]*** step 58: 1049 (910, 139 REF) [00:00:13]*** step 59: 1030 (900, 130 REF) [00:00:13]*** step 60: 1012 (890, 122 REF) [00:00:13]*** step 61: 995 (880, 115 REF) [00:00:13]*** step 62: 979 (870, 109 REF) [00:00:13]*** step 63: 963 (860, 103 REF) [00:00:13]*** step 64: 948 (850, 98 REF) [00:00:13]*** step 65: 933 (840, 93 REF) [00:00:13]*** step 66: 919 (830, 89 REF) [00:00:13]*** step 67: 905 (820, 85 REF) [00:00:13]*** step 68: 892 (810, 82 REF) [00:00:13]*** step 69: 879 (800, 79 REF) [00:00:13]*** step 70: 867 (790, 77 REF) [00:00:13]*** step 71: 855 (780, 75 REF) [00:00:13]*** step 72: 844 (770, 74 REF) [00:00:13]*** step 73: 833 (760, 73 REF) [00:00:13]*** step 74: 822 (750, 72 REF) [00:00:13]*** step 75: 812 (740, 72 REF) [00:00:13]*** step 76: 803 (730, 73 REF) [00:00:13]*** step 77: 793 (720, 73 REF) [00:00:13]*** step 78: 784 (710, 74 REF) [00:00:13]*** step 79: 776 (700, 76 REF) [00:00:13]*** step 80: 767 (690, 77 REF) [00:00:13]*** step 81: 759 (680, 79 REF) [00:00:13]*** step 82: 751 (670, 81 REF) [00:00:13]*** step 83: 744 (660, 84 REF) [00:00:13]*** step 84: 737 (650, 87 REF) [00:00:13]*** step 85: 730 (640, 90 REF) [00:00:13]*** step 86: 723 (630, 93 REF) [00:00:13]*** step 87: 717 (620, 97 REF) [00:00:13]*** step 88: 710 (610, 100 REF) [00:00:13]*** step 89: 705 (600, 105 REF) [00:00:13]*** step 90: 699 [00:00:13]*** step 91: 693 [00:00:13]*** step 92: 688 [00:00:13]*** step 93: 683 [00:00:13]*** step 94: 678 [00:00:13]*** step 95: 673 [00:00:13]*** step 96: 669 [00:00:13]*** step 97: 664 [00:00:13]*** step 98: 660 [00:00:13]*** step 99: 656 [00:00:13]*** step 100: 652 [00:00:13]*** step 101: 648 [00:00:13]*** step 102: 644 [00:00:13]*** step 103: 641 [00:00:13]*** step 104: 638 [00:00:13]*** step 105: 634 [00:00:13]*** step 106: 631 [00:00:13]*** step 107: 628 [00:00:13]*** step 108: 625 [00:00:13]*** step 109: 622 [00:00:13]*** step 110: 620 [00:00:13]*** step 111: 617 [00:00:13]*** step 112: 615 [00:00:13]*** step 113: 612 [00:00:13]*** step 114: 610 [00:00:13]*** step 115: 608 [00:00:13]*** step 116: 605 [00:00:13]*** step 117: 603 [00:00:13]*** step 118: 601 [00:00:13]*** step 119: 599 [00:00:13]*** printer: Printer HW initialized [00:00:13]*** initSamCard finished [00:00:13]*** RTC: 18041494+1700850876=1718892370 [00:00:13]*** BPK Status Register BPK_RDY = 0x0 [00:00:13]*** SEN State Register SEN_STATE = 0x200ff [00:00:13]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:13]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [00:00:13]*** Is cutter blocked? [00:00:14]MH_GetMetrics [00:00:14]Write to MH i2c: 00 00 00 03 00 02 [00:00:14]Write i2c OK [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: 00 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: 00 29 00 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 3F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 E5 [00:00:14]Are we in boot? [00:00:14]We are not in boot now [00:00:14]Write to MH i2c: 01 00 00 04 00 04 [00:00:14]Write i2c OK [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: 01 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: 01 07 00 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:14]Model is 3 [00:00:14]MH firmware is 30620 [00:00:14]MH boot firmware is 3 [00:00:14]MH_SetPrinterDots 448 [00:00:14]HeadWidthInBytes 56 [00:00:14]maxmasksize 7 [00:00:14]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:14]Write i2c OK [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: D6 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: D6 01 00 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:14]Write to MH i2c: D5 00 00 06 00 DA [00:00:14]Write i2c OK [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: D5 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: D5 01 00 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:14]Load OK [00:00:14]LoadDictionaryFromArray [00:00:14]Load OK [00:00:14]LoadDictionaryFromArray [00:00:14]Load OK [00:00:14]LoadDictionaryFromArray [00:00:14]Load OK [00:00:14]LoadDictionaryFromArray [00:00:14]Load OK [00:00:14]LoadDictionaryFromArray [00:00:14]Load OK [00:00:14]LoadDictionaryFromArray [00:00:14]Load OK [00:00:14]LoadDictionaryFromArray [00:00:14]Load OK [00:00:14]LoadDictionaryFromArray [00:00:14]Load OK [00:00:14]LoadDictionaryFromArray [00:00:14]Load OK [00:00:14]LoadDictionaryFromArray [00:00:14]Load OK [00:00:14]LoadDictionaryFromArray [00:00:14]Load OK [00:00:14]LoadDictionaryFromArray [00:00:14]Load OK [00:00:14]ExternCall_SetCallbacks [00:00:14]NVStorageInit [00:00:14]MH_GetDate [00:00:14]Write to MH i2c: F0 00 00 07 00 F6 [00:00:14]Write i2c OK [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: F0 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: F0 09 00 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: F0 09 00 07 00 00 53 37 74 66 BC EC 60 65 D0 [14:06:11]Current date/time: 20.06.2024 14:06 [14:06:11]FM_Init [14:06:11]wFMConnect [14:06:11]MH_SAM_On [14:06:11]Write to MH i2c: E0 00 00 08 00 E7 [14:06:11]Write i2c OK [14:06:11]MH_I2C_Read... [14:06:11]*** iso7816_init finished! [14:06:11]*** atr: [14:06:11]*** 0F 3B D5 18 FF 81 91 FE [14:06:11]*** 1F C3 80 73 C8 21 10 0A [14:06:11]*** 00 00 00 00 00 00 00 00 [14:06:11]*** 00 00 00 00 00 00 00 00 [14:06:11]*** 00 00 00 00 00 00 00 00 [14:06:11]Read from MH i2c: E0 [14:06:11]*** 00 00 00 00 00 00 00 00 [14:06:11]MH_I2C_Read... [14:06:11]Read from MH i2c: *** 00 00 00 00 00 00 00 00 [14:06:11]E0 10 00 [14:06:11]MH_I2C_Read... [14:06:11]*** 00 00 00 00 00 00 00 00 [14:06:11]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 [14:06:11]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [14:06:11]wFMCommunicate request_size=10 [14:06:11]MH_SAM_APDU [14:06:11]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [14:06:11]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 3F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 E4 [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 540000000057253F (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: 18041527+1700850876=1718892403 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 3F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 E5 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 74 37 74 66 BC EC 60 65 F1 [14:06:44]Current date/time: 20.06.2024 14:06 [14:06:44]FM_Init [14:06:44]wFMConnect [14:06:44]MH_SAM_On [14:06:44]Write to MH i2c: E0 00 00 08 00 E7 [14:06:44]Write i2c OK [14:06:44]MH_I2C_Read... [14:06:44]*** iso7816_init finished! [14:06:44]*** atr: [14:06:44]*** 0F 3B D5 18 FF 81 91 FE [14:06:44]*** 1F C3 80 73 C8 21 10 0A [14:06:44]*** 00 00 00 00 00 00 00 00 [14:06:44]*** 00 00 00 00 00 00 00 00 [14:06:44]*** 00 00 00 00 00 00 00 00 [14:06:44]*** 00 00 00 00 00 00 00 00 [14:06:44]*** 00 00 00 00 00 00 00 00 [14:06:44]*** 00 00 00 00 00 00 00 00 [14:06:44]Read from MH i2c: E0 [14:06:44]MH_I2C_Read... [14:06:44]Read from MH i2c: E0 10 00 [14:06:44]MH_I2C_Read... [14:06:44]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 [14:06:44]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [14:06:44]wFMCommunicate request_size=10 [14:06:44]MH_SAM_APDU [14:06:44]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [14:06:44]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [14:06:44]Write i2c OK [14:06:44]MH_I2C_Read... [14:06:44]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [14:06:44]Read from MH i2c: E2 [14:06:44]MH_I2C_Read... [14:06:44]Read from MH i2c: E2 03 00 [14:06:44]MH_I2C_Read... [14:06:44]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [14:06:44]RAPDU: 90 00 [14:06:44]wFMCommunicate OK [14:06:44]wFMCommunicate request_size=4 [14:06:44]MH_SAM_APDU [14:06:44]CAPDU: 80 11 00 00 [14:06:44]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [14:06:44]Write i2c OK [14:06:44]MH_I2C_Read... [14:06:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:44]Read from MH i2c: E2 [14:06:44]MH_I2C_Read... [14:06:44]Read from MH i2c: E2 17 00 [14:06:44]MH_I2C_Read... [14:06:44]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D6 [14:06:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:06:44]wFMCommunicate OK [14:06:44]Detected FM SN is 0000000000875083 [14:06:44]Stored FM SN is 0000000000875083 [14:06:44]wFMCommunicate request_size=9 [14:06:44]MH_SAM_APDU [14:06:44]CAPDU: 80 16 00 00 04 46 5F 00 00 [14:06:44]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 46 5F 00 00 00 00 37 [14:06:44]Write i2c OK [14:06:44]MH_I2C_Read... [14:06:44]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [14:06:44]Read from MH i2c: E2 [14:06:44]MH_I2C_Read... [14:06:44]Read from MH i2c: E2 03 00 [14:06:44]MH_I2C_Read... [14:06:44]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [14:06:44]RAPDU: 90 00 [14:06:44]wFMCommunicate OK [14:06:44]FM PIN OK [14:06:44]wFMCommunicate request_size=8 [14:06:44]MH_SAM_APDU [14:06:44]CAPDU: 80 14 04 00 03 02 00 01 [14:06:44]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [14:06:44]Write i2c OK [14:06:44]MH_I2C_Read... [14:06:44]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [14:06:44]Read from MH i2c: E2 [14:06:44]MH_I2C_Read... [14:06:44]Read from MH i2c: E2 03 00 [14:06:44]MH_I2C_Read... [14:06:44]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [14:06:44]RAPDU: 90 00 [14:06:44]wFMCommunicate OK [14:06:44]wFMCommunicate request_size=13 [14:06:44]MH_SAM_APDU [14:06:44]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [14:06:44]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 [14:06:44]Write i2c OK [14:06:44]MH_I2C_Read... [14:06:44]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [14:06:44]Read from MH i2c: E2 [14:06:44]MH_I2C_Read... [14:06:44]Read from MH i2c: E2 03 00 [14:06:44]MH_I2C_Read... [14:06:44]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [14:06:44]RAPDU: 90 00 [14:06:44]wFMCommunicate OK [14:06:44]wFMCommunicate request_size=4 [14:06:44]MH_SAM_APDU [14:06:44]CAPDU: 80 11 00 00 [14:06:44]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [14:06:44]Write i2c OK [14:06:44]MH_I2C_Read... [14:06:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:44]Read from MH i2c: E2 [14:06:44]MH_I2C_Read... [14:06:44]Read from MH i2c: E2 17 00 [14:06:44]MH_I2C_Read... [14:06:44]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DA [14:06:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:06:44]wFMCommunicate OK [14:06:44]DocumentArchiveInit [14:06:44]Start Httpd... [14:06:44]Httpd thread 3067886948 created [14:06:44]Write to MH i2c: 01 00 00 0F 00 0F [14:06:44]Write i2c OK [14:06:44]MH_I2C_Read... [14:06:44]Read from MH i2c: 01 [14:06:44]MH_I2C_Read... [14:06:44]Read from MH i2c: 01 07 00 [14:06:44]MH_I2C_Read... [14:06:44]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [14:06:44]MH Int Process started [14:06:44]Allocated Socket 8 [14:06:44]Bind OK [14:06:44]Listen OK [14:06:44]httpd running on port 8080 [14:06:44]Waiting for new connection... [14:06:44]OFD Sender: No OFD packet to send [14:06:49]OFD Sender: No OFD packet to send [14:06:54]OFD Sender: No OFD packet to send [14:06:59]OFD Sender: No OFD packet to send [14:07:04]OFD Sender: No OFD packet to send [14:07:05]accept exits with 9 [14:07:05]New connection [14:07:05]New thread 3067600228 created [14:07:05]Waiting for new connection... [14:07:05] Sock 9.Parse request [14:07:05]Sock 9.Check first char [14:07:05]Sock 9.First char is OK [14:07:05]request: POST /json_proto HTTP/1.0 [14:07:05]Method: POST [14:07:05]URL: /json_proto [14:07:05]Method is POST - this is cgi request [14:07:05]url: /json_proto [14:07:05]query_string will be loaded in cgi processing [14:07:05]execute_cgi json_proto POST (null) [14:07:05]execute_cgi path=json_proto method=POST [14:07:05]POST find Content-Length [14:07:05]Host: 172.17.59.68:8080 [14:07:05]Content-Length: 215 [14:07:05]Content-Type: application/json [14:07:05] [14:07:05]POST finish read [14:07:05]Found Content-Length = 215 [14:07:05]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" ] } } [14:07:05]execute_script... [14:07:05]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" ] } } [14:07:05]POST & json_proto [14:07:05]process_json_proto [14:07:05]json parsed OK: [14:07:05]protocol is kg_v1.0 [14:07:05]action value=get_value [14:07:05]process_action get_value [14:07:05]cmd_get_value [14:07:05]process_action get_value done [14:07:05]requested_data is exist [14:07:05]produce_requested_data [14:07:05]requested_item kkm.sn is exist - process it [14:07:05]requested_item kkm.ver is exist - process it [14:07:05]requested_item fm.sn is exist - process it [14:07:05]wFMCommunicate request_size=4 [14:07:05]MH_SAM_APDU [14:07:05]CAPDU: 80 11 00 00 [14:07:05]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [14:07:05]Write i2c OK [14:07:05]MH_I2C_Read... [14:07:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:05]Read from MH i2c: E2 [14:07:05]MH_I2C_Read... [14:07:05]Read from MH i2c: E2 17 00 [14:07:05]MH_I2C_Read... [14:07:05]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 35 30 38 33 90 00 DC [14:07:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:07:05]wFMCommunicate OK [14:07:05]requested_item fd.num is exist - process it [14:07:05]SAM_PROTO_GetFieldsCounters [14:07:05]wFMCommunicate request_size=4 [14:07:05]MH_SAM_APDU [14:07:05]CAPDU: 80 13 00 00 [14:07:05]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [14:07:05]Write i2c OK [14:07:05]MH_I2C_Read... [14:07:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:07:05]Read from MH i2c: E2 [14:07:05]MH_I2C_Read... [14:07:05]Read from MH i2c: E2 62 00 [14:07:05]MH_I2C_Read... [14:07:05]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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3C B4 01 00 0E 04 04 00 85 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 9F [14:07:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3C B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:07:05]wFMCommunicate OK [14:07:05]SAM_PROTO_GetFieldsCounters done [14:07:05]requested_item shift.num is exist - process it [14:07:05]requested_item shift.opened is exist - process it [14:07:05]req_shift_opened [14:07:05]FM_GetShiftState [14:07:05]SAM_PROTO_GetShiftState [14:07:05]wFMCommunicate request_size=4 [14:07:05]MH_SAM_APDU [14:07:05]CAPDU: 80 13 01 00 [14:07:05]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [14:07:05]Write i2c OK [14:07:05]MH_I2C_Read... [14:07:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:05]Read from MH i2c: E2 [14:07:05]MH_I2C_Read... [14:07:05]Read from MH i2c: E2 0E 00 [14:07:05]MH_I2C_Read... [14:07:05]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 0A [14:07:05]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:07:05]wFMCommunicate OK [14:07:05]SAM_PROTO_GetShiftState done [14:07:05]FM_GetShiftState done [14:07:05]req_shift_opened done [14:07:05]requested_item shift.open_date is exist - process it [14:07:05]req_shift_open_date [14:07:05]req_shift_open_date done [14:07:05]produce_requested_data done [14:07:05]produce_requested_data return {"kkm.sn":"0300000198","kkm.ver":"001","fm.sn":"0000000000875083","fd.num":111676,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [14:07:05]process_action_free get_value [14:07:05]json_value_free [14:07:05]json_value_free done [14:07:05]process_json_proto returns [14:07:05]Send response to host [14:07:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000198","kkm.ver":"001","fm.sn":"0000000000875083","fd.num":111676,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [14:07:05]free response buf [14:07:05]execute_script done [14:07:05]execute_script returns [14:07:05]free content buf [14:07:05]Sock 9.Close socket [14:07:05]Sock 9.Thread stoped [14:07:05]accept exits with 7 [14:07:05]New connection [14:07:05]New thread 3067456868 created [14:07:05]Thread 3067600228 joined [14:07:05]Waiting for new connection... [14:07:05] Sock 7.Parse request [14:07:05]Sock 7.Check first char [14:07:05]Sock 7.First char is OK [14:07:05]request: POST /json_proto HTTP/1.0 [14:07:05]Method: POST [14:07:05]URL: /json_proto [14:07:05]Method is POST - this is cgi request [14:07:05]url: /json_proto [14:07:05]query_string will be loaded in cgi processing [14:07:05]execute_cgi json_proto POST (null) [14:07:05]execute_cgi path=json_proto method=POST [14:07:05]POST find Content-Length [14:07:05]Host: 172.17.59.68:8080 [14:07:05]Content-Length: 331 [14:07:05]Content-Type: application/json [14:07:05] [14:07:05]POST finish read [14:07:05]Found Content-Length = 331 [14:07:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:07:05]execute_script... [14:07:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:07:05]POST & json_proto [14:07:05]process_json_proto [14:07:05]json parsed OK: [14:07:05]protocol is kg_v1.0 [14:07:05]action value=get_value [14:07:05]process_action get_value [14:07:06]cmd_get_value [14:07:06]process_action get_value done [14:07:06]requested_data is exist [14:07:06]produce_requested_data [14:07:06]requested_item fm.sale.total is exist - process it [14:07:06]SAM_PROTO_GetFMData [14:07:06]wFMCommunicate request_size=4 [14:07:06]MH_SAM_APDU [14:07:06]CAPDU: 80 13 03 00 [14:07:06]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [14:07:06]Write i2c OK [14:07:06]MH_I2C_Read... [14:07:06]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:07:06]Read from MH i2c: E2 [14:07:06]MH_I2C_Read... [14:07:06]Read from MH i2c: E2 FD 00 [14:07:06]MH_I2C_Read... [14:07:06]Read from MH i2c: E2 FD 00 13 00 00 BD 04 85 04 B9 04 6E 04 04 00 33 B1 01 00 69 04 A3 00 6F 04 04 00 31 B1 01 00 B1 04 05 00 D2 DD A7 F4 01 70 04 05 00 74 1B 36 E3 01 72 04 04 00 5E C2 71 11 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 33 97 2F 35 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 74 80 6E 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 84 [14:07:06]RAPDU: BD 04 85 04 B9 04 6E 04 04 00 33 B1 01 00 69 04 A3 00 6F 04 04 00 31 B1 01 00 B1 04 05 00 D2 DD A7 F4 01 70 04 05 00 74 1B 36 E3 01 72 04 04 00 5E C2 71 11 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 33 97 2F 35 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 74 80 6E 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 [14:07:06]wFMCommunicate OK [14:07:06]wFMCommunicate request_size=4 [14:07:06]MH_SAM_APDU [14:07:06]CAPDU: 80 17 00 00 [14:07:06]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [14:07:06]Write i2c OK [14:07:06]MH_I2C_Read... [14:07:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:07:06]Read from MH i2c: E2 [14:07:06]MH_I2C_Read... [14:07:06]Read from MH i2c: E2 FD 00 [14:07:06]MH_I2C_Read... [14:07:06]Read from MH i2c: E2 FD 00 14 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E8 [14:07:06]RAPDU: F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:07:06]wFMCommunicate OK [14:07:06]wFMCommunicate request_size=4 [14:07:06]MH_SAM_APDU [14:07:06]CAPDU: 80 17 00 00 [14:07:06]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [14:07:06]Write i2c OK [14:07:06]MH_I2C_Read... [14:07:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:07:07]Read from MH i2c: E2 [14:07:07]MH_I2C_Read... [14:07:07]Read from MH i2c: E2 FD 00 [14:07:07]MH_I2C_Read... [14:07:07]Read from MH i2c: E2 FD 00 15 00 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C7 [14:07:07]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:07:07]wFMCommunicate OK [14:07:07]wFMCommunicate request_size=4 [14:07:07]MH_SAM_APDU [14:07:07]CAPDU: 80 17 00 00 [14:07:07]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [14:07:07]Write i2c OK [14:07:07]MH_I2C_Read... [14:07:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:07:07]Read from MH i2c: E2 [14:07:07]MH_I2C_Read... [14:07:07]Read from MH i2c: E2 FD 00 [14:07:07]MH_I2C_Read... [14:07:07]Read from MH i2c: E2 FD 00 16 00 00 F7 03 00 00 EF 03 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 90 00 0D [14:07:07]RAPDU: F7 03 00 00 EF 03 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 90 00 [14:07:07]wFMCommunicate OK [14:07:07]wFMCommunicate request_size=4 [14:07:07]MH_SAM_APDU [14:07:07]CAPDU: 80 17 00 00 [14:07:07]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [14:07:07]Write i2c OK [14:07:07]MH_I2C_Read... [14:07:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [14:07:07]Read from MH i2c: E2 [14:07:07]MH_I2C_Read... [14:07:07]Read from MH i2c: E2 DA 00 [14:07:07]MH_I2C_Read... [14:07:07]Read from MH i2c: E2 DA 00 17 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 78 [14:07:07]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [14:07:07]wFMCommunicate OK [14:07:07]SAM_PROTO_GetFMData done [14:07:07]requested_item fm.sale_refund.total is exist - process it [14:07:07]requested_item fm.buy.total is exist - process it [14:07:07]requested_item shift.sale.total is exist - process it [14:07:07]SAM_PROTO_GetShiftData [14:07:07]wFMCommunicate request_size=4 [14:07:07]MH_SAM_APDU [14:07:07]CAPDU: 80 13 02 00 [14:07:07]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [14:07:07]Write i2c OK [14:07:07]MH_I2C_Read... [14:07:08]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:07:08]Read from MH i2c: E2 [14:07:08]MH_I2C_Read... [14:07:08]Read from MH i2c: E2 FD 00 [14:07:08]MH_I2C_Read... [14:07:08]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 7E 00 00 00 69 04 9C 00 6F 04 04 00 7E 00 00 00 B1 04 03 00 63 93 B2 70 04 03 00 18 12 A3 72 04 03 00 4B 81 0F 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 9D F8 12 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 AF 94 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 9D [14:07:08]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 7E 00 00 00 69 04 9C 00 6F 04 04 00 7E 00 00 00 B1 04 03 00 63 93 B2 70 04 03 00 18 12 A3 72 04 03 00 4B 81 0F 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 9D F8 12 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 AF 94 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 [14:07:08]wFMCommunicate OK [14:07:08]wFMCommunicate request_size=4 [14:07:08]MH_SAM_APDU [14:07:08]CAPDU: 80 17 00 00 [14:07:08]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [14:07:08]Write i2c OK [14:07:08]MH_I2C_Read... [14:07:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:07:08]Read from MH i2c: E2 [14:07:08]MH_I2C_Read... [14:07:08]Read from MH i2c: E2 FD 00 [14:07:08]MH_I2C_Read... [14:07:08]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 [14:07:08]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 [14:07:08]wFMCommunicate OK [14:07:08]wFMCommunicate request_size=4 [14:07:08]MH_SAM_APDU [14:07:08]CAPDU: 80 17 00 00 [14:07:08]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [14:07:08]Write i2c OK [14:07:08]MH_I2C_Read... [14:07:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:07:08]Read from MH i2c: E2 [14:07:08]MH_I2C_Read... [14:07:08]Read from MH i2c: E2 FD 00 [14:07:08]MH_I2C_Read... [14:07:08]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 [14:07:08]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 [14:07:08]wFMCommunicate OK [14:07:08]wFMCommunicate request_size=4 [14:07:08]MH_SAM_APDU [14:07:08]CAPDU: 80 17 00 00 [14:07:08]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [14:07:08]Write i2c OK [14:07:08]MH_I2C_Read... [14:07:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:07:08]Read from MH i2c: E2 [14:07:08]MH_I2C_Read... [14:07:08]Read from MH i2c: E2 FD 00 [14:07:08]MH_I2C_Read... [14:07:09]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 [14:07:09]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 [14:07:09]wFMCommunicate OK [14:07:09]wFMCommunicate request_size=4 [14:07:09]MH_SAM_APDU [14:07:09]CAPDU: 80 17 00 00 [14:07:09]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [14:07:09]Write i2c OK [14:07:09]MH_I2C_Read... [14:07:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [14:07:09]Read from MH i2c: E2 [14:07:09]MH_I2C_Read... [14:07:09]Read from MH i2c: E2 CC 00 [14:07:09]MH_I2C_Read... [14:07:09]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 [14:07:09]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 [14:07:09]wFMCommunicate OK [14:07:09]SAM_PROTO_GetShiftData done [14:07:09]requested_item shift.sale.total_cash is exist - process it [14:07:09]requested_item shift.sale_refund.total is exist - process it [14:07:09]requested_item shift.sale_refund.total_cash is exist - process it [14:07:09]requested_item shift.buy.total is exist - process it [14:07:09]requested_item shift.buy.total_cash is exist - process it [14:07:09]produce_requested_data done [14:07:09]produce_requested_data return {"fm.sale.total":83996092.98,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":117031.39,"shift.sale.total_cash":106870.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} [14:07:09]process_action_free get_value [14:07:09]json_value_free [14:07:09]json_value_free done [14:07:09]process_json_proto returns [14:07:09]Send response to host [14:07:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":83996092.98,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":117031.39,"shift.sale.total_cash":106870.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}}} [14:07:09]free response buf [14:07:09]execute_script done [14:07:09]execute_script returns [14:07:09]free content buf [14:07:09]Sock 7.Close socket [14:07:09]Sock 7.Thread stoped [14:07:09]accept exits with 9 [14:07:09]New connection [14:07:09]New thread 3067600228 created [14:07:09]Thread 3067456868 joined [14:07:09]Waiting for new connection... [14:07:09] Sock 9.Parse request [14:07:09]Sock 9.Check first char [14:07:09]Sock 9.First char is OK [14:07:09]request: POST /json_proto HTTP/1.0 [14:07:09]Method: POST [14:07:09]URL: /json_proto [14:07:09]Method is POST - this is cgi request [14:07:09]url: /json_proto [14:07:09]query_string will be loaded in cgi processing [14:07:09]execute_cgi json_proto POST (null) [14:07:09]execute_cgi path=json_proto method=POST [14:07:09]POST find Content-Length [14:07:09]Host: 172.17.59.68:8080 [14:07:09]Content-Length: 144 [14:07:09]Content-Type: application/json [14:07:09] [14:07:09]POST finish read [14:07:09]Found Content-Length = 144 [14:07:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [14:07:09]execute_script... [14:07:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [14:07:09]POST & json_proto [14:07:09]process_json_proto [14:07:09]json parsed OK: [14:07:09]protocol is kg_v1.0 [14:07:09]action value=print_doc [14:07:09]process_action print_doc [14:07:09]ExternCall_PrintAddStr [14:07:09]wPrintStart [14:07:09]Write to MH i2c: 01 00 00 1D 00 1D [14:07:09]Write i2c OK [14:07:09]MH_I2C_Read... [14:07:09]Read from MH i2c: 01 [14:07:09]MH_I2C_Read... [14:07:09]Read from MH i2c: 01 07 00 [14:07:09]MH_I2C_Read... [14:07:09]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [14:07:09]RasterBufferAndPrint [14:07:09]line Счет N : (1)320278 [14:07:09]line ИНН: 02508201610067 [14:07:09]line Контрольно-Кассовый Чек [14:07:09]line ПРОДАЖА [14:07:09]line ТРК (МРК, ГНК) : 22 [14:07:09]line Товар: 2710194210 [14:07:09]line ДТ-К-5 [14:07:09]line 27.440 * 72.90 [14:07:09]line = 2000.38 [14:07:09]line НДС 12% НСП 1% [14:07:09]line > о реализуемом товаре [14:07:09]line ОКРУГЛЕНИЕ: -0.38 [14:07:09]line ИТОГО: 2000.00 [14:07:09]line Внесено: 2000.00 [14:07:09]line СДАЧА: 0.00 [14:07:09]line НСП 1% : 17.70 [14:07:09]line НДС 12% : 212.43 [14:07:09]line Наличными: 2000.00 [14:07:09]line Безнал.: 0.00 [14:07:09]line Место: АЗС № 65 "Партнер Нефть" [14:07:09]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:07:09]line СНО: Общий режим [14:07:09]line Чек 126 20.06.2024 13:49 [14:07:09]line Смена: 389 ФФД: 1.0 [14:07:09]line ЗНМ: 0300000198 [14:07:09]line РНМ: 0000000000092771 [14:07:09]line Версия ККМ: 001 [14:07:09]line ФМ: 0000000000875083 [14:07:09]line ФД: 111676 [14:07:09]line ФПД: 242362356166631 [14:07:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T134926&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111676&fm=242362356166631&tin=02508201610067®Number=0000000000092771&sum=200000 [14:07:09]written 0, free lines is 4095 [14:07:09]OFD Sender: No OFD packet to send [14:07:09]Write to MH i2c: 01 00 00 48 00 48 [14:07:09]Write i2c OK [14:07:09]MH_I2C_Read... [14:07:09]Read from MH i2c: 01 [14:07:09]MH_I2C_Read... [14:07:09]Read from MH i2c: 01 07 00 [14:07:09]MH_I2C_Read... [14:07:09]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 E5 0C 40 [14:07:09]RasterBufferAndPrint [14:07:09]line [14:07:09]line [14:07:09]line [14:07:09]line [14:07:09]line [14:07:09]written 0, free lines is 3316 [14:07:09]MH_Cut [14:07:09]Write to MH i2c: D1 01 00 4F 00 01 21 [14:07:09]Write i2c OK [14:07:09]MH_I2C_Read... [14:07:09]Read from MH i2c: D1 [14:07:09]MH_I2C_Read... [14:07:09]Read from MH i2c: D1 01 00 [14:07:09]MH_I2C_Read... [14:07:09]Read from MH i2c: D1 01 00 4F 00 00 20 [14:07:09]Write to MH i2c: 01 00 00 50 00 50 [14:07:09]Write i2c OK [14:07:09]MH_I2C_Read... [14:07:10]*** Cut start [14:07:10]*** Partial cut [14:07:10]*** CUTSNS_PIN = 1 [14:07:10]*** CUTSNS_PIN = 0 [14:07:10]*** Brake cut motor [14:07:11]Read from MH i2c: 01 [14:07:11]*** Stop cut motor [14:07:11]MH_I2C_Read... [14:07:11]*** Cut end [14:07:11]Read from MH i2c: 01 07 00 [14:07:11]MH_I2C_Read... [14:07:11]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [14:07:11]process_action print_doc done [14:07:11]requested_data is exist [14:07:11]produce_requested_data [14:07:11]produce_requested_data return (null) [14:07:11]process_action_free print_doc [14:07:11]json_value_free [14:07:11]json_value_free done [14:07:11]process_json_proto returns [14:07:11]Send response to host [14:07:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [14:07:11]free response buf [14:07:11]execute_script done [14:07:11]execute_script returns [14:07:11]free content buf [14:07:11]Sock 9.Close socket [14:07:11]Sock 9.Thread stoped [14:07:14]OFD Sender: No OFD packet to send [14:07:19]OFD Sender: No OFD packet to send [14:07:24]OFD Sender: No OFD packet to send [14:07:29]OFD Sender: No OFD packet to send [14:07:34]OFD Sender: No OFD packet to send [14:07:39]OFD Sender: No OFD packet to send [14:07:44]OFD Sender: No OFD packet to send [14:07:49]OFD Sender: No OFD packet to send [14:07:54]OFD Sender: No OFD packet to send [14:07:59]OFD Sender: No OFD packet to send [14:08:04]OFD Sender: No OFD packet to send [14:08:09]OFD Sender: No OFD packet to send [14:08:14]OFD Sender: No OFD packet to send [14:08:19]OFD Sender: No OFD packet to send [14:08:24]OFD Sender: No OFD packet to send [14:08:29]OFD Sender: No OFD packet to send [14:08:34]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 3F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 E4 [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 540000000057253F (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: 18041680+1700850876=1718892556 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 3F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 E5 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 0D 38 74 66 BC EC 60 65 8B [14:09:17]Current date/time: 20.06.2024 14:09 [14:09:17]FM_Init [14:09:17]wFMConnect [14:09:17]MH_SAM_On [14:09:17]Write to MH i2c: E0 00 00 08 00 E7 [14:09:17]Write i2c OK [14:09:17]MH_I2C_Read... [14:09:17]*** iso7816_init finished! [14:09:17]*** atr: [14:09:17]*** 0F 3B D5 18 FF 81 91 FE [14:09:17]*** 1F C3 80 73 C8 21 10 0A [14:09:17]*** 00 00 00 00 00 00 00 00 [14:09:17]*** 00 00 00 00 00 00 00 00 [14:09:17]*** 00 00 00 00 00 00 00 00 [14:09:17]*** 00 00 00 00 00 00 00 00 [14:09:17]*** 00 00 00 00 00 00 00 00 [14:09:17]*** 00 00 00 00 00 00 00 00 [14:09:17]Read from MH i2c: E0 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: E0 10 00 [14:09:17]MH_I2C_Read... [14:09:17]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 [14:09:17]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [14:09:17]wFMCommunicate request_size=10 [14:09:17]MH_SAM_APDU [14:09:17]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [14:09:17]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [14:09:17]Write i2c OK [14:09:17]MH_I2C_Read... [14:09:17]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [14:09:17]Read from MH i2c: E2 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: E2 03 00 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [14:09:17]RAPDU: 90 00 [14:09:17]wFMCommunicate OK [14:09:17]wFMCommunicate request_size=4 [14:09:17]MH_SAM_APDU [14:09:17]CAPDU: 80 11 00 00 [14:09:17]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [14:09:17]Write i2c OK [14:09:17]MH_I2C_Read... [14:09:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:17]Read from MH i2c: E2 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: E2 17 00 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D6 [14:09:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:09:17]wFMCommunicate OK [14:09:17]Detected FM SN is 0000000000875083 [14:09:17]Stored FM SN is 0000000000875083 [14:09:17]wFMCommunicate request_size=9 [14:09:17]MH_SAM_APDU [14:09:17]CAPDU: 80 16 00 00 04 46 5F 00 00 [14:09:17]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 46 5F 00 00 00 00 37 [14:09:17]Write i2c OK [14:09:17]MH_I2C_Read... [14:09:17]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [14:09:17]Read from MH i2c: E2 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: E2 03 00 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [14:09:17]RAPDU: 90 00 [14:09:17]wFMCommunicate OK [14:09:17]FM PIN OK [14:09:17]wFMCommunicate request_size=8 [14:09:17]MH_SAM_APDU [14:09:17]CAPDU: 80 14 04 00 03 02 00 01 [14:09:17]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [14:09:17]Write i2c OK [14:09:17]MH_I2C_Read... [14:09:17]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [14:09:17]Read from MH i2c: E2 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: E2 03 00 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [14:09:17]RAPDU: 90 00 [14:09:17]wFMCommunicate OK [14:09:17]wFMCommunicate request_size=13 [14:09:17]MH_SAM_APDU [14:09:17]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [14:09:17]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 [14:09:17]Write i2c OK [14:09:17]MH_I2C_Read... [14:09:17]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [14:09:17]Read from MH i2c: E2 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: E2 03 00 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [14:09:17]RAPDU: 90 00 [14:09:17]wFMCommunicate OK [14:09:17]wFMCommunicate request_size=4 [14:09:17]MH_SAM_APDU [14:09:17]CAPDU: 80 11 00 00 [14:09:17]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [14:09:17]Write i2c OK [14:09:17]MH_I2C_Read... [14:09:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:17]Read from MH i2c: E2 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: E2 17 00 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DA [14:09:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:09:17]wFMCommunicate OK [14:09:17]DocumentArchiveInit [14:09:17]Start Httpd... [14:09:17]Httpd thread 3067096420 created [14:09:17]Write to MH i2c: 01 00 00 0F 00 0F [14:09:17]Write i2c OK [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: 01 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: 01 07 00 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [14:09:17]MH Int Process started [14:09:17]Allocated Socket 8 [14:09:17]Bind OK [14:09:17]Listen OK [14:09:17]httpd running on port 8080 [14:09:17]Waiting for new connection... [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 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 3F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 E4 [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 540000000057253F (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: 18041753+1700850876=1718892629 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 3F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 E5 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 56 38 74 66 BC EC 60 65 D4 [14:10:30]Current date/time: 20.06.2024 14:10 [14:10:30]FM_Init [14:10:30]wFMConnect [14:10:30]MH_SAM_On [14:10:30]Write to MH i2c: E0 00 00 08 00 E7 [14:10:30]Write i2c OK [14:10:30]MH_I2C_Read... [14:10:30]*** iso7816_init finished! [14:10:30]*** atr: [14:10:30]*** 0F 3B D5 18 FF 81 91 FE [14:10:30]*** 1F C3 80 73 C8 21 10 0A [14:10:30]*** 00 00 00 00 00 00 00 00 [14:10:30]*** 00 00 00 00 00 00 00 00 [14:10:30]*** 00 00 00 00 00 00 00 00 [14:10:30]*** 00 00 00 00 00 00 00 00 [14:10:30]*** 00 00 00 00 00 00 00 00 [14:10:30]*** 00 00 00 00 00 00 00 00 [14:10:30]Read from MH i2c: E0 [14:10:30]MH_I2C_Read... [14:10:30]Read from MH i2c: E0 10 00 [14:10:30]MH_I2C_Read... [14:10:30]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 [14:10:30]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [14:10:30]wFMCommunicate request_size=10 [14:10:30]MH_SAM_APDU [14:10:30]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [14:10:30]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [14:10:30]Write i2c OK [14:10:30]MH_I2C_Read... [14:10:30]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [14:10:30]Read from MH i2c: E2 [14:10:30]MH_I2C_Read... [14:10:30]Read from MH i2c: E2 03 00 [14:10:30]MH_I2C_Read... [14:10:30]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [14:10:30]RAPDU: 90 00 [14:10:30]wFMCommunicate OK [14:10:30]wFMCommunicate request_size=4 [14:10:30]MH_SAM_APDU [14:10:30]CAPDU: 80 11 00 00 [14:10:30]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [14:10:30]Write i2c OK [14:10:30]MH_I2C_Read... [14:10:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:30]Read from MH i2c: E2 [14:10:30]MH_I2C_Read... [14:10:30]Read from MH i2c: E2 17 00 [14:10:30]MH_I2C_Read... [14:10:30]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D6 [14:10:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:10:30]wFMCommunicate OK [14:10:30]Detected FM SN is 0000000000875083 [14:10:30]Stored FM SN is 0000000000875083 [14:10:30]wFMCommunicate request_size=9 [14:10:30]MH_SAM_APDU [14:10:30]CAPDU: 80 16 00 00 04 46 5F 00 00 [14:10:30]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 46 5F 00 00 00 00 37 [14:10:30]Write i2c OK [14:10:30]MH_I2C_Read... [14:10:30]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [14:10:30]Read from MH i2c: E2 [14:10:30]MH_I2C_Read... [14:10:30]Read from MH i2c: E2 03 00 [14:10:30]MH_I2C_Read... [14:10:30]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [14:10:30]RAPDU: 90 00 [14:10:30]wFMCommunicate OK [14:10:30]FM PIN OK [14:10:30]wFMCommunicate request_size=8 [14:10:30]MH_SAM_APDU [14:10:30]CAPDU: 80 14 04 00 03 02 00 01 [14:10:30]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [14:10:30]Write i2c OK [14:10:30]MH_I2C_Read... [14:10:30]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [14:10:30]Read from MH i2c: E2 [14:10:30]MH_I2C_Read... [14:10:30]Read from MH i2c: E2 03 00 [14:10:30]MH_I2C_Read... [14:10:30]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [14:10:30]RAPDU: 90 00 [14:10:30]wFMCommunicate OK [14:10:30]wFMCommunicate request_size=13 [14:10:30]MH_SAM_APDU [14:10:30]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [14:10:30]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 [14:10:30]Write i2c OK [14:10:30]MH_I2C_Read... [14:10:30]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [14:10:30]Read from MH i2c: E2 [14:10:30]MH_I2C_Read... [14:10:30]Read from MH i2c: E2 03 00 [14:10:30]MH_I2C_Read... [14:10:30]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [14:10:30]RAPDU: 90 00 [14:10:30]wFMCommunicate OK [14:10:30]wFMCommunicate request_size=4 [14:10:30]MH_SAM_APDU [14:10:30]CAPDU: 80 11 00 00 [14:10:30]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [14:10:30]Write i2c OK [14:10:30]MH_I2C_Read... [14:10:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:30]Read from MH i2c: E2 [14:10:30]MH_I2C_Read... [14:10:30]Read from MH i2c: E2 17 00 [14:10:30]MH_I2C_Read... [14:10:30]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DA [14:10:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:10:30]wFMCommunicate OK [14:10:30]DocumentArchiveInit [14:10:30]Start Httpd... [14:10:30]Httpd thread 3067583844 created [14:10:30]Write to MH i2c: 01 00 00 0F 00 0F [14:10:30]Write i2c OK [14:10:30]MH_I2C_Read... [14:10:30]Read from MH i2c: 01 [14:10:30]MH_I2C_Read... [14:10:30]Read from MH i2c: 01 07 00 [14:10:30]MH_I2C_Read... [14:10:30]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [14:10:30]MH Int Process started [14:10:30]Allocated Socket 8 [14:10:30]Bind OK [14:10:30]Listen OK [14:10:30]httpd running on port 8080 [14:10:30]Waiting for new connection... [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:54]accept exits with 9 [14:10:54]New connection [14:10:54]New thread 3067297124 created [14:10:54]Waiting for new connection... [14:10:54] Sock 9.Parse request [14:10:54]Sock 9.Check first char [14:10:54]Sock 9.First char is OK [14:10:54]request: POST /json_proto HTTP/1.0 [14:10:54]Method: POST [14:10:54]URL: /json_proto [14:10:54]Method is POST - this is cgi request [14:10:54]url: /json_proto [14:10:54]query_string will be loaded in cgi processing [14:10:54]execute_cgi json_proto POST (null) [14:10:54]execute_cgi path=json_proto method=POST [14:10:54]POST find Content-Length [14:10:54]Host: 172.17.59.68:8080 [14:10:54]Content-Length: 215 [14:10:54]Content-Type: application/json [14:10:54] [14:10:54]POST finish read [14:10:54]Found Content-Length = 215 [14:10:54]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" ] } } [14:10:54]execute_script... [14:10:54]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" ] } } [14:10:54]POST & json_proto [14:10:54]process_json_proto [14:10:54]json parsed OK: [14:10:54]protocol is kg_v1.0 [14:10:54]action value=get_value [14:10:54]process_action get_value [14:10:54]cmd_get_value [14:10:54]process_action get_value done [14:10:54]requested_data is exist [14:10:54]produce_requested_data [14:10:54]requested_item kkm.sn is exist - process it [14:10:54]requested_item kkm.ver is exist - process it [14:10:54]requested_item fm.sn is exist - process it [14:10:54]wFMCommunicate request_size=4 [14:10:54]MH_SAM_APDU [14:10:54]CAPDU: 80 11 00 00 [14:10:54]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [14:10:54]Write i2c OK [14:10:54]MH_I2C_Read... [14:10:54]Read from MH i2c: E2 [14:10:54]MH_I2C_Read... [14:10:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:54]Read from MH i2c: E2 17 00 [14:10:54]MH_I2C_Read... [14:10:54]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 35 30 38 33 90 00 DC [14:10:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:10:54]wFMCommunicate OK [14:10:54]requested_item fd.num is exist - process it [14:10:54]SAM_PROTO_GetFieldsCounters [14:10:54]wFMCommunicate request_size=4 [14:10:54]MH_SAM_APDU [14:10:54]CAPDU: 80 13 00 00 [14:10:54]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [14:10:54]Write i2c OK [14:10:54]MH_I2C_Read... [14:10:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:10:54]Read from MH i2c: E2 [14:10:54]MH_I2C_Read... [14:10:54]Read from MH i2c: E2 62 00 [14:10:54]MH_I2C_Read... [14:10:54]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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3C B4 01 00 0E 04 04 00 85 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 9F [14:10:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3C B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:10:54]wFMCommunicate OK [14:10:54]SAM_PROTO_GetFieldsCounters done [14:10:54]requested_item shift.num is exist - process it [14:10:54]requested_item shift.opened is exist - process it [14:10:54]req_shift_opened [14:10:54]FM_GetShiftState [14:10:54]SAM_PROTO_GetShiftState [14:10:54]wFMCommunicate request_size=4 [14:10:54]MH_SAM_APDU [14:10:54]CAPDU: 80 13 01 00 [14:10:54]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [14:10:54]Write i2c OK [14:10:54]MH_I2C_Read... [14:10:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:54]Read from MH i2c: E2 [14:10:54]MH_I2C_Read... [14:10:54]Read from MH i2c: E2 0E 00 [14:10:54]MH_I2C_Read... [14:10:54]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 0A [14:10:54]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:10:54]wFMCommunicate OK [14:10:54]SAM_PROTO_GetShiftState done [14:10:54]FM_GetShiftState done [14:10:54]req_shift_opened done [14:10:54]requested_item shift.open_date is exist - process it [14:10:54]req_shift_open_date [14:10:54]req_shift_open_date done [14:10:54]produce_requested_data done [14:10:54]produce_requested_data return {"kkm.sn":"0300000198","kkm.ver":"001","fm.sn":"0000000000875083","fd.num":111676,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [14:10:54]process_action_free get_value [14:10:54]json_value_free [14:10:54]json_value_free done [14:10:54]process_json_proto returns [14:10:54]Send response to host [14:10:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000198","kkm.ver":"001","fm.sn":"0000000000875083","fd.num":111676,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [14:10:54]free response buf [14:10:54]execute_script done [14:10:54]execute_script returns [14:10:54]free content buf [14:10:54]Sock 9.Close socket [14:10:54]Sock 9.Thread stoped [14:10:54]accept exits with 7 [14:10:54]New connection [14:10:54]New thread 3067153764 created [14:10:54]Thread 3067297124 joined [14:10:54]Waiting for new connection... [14:10:54] Sock 7.Parse request [14:10:54]Sock 7.Check first char [14:10:54]Sock 7.First char is OK [14:10:54]request: POST /json_proto HTTP/1.0 [14:10:54]Method: POST [14:10:54]URL: /json_proto [14:10:54]Method is POST - this is cgi request [14:10:54]url: /json_proto [14:10:54]query_string will be loaded in cgi processing [14:10:54]execute_cgi json_proto POST (null) [14:10:54]execute_cgi path=json_proto method=POST [14:10:54]POST find Content-Length [14:10:54]Host: 172.17.59.68:8080 [14:10:54]Content-Length: 331 [14:10:54]Content-Type: application/json [14:10:54] [14:10:54]POST finish read [14:10:54]Found Content-Length = 331 [14:10:54]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" ] } } [14:10:54]execute_script... [14:10:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:10:55]POST & json_proto [14:10:55]process_json_proto [14:10:55]json parsed OK: [14:10:55]protocol is kg_v1.0 [14:10:55]action value=get_value [14:10:55]process_action get_value [14:10:55]cmd_get_value [14:10:55]process_action get_value done [14:10:55]requested_data is exist [14:10:55]produce_requested_data [14:10:55]requested_item fm.sale.total is exist - process it [14:10:55]SAM_PROTO_GetFMData [14:10:55]wFMCommunicate request_size=4 [14:10:55]MH_SAM_APDU [14:10:55]CAPDU: 80 13 03 00 [14:10:55]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [14:10:55]Write i2c OK [14:10:55]MH_I2C_Read... [14:10:55]OFD Sender: No OFD packet to send [14:10:55]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:10:55]Read from MH i2c: E2 [14:10:55]MH_I2C_Read... [14:10:55]Read from MH i2c: E2 FD 00 [14:10:55]MH_I2C_Read... [14:10:55]Read from MH i2c: E2 FD 00 13 00 00 BD 04 85 04 B9 04 6E 04 04 00 33 B1 01 00 69 04 A3 00 6F 04 04 00 31 B1 01 00 B1 04 05 00 D2 DD A7 F4 01 70 04 05 00 74 1B 36 E3 01 72 04 04 00 5E C2 71 11 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 33 97 2F 35 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 74 80 6E 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 84 [14:10:55]RAPDU: BD 04 85 04 B9 04 6E 04 04 00 33 B1 01 00 69 04 A3 00 6F 04 04 00 31 B1 01 00 B1 04 05 00 D2 DD A7 F4 01 70 04 05 00 74 1B 36 E3 01 72 04 04 00 5E C2 71 11 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 33 97 2F 35 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 74 80 6E 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 [14:10:55]wFMCommunicate OK [14:10:55]wFMCommunicate request_size=4 [14:10:55]MH_SAM_APDU [14:10:55]CAPDU: 80 17 00 00 [14:10:55]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [14:10:55]Write i2c OK [14:10:55]MH_I2C_Read... [14:10:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:10:55]Read from MH i2c: E2 [14:10:55]MH_I2C_Read... [14:10:55]Read from MH i2c: E2 FD 00 [14:10:55]MH_I2C_Read... [14:10:55]Read from MH i2c: E2 FD 00 14 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E8 [14:10:55]RAPDU: F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:10:55]wFMCommunicate OK [14:10:55]wFMCommunicate request_size=4 [14:10:55]MH_SAM_APDU [14:10:55]CAPDU: 80 17 00 00 [14:10:55]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [14:10:55]Write i2c OK [14:10:55]MH_I2C_Read... [14:10:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:10:56]Read from MH i2c: E2 [14:10:56]MH_I2C_Read... [14:10:56]Read from MH i2c: E2 FD 00 [14:10:56]MH_I2C_Read... [14:10:56]Read from MH i2c: E2 FD 00 15 00 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C7 [14:10:56]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:10:56]wFMCommunicate OK [14:10:56]wFMCommunicate request_size=4 [14:10:56]MH_SAM_APDU [14:10:56]CAPDU: 80 17 00 00 [14:10:56]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [14:10:56]Write i2c OK [14:10:56]MH_I2C_Read... [14:10:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:10:56]Read from MH i2c: E2 [14:10:56]MH_I2C_Read... [14:10:56]Read from MH i2c: E2 FD 00 [14:10:56]MH_I2C_Read... [14:10:56]Read from MH i2c: E2 FD 00 16 00 00 F7 03 00 00 EF 03 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 90 00 0D [14:10:56]RAPDU: F7 03 00 00 EF 03 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 90 00 [14:10:56]wFMCommunicate OK [14:10:56]wFMCommunicate request_size=4 [14:10:56]MH_SAM_APDU [14:10:56]CAPDU: 80 17 00 00 [14:10:56]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [14:10:56]Write i2c OK [14:10:56]MH_I2C_Read... [14:10:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [14:10:56]Read from MH i2c: E2 [14:10:56]MH_I2C_Read... [14:10:56]Read from MH i2c: E2 DA 00 [14:10:56]MH_I2C_Read... [14:10:56]Read from MH i2c: E2 DA 00 17 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 78 [14:10:56]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [14:10:56]wFMCommunicate OK [14:10:56]SAM_PROTO_GetFMData done [14:10:56]requested_item fm.sale_refund.total is exist - process it [14:10:56]requested_item fm.buy.total is exist - process it [14:10:56]requested_item shift.sale.total is exist - process it [14:10:56]SAM_PROTO_GetShiftData [14:10:56]wFMCommunicate request_size=4 [14:10:56]MH_SAM_APDU [14:10:56]CAPDU: 80 13 02 00 [14:10:56]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [14:10:56]Write i2c OK [14:10:56]MH_I2C_Read... [14:10:57]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:10:57]Read from MH i2c: E2 [14:10:57]MH_I2C_Read... [14:10:57]Read from MH i2c: E2 FD 00 [14:10:57]MH_I2C_Read... [14:10:57]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 7E 00 00 00 69 04 9C 00 6F 04 04 00 7E 00 00 00 B1 04 03 00 63 93 B2 70 04 03 00 18 12 A3 72 04 03 00 4B 81 0F 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 9D F8 12 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 AF 94 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 9D [14:10:57]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 7E 00 00 00 69 04 9C 00 6F 04 04 00 7E 00 00 00 B1 04 03 00 63 93 B2 70 04 03 00 18 12 A3 72 04 03 00 4B 81 0F 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 9D F8 12 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 AF 94 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 [14:10:57]wFMCommunicate OK [14:10:57]wFMCommunicate request_size=4 [14:10:57]MH_SAM_APDU [14:10:57]CAPDU: 80 17 00 00 [14:10:57]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [14:10:57]Write i2c OK [14:10:57]MH_I2C_Read... [14:10:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:10:57]Read from MH i2c: E2 [14:10:57]MH_I2C_Read... [14:10:57]Read from MH i2c: E2 FD 00 [14:10:57]MH_I2C_Read... [14:10:57]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 [14:10:57]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 [14:10:57]wFMCommunicate OK [14:10:57]wFMCommunicate request_size=4 [14:10:57]MH_SAM_APDU [14:10:57]CAPDU: 80 17 00 00 [14:10:57]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [14:10:57]Write i2c OK [14:10:57]MH_I2C_Read... [14:10:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:10:57]Read from MH i2c: E2 [14:10:57]MH_I2C_Read... [14:10:57]Read from MH i2c: E2 FD 00 [14:10:57]MH_I2C_Read... [14:10:57]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 [14:10:57]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 [14:10:57]wFMCommunicate OK [14:10:57]wFMCommunicate request_size=4 [14:10:57]MH_SAM_APDU [14:10:57]CAPDU: 80 17 00 00 [14:10:57]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [14:10:57]Write i2c OK [14:10:57]MH_I2C_Read... [14:10:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:10:57]Read from MH i2c: E2 [14:10:57]MH_I2C_Read... [14:10:57]Read from MH i2c: E2 FD 00 [14:10:57]MH_I2C_Read... [14:10:57]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 [14:10:57]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 [14:10:58]wFMCommunicate OK [14:10:58]wFMCommunicate request_size=4 [14:10:58]MH_SAM_APDU [14:10:58]CAPDU: 80 17 00 00 [14:10:58]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [14:10:58]Write i2c OK [14:10:58]MH_I2C_Read... [14:10:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [14:10:58]Read from MH i2c: E2 [14:10:58]MH_I2C_Read... [14:10:58]Read from MH i2c: E2 CC 00 [14:10:58]MH_I2C_Read... [14:10:58]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 [14:10:58]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 [14:10:58]wFMCommunicate OK [14:10:58]SAM_PROTO_GetShiftData done [14:10:58]requested_item shift.sale.total_cash is exist - process it [14:10:58]requested_item shift.sale_refund.total is exist - process it [14:10:58]requested_item shift.sale_refund.total_cash is exist - process it [14:10:58]requested_item shift.buy.total is exist - process it [14:10:58]requested_item shift.buy.total_cash is exist - process it [14:10:58]produce_requested_data done [14:10:58]produce_requested_data return {"fm.sale.total":83996092.98,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":117031.39,"shift.sale.total_cash":106870.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} [14:10:58]process_action_free get_value [14:10:58]json_value_free [14:10:58]json_value_free done [14:10:58]process_json_proto returns [14:10:58]Send response to host [14:10:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":83996092.98,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":117031.39,"shift.sale.total_cash":106870.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}}} [14:10:58]free response buf [14:10:58]execute_script done [14:10:58]execute_script returns [14:10:58]free content buf [14:10:58]Sock 7.Close socket [14:10:58]Sock 7.Thread stoped [14:10:58]accept exits with 9 [14:10:58]New connection [14:10:58]New thread 3067297124 created [14:10:58]Thread 3067153764 joined [14:10:58]Waiting for new connection... [14:10:58] Sock 9.Parse request [14:10:58]Sock 9.Check first char [14:10:58]Sock 9.First char is OK [14:10:58]request: POST /json_proto HTTP/1.0 [14:10:58]Method: POST [14:10:58]URL: /json_proto [14:10:58]Method is POST - this is cgi request [14:10:58]url: /json_proto [14:10:58]query_string will be loaded in cgi processing [14:10:58]execute_cgi json_proto POST (null) [14:10:58]execute_cgi path=json_proto method=POST [14:10:58]POST find Content-Length [14:10:58]Host: 172.17.59.68:8080 [14:10:58]Content-Length: 682 [14:10:58]Content-Type: application/json [14:10:58] [14:10:58]POST finish read [14:10:58]Found Content-Length = 682 [14:10:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 18.080, "sum" : 1200.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:58]execute_script... [14:10: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)320289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 18.080, "sum" : 1200.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:58]POST & json_proto [14:10:58]process_json_proto [14:10:58]json parsed OK: [14:10:58]protocol is kg_v1.0 [14:10:58]action value=close_receipt [14:10:58]process_action close_receipt [14:10:58]cmd_close_receipt [14:10:58]MH_GetDate [14:10:58]Write to MH i2c: F0 00 00 1D 00 0C [14:10:58]Write i2c OK [14:10:58]MH_I2C_Read... [14:10:58]Read from MH i2c: F0 [14:10:58]MH_I2C_Read... [14:10:58]Read from MH i2c: F0 09 00 [14:10:58]MH_I2C_Read... [14:10:58]Read from MH i2c: F0 09 00 1D 00 00 72 38 74 66 BC EC 60 65 06 [14:10:58]GetLastDocTimeStamp 1718891366 [14:10:58]current date 1718892658 [14:10:58]FM_GetShiftState [14:10:58]SAM_PROTO_GetShiftState [14:10:58]wFMCommunicate request_size=4 [14:10:58]MH_SAM_APDU [14:10:58]CAPDU: 80 13 01 00 [14:10:58]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [14:10:58]Write i2c OK [14:10:58]MH_I2C_Read... [14:10:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:58]Read from MH i2c: E2 [14:10:58]MH_I2C_Read... [14:10:58]Read from MH i2c: E2 0E 00 [14:10:58]MH_I2C_Read... [14:10:58]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 16 [14:10:58]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:10:58]wFMCommunicate OK [14:10:58]SAM_PROTO_GetShiftState done [14:10:58]FM_GetShiftState done [14:10:58]opened in 1718847247 [14:10:58]opened+sec_in_day 1718933647 [14:10:58]quantity*price = 120051 [14:10:58]sum+1 = 120052 [14:10:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 127 20.06.2024 14:10 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111677 ФПД: 168126468041227 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T141059&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111677&fm=168126468041227&tin=02508201610067®Number=0000000000092771&sum=120000 [14:11:00]StoreToDocumentArchive [14:11:00]shift 389 fd 111677 [14:11:00]save to /storage/0389/doc_00111677 [14:11:00]save last doc name /storage/0389/doc_00111677 to /storage/kkm_last_doc_name [14:11:00]save OK [14:11:00]Clear old archive folders... [14:11:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:11:00]tlvbuf is 017147C0 [14:11:00]SAM_PROTO_ClearQueue [14:11:00]wFMCommunicate request_size=4 [14:11:00]MH_SAM_APDU [14:11:00]CAPDU: 80 09 00 00 [14:11:00]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [14:11:00]Write i2c OK [14:11:00]MH_I2C_Read... [14:11:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:11:00]Read from MH i2c: E2 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 03 00 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [14:11:00]RAPDU: 90 00 [14:11:00]wFMCommunicate OK [14:11:00]SAM_PROTO_ClearQueue done [14:11:00]KKMCreateOFDPacket [14:11:00]OFDProtocolAddRootSTLVToBuf [14:11:00]FM_MakeSignedData [14:11:00]FM_MakeSignedData [14:11:00]SAM_PROTO_SignData [14:11:00]wFMCommunicate request_size=4 [14:11:00]MH_SAM_APDU [14:11:00]CAPDU: 80 0D 01 02 [14:11:00]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [14:11:00]Write i2c OK [14:11:00]MH_I2C_Read... [14:11:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:11:00]Read from MH i2c: E2 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 03 00 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [14:11:00]RAPDU: 90 00 [14:11:00]wFMCommunicate OK [14:11:00]wFMCommunicate request_size=255 [14:11:00]MH_SAM_APDU [14:11: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 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 73 38 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3D B4 01 00 35 04 06 00 98 [14:11:00]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 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 73 38 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3D B4 01 00 35 04 06 00 98 00 00 CC [14:11:00]Write i2c OK [14:11:00]MH_I2C_Read... [14:11:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:00]Read from MH i2c: E2 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 03 00 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [14:11:00]RAPDU: 90 00 [14:11:00]wFMCommunicate OK [14:11:00]wFMCommunicate request_size=10 [14:11:00]MH_SAM_APDU [14:11:00]CAPDU: 80 0D 02 02 05 E8 FE 67 AA 0B [14:11:00]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 E8 FE 67 AA 0B 00 00 B4 [14:11:00]OFD Sender: No OFD packet to send [14:11:00]Write i2c OK [14:11:00]MH_I2C_Read... [14:11:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:00]Read from MH i2c: E2 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 03 00 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [14:11:00]RAPDU: 90 00 [14:11:00]wFMCommunicate OK [14:11:00]wFMCommunicate request_size=4 [14:11:00]MH_SAM_APDU [14:11:00]CAPDU: 80 0D 03 02 [14:11:00]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [14:11:00]Write i2c OK [14:11:00]MH_I2C_Read... [14:11:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:11:00]Read from MH i2c: E2 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 0B 00 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 0B 00 2F 00 00 F7 0D 72 B0 F2 58 8C 35 90 00 DC [14:11:00]RAPDU: F7 0D 72 B0 F2 58 8C 35 90 00 [14:11:00]wFMCommunicate OK [14:11:00]SAM_PROTO_SignData done [14:11:00]FM_MakeSignedData done [14:11:00]CreateOFDProtocolMessage [14:11:00]wFMCommunicate request_size=4 [14:11:00]MH_SAM_APDU [14:11:00]CAPDU: 80 11 00 00 [14:11:00]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [14:11:00]Write i2c OK [14:11:00]MH_I2C_Read... [14:11:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:00]Read from MH i2c: E2 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 17 00 [14:11:00]MH_I2C_Read... [14:11:00]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 35 30 38 33 90 00 FC [14:11:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:11:00]wFMCommunicate OK [14:11:00]CreateOFDProtocolMessage done [14:11:00]OFDSenderStorePacket 111677 [14:11:00]StoreOFDPacket docnum=111677 [14:11:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3B 93 07 01 7F 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 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 73 38 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3D B4 01 00 35 04 06 00 98 E8 FE 67 AA 0B F7 0D 72 B0 F2 58 8C 35 [14:11:00]CheckFolder [14:11:00]dirname=/storage/ofd_packets [14:11:00]CheckFolder done [14:11:00]ProducePacketName [14:11:00]name=ofd_packets/00111677 [14:11:00]NVStorageSaveData ofd_packets/00111677 [14:11:00]File name is /storage/ofd_packets/00111677 [14:11:00]Write 301 bytes [14:11:00]NVStorageSaveData done [14:11:00]OFDSenderStorePacket done [14:11:00]KKMCreateOFDPacket done [14:11:00]NVStorageSaveData kkm_last_timestamp [14:11:00]File name is /storage/kkm_last_timestamp [14:11:00]Write 4 bytes [14:11:00]NVStorageSaveData done [14:11:00]ExternCall_PrintAddStr [14:11:00]wPrintStart [14:11:00]Write to MH i2c: 01 00 00 31 00 31 [14:11:00]Write i2c OK [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: 01 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: 01 07 00 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [14:11:00]RasterBufferAndPrint [14:11:00]line Счет N : (1)320289 [14:11:00]line ИНН: 02508201610067 [14:11:00]line Контрольно-Кассовый Чек [14:11:00]line ПРОДАЖА [14:11:00]line ТРК (МРК, ГНК) : 11 [14:11:00]line Товар: 2710124130 [14:11:00]line Аи-92-К-5 [14:11:00]line 18.080 * 66.40 [14:11:00]line = 1200.51 [14:11:00]line НДС 12% НСП 1% [14:11:00]line > о реализуемом товаре [14:11:00]line ОКРУГЛЕНИЕ: -0.51 [14:11:00]line ИТОГО: 1200.00 [14:11:00]line Внесено: 1200.00 [14:11:00]line СДАЧА: 0.00 [14:11:00]line НСП 1% : 10.62 [14:11:00]line НДС 12% : 127.49 [14:11:00]line Наличными: 1200.00 [14:11:00]line Безнал.: 0.00 [14:11:00]line Место: АЗС № 65 "Партнер Нефть" [14:11:00]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:11:00]line СНО: Общий режим [14:11:00]line Чек 127 20.06.2024 14:10 [14:11:00]line Смена: 389 ФФД: 1.0 [14:11:00]line ЗНМ: 0300000198 [14:11:00]line РНМ: 0000000000092771 [14:11:00]line Версия ККМ: 001 [14:11:00]line ФМ: 0000000000875083 [14:11:00]line ФД: 111677 [14:11:00]line ФПД: 168126468041227 [14:11:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T141059&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111677&fm=168126468041227&tin=02508201610067®Number=0000000000092771&sum=120000 [14:11:00]OFD Sender: Processing packet 111677 [packets to send 38, broken 37] [14:11:00]ProducePacketName [14:11:01]name=ofd_packets/00111677 [14:11:01]OFD Sender: To server: pG, [14:11:01]CommunicateWithHost lk.salyk.kg:30040 [14:11:01]ConnectInit lk.salyk.kg [14:11:01]written 0, free lines is 4095 [14:11:01]Connected sock=10 [14:11:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3B 93 07 01 7F 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 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 73 38 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3D B4 01 00 35 04 06 00 98 E8 FE 67 AA 0B F7 0D 72 B0 F2 58 8C 35 [14:11:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 EC 3A 47 00 18 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 35 30 38 33 10 04 04 00 3D B4 01 00 F4 03 04 00 BB CF 73 66 B6 04 01 00 00 2A 81 75 4A 32 94 2A CC [14:11:01]CommunicateWithHost err = 0 [14:11:01]CheckOFDResponse [14:11:01]1017 (14) - 77093643461234 [14:11:01]1041 (16) - 0000000000875083 [14:11:01]1040 (4) - 111677 [14:11:01]1012 (4) - 20.06.2024 06:44 [14:11:01]1206 (1) - 0 [14:11:01]OFD Sender: Remove packet 111677 [14:11:01]ProducePacketName [14:11:01]name=ofd_packets/00111677 [14:11:01]NVStorageDeleteData [14:11:01]Write to MH i2c: 01 00 00 5C 00 5C [14:11:01]Write i2c OK [14:11:01]MH_I2C_Read... [14:11:01]Read from MH i2c: 01 [14:11:01]MH_I2C_Read... [14:11:01]Read from MH i2c: 01 07 00 [14:11:01]MH_I2C_Read... [14:11:01]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 D7 0C 46 [14:11:01]RasterBufferAndPrint [14:11:01]line [14:11:01]line [14:11:01]line [14:11:01]line [14:11:01]line [14:11:01]written 0, free lines is 3300 [14:11:01]MH_Cut [14:11:01]Write to MH i2c: D1 01 00 63 00 01 35 [14:11:01]Write i2c OK [14:11:01]MH_I2C_Read... [14:11:01]Read from MH i2c: D1 [14:11:01]MH_I2C_Read... [14:11:01]Read from MH i2c: D1 01 00 [14:11:01]MH_I2C_Read... [14:11:01]Read from MH i2c: D1 01 00 63 00 00 34 [14:11:01]Write to MH i2c: 01 00 00 64 00 64 [14:11:01]Write i2c OK [14:11:01]MH_I2C_Read... [14:11:01]OFD Sender: No OFD packet to send [14:11:02]*** Cut start [14:11:02]*** Partial cut [14:11:02]*** CUTSNS_PIN = 1 [14:11:02]*** CUTSNS_PIN = 0 [14:11:02]*** Brake cut motor [14:11:02]Read from MH i2c: 01 [14:11:02]MH_I2C_Read... [14:11:02]*** Stop cut motor [14:11:02]*** Cut end [14:11:02]Read from MH i2c: 01 07 00 [14:11:02]MH_I2C_Read... [14:11:02]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [14:11:02]process_action close_receipt done [14:11:02]requested_data is exist [14:11:02]produce_requested_data [14:11:02]requested_item fm.sn is exist - process it [14:11:02]wFMCommunicate request_size=4 [14:11:02]MH_SAM_APDU [14:11:02]CAPDU: 80 11 00 00 [14:11:02]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [14:11:02]Write i2c OK [14:11:02]MH_I2C_Read... [14:11:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:02]Read from MH i2c: E2 [14:11:02]MH_I2C_Read... [14:11:02]Read from MH i2c: E2 17 00 [14:11:02]MH_I2C_Read... [14:11:02]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 35 30 38 33 90 00 31 [14:11:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:11:02]wFMCommunicate OK [14:11:02]requested_item fd.num is exist - process it [14:11:02]SAM_PROTO_GetFieldsCounters [14:11:02]wFMCommunicate request_size=4 [14:11:02]MH_SAM_APDU [14:11:02]CAPDU: 80 13 00 00 [14:11:02]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [14:11:02]Write i2c OK [14:11:02]MH_I2C_Read... [14:11:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:03]Read from MH i2c: E2 [14:11:03]MH_I2C_Read... [14:11:03]Read from MH i2c: E2 62 00 [14:11:03]MH_I2C_Read... [14:11:03]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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3D B4 01 00 0E 04 04 00 85 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 F8 [14:11:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3D B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:11:03]wFMCommunicate OK [14:11:03]SAM_PROTO_GetFieldsCounters done [14:11:03]requested_item shift.num is exist - process it [14:11:03]requested_item shift.opened is exist - process it [14:11:03]req_shift_opened [14:11:03]FM_GetShiftState [14:11:03]SAM_PROTO_GetShiftState [14:11:03]wFMCommunicate request_size=4 [14:11:03]MH_SAM_APDU [14:11:03]CAPDU: 80 13 01 00 [14:11:03]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [14:11:03]Write i2c OK [14:11:03]MH_I2C_Read... [14:11:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:03]Read from MH i2c: E2 [14:11:03]MH_I2C_Read... [14:11:03]Read from MH i2c: E2 0E 00 [14:11:03]MH_I2C_Read... [14:11:03]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 5F [14:11:03]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:11:03]wFMCommunicate OK [14:11:03]SAM_PROTO_GetShiftState done [14:11:03]FM_GetShiftState done [14:11:03]req_shift_opened done [14:11:03]requested_item shift.open_date is exist - process it [14:11:03]req_shift_open_date [14:11:03]req_shift_open_date done [14:11:03]produce_requested_data done [14:11:03]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111677,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [14:11:03]process_action_free close_receipt [14:11:03]json_value_free [14:11:03]json_value_free done [14:11:03]process_json_proto returns [14:11:03]Send response to host [14:11:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111677,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [14:11:03]free response buf [14:11:03]execute_script done [14:11:03]execute_script returns [14:11:03]free content buf [14:11:03]Sock 9.Close socket [14:11:03]Sock 9.Thread stoped [14:11:06]OFD Sender: No OFD packet to send [14:11:11]OFD Sender: No OFD packet to send [14:11:16]OFD Sender: No OFD packet to send [14:11:21]OFD Sender: No OFD packet to send [14:11:24]accept exits with 7 [14:11:24]New connection [14:11:24]New thread 3067153764 created [14:11:24]Thread 3067297124 joined [14:11:24]Waiting for new connection... [14:11:24] Sock 7.Parse request [14:11:24]Sock 7.Check first char [14:11:24]Sock 7.First char is OK [14:11:24]request: POST /json_proto HTTP/1.0 [14:11:24]Method: POST [14:11:24]URL: /json_proto [14:11:24]Method is POST - this is cgi request [14:11:24]url: /json_proto [14:11:24]query_string will be loaded in cgi processing [14:11:24]execute_cgi json_proto POST (null) [14:11:24]execute_cgi path=json_proto method=POST [14:11:24]POST find Content-Length [14:11:24]Host: 172.17.59.68:8080 [14:11:24]Content-Length: 677 [14:11:24]Content-Type: application/json [14:11:24] [14:11:24]POST finish read [14:11:24]Found Content-Length = 677 [14:11:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.280, "sum" : 350.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:24]execute_script... [14:11: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)320294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.280, "sum" : 350.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:24]POST & json_proto [14:11:24]process_json_proto [14:11:24]json parsed OK: [14:11:24]protocol is kg_v1.0 [14:11:24]action value=close_receipt [14:11:24]process_action close_receipt [14:11:24]cmd_close_receipt [14:11:24]MH_GetDate [14:11:24]Write to MH i2c: F0 00 00 68 00 57 [14:11:24]Write i2c OK [14:11:24]MH_I2C_Read... [14:11:24]Read from MH i2c: F0 [14:11:24]MH_I2C_Read... [14:11:24]Read from MH i2c: F0 09 00 [14:11:24]MH_I2C_Read... [14:11:24]Read from MH i2c: F0 09 00 68 00 00 8C 38 74 66 BC EC 60 65 6B [14:11:24]GetLastDocTimeStamp 1718892659 [14:11:24]current date 1718892684 [14:11:24]FM_GetShiftState [14:11:24]SAM_PROTO_GetShiftState [14:11:24]wFMCommunicate request_size=4 [14:11:24]MH_SAM_APDU [14:11:24]CAPDU: 80 13 01 00 [14:11:24]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [14:11:24]Write i2c OK [14:11:24]MH_I2C_Read... [14:11:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:24]Read from MH i2c: E2 [14:11:24]MH_I2C_Read... [14:11:24]Read from MH i2c: E2 0E 00 [14:11:24]MH_I2C_Read... [14:11:24]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 61 [14:11:24]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:11:24]wFMCommunicate OK [14:11:24]SAM_PROTO_GetShiftState done [14:11:24]FM_GetShiftState done [14:11:24]opened in 1718847247 [14:11:24]opened+sec_in_day 1718933647 [14:11:24]quantity*price = 35059 [14:11:24]sum+1 = 35060 [14:11:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 128 20.06.2024 14:11 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111678 ФПД: 221198900140581 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T141125&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111678&fm=221198900140581&tin=02508201610067®Number=0000000000092771&sum=35000 [14:11:25]StoreToDocumentArchive [14:11:25]shift 389 fd 111678 [14:11:25]save to /storage/0389/doc_00111678 [14:11:25]save last doc name /storage/0389/doc_00111678 to /storage/kkm_last_doc_name [14:11:25]save OK [14:11:25]Clear old archive folders... [14:11:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:11:25]tlvbuf is 0170A3D0 [14:11:25]SAM_PROTO_ClearQueue [14:11:25]wFMCommunicate request_size=4 [14:11:25]MH_SAM_APDU [14:11:25]CAPDU: 80 09 00 00 [14:11:25]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [14:11:25]Write i2c OK [14:11:25]MH_I2C_Read... [14:11:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:11:25]Read from MH i2c: E2 [14:11:25]MH_I2C_Read... [14:11:25]Read from MH i2c: E2 03 00 [14:11:25]MH_I2C_Read... [14:11:25]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [14:11:25]RAPDU: 90 00 [14:11:25]wFMCommunicate OK [14:11:25]SAM_PROTO_ClearQueue done [14:11:25]KKMCreateOFDPacket [14:11:25]OFDProtocolAddRootSTLVToBuf [14:11:25]FM_MakeSignedData [14:11:25]FM_MakeSignedData [14:11:25]SAM_PROTO_SignData [14:11:25]wFMCommunicate request_size=4 [14:11:25]MH_SAM_APDU [14:11:25]CAPDU: 80 0D 01 02 [14:11:25]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [14:11:25]Write i2c OK [14:11:25]MH_I2C_Read... [14:11:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:11:25]Read from MH i2c: E2 [14:11:25]MH_I2C_Read... [14:11:25]Read from MH i2c: E2 03 00 [14:11:25]MH_I2C_Read... [14:11:25]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [14:11:25]RAPDU: 90 00 [14:11:25]wFMCommunicate OK [14:11:25]wFMCommunicate request_size=255 [14:11:25]MH_SAM_APDU [14:11: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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 8D 38 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3E B4 01 00 35 04 06 00 C9 [14:11:25]Write to MH i2c: E2 02 01 78 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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 8D 38 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3E B4 01 00 35 04 06 00 C9 00 00 E3 [14:11:26]Write i2c OK [14:11:26]MH_I2C_Read... [14:11:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:26]Read from MH i2c: E2 [14:11:26]MH_I2C_Read... [14:11:26]Read from MH i2c: E2 03 00 [14:11:26]MH_I2C_Read... [14:11:26]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [14:11:26]RAPDU: 90 00 [14:11:26]wFMCommunicate OK [14:11:26]wFMCommunicate request_size=10 [14:11:26]MH_SAM_APDU [14:11:26]CAPDU: 80 0D 02 02 05 2D E1 DE 1A 25 [14:11:26]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 2D E1 DE 1A 25 00 00 28 [14:11:26]Write i2c OK [14:11:26]MH_I2C_Read... [14:11:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:26]Read from MH i2c: E2 [14:11:26]MH_I2C_Read... [14:11:26]Read from MH i2c: E2 03 00 [14:11:26]MH_I2C_Read... [14:11:26]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [14:11:26]RAPDU: 90 00 [14:11:26]wFMCommunicate OK [14:11:26]wFMCommunicate request_size=4 [14:11:26]MH_SAM_APDU [14:11:26]CAPDU: 80 0D 03 02 [14:11:26]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [14:11:26]Write i2c OK [14:11:26]MH_I2C_Read... [14:11:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:11:26]Read from MH i2c: E2 [14:11:26]MH_I2C_Read... [14:11:26]Read from MH i2c: E2 0B 00 [14:11:26]MH_I2C_Read... [14:11:26]Read from MH i2c: E2 0B 00 7A 00 00 AD CD B2 4D 6F BB B4 3F 90 00 8C [14:11:26]RAPDU: AD CD B2 4D 6F BB B4 3F 90 00 [14:11:26]wFMCommunicate OK [14:11:26]SAM_PROTO_SignData done [14:11:26]FM_MakeSignedData done [14:11:26]CreateOFDProtocolMessage [14:11:26]wFMCommunicate request_size=4 [14:11:26]MH_SAM_APDU [14:11:26]CAPDU: 80 11 00 00 [14:11:26]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [14:11:26]Write i2c OK [14:11:26]MH_I2C_Read... [14:11:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:26]Read from MH i2c: E2 [14:11:26]MH_I2C_Read... [14:11:26]Read from MH i2c: E2 17 00 [14:11:26]MH_I2C_Read... [14:11:26]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 35 30 38 33 90 00 47 [14:11:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:11:26]wFMCommunicate OK [14:11:26]CreateOFDProtocolMessage done [14:11:26]OFDSenderStorePacket 111678 [14:11:26]StoreOFDPacket docnum=111678 [14:11:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 82 EA 07 01 2B 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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 8D 38 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3E B4 01 00 35 04 06 00 C9 2D E1 DE 1A 25 AD CD B2 4D 6F BB B4 3F [14:11:26]CheckFolder [14:11:26]dirname=/storage/ofd_packets [14:11:26]CheckFolder done [14:11:26]ProducePacketName [14:11:26]name=ofd_packets/00111678 [14:11:26]NVStorageSaveData ofd_packets/00111678 [14:11:26]File name is /storage/ofd_packets/00111678 [14:11:26]Write 301 bytes [14:11:26]NVStorageSaveData done [14:11:26]OFDSenderStorePacket done [14:11:26]KKMCreateOFDPacket done [14:11:26]NVStorageSaveData kkm_last_timestamp [14:11:26]File name is /storage/kkm_last_timestamp [14:11:26]Write 4 bytes [14:11:26]NVStorageSaveData done [14:11:26]ExternCall_PrintAddStr [14:11:26]wPrintStart [14:11:26]Write to MH i2c: 01 00 00 7C 00 7C [14:11:26]Write i2c OK [14:11:26]MH_I2C_Read... [14:11:26]Read from MH i2c: 01 [14:11:26]MH_I2C_Read... [14:11:26]Read from MH i2c: 01 07 00 [14:11:26]MH_I2C_Read... [14:11:26]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [14:11:26]RasterBufferAndPrint [14:11:26]line Счет N : (1)320294 [14:11:26]line ИНН: 02508201610067 [14:11:26]line Контрольно-Кассовый Чек [14:11:26]line ПРОДАЖА [14:11:26]line ТРК (МРК, ГНК) : 11 [14:11:26]line Товар: 2710124130 [14:11:26]line Аи-92-К-5 [14:11:26]line 5.280 * 66.40 [14:11:26]line = 350.59 [14:11:26]line НДС 12% НСП 1% [14:11:26]line > о реализуемом товаре [14:11:26]line ОКРУГЛЕНИЕ: -0.59 [14:11:26]line ИТОГО: 350.00 [14:11:26]line Внесено: 350.00 [14:11:26]line СДАЧА: 0.00 [14:11:26]line НСП 1% : 3.10 [14:11:26]line НДС 12% : 37.23 [14:11:26]line Наличными: 350.00 [14:11:26]line Безнал.: 0.00 [14:11:26]line Место: АЗС № 65 "Партнер Нефть" [14:11:26]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:11:26]line СНО: Общий режим [14:11:26]line Чек 128 20.06.2024 14:11 [14:11:26]line Смена: 389 ФФД: 1.0 [14:11:26]line ЗНМ: 0300000198 [14:11:26]line РНМ: 0000000000092771 [14:11:26]line Версия ККМ: 001 [14:11:26]line ФМ: 0000000000875083 [14:11:26]line ФД: 111678 [14:11:26]line ФПД: 221198900140581 [14:11:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T141125&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111678&fm=221198900140581&tin=02508201610067®Number=0000000000092771&sum=35000 [14:11:26]OFD Sender: Processing packet 111678 [packets to send 38, broken 37] [14:11:26]ProducePacketName [14:11:26]name=ofd_packets/00111678 [14:11:26]OFD Sender: To server: pG, [14:11:26]CommunicateWithHost lk.salyk.kg:30040 [14:11:26]ConnectInit lk.salyk.kg [14:11:26]written 0, free lines is 4095 [14:11:26]Connected sock=11 [14:11:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 82 EA 07 01 2B 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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 8D 38 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3E B4 01 00 35 04 06 00 C9 2D E1 DE 1A 25 AD CD B2 4D 6F BB B4 3F [14:11:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 4E 5D 47 00 3C F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3E B4 01 00 F4 03 04 00 D5 CF 73 66 B6 04 01 00 00 29 46 47 CB 0C 18 40 20 [14:11:27]CommunicateWithHost err = 0 [14:11:27]CheckOFDResponse [14:11:27]1017 (14) - 77093643461234 [14:11:27]1041 (16) - 0000000000875083 [14:11:27]1040 (4) - 111678 [14:11:27]1012 (4) - 20.06.2024 06:44 [14:11:27]1206 (1) - 0 [14:11:27]OFD Sender: Remove packet 111678 [14:11:27]ProducePacketName [14:11:27]name=ofd_packets/00111678 [14:11:27]NVStorageDeleteData [14:11:27]Write to MH i2c: 01 00 00 A7 00 A7 [14:11:27]Write i2c OK [14:11:27]MH_I2C_Read... [14:11:27]Read from MH i2c: 01 [14:11:27]MH_I2C_Read... [14:11:27]Read from MH i2c: 01 07 00 [14:11:27]MH_I2C_Read... [14:11:27]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 C7 0C 81 [14:11:27]RasterBufferAndPrint [14:11:27]line [14:11:27]line [14:11:27]line [14:11:27]line [14:11:27]line [14:11:27]written 0, free lines is 3277 [14:11:27]MH_Cut [14:11:27]Write to MH i2c: D1 01 00 AE 00 01 80 [14:11:27]Write i2c OK [14:11:27]MH_I2C_Read... [14:11:27]Read from MH i2c: D1 [14:11:27]MH_I2C_Read... [14:11:27]Read from MH i2c: D1 01 00 [14:11:27]MH_I2C_Read... [14:11:27]Read from MH i2c: D1 01 00 AE 00 00 7F [14:11:27]Write to MH i2c: 01 00 00 AF 00 AF [14:11:27]Write i2c OK [14:11:27]MH_I2C_Read... [14:11:27]OFD Sender: No OFD packet to send [14:11:27]*** Cut start [14:11:27]*** Partial cut [14:11:27]*** CUTSNS_PIN = 1 [14:11:28]*** CUTSNS_PIN = 0 [14:11:28]*** Brake cut motor [14:11:28]Read from MH i2c: 01 [14:11:28]MH_I2C_Read... [14:11:28]*** Stop cut motor [14:11:28]*** Cut end [14:11:28]Read from MH i2c: 01 07 00 [14:11:28]MH_I2C_Read... [14:11:28]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [14:11:28]process_action close_receipt done [14:11:28]requested_data is exist [14:11:28]produce_requested_data [14:11:28]requested_item fm.sn is exist - process it [14:11:28]wFMCommunicate request_size=4 [14:11:28]MH_SAM_APDU [14:11:28]CAPDU: 80 11 00 00 [14:11:28]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [14:11:28]Write i2c OK [14:11:28]MH_I2C_Read... [14:11:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:28]Read from MH i2c: E2 [14:11:28]MH_I2C_Read... [14:11:28]Read from MH i2c: E2 17 00 [14:11:28]MH_I2C_Read... [14:11:28]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7C [14:11:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:11:28]wFMCommunicate OK [14:11:28]requested_item fd.num is exist - process it [14:11:28]SAM_PROTO_GetFieldsCounters [14:11:28]wFMCommunicate request_size=4 [14:11:28]MH_SAM_APDU [14:11:28]CAPDU: 80 13 00 00 [14:11:28]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [14:11:28]Write i2c OK [14:11:28]MH_I2C_Read... [14:11:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:28]Read from MH i2c: E2 [14:11:28]MH_I2C_Read... [14:11:28]Read from MH i2c: E2 62 00 [14:11:28]MH_I2C_Read... [14:11:28]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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3E B4 01 00 0E 04 04 00 85 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 47 [14:11:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3E B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:11:28]wFMCommunicate OK [14:11:28]SAM_PROTO_GetFieldsCounters done [14:11:28]requested_item shift.num is exist - process it [14:11:28]requested_item shift.opened is exist - process it [14:11:28]req_shift_opened [14:11:28]FM_GetShiftState [14:11:28]SAM_PROTO_GetShiftState [14:11:28]wFMCommunicate request_size=4 [14:11:28]MH_SAM_APDU [14:11:28]CAPDU: 80 13 01 00 [14:11:28]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [14:11:28]Write i2c OK [14:11:28]MH_I2C_Read... [14:11:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:28]Read from MH i2c: E2 [14:11:28]MH_I2C_Read... [14:11:28]Read from MH i2c: E2 0E 00 [14:11:28]MH_I2C_Read... [14:11:28]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 AA [14:11:28]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:11:28]wFMCommunicate OK [14:11:28]SAM_PROTO_GetShiftState done [14:11:28]FM_GetShiftState done [14:11:28]req_shift_opened done [14:11:28]requested_item shift.open_date is exist - process it [14:11:28]req_shift_open_date [14:11:28]req_shift_open_date done [14:11:28]produce_requested_data done [14:11:28]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111678,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [14:11:28]process_action_free close_receipt [14:11:28]json_value_free [14:11:28]json_value_free done [14:11:28]process_json_proto returns [14:11:28]Send response to host [14:11:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111678,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [14:11:28]free response buf [14:11:28]execute_script done [14:11:28]execute_script returns [14:11:28]free content buf [14:11:28]Sock 7.Close socket [14:11:28]Sock 7.Thread stoped [14:11:32]OFD Sender: No OFD packet to send [14:11:37]OFD Sender: No OFD packet to send [14:11:42]OFD Sender: No OFD packet to send [14:11:47]OFD Sender: No OFD packet to send [14:11:52]OFD Sender: No OFD packet to send [14:11:57]OFD Sender: No OFD packet to send [14:12:02]OFD Sender: No OFD packet to send [14:12:07]OFD Sender: No OFD packet to send [14:12:10]accept exits with 9 [14:12:10]New connection [14:12:10]New thread 3067297124 created [14:12:10]Thread 3067153764 joined [14:12:10]Waiting for new connection... [14:12:10] Sock 9.Parse request [14:12:10]Sock 9.Check first char [14:12:10]Sock 9.First char is OK [14:12:10]request: POST /json_proto HTTP/1.0 [14:12:10]Method: POST [14:12:10]URL: /json_proto [14:12:10]Method is POST - this is cgi request [14:12:10]url: /json_proto [14:12:10]query_string will be loaded in cgi processing [14:12:10]execute_cgi json_proto POST (null) [14:12:10]execute_cgi path=json_proto method=POST [14:12:10]POST find Content-Length [14:12:10]Host: 172.17.59.68:8080 [14:12:10]Content-Length: 677 [14:12:10]Content-Type: application/json [14:12:10] [14:12:10]POST finish read [14:12:10]Found Content-Length = 677 [14:12:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:10]execute_script... [14:12:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:10]POST & json_proto [14:12:10]process_json_proto [14:12:10]json parsed OK: [14:12:10]protocol is kg_v1.0 [14:12:10]action value=close_receipt [14:12:10]process_action close_receipt [14:12:10]cmd_close_receipt [14:12:10]MH_GetDate [14:12:10]Write to MH i2c: F0 00 00 B3 00 A2 [14:12:10]Write i2c OK [14:12:10]MH_I2C_Read... [14:12:10]Read from MH i2c: F0 [14:12:10]MH_I2C_Read... [14:12:10]Read from MH i2c: F0 09 00 [14:12:10]MH_I2C_Read... [14:12:10]Read from MH i2c: F0 09 00 B3 00 00 BA 38 74 66 BC EC 60 65 E4 [14:12:10]GetLastDocTimeStamp 1718892685 [14:12:10]current date 1718892730 [14:12:10]FM_GetShiftState [14:12:10]SAM_PROTO_GetShiftState [14:12:10]wFMCommunicate request_size=4 [14:12:10]MH_SAM_APDU [14:12:10]CAPDU: 80 13 01 00 [14:12:10]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [14:12:10]Write i2c OK [14:12:10]MH_I2C_Read... [14:12:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:10]Read from MH i2c: E2 [14:12:10]MH_I2C_Read... [14:12:10]Read from MH i2c: E2 0E 00 [14:12:10]MH_I2C_Read... [14:12:10]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 AC [14:12:10]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:12:10]wFMCommunicate OK [14:12:10]SAM_PROTO_GetShiftState done [14:12:10]FM_GetShiftState done [14:12:10]opened in 1718847247 [14:12:10]opened+sec_in_day 1718933647 [14:12:10]quantity*price = 50065 [14:12:10]sum+1 = 50067 [14:12:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 129 20.06.2024 14:12 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111679 ФПД: 37189154201743 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T141210&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111679&fm=37189154201743&tin=02508201610067®Number=0000000000092771&sum=50000 [14:12:11]StoreToDocumentArchive [14:12:11]shift 389 fd 111679 [14:12:11]save to /storage/0389/doc_00111679 [14:12:11]save last doc name /storage/0389/doc_00111679 to /storage/kkm_last_doc_name [14:12:11]save OK [14:12:11]Clear old archive folders... [14:12:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:12:11]tlvbuf is 01709F90 [14:12:11]SAM_PROTO_ClearQueue [14:12:11]wFMCommunicate request_size=4 [14:12:11]MH_SAM_APDU [14:12:11]CAPDU: 80 09 00 00 [14:12:11]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [14:12:11]Write i2c OK [14:12:11]MH_I2C_Read... [14:12:11]Read from MH i2c: E2 [14:12:11]MH_I2C_Read... [14:12:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:12:11]Read from MH i2c: E2 03 00 [14:12:11]MH_I2C_Read... [14:12:11]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [14:12:11]RAPDU: 90 00 [14:12:11]wFMCommunicate OK [14:12:11]SAM_PROTO_ClearQueue done [14:12:11]KKMCreateOFDPacket [14:12:11]OFDProtocolAddRootSTLVToBuf [14:12:11]FM_MakeSignedData [14:12:11]FM_MakeSignedData [14:12:11]SAM_PROTO_SignData [14:12:11]wFMCommunicate request_size=4 [14:12:11]MH_SAM_APDU [14:12:11]CAPDU: 80 0D 01 02 [14:12:11]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [14:12:11]Write i2c OK [14:12:11]MH_I2C_Read... [14:12:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:12:11]Read from MH i2c: E2 [14:12:11]MH_I2C_Read... [14:12:11]Read from MH i2c: E2 03 00 [14:12:11]MH_I2C_Read... [14:12:11]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [14:12:11]RAPDU: 90 00 [14:12:11]wFMCommunicate OK [14:12:11]wFMCommunicate request_size=255 [14:12:11]MH_SAM_APDU [14:12:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 BA 38 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3F B4 01 00 35 04 06 00 21 [14:12:11]Write to MH i2c: E2 02 01 C3 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 BA 38 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3F B4 01 00 35 04 06 00 21 00 00 D7 [14:12:11]Write i2c OK [14:12:11]MH_I2C_Read... [14:12:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:11]Read from MH i2c: E2 [14:12:11]MH_I2C_Read... [14:12:11]Read from MH i2c: E2 03 00 [14:12:11]MH_I2C_Read... [14:12:11]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [14:12:11]RAPDU: 90 00 [14:12:11]wFMCommunicate OK [14:12:11]wFMCommunicate request_size=10 [14:12:11]MH_SAM_APDU [14:12:11]CAPDU: 80 0D 02 02 05 D2 C6 53 60 8F [14:12:11]Write to MH i2c: E2 0D 00 C4 00 80 0D 02 02 05 00 D2 C6 53 60 8F 00 00 22 [14:12:11]Write i2c OK [14:12:11]MH_I2C_Read... [14:12:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:11]Read from MH i2c: E2 [14:12:11]MH_I2C_Read... [14:12:11]Read from MH i2c: E2 03 00 [14:12:11]MH_I2C_Read... [14:12:11]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [14:12:11]RAPDU: 90 00 [14:12:11]wFMCommunicate OK [14:12:11]wFMCommunicate request_size=4 [14:12:11]MH_SAM_APDU [14:12:11]CAPDU: 80 0D 03 02 [14:12:11]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [14:12:11]Write i2c OK [14:12:11]MH_I2C_Read... [14:12:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:12:11]Read from MH i2c: E2 [14:12:11]MH_I2C_Read... [14:12:11]Read from MH i2c: E2 0B 00 [14:12:11]MH_I2C_Read... [14:12:11]Read from MH i2c: E2 0B 00 C5 00 00 8B 37 2F F8 26 0D BB 21 90 00 39 [14:12:11]RAPDU: 8B 37 2F F8 26 0D BB 21 90 00 [14:12:11]wFMCommunicate OK [14:12:11]SAM_PROTO_SignData done [14:12:11]FM_MakeSignedData done [14:12:11]CreateOFDProtocolMessage [14:12:11]wFMCommunicate request_size=4 [14:12:11]MH_SAM_APDU [14:12:11]CAPDU: 80 11 00 00 [14:12:11]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [14:12:11]Write i2c OK [14:12:11]MH_I2C_Read... [14:12:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:11]Read from MH i2c: E2 [14:12:11]MH_I2C_Read... [14:12:11]Read from MH i2c: E2 17 00 [14:12:11]MH_I2C_Read... [14:12:11]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 35 30 38 33 90 00 92 [14:12:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:12:11]wFMCommunicate OK [14:12:11]CreateOFDProtocolMessage done [14:12:11]OFDSenderStorePacket 111679 [14:12:11]StoreOFDPacket docnum=111679 [14:12:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 09 BF 07 01 07 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 BA 38 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3F B4 01 00 35 04 06 00 21 D2 C6 53 60 8F 8B 37 2F F8 26 0D BB 21 [14:12:11]CheckFolder [14:12:11]dirname=/storage/ofd_packets [14:12:11]CheckFolder done [14:12:11]ProducePacketName [14:12:11]name=ofd_packets/00111679 [14:12:11]NVStorageSaveData ofd_packets/00111679 [14:12:11]File name is /storage/ofd_packets/00111679 [14:12:11]Write 301 bytes [14:12:11]NVStorageSaveData done [14:12:11]OFDSenderStorePacket done [14:12:11]KKMCreateOFDPacket done [14:12:11]NVStorageSaveData kkm_last_timestamp [14:12:11]File name is /storage/kkm_last_timestamp [14:12:11]Write 4 bytes [14:12:11]NVStorageSaveData done [14:12:11]ExternCall_PrintAddStr [14:12:11]wPrintStart [14:12:11]Write to MH i2c: 01 00 00 C7 00 C7 [14:12:11]Write i2c OK [14:12:11]MH_I2C_Read... [14:12:11]Read from MH i2c: 01 [14:12:11]MH_I2C_Read... [14:12:11]Read from MH i2c: 01 07 00 [14:12:11]MH_I2C_Read... [14:12:11]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [14:12:11]RasterBufferAndPrint [14:12:11]line Счет N : (1)320295 [14:12:11]line ИНН: 02508201610067 [14:12:11]line Контрольно-Кассовый Чек [14:12:11]line ПРОДАЖА [14:12:11]line ТРК (МРК, ГНК) : 11 [14:12:11]line Товар: 2710124130 [14:12:11]line Аи-92-К-5 [14:12:11]line 7.540 * 66.40 [14:12:11]line = 500.66 [14:12:11]line НДС 12% НСП 1% [14:12:11]line > о реализуемом товаре [14:12:11]line ОКРУГЛЕНИЕ: -0.66 [14:12:11]line ИТОГО: 500.00 [14:12:11]line Внесено: 500.00 [14:12:11]line СДАЧА: 0.00 [14:12:11]line НСП 1% : 4.43 [14:12:11]line НДС 12% : 53.17 [14:12:11]line Наличными: 500.00 [14:12:11]line Безнал.: 0.00 [14:12:11]line Место: АЗС № 65 "Партнер Нефть" [14:12:11]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:12:11]line СНО: Общий режим [14:12:11]line Чек 129 20.06.2024 14:12 [14:12:11]line Смена: 389 ФФД: 1.0 [14:12:11]line ЗНМ: 0300000198 [14:12:11]line РНМ: 0000000000092771 [14:12:11]line Версия ККМ: 001 [14:12:11]line ФМ: 0000000000875083 [14:12:11]line ФД: 111679 [14:12:11]line ФПД: 37189154201743 [14:12:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T141210&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111679&fm=37189154201743&tin=02508201610067®Number=0000000000092771&sum=50000 [14:12:12]OFD Sender: Processing packet 111679 [packets to send 38, broken 37] [14:12:12]ProducePacketName [14:12:12]name=ofd_packets/00111679 [14:12:12]OFD Sender: To server: pG, [14:12:12]CommunicateWithHost lk.salyk.kg:30040 [14:12:12]ConnectInit lk.salyk.kg [14:12:12]written 0, free lines is 4095 [14:12:12]Connected sock=10 [14:12:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 09 BF 07 01 07 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 BA 38 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3F B4 01 00 35 04 06 00 21 D2 C6 53 60 8F 8B 37 2F F8 26 0D BB 21 [14:12:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 87 32 47 00 0D A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3F B4 01 00 F4 03 04 00 02 D0 73 66 B6 04 01 00 00 7F 4D 69 4E 48 21 A7 04 [14:12:12]CommunicateWithHost err = 0 [14:12:12]CheckOFDResponse [14:12:12]1017 (14) - 77093643461234 [14:12:12]1041 (16) - 0000000000875083 [14:12:12]1040 (4) - 111679 [14:12:12]1012 (4) - 20.06.2024 06:45 [14:12:12]1206 (1) - 0 [14:12:12]OFD Sender: Remove packet 111679 [14:12:12]ProducePacketName [14:12:12]name=ofd_packets/00111679 [14:12:12]NVStorageDeleteData [14:12:12]Write to MH i2c: 01 00 00 F2 00 F2 [14:12:12]Write i2c OK [14:12:12]MH_I2C_Read... [14:12:12]Read from MH i2c: 01 [14:12:12]MH_I2C_Read... [14:12:12]Read from MH i2c: 01 07 00 [14:12:12]MH_I2C_Read... [14:12:12]Read from MH i2c: 01 07 00 F2 00 00 00 00 00 00 D6 0C DB [14:12:12]RasterBufferAndPrint [14:12:12]line [14:12:12]line [14:12:12]line [14:12:12]line [14:12:12]line [14:12:12]written 0, free lines is 3293 [14:12:12]MH_Cut [14:12:12]Write to MH i2c: D1 01 00 F9 00 01 CB [14:12:12]Write i2c OK [14:12:12]MH_I2C_Read... [14:12:12]Read from MH i2c: D1 [14:12:12]MH_I2C_Read... [14:12:12]Read from MH i2c: D1 01 00 [14:12:12]MH_I2C_Read... [14:12:12]Read from MH i2c: D1 01 00 F9 00 00 CA [14:12:12]Write to MH i2c: 01 00 00 FA 00 FA [14:12:12]Write i2c OK [14:12:12]MH_I2C_Read... [14:12:12]OFD Sender: No OFD packet to send [14:12:13]*** Cut start [14:12:13]*** Partial cut [14:12:13]*** CUTSNS_PIN = 1 [14:12:13]*** CUTSNS_PIN = 0 [14:12:13]*** Brake cut motor [14:12:13]Read from MH i2c: 01 [14:12:13]MH_I2C_Read... [14:12:13]*** Stop cut motor [14:12:13]*** Cut end [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 FA 00 00 00 00 00 00 FF 0F 0F [14:12:13]process_action close_receipt done [14:12:13]requested_data is exist [14:12:13]produce_requested_data [14:12:13]requested_item fm.sn is exist - process it [14:12:13]wFMCommunicate request_size=4 [14:12:13]MH_SAM_APDU [14:12:13]CAPDU: 80 11 00 00 [14:12:13]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [14:12:13]Write i2c OK [14:12:13]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 FB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C7 [14:12:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:12:13]wFMCommunicate OK [14:12:13]requested_item fd.num is exist - process it [14:12:13]SAM_PROTO_GetFieldsCounters [14:12:13]wFMCommunicate request_size=4 [14:12:13]MH_SAM_APDU [14:12:13]CAPDU: 80 13 00 00 [14:12:13]Write to MH i2c: E2 08 00 FC 00 80 13 00 00 00 00 00 00 78 [14:12:13]Write i2c OK [14:12:13]MH_I2C_Read... [14:12:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:12:14]Read from MH i2c: E2 [14:12:14]MH_I2C_Read... [14:12:14]Read from MH i2c: E2 62 00 [14:12:14]MH_I2C_Read... [14:12:14]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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3F B4 01 00 0E 04 04 00 85 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 96 [14:12:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3F B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:12:14]wFMCommunicate OK [14:12:14]SAM_PROTO_GetFieldsCounters done [14:12:14]requested_item shift.num is exist - process it [14:12:14]requested_item shift.opened is exist - process it [14:12:14]req_shift_opened [14:12:14]FM_GetShiftState [14:12:14]SAM_PROTO_GetShiftState [14:12:14]wFMCommunicate request_size=4 [14:12:14]MH_SAM_APDU [14:12:14]CAPDU: 80 13 01 00 [14:12:14]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [14:12:14]Write i2c OK [14:12:14]MH_I2C_Read... [14:12:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:14]Read from MH i2c: E2 [14:12:14]MH_I2C_Read... [14:12:14]Read from MH i2c: E2 0E 00 [14:12:14]MH_I2C_Read... [14:12:14]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 F5 [14:12:14]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:12:14]wFMCommunicate OK [14:12:14]SAM_PROTO_GetShiftState done [14:12:14]FM_GetShiftState done [14:12:14]req_shift_opened done [14:12:14]requested_item shift.open_date is exist - process it [14:12:14]req_shift_open_date [14:12:14]req_shift_open_date done [14:12:14]produce_requested_data done [14:12:14]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111679,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [14:12:14]process_action_free close_receipt [14:12:14]json_value_free [14:12:14]json_value_free done [14:12:14]process_json_proto returns [14:12:14]Send response to host [14:12:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111679,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [14:12:14]free response buf [14:12:14]execute_script done [14:12:14]execute_script returns [14:12:14]free content buf [14:12:14]Sock 9.Close socket [14:12:14]Sock 9.Thread stoped [14:12:17]OFD Sender: No OFD packet to send [14:12:22]OFD Sender: No OFD packet to send [14:12:27]OFD Sender: No OFD packet to send [14:12:32]OFD Sender: No OFD packet to send [14:12:37]OFD Sender: No OFD packet to send [14:12:42]OFD Sender: No OFD packet to send [14:12:47]OFD Sender: No OFD packet to send [14:12:52]OFD Sender: No OFD packet to send [14:12:57]OFD Sender: No OFD packet to send [14:13:02]OFD Sender: No OFD packet to send [14:13:07]OFD Sender: No OFD packet to send [14:13:12]OFD Sender: No OFD packet to send [14:13:17]OFD Sender: No OFD packet to send [14:13:22]OFD Sender: No OFD packet to send [14:13:23]accept exits with 7 [14:13:23]New connection [14:13:23]New thread 3067153764 created [14:13:23]Thread 3067297124 joined [14:13:23]Waiting for new connection... [14:13:23] Sock 7.Parse request [14:13:23]Sock 7.Check first char [14:13:23]Sock 7.First char is OK [14:13:23]request: POST /json_proto HTTP/1.0 [14:13:23]Method: POST [14:13:23]URL: /json_proto [14:13:23]Method is POST - this is cgi request [14:13:23]url: /json_proto [14:13:23]query_string will be loaded in cgi processing [14:13:23]execute_cgi json_proto POST (null) [14:13:23]execute_cgi path=json_proto method=POST [14:13:23]POST find Content-Length [14:13:23]Host: 172.17.59.68:8080 [14:13:23]Content-Length: 677 [14:13:23]Content-Type: application/json [14:13:23] [14:13:23]POST finish read [14:13:23]Found Content-Length = 677 [14:13:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:23]execute_script... [14:13:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:23]POST & json_proto [14:13:23]process_json_proto [14:13:23]json parsed OK: [14:13:23]protocol is kg_v1.0 [14:13:23]action value=close_receipt [14:13:23]process_action close_receipt [14:13:23]cmd_close_receipt [14:13:23]MH_GetDate [14:13:23]Write to MH i2c: F0 00 00 FE 00 ED [14:13:23]Write i2c OK [14:13:23]MH_I2C_Read... [14:13:23]Read from MH i2c: F0 [14:13:23]MH_I2C_Read... [14:13:23]Read from MH i2c: F0 09 00 [14:13:23]MH_I2C_Read... [14:13:23]Read from MH i2c: F0 09 00 FE 00 00 03 39 74 66 BC EC 60 65 79 [14:13:23]GetLastDocTimeStamp 1718892730 [14:13:23]current date 1718892803 [14:13:23]FM_GetShiftState [14:13:23]SAM_PROTO_GetShiftState [14:13:23]wFMCommunicate request_size=4 [14:13:23]MH_SAM_APDU [14:13:23]CAPDU: 80 13 01 00 [14:13:23]Write to MH i2c: E2 08 00 FF 00 80 13 01 00 00 00 00 00 7C [14:13:23]Write i2c OK [14:13:23]MH_I2C_Read... [14:13:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:23]Read from MH i2c: E2 [14:13:23]MH_I2C_Read... [14:13:23]Read from MH i2c: E2 0E 00 [14:13:23]MH_I2C_Read... [14:13:23]Read from MH i2c: E2 0E 00 FF 00 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 F7 [14:13:23]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:13:23]wFMCommunicate OK [14:13:23]SAM_PROTO_GetShiftState done [14:13:23]FM_GetShiftState done [14:13:23]opened in 1718847247 [14:13:23]opened+sec_in_day 1718933647 [14:13:23]quantity*price = 30012 [14:13:23]sum+1 = 30014 [14:13:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 130 20.06.2024 14:13 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111680 ФПД: 108979045779451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T141323&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111680&fm=108979045779451&tin=02508201610067®Number=0000000000092771&sum=30000 [14:13:24]StoreToDocumentArchive [14:13:24]shift 389 fd 111680 [14:13:24]save to /storage/0389/doc_00111680 [14:13:24]save last doc name /storage/0389/doc_00111680 to /storage/kkm_last_doc_name [14:13:24]save OK [14:13:24]Clear old archive folders... [14:13:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:13:24]tlvbuf is 016C33B0 [14:13:24]SAM_PROTO_ClearQueue [14:13:24]wFMCommunicate request_size=4 [14:13:24]MH_SAM_APDU [14:13:24]CAPDU: 80 09 00 00 [14:13:24]Write to MH i2c: E2 08 00 0C 01 80 09 00 00 00 00 00 00 7F [14:13:24]Write i2c OK [14:13:24]MH_I2C_Read... [14:13:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:24]Read from MH i2c: E2 [14:13:24]MH_I2C_Read... [14:13:24]Read from MH i2c: E2 03 00 [14:13:24]MH_I2C_Read... [14:13:24]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [14:13:24]RAPDU: 90 00 [14:13:24]wFMCommunicate OK [14:13:24]SAM_PROTO_ClearQueue done [14:13:24]KKMCreateOFDPacket [14:13:24]OFDProtocolAddRootSTLVToBuf [14:13:24]FM_MakeSignedData [14:13:24]FM_MakeSignedData [14:13:24]SAM_PROTO_SignData [14:13:24]wFMCommunicate request_size=4 [14:13:24]MH_SAM_APDU [14:13:24]CAPDU: 80 0D 01 02 [14:13:24]Write to MH i2c: E2 08 00 0D 01 80 0D 01 02 00 00 00 00 87 [14:13:24]Write i2c OK [14:13:24]MH_I2C_Read... [14:13:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:24]Read from MH i2c: E2 [14:13:24]MH_I2C_Read... [14:13:24]Read from MH i2c: E2 03 00 [14:13:24]MH_I2C_Read... [14:13:24]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [14:13:24]RAPDU: 90 00 [14:13:24]wFMCommunicate OK [14:13:24]wFMCommunicate request_size=255 [14:13:24]MH_SAM_APDU [14:13:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 03 39 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 40 B4 01 00 35 04 06 00 63 [14:13:24]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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 03 39 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 40 B4 01 00 35 04 06 00 63 00 00 4F [14:13:24]Write i2c OK [14:13:24]MH_I2C_Read... [14:13:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:24]Read from MH i2c: E2 [14:13:24]MH_I2C_Read... [14:13:24]Read from MH i2c: E2 03 00 [14:13:24]MH_I2C_Read... [14:13:24]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [14:13:24]RAPDU: 90 00 [14:13:24]wFMCommunicate OK [14:13:24]wFMCommunicate request_size=10 [14:13:24]MH_SAM_APDU [14:13:24]CAPDU: 80 0D 02 02 05 1D A9 4F C7 FB [14:13:24]Write to MH i2c: E2 0D 00 0F 01 80 0D 02 02 05 00 1D A9 4F C7 FB 00 00 6B [14:13:24]Write i2c OK [14:13:24]MH_I2C_Read... [14:13:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:24]Read from MH i2c: E2 [14:13:24]MH_I2C_Read... [14:13:24]Read from MH i2c: E2 03 00 [14:13:24]MH_I2C_Read... [14:13:24]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [14:13:24]RAPDU: 90 00 [14:13:24]wFMCommunicate OK [14:13:24]wFMCommunicate request_size=4 [14:13:24]MH_SAM_APDU [14:13:24]CAPDU: 80 0D 03 02 [14:13:24]Write to MH i2c: E2 08 00 10 01 80 0D 03 02 00 00 00 00 8C [14:13:24]Write i2c OK [14:13:24]MH_I2C_Read... [14:13:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:24]Read from MH i2c: E2 [14:13:24]MH_I2C_Read... [14:13:24]Read from MH i2c: E2 0B 00 [14:13:24]MH_I2C_Read... [14:13:24]Read from MH i2c: E2 0B 00 10 01 00 74 96 35 63 88 A2 94 10 90 00 FD [14:13:24]RAPDU: 74 96 35 63 88 A2 94 10 90 00 [14:13:24]wFMCommunicate OK [14:13:24]SAM_PROTO_SignData done [14:13:24]FM_MakeSignedData done [14:13:24]CreateOFDProtocolMessage [14:13:24]wFMCommunicate request_size=4 [14:13:24]MH_SAM_APDU [14:13:24]CAPDU: 80 11 00 00 [14:13:24]Write to MH i2c: E2 08 00 11 01 80 11 00 00 00 00 00 00 8C [14:13:25]Write i2c OK [14:13:25]MH_I2C_Read... [14:13:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:25]Read from MH i2c: E2 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: E2 17 00 [14:13:25]MH_I2C_Read... [14:13:25]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 35 30 38 33 90 00 DE [14:13:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:13:25]wFMCommunicate OK [14:13:25]CreateOFDProtocolMessage done [14:13:25]OFDSenderStorePacket 111680 [14:13:25]StoreOFDPacket docnum=111680 [14:13:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C1 9A 07 01 9B F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 03 39 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 40 B4 01 00 35 04 06 00 63 1D A9 4F C7 FB 74 96 35 63 88 A2 94 10 [14:13:25]CheckFolder [14:13:25]dirname=/storage/ofd_packets [14:13:25]CheckFolder done [14:13:25]ProducePacketName [14:13:25]name=ofd_packets/00111680 [14:13:25]NVStorageSaveData ofd_packets/00111680 [14:13:25]File name is /storage/ofd_packets/00111680 [14:13:25]Write 301 bytes [14:13:25]NVStorageSaveData done [14:13:25]OFDSenderStorePacket done [14:13:25]KKMCreateOFDPacket done [14:13:25]NVStorageSaveData kkm_last_timestamp [14:13:25]File name is /storage/kkm_last_timestamp [14:13:25]Write 4 bytes [14:13:25]NVStorageSaveData done [14:13:25]ExternCall_PrintAddStr [14:13:25]wPrintStart [14:13:25]Write to MH i2c: 01 00 00 12 01 13 [14:13:25]Write i2c OK [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: 01 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: 01 07 00 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: 01 07 00 12 01 00 00 00 00 00 FF 0F 28 [14:13:25]RasterBufferAndPrint [14:13:25]line Счет N : (1)320296 [14:13:25]line ИНН: 02508201610067 [14:13:25]line Контрольно-Кассовый Чек [14:13:25]line ПРОДАЖА [14:13:25]line ТРК (МРК, ГНК) : 11 [14:13:25]line Товар: 2710124130 [14:13:25]line Аи-92-К-5 [14:13:25]line 4.520 * 66.40 [14:13:25]line = 300.13 [14:13:25]line НДС 12% НСП 1% [14:13:25]line > о реализуемом товаре [14:13:25]line ОКРУГЛЕНИЕ: -0.13 [14:13:25]line ИТОГО: 300.00 [14:13:25]line Внесено: 300.00 [14:13:25]line СДАЧА: 0.00 [14:13:25]line НСП 1% : 2.66 [14:13:25]line НДС 12% : 31.87 [14:13:25]line Наличными: 300.00 [14:13:25]line Безнал.: 0.00 [14:13:25]line Место: АЗС № 65 "Партнер Нефть" [14:13:25]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:13:25]line СНО: Общий режим [14:13:25]line Чек 130 20.06.2024 14:13 [14:13:25]line Смена: 389 ФФД: 1.0 [14:13:25]line ЗНМ: 0300000198 [14:13:25]line РНМ: 0000000000092771 [14:13:25]line Версия ККМ: 001 [14:13:25]line ФМ: 0000000000875083 [14:13:25]line ФД: 111680 [14:13:25]line ФПД: 108979045779451 [14:13:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T141323&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111680&fm=108979045779451&tin=02508201610067®Number=0000000000092771&sum=30000 [14:13:25]OFD Sender: Processing packet 111680 [packets to send 38, broken 37] [14:13:25]ProducePacketName [14:13:25]name=ofd_packets/00111680 [14:13:25]OFD Sender: To server: pG, [14:13:25]CommunicateWithHost lk.salyk.kg:30040 [14:13:25]ConnectInit lk.salyk.kg [14:13:25]written 0, free lines is 4095 [14:13:25]Connected sock=10 [14:13:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C1 9A 07 01 9B F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 03 39 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 40 B4 01 00 35 04 06 00 63 1D A9 4F C7 FB 74 96 35 63 88 A2 94 10 [14:13:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 72 7A 47 00 46 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 35 30 38 33 10 04 04 00 40 B4 01 00 F4 03 04 00 4C D0 73 66 B6 04 01 00 00 EF FD F9 77 CB D7 FD 32 [14:13:25]CommunicateWithHost err = 0 [14:13:25]CheckOFDResponse [14:13:25]1017 (14) - 77093643461234 [14:13:25]1041 (16) - 0000000000875083 [14:13:25]1040 (4) - 111680 [14:13:25]1012 (4) - 20.06.2024 06:46 [14:13:25]1206 (1) - 0 [14:13:25]OFD Sender: Remove packet 111680 [14:13:25]ProducePacketName [14:13:25]name=ofd_packets/00111680 [14:13:25]NVStorageDeleteData [14:13:25]Write to MH i2c: 01 00 00 3D 01 3E [14:13:25]Write i2c OK [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: 01 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: 01 07 00 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: 01 07 00 3D 01 00 00 00 00 00 CD 0C 1E [14:13:25]RasterBufferAndPrint [14:13:25]line [14:13:25]line [14:13:25]line [14:13:25]line [14:13:25]line [14:13:25]written 0, free lines is 3283 [14:13:25]MH_Cut [14:13:25]Write to MH i2c: D1 01 00 44 01 01 17 [14:13:25]Write i2c OK [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: D1 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: D1 01 00 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: D1 01 00 44 01 00 16 [14:13:25]Write to MH i2c: 01 00 00 45 01 46 [14:13:25]Write i2c OK [14:13:25]MH_I2C_Read... [14:13:26]OFD Sender: No OFD packet to send [14:13:26]*** Cut start [14:13:26]*** Partial cut [14:13:26]*** CUTSNS_PIN = 1 [14:13:26]*** CUTSNS_PIN = 0 [14:13:26]*** Brake cut motor [14:13:27]Read from MH i2c: 01 [14:13:27]MH_I2C_Read... [14:13:27]*** Stop cut motor [14:13:27]*** Cut end [14:13:27]Read from MH i2c: 01 07 00 [14:13:27]MH_I2C_Read... [14:13:27]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [14:13:27]process_action close_receipt done [14:13:27]requested_data is exist [14:13:27]produce_requested_data [14:13:27]requested_item fm.sn is exist - process it [14:13:27]wFMCommunicate request_size=4 [14:13:27]MH_SAM_APDU [14:13:27]CAPDU: 80 11 00 00 [14:13:27]Write to MH i2c: E2 08 00 46 01 80 11 00 00 00 00 00 00 C1 [14:13:27]Write i2c OK [14:13:27]MH_I2C_Read... [14:13:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:27]Read from MH i2c: E2 [14:13:27]MH_I2C_Read... [14:13:27]Read from MH i2c: E2 17 00 [14:13:27]MH_I2C_Read... [14:13:27]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 35 30 38 33 90 00 13 [14:13:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:13:27]wFMCommunicate OK [14:13:27]requested_item fd.num is exist - process it [14:13:27]SAM_PROTO_GetFieldsCounters [14:13:27]wFMCommunicate request_size=4 [14:13:27]MH_SAM_APDU [14:13:27]CAPDU: 80 13 00 00 [14:13:27]Write to MH i2c: E2 08 00 47 01 80 13 00 00 00 00 00 00 C4 [14:13:27]Write i2c OK [14:13:27]MH_I2C_Read... [14:13:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:27]Read from MH i2c: E2 [14:13:27]MH_I2C_Read... [14:13:27]Read from MH i2c: E2 62 00 [14:13:27]MH_I2C_Read... [14:13:27]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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 40 B4 01 00 0E 04 04 00 85 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 E6 [14:13:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 40 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:13:27]wFMCommunicate OK [14:13:27]SAM_PROTO_GetFieldsCounters done [14:13:27]requested_item shift.num is exist - process it [14:13:27]requested_item shift.opened is exist - process it [14:13:27]req_shift_opened [14:13:27]FM_GetShiftState [14:13:27]SAM_PROTO_GetShiftState [14:13:27]wFMCommunicate request_size=4 [14:13:27]MH_SAM_APDU [14:13:27]CAPDU: 80 13 01 00 [14:13:27]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [14:13:27]Write i2c OK [14:13:27]MH_I2C_Read... [14:13:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:27]Read from MH i2c: E2 [14:13:27]MH_I2C_Read... [14:13:27]Read from MH i2c: E2 0E 00 [14:13:27]MH_I2C_Read... [14:13:27]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 41 [14:13:27]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:13:27]wFMCommunicate OK [14:13:27]SAM_PROTO_GetShiftState done [14:13:27]FM_GetShiftState done [14:13:27]req_shift_opened done [14:13:27]requested_item shift.open_date is exist - process it [14:13:27]req_shift_open_date [14:13:27]req_shift_open_date done [14:13:27]produce_requested_data done [14:13:27]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111680,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [14:13:27]process_action_free close_receipt [14:13:27]json_value_free [14:13:27]json_value_free done [14:13:27]process_json_proto returns [14:13:27]Send response to host [14:13:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111680,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [14:13:27]free response buf [14:13:27]execute_script done [14:13:27]execute_script returns [14:13:27]free content buf [14:13:27]Sock 7.Close socket [14:13:27]Sock 7.Thread stoped [14:13:31]OFD Sender: No OFD packet to send [14:13:36]OFD Sender: No OFD packet to send [14:13:41]OFD Sender: No OFD packet to send [14:13:46]OFD Sender: No OFD packet to send [14:13:51]OFD Sender: No OFD packet to send [14:13:51]accept exits with 9 [14:13:51]New connection [14:13:51]New thread 3067297124 created [14:13:51]Thread 3067153764 joined [14:13:51]Waiting for new connection... [14:13:51] Sock 9.Parse request [14:13:51]Sock 9.Check first char [14:13:51]Sock 9.First char is OK [14:13:51]request: POST /json_proto HTTP/1.0 [14:13:51]Method: POST [14:13:51]URL: /json_proto [14:13:51]Method is POST - this is cgi request [14:13:51]url: /json_proto [14:13:51]query_string will be loaded in cgi processing [14:13:51]execute_cgi json_proto POST (null) [14:13:51]execute_cgi path=json_proto method=POST [14:13:51]POST find Content-Length [14:13:51]Host: 172.17.59.68:8080 [14:13:51]Content-Length: 805 [14:13:51]Content-Type: application/json [14:13:51] [14:13:51]POST finish read [14:13:51]Found Content-Length = 805 [14:13:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.800, "sum" : 385.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 385.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:51]execute_script... [14:13:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.800, "sum" : 385.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 385.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:51]POST & json_proto [14:13:51]process_json_proto [14:13:51]json parsed OK: [14:13:51]protocol is kg_v1.0 [14:13:51]action value=close_receipt [14:13:51]process_action close_receipt [14:13:51]cmd_close_receipt [14:13:51]MH_GetDate [14:13:51]Write to MH i2c: F0 00 00 49 01 39 [14:13:51]Write i2c OK [14:13:51]MH_I2C_Read... [14:13:51]Read from MH i2c: F0 [14:13:51]MH_I2C_Read... [14:13:51]Read from MH i2c: F0 09 00 [14:13:51]MH_I2C_Read... [14:13:51]Read from MH i2c: F0 09 00 49 01 00 20 39 74 66 BC EC 60 65 E2 [14:13:51]GetLastDocTimeStamp 1718892803 [14:13:51]current date 1718892832 [14:13:51]FM_GetShiftState [14:13:51]SAM_PROTO_GetShiftState [14:13:51]wFMCommunicate request_size=4 [14:13:51]MH_SAM_APDU [14:13:51]CAPDU: 80 13 01 00 [14:13:51]Write to MH i2c: E2 08 00 4A 01 80 13 01 00 00 00 00 00 C8 [14:13:51]Write i2c OK [14:13:51]MH_I2C_Read... [14:13:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:51]Read from MH i2c: E2 [14:13:51]MH_I2C_Read... [14:13:51]Read from MH i2c: E2 0E 00 [14:13:51]MH_I2C_Read... [14:13:51]Read from MH i2c: E2 0E 00 4A 01 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 43 [14:13:51]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:13:51]wFMCommunicate OK [14:13:51]SAM_PROTO_GetShiftState done [14:13:51]FM_GetShiftState done [14:13:51]opened in 1718847247 [14:13:51]opened+sec_in_day 1718933647 [14:13:51]quantity*price = 38512 [14:13:51]sum+1 = 38513 [14:13:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 385.12 НСП 1% : 3.41 НДС 12% : 40.90 Наличными: 0.00 Безнал.: 385.12 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 131 20.06.2024 14:13 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111681 ФПД: 110849402890215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T141352&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111681&fm=110849402890215&tin=02508201610067®Number=0000000000092771&sum=38512 [14:13:53]StoreToDocumentArchive [14:13:53]shift 389 fd 111681 [14:13:53]save to /storage/0389/doc_00111681 [14:13:53]save last doc name /storage/0389/doc_00111681 to /storage/kkm_last_doc_name [14:13:53]save OK [14:13:53]Clear old archive folders... [14:13:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:13:53]tlvbuf is 016BDD50 [14:13:53]SAM_PROTO_ClearQueue [14:13:53]wFMCommunicate request_size=4 [14:13:53]MH_SAM_APDU [14:13:53]CAPDU: 80 09 00 00 [14:13:53]Write to MH i2c: E2 08 00 57 01 80 09 00 00 00 00 00 00 CA [14:13:53]Write i2c OK [14:13:53]MH_I2C_Read... [14:13:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:53]Read from MH i2c: E2 [14:13:53]MH_I2C_Read... [14:13:53]Read from MH i2c: E2 03 00 [14:13:53]MH_I2C_Read... [14:13:53]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [14:13:53]RAPDU: 90 00 [14:13:53]wFMCommunicate OK [14:13:53]SAM_PROTO_ClearQueue done [14:13:53]KKMCreateOFDPacket [14:13:53]OFDProtocolAddRootSTLVToBuf [14:13:53]FM_MakeSignedData [14:13:53]FM_MakeSignedData [14:13:53]SAM_PROTO_SignData [14:13:53]wFMCommunicate request_size=4 [14:13:53]MH_SAM_APDU [14:13:53]CAPDU: 80 0D 01 02 [14:13:53]Write to MH i2c: E2 08 00 58 01 80 0D 01 02 00 00 00 00 D2 [14:13:53]Write i2c OK [14:13:53]MH_I2C_Read... [14:13:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:53]Read from MH i2c: E2 [14:13:53]MH_I2C_Read... [14:13:53]Read from MH i2c: E2 03 00 [14:13:53]MH_I2C_Read... [14:13:53]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [14:13:53]RAPDU: 90 00 [14:13:53]wFMCommunicate OK [14:13:53]wFMCommunicate request_size=255 [14:13:53]MH_SAM_APDU [14:13: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 A8 16 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 70 96 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 96 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 20 39 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 41 B4 01 00 35 04 06 00 64 [14:13:53]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 A8 16 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 70 96 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 96 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 20 39 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 41 B4 01 00 35 04 06 00 64 00 00 AA [14:13:53]Write i2c OK [14:13:53]MH_I2C_Read... [14:13:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:53]Read from MH i2c: E2 [14:13:53]MH_I2C_Read... [14:13:53]Read from MH i2c: E2 03 00 [14:13:53]MH_I2C_Read... [14:13:53]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [14:13:53]RAPDU: 90 00 [14:13:53]wFMCommunicate OK [14:13:53]wFMCommunicate request_size=10 [14:13:53]MH_SAM_APDU [14:13:53]CAPDU: 80 0D 02 02 05 D1 23 48 67 E7 [14:13:53]Write to MH i2c: E2 0D 00 5A 01 80 0D 02 02 05 00 D1 23 48 67 E7 00 00 69 [14:13:53]Write i2c OK [14:13:53]MH_I2C_Read... [14:13:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:53]Read from MH i2c: E2 [14:13:53]MH_I2C_Read... [14:13:53]Read from MH i2c: E2 03 00 [14:13:53]MH_I2C_Read... [14:13:53]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [14:13:53]RAPDU: 90 00 [14:13:53]wFMCommunicate OK [14:13:53]wFMCommunicate request_size=4 [14:13:53]MH_SAM_APDU [14:13:53]CAPDU: 80 0D 03 02 [14:13:53]Write to MH i2c: E2 08 00 5B 01 80 0D 03 02 00 00 00 00 D7 [14:13:53]Write i2c OK [14:13:53]MH_I2C_Read... [14:13:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:53]Read from MH i2c: E2 [14:13:53]MH_I2C_Read... [14:13:53]Read from MH i2c: E2 0B 00 [14:13:53]MH_I2C_Read... [14:13:53]Read from MH i2c: E2 0B 00 5B 01 00 D1 B1 B6 0D CA 31 AB A5 90 00 68 [14:13:53]RAPDU: D1 B1 B6 0D CA 31 AB A5 90 00 [14:13:53]wFMCommunicate OK [14:13:53]SAM_PROTO_SignData done [14:13:53]FM_MakeSignedData done [14:13:53]CreateOFDProtocolMessage [14:13:53]wFMCommunicate request_size=4 [14:13:53]MH_SAM_APDU [14:13:53]CAPDU: 80 11 00 00 [14:13:53]Write to MH i2c: E2 08 00 5C 01 80 11 00 00 00 00 00 00 D7 [14:13:53]Write i2c OK [14:13:53]MH_I2C_Read... [14:13:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:53]Read from MH i2c: E2 [14:13:53]MH_I2C_Read... [14:13:53]Read from MH i2c: E2 17 00 [14:13:53]MH_I2C_Read... [14:13:53]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 35 30 38 33 90 00 29 [14:13:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:13:53]wFMCommunicate OK [14:13:53]CreateOFDProtocolMessage done [14:13:53]OFDSenderStorePacket 111681 [14:13:53]StoreOFDPacket docnum=111681 [14:13:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 2C 8B 07 01 A7 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 A8 16 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 70 96 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 96 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 20 39 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 41 B4 01 00 35 04 06 00 64 D1 23 48 67 E7 D1 B1 B6 0D CA 31 AB A5 [14:13:53]CheckFolder [14:13:53]dirname=/storage/ofd_packets [14:13:53]CheckFolder done [14:13:53]ProducePacketName [14:13:53]name=ofd_packets/00111681 [14:13:53]NVStorageSaveData ofd_packets/00111681 [14:13:53]File name is /storage/ofd_packets/00111681 [14:13:53]Write 301 bytes [14:13:53]NVStorageSaveData done [14:13:53]OFDSenderStorePacket done [14:13:53]KKMCreateOFDPacket done [14:13:53]NVStorageSaveData kkm_last_timestamp [14:13:53]File name is /storage/kkm_last_timestamp [14:13:53]Write 4 bytes [14:13:53]NVStorageSaveData done [14:13:53]ExternCall_PrintAddStr [14:13:53]wPrintStart [14:13:53]Write to MH i2c: 01 00 00 5D 01 5E [14:13:53]Write i2c OK [14:13:53]MH_I2C_Read... [14:13:53]Read from MH i2c: 01 [14:13:53]MH_I2C_Read... [14:13:53]Read from MH i2c: 01 07 00 [14:13:53]MH_I2C_Read... [14:13:53]Read from MH i2c: 01 07 00 5D 01 00 00 00 00 00 FF 0F 73 [14:13:53]RasterBufferAndPrint [14:13:53]line Счет N : (1)320297 [14:13:53]line ИНН: 02508201610067 [14:13:53]line Контрольно-Кассовый Чек [14:13:53]line ПРОДАЖА [14:13:53]line ТРК (МРК, ГНК) : 11 [14:13:53]line Товар: 2710124130 [14:13:53]line Аи-92-К-5 [14:13:53]line 5.800 * 66.40 [14:13:53]line = 385.12 [14:13:53]line НДС 12% НСП 1% [14:13:53]line > о реализуемом товаре [14:13:53]line ИТОГО: 385.12 [14:13:53]line НСП 1% : 3.41 [14:13:53]line НДС 12% : 40.90 [14:13:53]line Наличными: 0.00 [14:13:53]line Безнал.: 385.12 [14:13:53]line Место: АЗС № 65 "Партнер Нефть" [14:13:53]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:13:53]line СНО: Общий режим [14:13:53]line Чек 131 20.06.2024 14:13 [14:13:53]line Смена: 389 ФФД: 1.0 [14:13:53]line ЗНМ: 0300000198 [14:13:53]line РНМ: 0000000000092771 [14:13:53]line Версия ККМ: 001 [14:13:53]line Платежная система: О! деньги [14:13:53]line ФМ: 0000000000875083 [14:13:53]line ФД: 111681 [14:13:53]line ФПД: 110849402890215 [14:13:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T141352&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111681&fm=110849402890215&tin=02508201610067®Number=0000000000092771&sum=38512 [14:13:53]OFD Sender: Processing packet 111681 [packets to send 38, broken 37] [14:13:53]ProducePacketName [14:13:53]name=ofd_packets/00111681 [14:13:53]OFD Sender: To server: pG, [14:13:53]CommunicateWithHost lk.salyk.kg:30040 [14:13:53]ConnectInit lk.salyk.kg [14:13:53]written 0, free lines is 4095 [14:13:54]Connected sock=10 [14:13:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 2C 8B 07 01 A7 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 A8 16 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 70 96 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 96 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 20 39 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 41 B4 01 00 35 04 06 00 64 D1 23 48 67 E7 D1 B1 B6 0D CA 31 AB A5 [14:13:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 47 26 47 00 5B 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 41 B4 01 00 F4 03 04 00 68 D0 73 66 B6 04 01 00 00 78 33 EE 6C 22 EF 86 D5 [14:13:54]CommunicateWithHost err = 0 [14:13:54]CheckOFDResponse [14:13:54]1017 (14) - 77093643461234 [14:13:54]1041 (16) - 0000000000875083 [14:13:54]1040 (4) - 111681 [14:13:54]1012 (4) - 20.06.2024 06:47 [14:13:54]1206 (1) - 0 [14:13:54]OFD Sender: Remove packet 111681 [14:13:54]ProducePacketName [14:13:54]name=ofd_packets/00111681 [14:13:54]NVStorageDeleteData [14:13:54]Write to MH i2c: 01 00 00 87 01 88 [14:13:54]Write i2c OK [14:13:54]MH_I2C_Read... [14:13:54]Read from MH i2c: 01 [14:13:54]MH_I2C_Read... [14:13:54]Read from MH i2c: 01 07 00 [14:13:54]MH_I2C_Read... [14:13:54]Read from MH i2c: 01 07 00 87 01 00 00 00 00 00 F2 0C 8D [14:13:54]RasterBufferAndPrint [14:13:54]line [14:13:54]line [14:13:54]line [14:13:54]line [14:13:54]line [14:13:54]written 0, free lines is 3317 [14:13:54]MH_Cut [14:13:54]Write to MH i2c: D1 01 00 8E 01 01 61 [14:13:54]Write i2c OK [14:13:54]MH_I2C_Read... [14:13:54]Read from MH i2c: D1 [14:13:54]MH_I2C_Read... [14:13:54]Read from MH i2c: D1 01 00 [14:13:54]MH_I2C_Read... [14:13:54]Read from MH i2c: D1 01 00 8E 01 00 60 [14:13:54]Write to MH i2c: 01 00 00 8F 01 90 [14:13:54]Write i2c OK [14:13:54]MH_I2C_Read... [14:13:54]OFD Sender: No OFD packet to send [14:13:55]*** Cut start [14:13:55]*** Partial cut [14:13:55]*** CUTSNS_PIN = 1 [14:13:55]*** CUTSNS_PIN = 0 [14:13:55]*** Brake cut motor [14:13:55]Read from MH i2c: 01 [14:13:55]MH_I2C_Read... [14:13:55]*** Stop cut motor [14:13:55]*** Cut end [14:13:55]Read from MH i2c: 01 07 00 [14:13:55]MH_I2C_Read... [14:13:55]Read from MH i2c: 01 07 00 8F 01 00 00 00 00 00 FF 0F A5 [14:13:55]process_action close_receipt done [14:13:55]requested_data is exist [14:13:55]produce_requested_data [14:13:55]requested_item fm.sn is exist - process it [14:13:55]wFMCommunicate request_size=4 [14:13:55]MH_SAM_APDU [14:13:55]CAPDU: 80 11 00 00 [14:13:55]Write to MH i2c: E2 08 00 90 01 80 11 00 00 00 00 00 00 0B [14:13:55]Write i2c OK [14:13:55]MH_I2C_Read... [14:13:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:55]Read from MH i2c: E2 [14:13:55]MH_I2C_Read... [14:13:55]Read from MH i2c: E2 17 00 [14:13:55]MH_I2C_Read... [14:13:55]Read from MH i2c: E2 17 00 90 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5D [14:13:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:13:55]wFMCommunicate OK [14:13:55]requested_item fd.num is exist - process it [14:13:55]SAM_PROTO_GetFieldsCounters [14:13:55]wFMCommunicate request_size=4 [14:13:55]MH_SAM_APDU [14:13:55]CAPDU: 80 13 00 00 [14:13:55]Write to MH i2c: E2 08 00 91 01 80 13 00 00 00 00 00 00 0E [14:13:55]Write i2c OK [14:13:55]MH_I2C_Read... [14:13:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:55]Read from MH i2c: E2 [14:13:55]MH_I2C_Read... [14:13:55]Read from MH i2c: E2 62 00 [14:13:55]MH_I2C_Read... [14:13:55]Read from MH i2c: E2 62 00 91 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 41 B4 01 00 0E 04 04 00 85 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 34 [14:13:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 41 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:13:55]wFMCommunicate OK [14:13:55]SAM_PROTO_GetFieldsCounters done [14:13:55]requested_item shift.num is exist - process it [14:13:55]requested_item shift.opened is exist - process it [14:13:55]req_shift_opened [14:13:55]FM_GetShiftState [14:13:55]SAM_PROTO_GetShiftState [14:13:55]wFMCommunicate request_size=4 [14:13:55]MH_SAM_APDU [14:13:55]CAPDU: 80 13 01 00 [14:13:55]Write to MH i2c: E2 08 00 92 01 80 13 01 00 00 00 00 00 10 [14:13:55]Write i2c OK [14:13:55]MH_I2C_Read... [14:13:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:55]Read from MH i2c: E2 [14:13:55]MH_I2C_Read... [14:13:55]Read from MH i2c: E2 0E 00 [14:13:55]MH_I2C_Read... [14:13:55]Read from MH i2c: E2 0E 00 92 01 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 8B [14:13:55]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:13:55]wFMCommunicate OK [14:13:55]SAM_PROTO_GetShiftState done [14:13:55]FM_GetShiftState done [14:13:55]req_shift_opened done [14:13:55]requested_item shift.open_date is exist - process it [14:13:55]req_shift_open_date [14:13:55]req_shift_open_date done [14:13:55]produce_requested_data done [14:13:55]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111681,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [14:13:55]process_action_free close_receipt [14:13:55]json_value_free [14:13:55]json_value_free done [14:13:55]process_json_proto returns [14:13:55]Send response to host [14:13:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111681,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [14:13:55]free response buf [14:13:55]execute_script done [14:13:55]execute_script returns [14:13:55]free content buf [14:13:55]Sock 9.Close socket [14:13:55]Sock 9.Thread stoped [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:55]accept exits with 7 [14:14:55]New connection [14:14:55]New thread 3067153764 created [14:14:55]Thread 3067297124 joined [14:14:55]Waiting for new connection... [14:14:55] Sock 7.Parse request [14:14:55]Sock 7.Check first char [14:14:55]Sock 7.First char is OK [14:14:55]request: POST /json_proto HTTP/1.0 [14:14:55]Method: POST [14:14:55]URL: /json_proto [14:14:55]Method is POST - this is cgi request [14:14:55]url: /json_proto [14:14:55]query_string will be loaded in cgi processing [14:14:55]execute_cgi json_proto POST (null) [14:14:55]execute_cgi path=json_proto method=POST [14:14:55]POST find Content-Length [14:14:55]Host: 172.17.59.68:8080 [14:14:55]Content-Length: 682 [14:14:55]Content-Type: application/json [14:14:55] [14:14:55]POST finish read [14:14:55]Found Content-Length = 682 [14:14:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:55]execute_script... [14:14:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:55]POST & json_proto [14:14:55]process_json_proto [14:14:55]json parsed OK: [14:14:55]protocol is kg_v1.0 [14:14:55]action value=close_receipt [14:14:55]process_action close_receipt [14:14:55]cmd_close_receipt [14:14:55]MH_GetDate [14:14:55]Write to MH i2c: F0 00 00 93 01 83 [14:14:55]Write i2c OK [14:14:55]MH_I2C_Read... [14:14:55]Read from MH i2c: F0 [14:14:55]MH_I2C_Read... [14:14:55]Read from MH i2c: F0 09 00 [14:14:55]MH_I2C_Read... [14:14:55]Read from MH i2c: F0 09 00 93 01 00 60 39 74 66 BC EC 60 65 6C [14:14:55]GetLastDocTimeStamp 1718892832 [14:14:55]current date 1718892896 [14:14:55]FM_GetShiftState [14:14:55]SAM_PROTO_GetShiftState [14:14:55]wFMCommunicate request_size=4 [14:14:55]MH_SAM_APDU [14:14:55]CAPDU: 80 13 01 00 [14:14:55]Write to MH i2c: E2 08 00 94 01 80 13 01 00 00 00 00 00 12 [14:14:55]Write i2c OK [14:14:55]MH_I2C_Read... [14:14:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:55]Read from MH i2c: E2 [14:14:55]MH_I2C_Read... [14:14:55]Read from MH i2c: E2 0E 00 [14:14:55]MH_I2C_Read... [14:14:55]Read from MH i2c: E2 0E 00 94 01 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 8D [14:14:55]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:14:55]wFMCommunicate OK [14:14:55]SAM_PROTO_GetShiftState done [14:14:55]FM_GetShiftState done [14:14:55]opened in 1718847247 [14:14:55]opened+sec_in_day 1718933647 [14:14:55]quantity*price = 100064 [14:14:55]sum+1 = 100066 [14:14:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 132 20.06.2024 14:14 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111682 ФПД: 196472082314685 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T141456&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111682&fm=196472082314685&tin=02508201610067®Number=0000000000092771&sum=100000 [14:14:57]StoreToDocumentArchive [14:14:57]shift 389 fd 111682 [14:14:57]save to /storage/0389/doc_00111682 [14:14:57]save last doc name /storage/0389/doc_00111682 to /storage/kkm_last_doc_name [14:14:57]save OK [14:14:57]Clear old archive folders... [14:14:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:14:57]tlvbuf is 016BC820 [14:14:57]SAM_PROTO_ClearQueue [14:14:57]wFMCommunicate request_size=4 [14:14:57]MH_SAM_APDU [14:14:57]CAPDU: 80 09 00 00 [14:14:57]Write to MH i2c: E2 08 00 A1 01 80 09 00 00 00 00 00 00 14 [14:14:57]Write i2c OK [14:14:57]MH_I2C_Read... [14:14:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:14:57]Read from MH i2c: E2 [14:14:57]MH_I2C_Read... [14:14:57]Read from MH i2c: E2 03 00 [14:14:57]MH_I2C_Read... [14:14:57]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [14:14:57]RAPDU: 90 00 [14:14:57]wFMCommunicate OK [14:14:57]SAM_PROTO_ClearQueue done [14:14:57]KKMCreateOFDPacket [14:14:57]OFDProtocolAddRootSTLVToBuf [14:14:57]FM_MakeSignedData [14:14:57]FM_MakeSignedData [14:14:57]SAM_PROTO_SignData [14:14:57]wFMCommunicate request_size=4 [14:14:57]MH_SAM_APDU [14:14:57]CAPDU: 80 0D 01 02 [14:14:57]Write to MH i2c: E2 08 00 A2 01 80 0D 01 02 00 00 00 00 1C [14:14:57]Write i2c OK [14:14:57]MH_I2C_Read... [14:14:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:14:57]Read from MH i2c: E2 [14:14:57]MH_I2C_Read... [14:14:57]Read from MH i2c: E2 03 00 [14:14:57]MH_I2C_Read... [14:14:57]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [14:14:57]RAPDU: 90 00 [14:14:57]wFMCommunicate OK [14:14:57]wFMCommunicate request_size=255 [14:14:57]MH_SAM_APDU [14:14:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 60 39 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 42 B4 01 00 35 04 06 00 B2 [14:14:57]Write to MH i2c: E2 02 01 A3 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 60 39 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 42 B4 01 00 35 04 06 00 B2 00 00 46 [14:14:57]Write i2c OK [14:14:57]MH_I2C_Read... [14:14:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:57]Read from MH i2c: E2 [14:14:57]MH_I2C_Read... [14:14:57]Read from MH i2c: E2 03 00 [14:14:57]MH_I2C_Read... [14:14:57]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [14:14:57]RAPDU: 90 00 [14:14:57]wFMCommunicate OK [14:14:57]wFMCommunicate request_size=10 [14:14:57]MH_SAM_APDU [14:14:57]CAPDU: 80 0D 02 02 05 B0 B8 AC B5 BD [14:14:57]Write to MH i2c: E2 0D 00 A4 01 80 0D 02 02 05 00 B0 B8 AC B5 BD 00 00 AF [14:14:57]Write i2c OK [14:14:57]MH_I2C_Read... [14:14:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:57]Read from MH i2c: E2 [14:14:57]MH_I2C_Read... [14:14:57]Read from MH i2c: E2 03 00 [14:14:57]MH_I2C_Read... [14:14:57]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [14:14:57]RAPDU: 90 00 [14:14:57]wFMCommunicate OK [14:14:57]wFMCommunicate request_size=4 [14:14:57]MH_SAM_APDU [14:14:57]CAPDU: 80 0D 03 02 [14:14:57]Write to MH i2c: E2 08 00 A5 01 80 0D 03 02 00 00 00 00 21 [14:14:57]Write i2c OK [14:14:57]MH_I2C_Read... [14:14:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:14:57]Read from MH i2c: E2 [14:14:57]MH_I2C_Read... [14:14:57]Read from MH i2c: E2 0B 00 [14:14:57]MH_I2C_Read... [14:14:57]Read from MH i2c: E2 0B 00 A5 01 00 86 E3 0D 02 A7 C1 6A AC 90 00 18 [14:14:57]RAPDU: 86 E3 0D 02 A7 C1 6A AC 90 00 [14:14:57]wFMCommunicate OK [14:14:57]SAM_PROTO_SignData done [14:14:57]FM_MakeSignedData done [14:14:57]CreateOFDProtocolMessage [14:14:57]wFMCommunicate request_size=4 [14:14:57]MH_SAM_APDU [14:14:57]CAPDU: 80 11 00 00 [14:14:57]Write to MH i2c: E2 08 00 A6 01 80 11 00 00 00 00 00 00 21 [14:14:57]Write i2c OK [14:14:57]MH_I2C_Read... [14:14:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:57]Read from MH i2c: E2 [14:14:57]MH_I2C_Read... [14:14:57]Read from MH i2c: E2 17 00 [14:14:57]MH_I2C_Read... [14:14:57]Read from MH i2c: E2 17 00 A6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 73 [14:14:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:14:57]wFMCommunicate OK [14:14:57]CreateOFDProtocolMessage done [14:14:57]OFDSenderStorePacket 111682 [14:14:57]StoreOFDPacket docnum=111682 [14:14:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 08 63 07 01 05 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 60 39 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 42 B4 01 00 35 04 06 00 B2 B0 B8 AC B5 BD 86 E3 0D 02 A7 C1 6A AC [14:14:57]CheckFolder [14:14:57]dirname=/storage/ofd_packets [14:14:57]CheckFolder done [14:14:57]ProducePacketName [14:14:57]name=ofd_packets/00111682 [14:14:57]NVStorageSaveData ofd_packets/00111682 [14:14:57]File name is /storage/ofd_packets/00111682 [14:14:57]Write 301 bytes [14:14:57]NVStorageSaveData done [14:14:57]OFDSenderStorePacket done [14:14:57]KKMCreateOFDPacket done [14:14:57]NVStorageSaveData kkm_last_timestamp [14:14:57]File name is /storage/kkm_last_timestamp [14:14:57]Write 4 bytes [14:14:57]NVStorageSaveData done [14:14:57]ExternCall_PrintAddStr [14:14:57]wPrintStart [14:14:57]Write to MH i2c: 01 00 00 A7 01 A8 [14:14:57]Write i2c OK [14:14:57]MH_I2C_Read... [14:14:57]Read from MH i2c: 01 [14:14:57]MH_I2C_Read... [14:14:57]Read from MH i2c: 01 07 00 [14:14:57]MH_I2C_Read... [14:14:57]Read from MH i2c: 01 07 00 A7 01 00 00 00 00 00 FF 0F BD [14:14:57]RasterBufferAndPrint [14:14:57]line Счет N : (1)320298 [14:14:57]line ИНН: 02508201610067 [14:14:57]line Контрольно-Кассовый Чек [14:14:57]line ПРОДАЖА [14:14:57]line ТРК (МРК, ГНК) : 11 [14:14:57]line Товар: 2710124130 [14:14:57]line Аи-92-К-5 [14:14:57]line 15.070 * 66.40 [14:14:57]line = 1000.65 [14:14:57]line НДС 12% НСП 1% [14:14:57]line > о реализуемом товаре [14:14:57]line ОКРУГЛЕНИЕ: -0.65 [14:14:57]line ИТОГО: 1000.00 [14:14:57]line Внесено: 1000.00 [14:14:57]line СДАЧА: 0.00 [14:14:57]line НСП 1% : 8.85 [14:14:57]line НДС 12% : 106.26 [14:14:57]line Наличными: 1000.00 [14:14:57]line Безнал.: 0.00 [14:14:57]line Место: АЗС № 65 "Партнер Нефть" [14:14:57]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:14:57]line СНО: Общий режим [14:14:57]line Чек 132 20.06.2024 14:14 [14:14:57]line Смена: 389 ФФД: 1.0 [14:14:57]line ЗНМ: 0300000198 [14:14:57]line РНМ: 0000000000092771 [14:14:57]line Версия ККМ: 001 [14:14:57]line ФМ: 0000000000875083 [14:14:57]line ФД: 111682 [14:14:57]line ФПД: 196472082314685 [14:14:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T141456&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111682&fm=196472082314685&tin=02508201610067®Number=0000000000092771&sum=100000 [14:14:57]OFD Sender: Processing packet 111682 [packets to send 38, broken 37] [14:14:57]ProducePacketName [14:14:57]name=ofd_packets/00111682 [14:14:57]OFD Sender: To server: pG, [14:14:57]CommunicateWithHost lk.salyk.kg:30040 [14:14:57]ConnectInit lk.salyk.kg [14:14:57]written 0, free lines is 4095 [14:14:58]Connected sock=10 [14:14:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 08 63 07 01 05 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 60 39 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 42 B4 01 00 35 04 06 00 B2 B0 B8 AC B5 BD 86 E3 0D 02 A7 C1 6A AC [14:14:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D8 A2 47 00 FC 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 42 B4 01 00 F4 03 04 00 A8 D0 73 66 B6 04 01 00 00 07 6D 02 76 DB 59 F5 F1 [14:14:58]CommunicateWithHost err = 0 [14:14:58]CheckOFDResponse [14:14:58]1017 (14) - 77093643461234 [14:14:58]1041 (16) - 0000000000875083 [14:14:58]1040 (4) - 111682 [14:14:58]1012 (4) - 20.06.2024 06:48 [14:14:58]1206 (1) - 0 [14:14:58]OFD Sender: Remove packet 111682 [14:14:58]ProducePacketName [14:14:58]name=ofd_packets/00111682 [14:14:58]NVStorageDeleteData [14:14:58]Write to MH i2c: 01 00 00 D2 01 D3 [14:14:58]Write i2c OK [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: 01 [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: 01 07 00 [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: 01 07 00 D2 01 00 00 00 00 00 D4 0C BA [14:14:58]RasterBufferAndPrint [14:14:58]line [14:14:58]line [14:14:58]line [14:14:58]line [14:14:58]line [14:14:58]written 0, free lines is 3288 [14:14:58]MH_Cut [14:14:58]Write to MH i2c: D1 01 00 D9 01 01 AC [14:14:58]Write i2c OK [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: D1 [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: D1 01 00 [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: D1 01 00 D9 01 00 AB [14:14:58]Write to MH i2c: 01 00 00 DA 01 DB [14:14:58]Write i2c OK [14:14:58]MH_I2C_Read... [14:14:58]OFD Sender: No OFD packet to send [14:14:59]*** Cut start [14:14:59]*** Partial cut [14:14:59]*** CUTSNS_PIN = 1 [14:14:59]*** CUTSNS_PIN = 0 [14:14:59]*** Brake cut motor [14:14:59]Read from MH i2c: 01 [14:14:59]MH_I2C_Read... [14:14:59]*** Stop cut motor [14:14:59]*** Cut end [14:14:59]Read from MH i2c: 01 07 00 [14:14:59]MH_I2C_Read... [14:14:59]Read from MH i2c: 01 07 00 DA 01 00 00 00 00 00 FF 0F F0 [14:14:59]process_action close_receipt done [14:14:59]requested_data is exist [14:14:59]produce_requested_data [14:14:59]requested_item fm.sn is exist - process it [14:14:59]wFMCommunicate request_size=4 [14:14:59]MH_SAM_APDU [14:14:59]CAPDU: 80 11 00 00 [14:14:59]Write to MH i2c: E2 08 00 DB 01 80 11 00 00 00 00 00 00 56 [14:14:59]Write i2c OK [14:14:59]MH_I2C_Read... [14:14:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:59]Read from MH i2c: E2 [14:14:59]MH_I2C_Read... [14:14:59]Read from MH i2c: E2 17 00 [14:14:59]MH_I2C_Read... [14:14:59]Read from MH i2c: E2 17 00 DB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A8 [14:14:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:14:59]wFMCommunicate OK [14:14:59]requested_item fd.num is exist - process it [14:14:59]SAM_PROTO_GetFieldsCounters [14:14:59]wFMCommunicate request_size=4 [14:14:59]MH_SAM_APDU [14:14:59]CAPDU: 80 13 00 00 [14:14:59]Write to MH i2c: E2 08 00 DC 01 80 13 00 00 00 00 00 00 59 [14:14:59]Write i2c OK [14:14:59]MH_I2C_Read... [14:14:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:14:59]Read from MH i2c: E2 [14:14:59]MH_I2C_Read... [14:14:59]Read from MH i2c: E2 62 00 [14:14:59]MH_I2C_Read... [14:14:59]Read from MH i2c: E2 62 00 DC 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 42 B4 01 00 0E 04 04 00 85 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 83 [14:14:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 42 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:14:59]wFMCommunicate OK [14:14:59]SAM_PROTO_GetFieldsCounters done [14:14:59]requested_item shift.num is exist - process it [14:14:59]requested_item shift.opened is exist - process it [14:14:59]req_shift_opened [14:14:59]FM_GetShiftState [14:14:59]SAM_PROTO_GetShiftState [14:14:59]wFMCommunicate request_size=4 [14:14:59]MH_SAM_APDU [14:14:59]CAPDU: 80 13 01 00 [14:14:59]Write to MH i2c: E2 08 00 DD 01 80 13 01 00 00 00 00 00 5B [14:14:59]Write i2c OK [14:14:59]MH_I2C_Read... [14:15:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:00]Read from MH i2c: E2 [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: E2 0E 00 [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: E2 0E 00 DD 01 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 D6 [14:15:00]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:15:00]wFMCommunicate OK [14:15:00]SAM_PROTO_GetShiftState done [14:15:00]FM_GetShiftState done [14:15:00]req_shift_opened done [14:15:00]requested_item shift.open_date is exist - process it [14:15:00]req_shift_open_date [14:15:00]req_shift_open_date done [14:15:00]produce_requested_data done [14:15:00]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111682,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [14:15:00]process_action_free close_receipt [14:15:00]json_value_free [14:15:00]json_value_free done [14:15:00]process_json_proto returns [14:15:00]Send response to host [14:15:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111682,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [14:15:00]free response buf [14:15:00]execute_script done [14:15:00]execute_script returns [14:15:00]free content buf [14:15:00]Sock 7.Close socket [14:15:00]Sock 7.Thread stoped [14:15:03]OFD Sender: No OFD packet to send [14:15:08]OFD Sender: No OFD packet to send [14:15:13]OFD Sender: No OFD packet to send [14:15:18]OFD Sender: No OFD packet to send [14:15:23]OFD Sender: No OFD packet to send [14:15:28]OFD Sender: No OFD packet to send [14:15:33]OFD Sender: No OFD packet to send [14:15:38]OFD Sender: No OFD packet to send [14:15:43]OFD Sender: No OFD packet to send [14:15:43]accept exits with 9 [14:15:43]New connection [14:15:43]New thread 3067297124 created [14:15:43]Thread 3067153764 joined [14:15:43]Waiting for new connection... [14:15:43] Sock 9.Parse request [14:15:43]Sock 9.Check first char [14:15:43]Sock 9.First char is OK [14:15:43]request: POST /json_proto HTTP/1.0 [14:15:43]Method: POST [14:15:43]URL: /json_proto [14:15:43]Method is POST - this is cgi request [14:15:43]url: /json_proto [14:15:43]query_string will be loaded in cgi processing [14:15:43]execute_cgi json_proto POST (null) [14:15:43]execute_cgi path=json_proto method=POST [14:15:43]POST find Content-Length [14:15:43]Host: 172.17.59.68:8080 [14:15:43]Content-Length: 677 [14:15:43]Content-Type: application/json [14:15:43] [14:15:43]POST finish read [14:15:43]Found Content-Length = 677 [14:15:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:15:43]execute_script... [14:15: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)320299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:15:43]POST & json_proto [14:15:43]process_json_proto [14:15:43]json parsed OK: [14:15:43]protocol is kg_v1.0 [14:15:43]action value=close_receipt [14:15:43]process_action close_receipt [14:15:43]cmd_close_receipt [14:15:43]MH_GetDate [14:15:43]Write to MH i2c: F0 00 00 DE 01 CE [14:15:43]Write i2c OK [14:15:43]MH_I2C_Read... [14:15:43]Read from MH i2c: F0 [14:15:43]MH_I2C_Read... [14:15:43]Read from MH i2c: F0 09 00 [14:15:43]MH_I2C_Read... [14:15:43]Read from MH i2c: F0 09 00 DE 01 00 90 39 74 66 BC EC 60 65 E7 [14:15:43]GetLastDocTimeStamp 1718892896 [14:15:43]current date 1718892944 [14:15:43]FM_GetShiftState [14:15:43]SAM_PROTO_GetShiftState [14:15:43]wFMCommunicate request_size=4 [14:15:43]MH_SAM_APDU [14:15:43]CAPDU: 80 13 01 00 [14:15:43]Write to MH i2c: E2 08 00 DF 01 80 13 01 00 00 00 00 00 5D [14:15:43]Write i2c OK [14:15:43]MH_I2C_Read... [14:15:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:43]Read from MH i2c: E2 [14:15:43]MH_I2C_Read... [14:15:43]Read from MH i2c: E2 0E 00 [14:15:43]MH_I2C_Read... [14:15:43]Read from MH i2c: E2 0E 00 DF 01 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 D8 [14:15:43]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:15:43]wFMCommunicate OK [14:15:43]SAM_PROTO_GetShiftState done [14:15:43]FM_GetShiftState done [14:15:43]opened in 1718847247 [14:15:43]opened+sec_in_day 1718933647 [14:15:43]quantity*price = 60025 [14:15:43]sum+1 = 60027 [14:15:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 133 20.06.2024 14:15 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111683 ФПД: 176178087992234 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T141544&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111683&fm=176178087992234&tin=02508201610067®Number=0000000000092771&sum=60000 [14:15:45]StoreToDocumentArchive [14:15:45]shift 389 fd 111683 [14:15:45]save to /storage/0389/doc_00111683 [14:15:45]save last doc name /storage/0389/doc_00111683 to /storage/kkm_last_doc_name [14:15:45]save OK [14:15:45]Clear old archive folders... [14:15:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:15:45]tlvbuf is 016B97F0 [14:15:45]SAM_PROTO_ClearQueue [14:15:45]wFMCommunicate request_size=4 [14:15:45]MH_SAM_APDU [14:15:45]CAPDU: 80 09 00 00 [14:15:45]Write to MH i2c: E2 08 00 EC 01 80 09 00 00 00 00 00 00 5F [14:15:45]Write i2c OK [14:15:45]MH_I2C_Read... [14:15:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:15:45]Read from MH i2c: E2 [14:15:45]MH_I2C_Read... [14:15:45]Read from MH i2c: E2 03 00 [14:15:45]MH_I2C_Read... [14:15:45]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [14:15:45]RAPDU: 90 00 [14:15:45]wFMCommunicate OK [14:15:45]SAM_PROTO_ClearQueue done [14:15:45]KKMCreateOFDPacket [14:15:45]OFDProtocolAddRootSTLVToBuf [14:15:45]FM_MakeSignedData [14:15:45]FM_MakeSignedData [14:15:45]SAM_PROTO_SignData [14:15:45]wFMCommunicate request_size=4 [14:15:45]MH_SAM_APDU [14:15:45]CAPDU: 80 0D 01 02 [14:15:45]Write to MH i2c: E2 08 00 ED 01 80 0D 01 02 00 00 00 00 67 [14:15:45]Write i2c OK [14:15:45]MH_I2C_Read... [14:15:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:15:45]Read from MH i2c: E2 [14:15:45]MH_I2C_Read... [14:15:45]Read from MH i2c: E2 03 00 [14:15:45]MH_I2C_Read... [14:15:45]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [14:15:45]RAPDU: 90 00 [14:15:45]wFMCommunicate OK [14:15:45]wFMCommunicate request_size=255 [14:15:45]MH_SAM_APDU [14: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 90 39 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 43 B4 01 00 35 04 06 00 A0 [14:15:45]Write to MH i2c: E2 02 01 EE 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 90 39 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 43 B4 01 00 35 04 06 00 A0 00 00 3E [14:15:45]Write i2c OK [14:15:45]MH_I2C_Read... [14:15:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:45]Read from MH i2c: E2 [14:15:45]MH_I2C_Read... [14:15:45]Read from MH i2c: E2 03 00 [14:15:45]MH_I2C_Read... [14:15:45]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [14:15:45]RAPDU: 90 00 [14:15:45]wFMCommunicate OK [14:15:45]wFMCommunicate request_size=10 [14:15:45]MH_SAM_APDU [14:15:45]CAPDU: 80 0D 02 02 05 3B A8 5A 1B AA [14:15:45]Write to MH i2c: E2 0D 00 EF 01 80 0D 02 02 05 00 3B A8 5A 1B AA 00 00 76 [14:15:45]Write i2c OK [14:15:45]MH_I2C_Read... [14:15:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:45]Read from MH i2c: E2 [14:15:45]MH_I2C_Read... [14:15:45]Read from MH i2c: E2 03 00 [14:15:45]MH_I2C_Read... [14:15:45]Read from MH i2c: E2 03 00 EF 01 00 90 00 64 [14:15:45]RAPDU: 90 00 [14:15:45]wFMCommunicate OK [14:15:45]wFMCommunicate request_size=4 [14:15:45]MH_SAM_APDU [14:15:45]CAPDU: 80 0D 03 02 [14:15:45]Write to MH i2c: E2 08 00 F0 01 80 0D 03 02 00 00 00 00 6C [14:15:45]Write i2c OK [14:15:45]MH_I2C_Read... [14:15:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:15:45]Read from MH i2c: E2 [14:15:45]MH_I2C_Read... [14:15:45]Read from MH i2c: E2 0B 00 [14:15:45]MH_I2C_Read... [14:15:45]Read from MH i2c: E2 0B 00 F0 01 00 B0 84 38 E0 3B 8B DF 50 90 00 AE [14:15:45]RAPDU: B0 84 38 E0 3B 8B DF 50 90 00 [14:15:45]wFMCommunicate OK [14:15:45]SAM_PROTO_SignData done [14:15:45]FM_MakeSignedData done [14:15:45]CreateOFDProtocolMessage [14:15:45]wFMCommunicate request_size=4 [14:15:45]MH_SAM_APDU [14:15:45]CAPDU: 80 11 00 00 [14:15:45]Write to MH i2c: E2 08 00 F1 01 80 11 00 00 00 00 00 00 6C [14:15:45]Write i2c OK [14:15:45]MH_I2C_Read... [14:15:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:45]Read from MH i2c: E2 [14:15:45]MH_I2C_Read... [14:15:45]Read from MH i2c: E2 17 00 [14:15:45]MH_I2C_Read... [14:15:45]Read from MH i2c: E2 17 00 F1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BE [14:15:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:15:45]wFMCommunicate OK [14:15:45]CreateOFDProtocolMessage done [14:15:45]OFDSenderStorePacket 111683 [14:15:45]StoreOFDPacket docnum=111683 [14:15:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BB 16 07 01 03 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 90 39 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 43 B4 01 00 35 04 06 00 A0 3B A8 5A 1B AA B0 84 38 E0 3B 8B DF 50 [14:15:45]CheckFolder [14:15:45]dirname=/storage/ofd_packets [14:15:45]CheckFolder done [14:15:45]ProducePacketName [14:15:45]name=ofd_packets/00111683 [14:15:45]NVStorageSaveData ofd_packets/00111683 [14:15:45]File name is /storage/ofd_packets/00111683 [14:15:45]Write 301 bytes [14:15:45]NVStorageSaveData done [14:15:45]OFDSenderStorePacket done [14:15:45]KKMCreateOFDPacket done [14:15:45]NVStorageSaveData kkm_last_timestamp [14:15:45]File name is /storage/kkm_last_timestamp [14:15:45]Write 4 bytes [14:15:45]NVStorageSaveData done [14:15:45]ExternCall_PrintAddStr [14:15:45]wPrintStart [14:15:45]Write to MH i2c: 01 00 00 F2 01 F3 [14:15:45]Write i2c OK [14:15:45]MH_I2C_Read... [14:15:45]Read from MH i2c: 01 [14:15:45]MH_I2C_Read... [14:15:45]Read from MH i2c: 01 07 00 [14:15:45]MH_I2C_Read... [14:15:45]Read from MH i2c: 01 07 00 F2 01 00 00 00 00 00 FF 0F 08 [14:15:45]RasterBufferAndPrint [14:15:45]line Счет N : (1)320299 [14:15:45]line ИНН: 02508201610067 [14:15:45]line Контрольно-Кассовый Чек [14:15:45]line ПРОДАЖА [14:15:45]line ТРК (МРК, ГНК) : 11 [14:15:45]line Товар: 2710124130 [14:15:45]line Аи-92-К-5 [14:15:45]line 9.040 * 66.40 [14:15:45]line = 600.26 [14:15:45]line НДС 12% НСП 1% [14:15:45]line > о реализуемом товаре [14:15:45]line ОКРУГЛЕНИЕ: -0.26 [14:15:45]line ИТОГО: 600.00 [14:15:45]line Внесено: 600.00 [14:15:45]line СДАЧА: 0.00 [14:15:45]line НСП 1% : 5.31 [14:15:45]line НДС 12% : 63.74 [14:15:45]line Наличными: 600.00 [14:15:45]line Безнал.: 0.00 [14:15:45]line Место: АЗС № 65 "Партнер Нефть" [14:15:45]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:15:45]line СНО: Общий режим [14:15:45]line Чек 133 20.06.2024 14:15 [14:15:45]line Смена: 389 ФФД: 1.0 [14:15:45]line ЗНМ: 0300000198 [14:15:45]line РНМ: 0000000000092771 [14:15:45]line Версия ККМ: 001 [14:15:45]line ФМ: 0000000000875083 [14:15:45]line ФД: 111683 [14:15:45]line ФПД: 176178087992234 [14:15:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T141544&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111683&fm=176178087992234&tin=02508201610067®Number=0000000000092771&sum=60000 [14:15:45]OFD Sender: Processing packet 111683 [packets to send 38, broken 37] [14:15:45]ProducePacketName [14:15:45]name=ofd_packets/00111683 [14:15:45]OFD Sender: To server: pG, [14:15:45]CommunicateWithHost lk.salyk.kg:30040 [14:15:45]ConnectInit lk.salyk.kg [14:15:45]written 0, free lines is 4095 [14:15:45]Connected sock=10 [14:15:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BB 16 07 01 03 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 90 39 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 43 B4 01 00 35 04 06 00 A0 3B A8 5A 1B AA B0 84 38 E0 3B 8B DF 50 [14:15:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A1 B1 47 00 38 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 43 B4 01 00 F4 03 04 00 D8 D0 73 66 B6 04 01 00 00 1C D0 01 8B 69 81 5D D6 [14:15:46]CommunicateWithHost err = 0 [14:15:46]CheckOFDResponse [14:15:46]1017 (14) - 77093643461234 [14:15:46]1041 (16) - 0000000000875083 [14:15:46]1040 (4) - 111683 [14:15:46]1012 (4) - 20.06.2024 06:48 [14:15:46]1206 (1) - 0 [14:15:46]OFD Sender: Remove packet 111683 [14:15:46]ProducePacketName [14:15:46]name=ofd_packets/00111683 [14:15:46]NVStorageDeleteData [14:15:46]Write to MH i2c: 01 00 00 1D 02 1F [14:15:46]Write i2c OK [14:15:46]MH_I2C_Read... [14:15:46]Read from MH i2c: 01 [14:15:46]MH_I2C_Read... [14:15:46]Read from MH i2c: 01 07 00 [14:15:46]MH_I2C_Read... [14:15:46]Read from MH i2c: 01 07 00 1D 02 00 00 00 00 00 D9 0C 0B [14:15:46]RasterBufferAndPrint [14:15:46]line [14:15:46]line [14:15:46]line [14:15:46]line [14:15:46]line [14:15:46]written 0, free lines is 3294 [14:15:46]MH_Cut [14:15:46]Write to MH i2c: D1 01 00 24 02 01 F8 [14:15:46]Write i2c OK [14:15:46]MH_I2C_Read... [14:15:46]Read from MH i2c: D1 [14:15:46]MH_I2C_Read... [14:15:46]Read from MH i2c: D1 01 00 [14:15:46]MH_I2C_Read... [14:15:46]Read from MH i2c: D1 01 00 24 02 00 F7 [14:15:46]Write to MH i2c: 01 00 00 25 02 27 [14:15:46]Write i2c OK [14:15:46]MH_I2C_Read... [14:15:46]OFD Sender: No OFD packet to send [14:15:47]*** Cut start [14:15:47]*** Partial cut [14:15:47]*** CUTSNS_PIN = 1 [14:15:47]*** CUTSNS_PIN = 0 [14:15:47]*** Brake cut motor [14:15:47]Read from MH i2c: 01 [14:15:47]MH_I2C_Read... [14:15:47]*** Stop cut motor [14:15:47]*** Cut end [14:15:47]Read from MH i2c: 01 07 00 [14:15:47]MH_I2C_Read... [14:15:47]Read from MH i2c: 01 07 00 25 02 00 00 00 00 00 FF 0F 3C [14:15:47]process_action close_receipt done [14:15:47]requested_data is exist [14:15:47]produce_requested_data [14:15:47]requested_item fm.sn is exist - process it [14:15:47]wFMCommunicate request_size=4 [14:15:47]MH_SAM_APDU [14:15:47]CAPDU: 80 11 00 00 [14:15:47]Write to MH i2c: E2 08 00 26 02 80 11 00 00 00 00 00 00 A2 [14:15:47]Write i2c OK [14:15:47]MH_I2C_Read... [14:15:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:47]Read from MH i2c: E2 [14:15:47]MH_I2C_Read... [14:15:47]Read from MH i2c: E2 17 00 [14:15:47]MH_I2C_Read... [14:15:47]Read from MH i2c: E2 17 00 26 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F4 [14:15:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:15:47]wFMCommunicate OK [14:15:47]requested_item fd.num is exist - process it [14:15:47]SAM_PROTO_GetFieldsCounters [14:15:47]wFMCommunicate request_size=4 [14:15:47]MH_SAM_APDU [14:15:47]CAPDU: 80 13 00 00 [14:15:47]Write to MH i2c: E2 08 00 27 02 80 13 00 00 00 00 00 00 A5 [14:15:47]Write i2c OK [14:15:47]MH_I2C_Read... [14:15:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:15:47]Read from MH i2c: E2 [14:15:47]MH_I2C_Read... [14:15:47]Read from MH i2c: E2 62 00 [14:15:47]MH_I2C_Read... [14:15:47]Read from MH i2c: E2 62 00 27 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 43 B4 01 00 0E 04 04 00 85 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 D3 [14:15:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 43 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:15:47]wFMCommunicate OK [14:15:47]SAM_PROTO_GetFieldsCounters done [14:15:47]requested_item shift.num is exist - process it [14:15:47]requested_item shift.opened is exist - process it [14:15:47]req_shift_opened [14:15:47]FM_GetShiftState [14:15:47]SAM_PROTO_GetShiftState [14:15:47]wFMCommunicate request_size=4 [14:15:47]MH_SAM_APDU [14:15:47]CAPDU: 80 13 01 00 [14:15:47]Write to MH i2c: E2 08 00 28 02 80 13 01 00 00 00 00 00 A7 [14:15:47]Write i2c OK [14:15:47]MH_I2C_Read... [14:15:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:47]Read from MH i2c: E2 [14:15:47]MH_I2C_Read... [14:15:47]Read from MH i2c: E2 0E 00 [14:15:47]MH_I2C_Read... [14:15:47]Read from MH i2c: E2 0E 00 28 02 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 22 [14:15:47]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:15:47]wFMCommunicate OK [14:15:47]SAM_PROTO_GetShiftState done [14:15:47]FM_GetShiftState done [14:15:47]req_shift_opened done [14:15:47]requested_item shift.open_date is exist - process it [14:15:47]req_shift_open_date [14:15:47]req_shift_open_date done [14:15:47]produce_requested_data done [14:15:47]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111683,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [14:15:47]process_action_free close_receipt [14:15:47]json_value_free [14:15:47]json_value_free done [14:15:47]process_json_proto returns [14:15:47]Send response to host [14:15:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111683,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [14:15:47]free response buf [14:15:47]execute_script done [14:15:47]execute_script returns [14:15:47]free content buf [14:15:47]Sock 9.Close socket [14:15:47]Sock 9.Thread stoped [14:15:51]OFD Sender: No OFD packet to send [14:15:56]OFD Sender: No OFD packet to send [14:16:01]OFD Sender: No OFD packet to send [14:16:06]OFD Sender: No OFD packet to send [14:16:11]OFD Sender: No OFD packet to send [14:16:16]OFD Sender: No OFD packet to send [14:16:21]OFD Sender: No OFD packet to send [14:16:26]OFD Sender: No OFD packet to send [14:16:31]OFD Sender: No OFD packet to send [14:16:36]OFD Sender: No OFD packet to send [14:16:41]OFD Sender: No OFD packet to send [14:16:43]accept exits with 7 [14:16:43]New connection [14:16:43]New thread 3067153764 created [14:16:43]Thread 3067297124 joined [14:16:43]Waiting for new connection... [14:16:43] Sock 7.Parse request [14:16:43]Sock 7.Check first char [14:16:43]Sock 7.First char is OK [14:16:43]request: POST /json_proto HTTP/1.0 [14:16:43]Method: POST [14:16:43]URL: /json_proto [14:16:43]Method is POST - this is cgi request [14:16:43]url: /json_proto [14:16:43]query_string will be loaded in cgi processing [14:16:43]execute_cgi json_proto POST (null) [14:16:43]execute_cgi path=json_proto method=POST [14:16:43]POST find Content-Length [14:16:43]Host: 172.17.59.68:8080 [14:16:43]Content-Length: 682 [14:16:43]Content-Type: application/json [14:16:43] [14:16:43]POST finish read [14:16:43]Found Content-Length = 682 [14:16:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:43]execute_script... [14:16:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:43]POST & json_proto [14:16:43]process_json_proto [14:16:43]json parsed OK: [14:16:43]protocol is kg_v1.0 [14:16:43]action value=close_receipt [14:16:43]process_action close_receipt [14:16:43]cmd_close_receipt [14:16:43]MH_GetDate [14:16:43]Write to MH i2c: F0 00 00 29 02 1A [14:16:43]Write i2c OK [14:16:43]MH_I2C_Read... [14:16:43]Read from MH i2c: F0 [14:16:43]MH_I2C_Read... [14:16:43]Read from MH i2c: F0 09 00 [14:16:43]MH_I2C_Read... [14:16:43]Read from MH i2c: F0 09 00 29 02 00 CB 39 74 66 BC EC 60 65 6E [14:16:43]GetLastDocTimeStamp 1718892944 [14:16:43]current date 1718893003 [14:16:43]FM_GetShiftState [14:16:43]SAM_PROTO_GetShiftState [14:16:43]wFMCommunicate request_size=4 [14:16:43]MH_SAM_APDU [14:16:43]CAPDU: 80 13 01 00 [14:16:43]Write to MH i2c: E2 08 00 2A 02 80 13 01 00 00 00 00 00 A9 [14:16:43]Write i2c OK [14:16:43]MH_I2C_Read... [14:16:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:43]Read from MH i2c: E2 [14:16:43]MH_I2C_Read... [14:16:43]Read from MH i2c: E2 0E 00 [14:16:43]MH_I2C_Read... [14:16:43]Read from MH i2c: E2 0E 00 2A 02 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 24 [14:16:43]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:16:43]wFMCommunicate OK [14:16:43]SAM_PROTO_GetShiftState done [14:16:43]FM_GetShiftState done [14:16:43]opened in 1718847247 [14:16:43]opened+sec_in_day 1718933647 [14:16:43]quantity*price = 100064 [14:16:43]sum+1 = 100066 [14:16:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 134 20.06.2024 14:16 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111684 ФПД: 18300329745975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T141643&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111684&fm=18300329745975&tin=02508201610067®Number=0000000000092771&sum=100000 [14:16:44]StoreToDocumentArchive [14:16:44]shift 389 fd 111684 [14:16:44]save to /storage/0389/doc_00111684 [14:16:44]save last doc name /storage/0389/doc_00111684 to /storage/kkm_last_doc_name [14:16:44]save OK [14:16:44]Clear old archive folders... [14:16:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:16:44]tlvbuf is 016BB090 [14:16:44]SAM_PROTO_ClearQueue [14:16:44]wFMCommunicate request_size=4 [14:16:44]MH_SAM_APDU [14:16:44]CAPDU: 80 09 00 00 [14:16:44]Write to MH i2c: E2 08 00 37 02 80 09 00 00 00 00 00 00 AB [14:16:44]Write i2c OK [14:16:44]MH_I2C_Read... [14:16:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:44]Read from MH i2c: E2 [14:16:44]MH_I2C_Read... [14:16:44]Read from MH i2c: E2 03 00 [14:16:44]MH_I2C_Read... [14:16:44]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [14:16:44]RAPDU: 90 00 [14:16:44]wFMCommunicate OK [14:16:44]SAM_PROTO_ClearQueue done [14:16:44]KKMCreateOFDPacket [14:16:44]OFDProtocolAddRootSTLVToBuf [14:16:44]FM_MakeSignedData [14:16:44]FM_MakeSignedData [14:16:44]SAM_PROTO_SignData [14:16:44]wFMCommunicate request_size=4 [14:16:44]MH_SAM_APDU [14:16:44]CAPDU: 80 0D 01 02 [14:16:44]Write to MH i2c: E2 08 00 38 02 80 0D 01 02 00 00 00 00 B3 [14:16:44]Write i2c OK [14:16:44]MH_I2C_Read... [14:16:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:44]Read from MH i2c: E2 [14:16:44]MH_I2C_Read... [14:16:44]Read from MH i2c: E2 03 00 [14:16:44]MH_I2C_Read... [14:16:44]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [14:16:44]RAPDU: 90 00 [14:16:44]wFMCommunicate OK [14:16:44]wFMCommunicate request_size=255 [14:16:44]MH_SAM_APDU [14:16:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 CB 39 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 44 B4 01 00 35 04 06 00 10 [14:16:44]Write to MH i2c: E2 02 01 39 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 CB 39 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 44 B4 01 00 35 04 06 00 10 00 00 AA [14:16:44]Write i2c OK [14:16:44]MH_I2C_Read... [14:16:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:45]Read from MH i2c: E2 [14:16:45]MH_I2C_Read... [14:16:45]Read from MH i2c: E2 03 00 [14:16:45]MH_I2C_Read... [14:16:45]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [14:16:45]RAPDU: 90 00 [14:16:45]wFMCommunicate OK [14:16:45]wFMCommunicate request_size=10 [14:16:45]MH_SAM_APDU [14:16:45]CAPDU: 80 0D 02 02 05 A4 E0 A7 5E 37 [14:16:45]Write to MH i2c: E2 0D 00 3A 02 80 0D 02 02 05 00 A4 E0 A7 5E 37 00 00 80 [14:16:45]Write i2c OK [14:16:45]MH_I2C_Read... [14:16:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:45]Read from MH i2c: E2 [14:16:45]MH_I2C_Read... [14:16:45]Read from MH i2c: E2 03 00 [14:16:45]MH_I2C_Read... [14:16:45]Read from MH i2c: E2 03 00 3A 02 00 90 00 B0 [14:16:45]RAPDU: 90 00 [14:16:45]wFMCommunicate OK [14:16:45]wFMCommunicate request_size=4 [14:16:45]MH_SAM_APDU [14:16:45]CAPDU: 80 0D 03 02 [14:16:45]Write to MH i2c: E2 08 00 3B 02 80 0D 03 02 00 00 00 00 B8 [14:16:45]Write i2c OK [14:16:45]MH_I2C_Read... [14:16:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:45]Read from MH i2c: E2 [14:16:45]MH_I2C_Read... [14:16:45]Read from MH i2c: E2 0B 00 [14:16:45]MH_I2C_Read... [14:16:45]Read from MH i2c: E2 0B 00 3B 02 00 B1 A1 01 62 93 BC A3 84 90 00 E4 [14:16:45]RAPDU: B1 A1 01 62 93 BC A3 84 90 00 [14:16:45]wFMCommunicate OK [14:16:45]SAM_PROTO_SignData done [14:16:45]FM_MakeSignedData done [14:16:45]CreateOFDProtocolMessage [14:16:45]wFMCommunicate request_size=4 [14:16:45]MH_SAM_APDU [14:16:45]CAPDU: 80 11 00 00 [14:16:45]Write to MH i2c: E2 08 00 3C 02 80 11 00 00 00 00 00 00 B8 [14:16:45]Write i2c OK [14:16:45]MH_I2C_Read... [14:16:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:45]Read from MH i2c: E2 [14:16:45]MH_I2C_Read... [14:16:45]Read from MH i2c: E2 17 00 [14:16:45]MH_I2C_Read... [14:16:45]Read from MH i2c: E2 17 00 3C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0A [14:16:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:16:45]wFMCommunicate OK [14:16:45]CreateOFDProtocolMessage done [14:16:45]OFDSenderStorePacket 111684 [14:16:45]StoreOFDPacket docnum=111684 [14:16:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CB 6A 07 01 5D 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 CB 39 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 44 B4 01 00 35 04 06 00 10 A4 E0 A7 5E 37 B1 A1 01 62 93 BC A3 84 [14:16:45]CheckFolder [14:16:45]dirname=/storage/ofd_packets [14:16:45]CheckFolder done [14:16:45]ProducePacketName [14:16:45]name=ofd_packets/00111684 [14:16:45]NVStorageSaveData ofd_packets/00111684 [14:16:45]File name is /storage/ofd_packets/00111684 [14:16:45]Write 301 bytes [14:16:45]NVStorageSaveData done [14:16:45]OFDSenderStorePacket done [14:16:45]KKMCreateOFDPacket done [14:16:45]NVStorageSaveData kkm_last_timestamp [14:16:45]File name is /storage/kkm_last_timestamp [14:16:45]Write 4 bytes [14:16:45]NVStorageSaveData done [14:16:45]ExternCall_PrintAddStr [14:16:45]wPrintStart [14:16:45]Write to MH i2c: 01 00 00 3D 02 3F [14:16:45]Write i2c OK [14:16:45]MH_I2C_Read... [14:16:45]Read from MH i2c: 01 [14:16:45]MH_I2C_Read... [14:16:45]Read from MH i2c: 01 07 00 [14:16:45]MH_I2C_Read... [14:16:45]Read from MH i2c: 01 07 00 3D 02 00 00 00 00 00 FF 0F 54 [14:16:45]RasterBufferAndPrint [14:16:45]line Счет N : (1)320300 [14:16:45]line ИНН: 02508201610067 [14:16:45]line Контрольно-Кассовый Чек [14:16:45]line ПРОДАЖА [14:16:45]line ТРК (МРК, ГНК) : 11 [14:16:45]line Товар: 2710124130 [14:16:45]line Аи-92-К-5 [14:16:45]line 15.070 * 66.40 [14:16:45]line = 1000.65 [14:16:45]line НДС 12% НСП 1% [14:16:45]line > о реализуемом товаре [14:16:45]line ОКРУГЛЕНИЕ: -0.65 [14:16:45]line ИТОГО: 1000.00 [14:16:45]line Внесено: 1000.00 [14:16:45]line СДАЧА: 0.00 [14:16:45]line НСП 1% : 8.85 [14:16:45]line НДС 12% : 106.26 [14:16:45]line Наличными: 1000.00 [14:16:45]line Безнал.: 0.00 [14:16:45]line Место: АЗС № 65 "Партнер Нефть" [14:16:45]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:16:45]line СНО: Общий режим [14:16:45]line Чек 134 20.06.2024 14:16 [14:16:45]line Смена: 389 ФФД: 1.0 [14:16:45]line ЗНМ: 0300000198 [14:16:45]line РНМ: 0000000000092771 [14:16:45]line Версия ККМ: 001 [14:16:45]line ФМ: 0000000000875083 [14:16:45]line ФД: 111684 [14:16:45]line ФПД: 18300329745975 [14:16:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T141643&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111684&fm=18300329745975&tin=02508201610067®Number=0000000000092771&sum=100000 [14:16:45]OFD Sender: Processing packet 111684 [packets to send 38, broken 37] [14:16:45]ProducePacketName [14:16:45]name=ofd_packets/00111684 [14:16:45]OFD Sender: To server: pG, [14:16:45]CommunicateWithHost lk.salyk.kg:30040 [14:16:45]ConnectInit lk.salyk.kg [14:16:45]written 0, free lines is 4095 [14:16:45]Connected sock=10 [14:16:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CB 6A 07 01 5D 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 CB 39 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 44 B4 01 00 35 04 06 00 10 A4 E0 A7 5E 37 B1 A1 01 62 93 BC A3 84 [14:16:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 2D B5 47 00 AA 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 35 30 38 33 10 04 04 00 44 B4 01 00 F4 03 04 00 14 D1 73 66 B6 04 01 00 00 9F 11 92 70 9F 07 DC 97 [14:16:45]CommunicateWithHost err = 0 [14:16:45]CheckOFDResponse [14:16:45]1017 (14) - 77093643461234 [14:16:45]1041 (16) - 0000000000875083 [14:16:45]1040 (4) - 111684 [14:16:45]1012 (4) - 20.06.2024 06:49 [14:16:45]1206 (1) - 0 [14:16:45]OFD Sender: Remove packet 111684 [14:16:45]ProducePacketName [14:16:45]name=ofd_packets/00111684 [14:16:45]NVStorageDeleteData [14:16:46]Write to MH i2c: 01 00 00 68 02 6A [14:16:46]Write i2c OK [14:16:46]MH_I2C_Read... [14:16:46]Read from MH i2c: 01 [14:16:46]MH_I2C_Read... [14:16:46]Read from MH i2c: 01 07 00 [14:16:46]MH_I2C_Read... [14:16:46]Read from MH i2c: 01 07 00 68 02 00 00 00 00 00 DD 0C 5A [14:16:46]RasterBufferAndPrint [14:16:46]line [14:16:46]line [14:16:46]line [14:16:46]line [14:16:46]line [14:16:46]written 0, free lines is 3299 [14:16:46]MH_Cut [14:16:46]Write to MH i2c: D1 01 00 6F 02 01 43 [14:16:46]Write i2c OK [14:16:46]MH_I2C_Read... [14:16:46]Read from MH i2c: D1 [14:16:46]MH_I2C_Read... [14:16:46]Read from MH i2c: D1 01 00 [14:16:46]MH_I2C_Read... [14:16:46]Read from MH i2c: D1 01 00 6F 02 00 42 [14:16:46]Write to MH i2c: 01 00 00 70 02 72 [14:16:46]Write i2c OK [14:16:46]MH_I2C_Read... [14:16:46]OFD Sender: No OFD packet to send [14:16:46]*** Cut start [14:16:46]*** Partial cut [14:16:46]*** CUTSNS_PIN = 1 [14:16:46]*** CUTSNS_PIN = 0 [14:16:47]*** Brake cut motor [14:16:47]Read from MH i2c: 01 [14:16:47]MH_I2C_Read... [14:16:47]*** Stop cut motor [14:16:47]*** Cut end [14:16:47]Read from MH i2c: 01 07 00 [14:16:47]MH_I2C_Read... [14:16:47]Read from MH i2c: 01 07 00 70 02 00 00 00 00 00 FF 0F 87 [14:16:47]process_action close_receipt done [14:16:47]requested_data is exist [14:16:47]produce_requested_data [14:16:47]requested_item fm.sn is exist - process it [14:16:47]wFMCommunicate request_size=4 [14:16:47]MH_SAM_APDU [14:16:47]CAPDU: 80 11 00 00 [14:16:47]Write to MH i2c: E2 08 00 71 02 80 11 00 00 00 00 00 00 ED [14:16:47]Write i2c OK [14:16:47]MH_I2C_Read... [14:16:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:47]Read from MH i2c: E2 [14:16:47]MH_I2C_Read... [14:16:47]Read from MH i2c: E2 17 00 [14:16:47]MH_I2C_Read... [14:16:47]Read from MH i2c: E2 17 00 71 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3F [14:16:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:16:47]wFMCommunicate OK [14:16:47]requested_item fd.num is exist - process it [14:16:47]SAM_PROTO_GetFieldsCounters [14:16:47]wFMCommunicate request_size=4 [14:16:47]MH_SAM_APDU [14:16:47]CAPDU: 80 13 00 00 [14:16:47]Write to MH i2c: E2 08 00 72 02 80 13 00 00 00 00 00 00 F0 [14:16:47]Write i2c OK [14:16:47]MH_I2C_Read... [14:16:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:47]Read from MH i2c: E2 [14:16:47]MH_I2C_Read... [14:16:47]Read from MH i2c: E2 62 00 [14:16:47]MH_I2C_Read... [14:16:47]Read from MH i2c: E2 62 00 72 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 44 B4 01 00 0E 04 04 00 85 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 22 [14:16:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 44 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:16:47]wFMCommunicate OK [14:16:47]SAM_PROTO_GetFieldsCounters done [14:16:47]requested_item shift.num is exist - process it [14:16:47]requested_item shift.opened is exist - process it [14:16:47]req_shift_opened [14:16:47]FM_GetShiftState [14:16:47]SAM_PROTO_GetShiftState [14:16:47]wFMCommunicate request_size=4 [14:16:47]MH_SAM_APDU [14:16:47]CAPDU: 80 13 01 00 [14:16:47]Write to MH i2c: E2 08 00 73 02 80 13 01 00 00 00 00 00 F2 [14:16:47]Write i2c OK [14:16:47]MH_I2C_Read... [14:16:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:47]Read from MH i2c: E2 [14:16:47]MH_I2C_Read... [14:16:47]Read from MH i2c: E2 0E 00 [14:16:47]MH_I2C_Read... [14:16:47]Read from MH i2c: E2 0E 00 73 02 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 6D [14:16:47]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:16:47]wFMCommunicate OK [14:16:47]SAM_PROTO_GetShiftState done [14:16:47]FM_GetShiftState done [14:16:47]req_shift_opened done [14:16:47]requested_item shift.open_date is exist - process it [14:16:47]req_shift_open_date [14:16:47]req_shift_open_date done [14:16:47]produce_requested_data done [14:16:47]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111684,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [14:16:47]process_action_free close_receipt [14:16:47]json_value_free [14:16:47]json_value_free done [14:16:47]process_json_proto returns [14:16:47]Send response to host [14:16:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111684,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [14:16:47]free response buf [14:16:47]execute_script done [14:16:47]execute_script returns [14:16:47]free content buf [14:16:47]Sock 7.Close socket [14:16:47]Sock 7.Thread stoped [14:16:51]OFD Sender: No OFD packet to send [14:16:56]OFD Sender: No OFD packet to send [14:17:01]OFD Sender: No OFD packet to send [14:17:06]OFD Sender: No OFD packet to send [14:17:11]OFD Sender: No OFD packet to send [14:17:16]OFD Sender: No OFD packet to send [14:17:21]OFD Sender: No OFD packet to send [14:17:26]OFD Sender: No OFD packet to send [14:17:31]OFD Sender: No OFD packet to send [14:17:36]OFD Sender: No OFD packet to send [14:17:41]OFD Sender: No OFD packet to send [14:17:46]OFD Sender: No OFD packet to send [14:17:51]OFD Sender: No OFD packet to send [14:17:56]OFD Sender: No OFD packet to send [14:18:01]OFD Sender: No OFD packet to send [14:18:06]OFD Sender: No OFD packet to send [14:18:11]OFD Sender: No OFD packet to send [14:18:16]OFD Sender: No OFD packet to send [14:18:21]OFD Sender: No OFD packet to send [14:18:26]OFD Sender: No OFD packet to send [14:18:27]accept exits with 9 [14:18:27]New connection [14:18:27]New thread 3067297124 created [14:18:27]Thread 3067153764 joined [14:18:27]Waiting for new connection... [14:18:27] Sock 9.Parse request [14:18:27]Sock 9.Check first char [14:18:27]Sock 9.First char is OK [14:18:27]request: POST /json_proto HTTP/1.0 [14:18:27]Method: POST [14:18:27]URL: /json_proto [14:18:27]Method is POST - this is cgi request [14:18:27]url: /json_proto [14:18:27]query_string will be loaded in cgi processing [14:18:27]execute_cgi json_proto POST (null) [14:18:27]execute_cgi path=json_proto method=POST [14:18:27]POST find Content-Length [14:18:27]Host: 172.17.59.68:8080 [14:18:27]Content-Length: 677 [14:18:27]Content-Type: application/json [14:18:27] [14:18:27]POST finish read [14:18:27]Found Content-Length = 677 [14:18:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 2.110, "sum" : 140.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:27]execute_script... [14:18: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)320301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 2.110, "sum" : 140.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:27]POST & json_proto [14:18:27]process_json_proto [14:18:27]json parsed OK: [14:18:27]protocol is kg_v1.0 [14:18:27]action value=close_receipt [14:18:27]process_action close_receipt [14:18:27]cmd_close_receipt [14:18:27]MH_GetDate [14:18:27]Write to MH i2c: F0 00 00 74 02 65 [14:18:27]Write i2c OK [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: F0 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: F0 09 00 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: F0 09 00 74 02 00 33 3A 74 66 BC EC 60 65 22 [14:18:27]GetLastDocTimeStamp 1718893003 [14:18:27]current date 1718893107 [14:18:27]FM_GetShiftState [14:18:27]SAM_PROTO_GetShiftState [14:18:27]wFMCommunicate request_size=4 [14:18:27]MH_SAM_APDU [14:18:27]CAPDU: 80 13 01 00 [14:18:27]Write to MH i2c: E2 08 00 75 02 80 13 01 00 00 00 00 00 F4 [14:18:27]Write i2c OK [14:18:27]MH_I2C_Read... [14:18:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:27]Read from MH i2c: E2 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 0E 00 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 0E 00 75 02 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 6F [14:18:27]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:18:27]wFMCommunicate OK [14:18:27]SAM_PROTO_GetShiftState done [14:18:27]FM_GetShiftState done [14:18:27]opened in 1718847247 [14:18:27]opened+sec_in_day 1718933647 [14:18:27]quantity*price = 14010 [14:18:27]sum+1 = 14011 [14:18:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 140.00 Внесено: 140.00 СДАЧА: 0.00 НСП 1% : 1.24 НДС 12% : 14.88 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 135 20.06.2024 14:18 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111685 ФПД: 252497995273138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T141827&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111685&fm=252497995273138&tin=02508201610067®Number=0000000000092771&sum=14000 [14:18:28]StoreToDocumentArchive [14:18:28]shift 389 fd 111685 [14:18:28]save to /storage/0389/doc_00111685 [14:18:28]save last doc name /storage/0389/doc_00111685 to /storage/kkm_last_doc_name [14:18:28]save OK [14:18:28]Clear old archive folders... [14:18:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:18:28]tlvbuf is 01724EF0 [14:18:28]SAM_PROTO_ClearQueue [14:18:28]wFMCommunicate request_size=4 [14:18:28]MH_SAM_APDU [14:18:28]CAPDU: 80 09 00 00 [14:18:28]Write to MH i2c: E2 08 00 82 02 80 09 00 00 00 00 00 00 F6 [14:18:28]Write i2c OK [14:18:28]MH_I2C_Read... [14:18:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:18:28]Read from MH i2c: E2 [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: E2 03 00 [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [14:18:28]RAPDU: 90 00 [14:18:28]wFMCommunicate OK [14:18:28]SAM_PROTO_ClearQueue done [14:18:28]KKMCreateOFDPacket [14:18:28]OFDProtocolAddRootSTLVToBuf [14:18:28]FM_MakeSignedData [14:18:28]FM_MakeSignedData [14:18:28]SAM_PROTO_SignData [14:18:28]wFMCommunicate request_size=4 [14:18:28]MH_SAM_APDU [14:18:28]CAPDU: 80 0D 01 02 [14:18:28]Write to MH i2c: E2 08 00 83 02 80 0D 01 02 00 00 00 00 FE [14:18:28]Write i2c OK [14:18:28]MH_I2C_Read... [14:18:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:18:28]Read from MH i2c: E2 [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: E2 03 00 [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [14:18:28]RAPDU: 90 00 [14:18:28]wFMCommunicate OK [14:18:28]wFMCommunicate request_size=255 [14:18:28]MH_SAM_APDU [14:18: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 3E 08 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BA 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 33 3A 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 45 B4 01 00 35 04 06 00 E5 [14:18:28]Write to MH i2c: E2 02 01 84 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 3E 08 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BA 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 33 3A 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 45 B4 01 00 35 04 06 00 E5 00 00 97 [14:18:28]Write i2c OK [14:18:28]MH_I2C_Read... [14:18:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:28]Read from MH i2c: E2 [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: E2 03 00 [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: E2 03 00 84 02 00 90 00 FA [14:18:28]RAPDU: 90 00 [14:18:28]wFMCommunicate OK [14:18:28]wFMCommunicate request_size=10 [14:18:28]MH_SAM_APDU [14:18:28]CAPDU: 80 0D 02 02 05 A5 45 50 93 B2 [14:18:28]Write to MH i2c: E2 0D 00 85 02 80 0D 02 02 05 00 A5 45 50 93 B2 00 00 8A [14:18:28]Write i2c OK [14:18:28]MH_I2C_Read... [14:18:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:28]Read from MH i2c: E2 [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: E2 03 00 [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: E2 03 00 85 02 00 90 00 FB [14:18:28]RAPDU: 90 00 [14:18:28]wFMCommunicate OK [14:18:28]wFMCommunicate request_size=4 [14:18:28]MH_SAM_APDU [14:18:28]CAPDU: 80 0D 03 02 [14:18:28]Write to MH i2c: E2 08 00 86 02 80 0D 03 02 00 00 00 00 03 [14:18:28]Write i2c OK [14:18:28]MH_I2C_Read... [14:18:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:18:28]Read from MH i2c: E2 [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: E2 0B 00 [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: E2 0B 00 86 02 00 FF D1 E0 AA 66 72 ED C3 90 00 E6 [14:18:28]RAPDU: FF D1 E0 AA 66 72 ED C3 90 00 [14:18:28]wFMCommunicate OK [14:18:28]SAM_PROTO_SignData done [14:18:28]FM_MakeSignedData done [14:18:28]CreateOFDProtocolMessage [14:18:28]wFMCommunicate request_size=4 [14:18:28]MH_SAM_APDU [14:18:28]CAPDU: 80 11 00 00 [14:18:28]Write to MH i2c: E2 08 00 87 02 80 11 00 00 00 00 00 00 03 [14:18:28]Write i2c OK [14:18:28]MH_I2C_Read... [14:18:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:28]Read from MH i2c: E2 [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: E2 17 00 [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: E2 17 00 87 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 55 [14:18:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:18:28]wFMCommunicate OK [14:18:28]CreateOFDProtocolMessage done [14:18:28]OFDSenderStorePacket 111685 [14:18:28]StoreOFDPacket docnum=111685 [14:18:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B7 C8 07 01 5C D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 08 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BA 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 33 3A 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 45 B4 01 00 35 04 06 00 E5 A5 45 50 93 B2 FF D1 E0 AA 66 72 ED C3 [14:18:28]CheckFolder [14:18:28]dirname=/storage/ofd_packets [14:18:28]CheckFolder done [14:18:28]ProducePacketName [14:18:28]name=ofd_packets/00111685 [14:18:28]NVStorageSaveData ofd_packets/00111685 [14:18:28]File name is /storage/ofd_packets/00111685 [14:18:28]Write 301 bytes [14:18:28]NVStorageSaveData done [14:18:28]OFDSenderStorePacket done [14:18:28]KKMCreateOFDPacket done [14:18:28]NVStorageSaveData kkm_last_timestamp [14:18:28]File name is /storage/kkm_last_timestamp [14:18:28]Write 4 bytes [14:18:28]NVStorageSaveData done [14:18:28]ExternCall_PrintAddStr [14:18:28]wPrintStart [14:18:28]Write to MH i2c: 01 00 00 88 02 8A [14:18:28]Write i2c OK [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: 01 [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: 01 07 00 [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: 01 07 00 88 02 00 00 00 00 00 FF 0F 9F [14:18:28]RasterBufferAndPrint [14:18:28]line Счет N : (1)320301 [14:18:28]line ИНН: 02508201610067 [14:18:28]line Контрольно-Кассовый Чек [14:18:28]line ПРОДАЖА [14:18:28]line ТРК (МРК, ГНК) : 11 [14:18:28]line Товар: 2710124130 [14:18:28]line Аи-92-К-5 [14:18:28]line 2.110 * 66.40 [14:18:28]line = 140.10 [14:18:28]line НДС 12% НСП 1% [14:18:28]line > о реализуемом товаре [14:18:28]line ОКРУГЛЕНИЕ: -0.10 [14:18:28]line ИТОГО: 140.00 [14:18:28]line Внесено: 140.00 [14:18:28]line СДАЧА: 0.00 [14:18:28]line НСП 1% : 1.24 [14:18:28]line НДС 12% : 14.88 [14:18:28]line Наличными: 140.00 [14:18:28]line Безнал.: 0.00 [14:18:28]line Место: АЗС № 65 "Партнер Нефть" [14:18:28]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:18:28]line СНО: Общий режим [14:18:28]line Чек 135 20.06.2024 14:18 [14:18:28]line Смена: 389 ФФД: 1.0 [14:18:28]line ЗНМ: 0300000198 [14:18:28]line РНМ: 0000000000092771 [14:18:28]line Версия ККМ: 001 [14:18:28]line ФМ: 0000000000875083 [14:18:28]line ФД: 111685 [14:18:28]line ФПД: 252497995273138 [14:18:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T141827&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111685&fm=252497995273138&tin=02508201610067®Number=0000000000092771&sum=14000 [14:18:28]written 0, free lines is 4095 [14:18:28]OFD Sender: Processing packet 111685 [packets to send 38, broken 37] [14:18:28]ProducePacketName [14:18:28]name=ofd_packets/00111685 [14:18:28]OFD Sender: To server: pG, [14:18:28]CommunicateWithHost lk.salyk.kg:30040 [14:18:28]ConnectInit lk.salyk.kg [14:18:28]Connected sock=10 [14:18:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B7 C8 07 01 5C D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 08 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BA 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 33 3A 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 45 B4 01 00 35 04 06 00 E5 A5 45 50 93 B2 FF D1 E0 AA 66 72 ED C3 [14:18:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 1E 5E 47 00 4E 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 45 B4 01 00 F4 03 04 00 7B D1 73 66 B6 04 01 00 00 CF 03 2D 0B F8 5D 4A 01 [14:18:29]CommunicateWithHost err = 0 [14:18:29]CheckOFDResponse [14:18:29]1017 (14) - 77093643461234 [14:18:29]1041 (16) - 0000000000875083 [14:18:29]1040 (4) - 111685 [14:18:29]1012 (4) - 20.06.2024 06:51 [14:18:29]1206 (1) - 0 [14:18:29]OFD Sender: Remove packet 111685 [14:18:29]ProducePacketName [14:18:29]name=ofd_packets/00111685 [14:18:29]NVStorageDeleteData [14:18:29]Write to MH i2c: 01 00 00 B3 02 B5 [14:18:29]Write i2c OK [14:18:29]MH_I2C_Read... [14:18:29]Read from MH i2c: 01 [14:18:29]MH_I2C_Read... [14:18:29]Read from MH i2c: 01 07 00 [14:18:29]MH_I2C_Read... [14:18:29]Read from MH i2c: 01 07 00 B3 02 00 00 00 00 00 D4 0C 9C [14:18:29]RasterBufferAndPrint [14:18:29]line [14:18:29]line [14:18:29]line [14:18:29]line [14:18:29]line [14:18:29]written 0, free lines is 3288 [14:18:29]MH_Cut [14:18:29]Write to MH i2c: D1 01 00 BA 02 01 8E [14:18:29]Write i2c OK [14:18:29]MH_I2C_Read... [14:18:29]Read from MH i2c: D1 [14:18:29]MH_I2C_Read... [14:18:29]Read from MH i2c: D1 01 00 [14:18:29]MH_I2C_Read... [14:18:29]Read from MH i2c: D1 01 00 BA 02 00 8D [14:18:29]Write to MH i2c: 01 00 00 BB 02 BD [14:18:29]Write i2c OK [14:18:29]MH_I2C_Read... [14:18:29]OFD Sender: No OFD packet to send [14:18:29]*** Cut start [14:18:29]*** Partial cut [14:18:29]*** CUTSNS_PIN = 1 [14:18:29]*** CUTSNS_PIN = 0 [14:18:30]*** Brake cut motor [14:18:30]Read from MH i2c: 01 [14:18:30]MH_I2C_Read... [14:18:30]*** Stop cut motor [14:18:30]*** Cut end [14:18:30]Read from MH i2c: 01 07 00 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: 01 07 00 BB 02 00 00 00 00 00 FF 0F D2 [14:18:30]process_action close_receipt done [14:18:30]requested_data is exist [14:18:30]produce_requested_data [14:18:30]requested_item fm.sn is exist - process it [14:18:30]wFMCommunicate request_size=4 [14:18:30]MH_SAM_APDU [14:18:30]CAPDU: 80 11 00 00 [14:18:30]Write to MH i2c: E2 08 00 BC 02 80 11 00 00 00 00 00 00 38 [14:18:30]Write i2c OK [14:18:30]MH_I2C_Read... [14:18:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:30]Read from MH i2c: E2 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: E2 17 00 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: E2 17 00 BC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8A [14:18:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:18:30]wFMCommunicate OK [14:18:30]requested_item fd.num is exist - process it [14:18:30]SAM_PROTO_GetFieldsCounters [14:18:30]wFMCommunicate request_size=4 [14:18:30]MH_SAM_APDU [14:18:30]CAPDU: 80 13 00 00 [14:18:30]Write to MH i2c: E2 08 00 BD 02 80 13 00 00 00 00 00 00 3B [14:18:30]Write i2c OK [14:18:30]MH_I2C_Read... [14:18:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:18:30]Read from MH i2c: E2 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: E2 62 00 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: E2 62 00 BD 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 45 B4 01 00 0E 04 04 00 85 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 71 [14:18:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 45 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:18:30]wFMCommunicate OK [14:18:30]SAM_PROTO_GetFieldsCounters done [14:18:30]requested_item shift.num is exist - process it [14:18:30]requested_item shift.opened is exist - process it [14:18:30]req_shift_opened [14:18:30]FM_GetShiftState [14:18:30]SAM_PROTO_GetShiftState [14:18:30]wFMCommunicate request_size=4 [14:18:30]MH_SAM_APDU [14:18:30]CAPDU: 80 13 01 00 [14:18:30]Write to MH i2c: E2 08 00 BE 02 80 13 01 00 00 00 00 00 3D [14:18:30]Write i2c OK [14:18:30]MH_I2C_Read... [14:18:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:30]Read from MH i2c: E2 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: E2 0E 00 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: E2 0E 00 BE 02 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 B8 [14:18:30]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:18:30]wFMCommunicate OK [14:18:30]SAM_PROTO_GetShiftState done [14:18:30]FM_GetShiftState done [14:18:30]req_shift_opened done [14:18:30]requested_item shift.open_date is exist - process it [14:18:30]req_shift_open_date [14:18:30]req_shift_open_date done [14:18:30]produce_requested_data done [14:18:30]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111685,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [14:18:30]process_action_free close_receipt [14:18:30]json_value_free [14:18:30]json_value_free done [14:18:30]process_json_proto returns [14:18:30]Send response to host [14:18:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111685,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [14:18:30]free response buf [14:18:30]execute_script done [14:18:30]execute_script returns [14:18:30]free content buf [14:18:30]Sock 9.Close socket [14:18:30]Sock 9.Thread stoped [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:58]accept exits with 7 [14:21:58]New connection [14:21:58]New thread 3067153764 created [14:21:58]Thread 3067297124 joined [14:21:58]Waiting for new connection... [14:21:58] Sock 7.Parse request [14:21:58]Sock 7.Check first char [14:21:58]Sock 7.First char is OK [14:21:58]request: POST /json_proto HTTP/1.0 [14:21:58]Method: POST [14:21:58]URL: /json_proto [14:21:58]Method is POST - this is cgi request [14:21:58]url: /json_proto [14:21:58]query_string will be loaded in cgi processing [14:21:58]execute_cgi json_proto POST (null) [14:21:58]execute_cgi path=json_proto method=POST [14:21:58]POST find Content-Length [14:21:58]Host: 172.17.59.68:8080 [14:21:58]Content-Length: 677 [14:21:58]Content-Type: application/json [14:21:58] [14:21:58]POST finish read [14:21:58]Found Content-Length = 677 [14:21:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:58]execute_script... [14:21: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)320302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:58]POST & json_proto [14:21:58]process_json_proto [14:21:58]json parsed OK: [14:21:58]protocol is kg_v1.0 [14:21:58]action value=close_receipt [14:21:58]process_action close_receipt [14:21:58]cmd_close_receipt [14:21:58]MH_GetDate [14:21:58]Write to MH i2c: F0 00 00 BF 02 B0 [14:21:58]Write i2c OK [14:21:58]MH_I2C_Read... [14:21:58]Read from MH i2c: F0 [14:21:58]MH_I2C_Read... [14:21:58]Read from MH i2c: F0 09 00 [14:21:58]MH_I2C_Read... [14:21:58]Read from MH i2c: F0 09 00 BF 02 00 07 3B 74 66 BC EC 60 65 42 [14:21:58]GetLastDocTimeStamp 1718893107 [14:21:58]current date 1718893319 [14:21:58]FM_GetShiftState [14:21:58]SAM_PROTO_GetShiftState [14:21:58]wFMCommunicate request_size=4 [14:21:58]MH_SAM_APDU [14:21:58]CAPDU: 80 13 01 00 [14:21:58]Write to MH i2c: E2 08 00 C0 02 80 13 01 00 00 00 00 00 3F [14:21:58]Write i2c OK [14:21:58]MH_I2C_Read... [14:21:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:58]Read from MH i2c: E2 [14:21:58]MH_I2C_Read... [14:21:58]Read from MH i2c: E2 0E 00 [14:21:58]MH_I2C_Read... [14:21:58]Read from MH i2c: E2 0E 00 C0 02 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 BA [14:21:58]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:21:58]wFMCommunicate OK [14:21:58]SAM_PROTO_GetShiftState done [14:21:58]FM_GetShiftState done [14:21:58]opened in 1718847247 [14:21:58]opened+sec_in_day 1718933647 [14:21:58]quantity*price = 30012 [14:21:58]sum+1 = 30014 [14:21:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 136 20.06.2024 14:21 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111686 ФПД: 155404244667153 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T142159&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111686&fm=155404244667153&tin=02508201610067®Number=0000000000092771&sum=30000 [14:21:59]StoreToDocumentArchive [14:21:59]shift 389 fd 111686 [14:21:59]save to /storage/0389/doc_00111686 [14:21:59]save last doc name /storage/0389/doc_00111686 to /storage/kkm_last_doc_name [14:21:59]save OK [14:21:59]Clear old archive folders... [14:21:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:21:59]tlvbuf is 01728980 [14:21:59]SAM_PROTO_ClearQueue [14:21:59]wFMCommunicate request_size=4 [14:21:59]MH_SAM_APDU [14:21:59]CAPDU: 80 09 00 00 [14:21:59]Write to MH i2c: E2 08 00 CD 02 80 09 00 00 00 00 00 00 41 [14:21:59]Write i2c OK [14:21:59]MH_I2C_Read... [14:21:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:59]Read from MH i2c: E2 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: E2 03 00 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: E2 03 00 CD 02 00 90 00 43 [14:21:59]RAPDU: 90 00 [14:21:59]wFMCommunicate OK [14:21:59]SAM_PROTO_ClearQueue done [14:21:59]KKMCreateOFDPacket [14:21:59]OFDProtocolAddRootSTLVToBuf [14:21:59]FM_MakeSignedData [14:21:59]FM_MakeSignedData [14:21:59]SAM_PROTO_SignData [14:21:59]wFMCommunicate request_size=4 [14:21:59]MH_SAM_APDU [14:21:59]CAPDU: 80 0D 01 02 [14:21:59]Write to MH i2c: E2 08 00 CE 02 80 0D 01 02 00 00 00 00 49 [14:21:59]Write i2c OK [14:21:59]MH_I2C_Read... [14:21:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:59]Read from MH i2c: E2 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: E2 03 00 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [14:21:59]RAPDU: 90 00 [14:21:59]wFMCommunicate OK [14:21:59]wFMCommunicate request_size=255 [14:21:59]MH_SAM_APDU [14:21: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 07 3B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 46 B4 01 00 35 04 06 00 8D [14:21:59]Write to MH i2c: E2 02 01 CF 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 07 3B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 46 B4 01 00 35 04 06 00 8D 00 00 4D [14:21:59]Write i2c OK [14:21:59]MH_I2C_Read... [14:22:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:00]Read from MH i2c: E2 [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: E2 03 00 [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: E2 03 00 CF 02 00 90 00 45 [14:22:00]RAPDU: 90 00 [14:22:00]wFMCommunicate OK [14:22:00]wFMCommunicate request_size=10 [14:22:00]MH_SAM_APDU [14:22:00]CAPDU: 80 0D 02 02 05 56 DE CC CB 11 [14:22:00]Write to MH i2c: E2 0D 00 D0 02 80 0D 02 02 05 00 56 DE CC CB 11 00 00 32 [14:22:00]Write i2c OK [14:22:00]MH_I2C_Read... [14:22:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:00]Read from MH i2c: E2 [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: E2 03 00 [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: E2 03 00 D0 02 00 90 00 46 [14:22:00]RAPDU: 90 00 [14:22:00]wFMCommunicate OK [14:22:00]wFMCommunicate request_size=4 [14:22:00]MH_SAM_APDU [14:22:00]CAPDU: 80 0D 03 02 [14:22:00]Write to MH i2c: E2 08 00 D1 02 80 0D 03 02 00 00 00 00 4E [14:22:00]Write i2c OK [14:22:00]MH_I2C_Read... [14:22:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:22:00]Read from MH i2c: E2 [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: E2 0B 00 [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: E2 0B 00 D1 02 00 BA 6D B0 A6 1E D2 61 AE 90 00 CB [14:22:00]RAPDU: BA 6D B0 A6 1E D2 61 AE 90 00 [14:22:00]wFMCommunicate OK [14:22:00]SAM_PROTO_SignData done [14:22:00]FM_MakeSignedData done [14:22:00]CreateOFDProtocolMessage [14:22:00]wFMCommunicate request_size=4 [14:22:00]MH_SAM_APDU [14:22:00]CAPDU: 80 11 00 00 [14:22:00]Write to MH i2c: E2 08 00 D2 02 80 11 00 00 00 00 00 00 4E [14:22:00]Write i2c OK [14:22:00]MH_I2C_Read... [14:22:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:00]Read from MH i2c: E2 [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: E2 17 00 [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: E2 17 00 D2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A0 [14:22:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:22:00]wFMCommunicate OK [14:22:00]CreateOFDProtocolMessage done [14:22:00]OFDSenderStorePacket 111686 [14:22:00]StoreOFDPacket docnum=111686 [14:22:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 16 77 07 01 F3 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 07 3B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 46 B4 01 00 35 04 06 00 8D 56 DE CC CB 11 BA 6D B0 A6 1E D2 61 AE [14:22:00]CheckFolder [14:22:00]dirname=/storage/ofd_packets [14:22:00]CheckFolder done [14:22:00]ProducePacketName [14:22:00]name=ofd_packets/00111686 [14:22:00]NVStorageSaveData ofd_packets/00111686 [14:22:00]File name is /storage/ofd_packets/00111686 [14:22:00]Write 301 bytes [14:22:00]NVStorageSaveData done [14:22:00]OFDSenderStorePacket done [14:22:00]KKMCreateOFDPacket done [14:22:00]NVStorageSaveData kkm_last_timestamp [14:22:00]File name is /storage/kkm_last_timestamp [14:22:00]Write 4 bytes [14:22:00]NVStorageSaveData done [14:22:00]ExternCall_PrintAddStr [14:22:00]wPrintStart [14:22:00]Write to MH i2c: 01 00 00 D3 02 D5 [14:22:00]Write i2c OK [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: 01 [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: 01 07 00 [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: 01 07 00 D3 02 00 00 00 00 00 FF 0F EA [14:22:00]RasterBufferAndPrint [14:22:00]line Счет N : (1)320302 [14:22:00]line ИНН: 02508201610067 [14:22:00]line Контрольно-Кассовый Чек [14:22:00]line ПРОДАЖА [14:22:00]line ТРК (МРК, ГНК) : 11 [14:22:00]line Товар: 2710124130 [14:22:00]line Аи-92-К-5 [14:22:00]line 4.520 * 66.40 [14:22:00]line = 300.13 [14:22:00]line НДС 12% НСП 1% [14:22:00]line > о реализуемом товаре [14:22:00]line ОКРУГЛЕНИЕ: -0.13 [14:22:00]line ИТОГО: 300.00 [14:22:00]line Внесено: 300.00 [14:22:00]line СДАЧА: 0.00 [14:22:00]line НСП 1% : 2.66 [14:22:00]line НДС 12% : 31.87 [14:22:00]line Наличными: 300.00 [14:22:00]line Безнал.: 0.00 [14:22:00]line Место: АЗС № 65 "Партнер Нефть" [14:22:00]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:22:00]line СНО: Общий режим [14:22:00]line Чек 136 20.06.2024 14:21 [14:22:00]line Смена: 389 ФФД: 1.0 [14:22:00]line ЗНМ: 0300000198 [14:22:00]line РНМ: 0000000000092771 [14:22:00]line Версия ККМ: 001 [14:22:00]line ФМ: 0000000000875083 [14:22:00]line ФД: 111686 [14:22:00]line ФПД: 155404244667153 [14:22:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T142159&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111686&fm=155404244667153&tin=02508201610067®Number=0000000000092771&sum=30000 [14:22:00]OFD Sender: Processing packet 111686 [packets to send 38, broken 37] [14:22:00]ProducePacketName [14:22:00]name=ofd_packets/00111686 [14:22:00]OFD Sender: To server: pG, [14:22:00]CommunicateWithHost lk.salyk.kg:30040 [14:22:00]ConnectInit lk.salyk.kg [14:22:00]written 0, free lines is 4095 [14:22:00]Connected sock=10 [14:22:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 16 77 07 01 F3 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 07 3B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 46 B4 01 00 35 04 06 00 8D 56 DE CC CB 11 BA 6D B0 A6 1E D2 61 AE [14:22:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E1 F4 47 00 83 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 35 30 38 33 10 04 04 00 46 B4 01 00 F4 03 04 00 4F D2 73 66 B6 04 01 00 00 CB 46 22 EF 15 E9 C2 D6 [14:22:01]CommunicateWithHost err = 0 [14:22:01]CheckOFDResponse [14:22:01]1017 (14) - 77093643461234 [14:22:01]1041 (16) - 0000000000875083 [14:22:01]1040 (4) - 111686 [14:22:01]1012 (4) - 20.06.2024 06:55 [14:22:01]1206 (1) - 0 [14:22:01]OFD Sender: Remove packet 111686 [14:22:01]ProducePacketName [14:22:01]name=ofd_packets/00111686 [14:22:01]NVStorageDeleteData [14:22:01]Write to MH i2c: 01 00 00 FE 02 00 [14:22:01]Write i2c OK [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: 01 [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: 01 07 00 [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: 01 07 00 FE 02 00 00 00 00 00 CD 0C E0 [14:22:01]RasterBufferAndPrint [14:22:01]line [14:22:01]line [14:22:01]line [14:22:01]line [14:22:01]line [14:22:01]written 0, free lines is 3283 [14:22:01]MH_Cut [14:22:01]Write to MH i2c: D1 01 00 05 03 01 DA [14:22:01]Write i2c OK [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: D1 [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: D1 01 00 [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: D1 01 00 05 03 00 D9 [14:22:01]Write to MH i2c: 01 00 00 06 03 09 [14:22:01]Write i2c OK [14:22:01]MH_I2C_Read... [14:22:01]OFD Sender: No OFD packet to send [14:22:01]*** Cut start [14:22:01]*** Partial cut [14:22:01]*** CUTSNS_PIN = 1 [14:22:01]*** CUTSNS_PIN = 0 [14:22:02]*** Brake cut motor [14:22:02]Read from MH i2c: 01 [14:22:02]MH_I2C_Read... [14:22:02]*** Stop cut motor [14:22:02]*** Cut end [14:22:02]Read from MH i2c: 01 07 00 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: 01 07 00 06 03 00 00 00 00 00 FF 0F 1E [14:22:02]process_action close_receipt done [14:22:02]requested_data is exist [14:22:02]produce_requested_data [14:22:02]requested_item fm.sn is exist - process it [14:22:02]wFMCommunicate request_size=4 [14:22:02]MH_SAM_APDU [14:22:02]CAPDU: 80 11 00 00 [14:22:02]Write to MH i2c: E2 08 00 07 03 80 11 00 00 00 00 00 00 84 [14:22:02]Write i2c OK [14:22:02]MH_I2C_Read... [14:22:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:02]Read from MH i2c: E2 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: E2 17 00 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: E2 17 00 07 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D6 [14:22:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:22:02]wFMCommunicate OK [14:22:02]requested_item fd.num is exist - process it [14:22:02]SAM_PROTO_GetFieldsCounters [14:22:02]wFMCommunicate request_size=4 [14:22:02]MH_SAM_APDU [14:22:02]CAPDU: 80 13 00 00 [14:22:02]Write to MH i2c: E2 08 00 08 03 80 13 00 00 00 00 00 00 87 [14:22:02]Write i2c OK [14:22:02]MH_I2C_Read... [14:22:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:02]Read from MH i2c: E2 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: E2 62 00 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: E2 62 00 08 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 46 B4 01 00 0E 04 04 00 85 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 C1 [14:22:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 46 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:22:02]wFMCommunicate OK [14:22:02]SAM_PROTO_GetFieldsCounters done [14:22:02]requested_item shift.num is exist - process it [14:22:02]requested_item shift.opened is exist - process it [14:22:02]req_shift_opened [14:22:02]FM_GetShiftState [14:22:02]SAM_PROTO_GetShiftState [14:22:02]wFMCommunicate request_size=4 [14:22:02]MH_SAM_APDU [14:22:02]CAPDU: 80 13 01 00 [14:22:02]Write to MH i2c: E2 08 00 09 03 80 13 01 00 00 00 00 00 89 [14:22:02]Write i2c OK [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: E2 [14:22:02]MH_I2C_Read... [14:22:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:02]Read from MH i2c: E2 0E 00 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: E2 0E 00 09 03 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 04 [14:22:02]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:22:02]wFMCommunicate OK [14:22:02]SAM_PROTO_GetShiftState done [14:22:02]FM_GetShiftState done [14:22:02]req_shift_opened done [14:22:02]requested_item shift.open_date is exist - process it [14:22:02]req_shift_open_date [14:22:02]req_shift_open_date done [14:22:02]produce_requested_data done [14:22:02]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111686,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [14:22:02]process_action_free close_receipt [14:22:02]json_value_free [14:22:02]json_value_free done [14:22:02]process_json_proto returns [14:22:02]Send response to host [14:22:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111686,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [14:22:02]free response buf [14:22:02]execute_script done [14:22:02]execute_script returns [14:22:02]free content buf [14:22:02]Sock 7.Close socket [14:22:02]Sock 7.Thread stoped [14:22:06]OFD Sender: No OFD packet to send [14:22:11]OFD Sender: No OFD packet to send [14:22:16]OFD Sender: No OFD packet to send [14:22:21]OFD Sender: No OFD packet to send [14:22:26]OFD Sender: No OFD packet to send [14:22:31]OFD Sender: No OFD packet to send [14:22:36]OFD Sender: No OFD packet to send [14:22:41]OFD Sender: No OFD packet to send [14:22:46]OFD Sender: No OFD packet to send [14:22:51]OFD Sender: No OFD packet to send [14:22:56]OFD Sender: No OFD packet to send [14:23:01]OFD Sender: No OFD packet to send [14:23:06]OFD Sender: No OFD packet to send [14:23:11]OFD Sender: No OFD packet to send [14:23:16]OFD Sender: No OFD packet to send [14:23:21]OFD Sender: No OFD packet to send [14:23:26]OFD Sender: No OFD packet to send [14:23:31]OFD Sender: No OFD packet to send [14:23:36]OFD Sender: No OFD packet to send [14:23:41]OFD Sender: No OFD packet to send [14:23:46]OFD Sender: No OFD packet to send [14:23:51]OFD Sender: No OFD packet to send [14:23:56]OFD Sender: No OFD packet to send [14:24:01]OFD Sender: No OFD packet to send [14:24:06]OFD Sender: No OFD packet to send [14:24:11]OFD Sender: No OFD packet to send [14:24:16]OFD Sender: No OFD packet to send [14:24:21]OFD Sender: No OFD packet to send [14:24:26]OFD Sender: No OFD packet to send [14:24:31]OFD Sender: No OFD packet to send [14:24:36]OFD Sender: No OFD packet to send [14:24:36]accept exits with 9 [14:24:36]New connection [14:24:36]New thread 3067297124 created [14:24:36]Thread 3067153764 joined [14:24:36]Waiting for new connection... [14:24:36] Sock 9.Parse request [14:24:36]Sock 9.Check first char [14:24:36]Sock 9.First char is OK [14:24:36]request: POST /json_proto HTTP/1.0 [14:24:36]Method: POST [14:24:36]URL: /json_proto [14:24:36]Method is POST - this is cgi request [14:24:36]url: /json_proto [14:24:36]query_string will be loaded in cgi processing [14:24:36]execute_cgi json_proto POST (null) [14:24:36]execute_cgi path=json_proto method=POST [14:24:36]POST find Content-Length [14:24:36]Host: 172.17.59.68:8080 [14:24:36]Content-Length: 805 [14:24:36]Content-Type: application/json [14:24:36] [14:24:36]POST finish read [14:24:36]Found Content-Length = 805 [14:24:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:36]execute_script... [14:24: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)320303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:36]POST & json_proto [14:24:36]process_json_proto [14:24:36]json parsed OK: [14:24:36]protocol is kg_v1.0 [14:24:36]action value=close_receipt [14:24:36]process_action close_receipt [14:24:36]cmd_close_receipt [14:24:36]MH_GetDate [14:24:36]Write to MH i2c: F0 00 00 0A 03 FC [14:24:36]Write i2c OK [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: F0 [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: F0 09 00 [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: F0 09 00 0A 03 00 A5 3B 74 66 BC EC 60 65 2C [14:24:36]GetLastDocTimeStamp 1718893319 [14:24:36]current date 1718893477 [14:24:36]FM_GetShiftState [14:24:36]SAM_PROTO_GetShiftState [14:24:36]wFMCommunicate request_size=4 [14:24:36]MH_SAM_APDU [14:24:36]CAPDU: 80 13 01 00 [14:24:36]Write to MH i2c: E2 08 00 0B 03 80 13 01 00 00 00 00 00 8B [14:24:36]Write i2c OK [14:24:36]MH_I2C_Read... [14:24:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:36]Read from MH i2c: E2 [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: E2 0E 00 [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: E2 0E 00 0B 03 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 06 [14:24:36]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:24:36]wFMCommunicate OK [14:24:36]SAM_PROTO_GetShiftState done [14:24:36]FM_GetShiftState done [14:24:36]opened in 1718847247 [14:24:36]opened+sec_in_day 1718933647 [14:24:36]quantity*price = 30012 [14:24:36]sum+1 = 30014 [14:24:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.13 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 0.00 Безнал.: 300.13 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 137 20.06.2024 14:24 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111687 ФПД: 171533483315705 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T142437&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111687&fm=171533483315705&tin=02508201610067®Number=0000000000092771&sum=30013 [14:24:37]StoreToDocumentArchive [14:24:37]shift 389 fd 111687 [14:24:37]save to /storage/0389/doc_00111687 [14:24:37]save last doc name /storage/0389/doc_00111687 to /storage/kkm_last_doc_name [14:24:37]save OK [14:24:37]Clear old archive folders... [14:24:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:24:37]tlvbuf is 016BA390 [14:24:37]SAM_PROTO_ClearQueue [14:24:37]wFMCommunicate request_size=4 [14:24:37]MH_SAM_APDU [14:24:37]CAPDU: 80 09 00 00 [14:24:37]Write to MH i2c: E2 08 00 18 03 80 09 00 00 00 00 00 00 8D [14:24:37]Write i2c OK [14:24:37]MH_I2C_Read... [14:24:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:38]Read from MH i2c: E2 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 03 00 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 03 00 18 03 00 90 00 8F [14:24:38]RAPDU: 90 00 [14:24:38]wFMCommunicate OK [14:24:38]SAM_PROTO_ClearQueue done [14:24:38]KKMCreateOFDPacket [14:24:38]OFDProtocolAddRootSTLVToBuf [14:24:38]FM_MakeSignedData [14:24:38]FM_MakeSignedData [14:24:38]SAM_PROTO_SignData [14:24:38]wFMCommunicate request_size=4 [14:24:38]MH_SAM_APDU [14:24:38]CAPDU: 80 0D 01 02 [14:24:38]Write to MH i2c: E2 08 00 19 03 80 0D 01 02 00 00 00 00 95 [14:24:38]Write i2c OK [14:24:38]MH_I2C_Read... [14:24:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:38]Read from MH i2c: E2 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 03 00 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 03 00 19 03 00 90 00 90 [14:24:38]RAPDU: 90 00 [14:24:38]wFMCommunicate OK [14:24:38]wFMCommunicate request_size=255 [14:24:38]MH_SAM_APDU [14:24: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 A5 3B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 47 B4 01 00 35 04 06 00 9C [14:24:38]Write to MH i2c: E2 02 01 1A 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 A5 3B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 47 B4 01 00 35 04 06 00 9C 00 00 62 [14:24:38]Write i2c OK [14:24:38]MH_I2C_Read... [14:24:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:38]Read from MH i2c: E2 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 03 00 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 03 00 1A 03 00 90 00 91 [14:24:38]RAPDU: 90 00 [14:24:38]wFMCommunicate OK [14:24:38]wFMCommunicate request_size=10 [14:24:38]MH_SAM_APDU [14:24:38]CAPDU: 80 0D 02 02 05 02 40 57 11 F9 [14:24:38]Write to MH i2c: E2 0D 00 1B 03 80 0D 02 02 05 00 02 40 57 11 F9 00 00 45 [14:24:38]Write i2c OK [14:24:38]MH_I2C_Read... [14:24:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:38]Read from MH i2c: E2 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 03 00 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 03 00 1B 03 00 90 00 92 [14:24:38]RAPDU: 90 00 [14:24:38]wFMCommunicate OK [14:24:38]wFMCommunicate request_size=4 [14:24:38]MH_SAM_APDU [14:24:38]CAPDU: 80 0D 03 02 [14:24:38]Write to MH i2c: E2 08 00 1C 03 80 0D 03 02 00 00 00 00 9A [14:24:38]Write i2c OK [14:24:38]MH_I2C_Read... [14:24:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:38]Read from MH i2c: E2 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 0B 00 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 0B 00 1C 03 00 1E 98 50 A0 74 13 D4 31 90 00 CD [14:24:38]RAPDU: 1E 98 50 A0 74 13 D4 31 90 00 [14:24:38]wFMCommunicate OK [14:24:38]SAM_PROTO_SignData done [14:24:38]FM_MakeSignedData done [14:24:38]CreateOFDProtocolMessage [14:24:38]wFMCommunicate request_size=4 [14:24:38]MH_SAM_APDU [14:24:38]CAPDU: 80 11 00 00 [14:24:38]Write to MH i2c: E2 08 00 1D 03 80 11 00 00 00 00 00 00 9A [14:24:38]Write i2c OK [14:24:38]MH_I2C_Read... [14:24:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:38]Read from MH i2c: E2 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 17 00 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 17 00 1D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EC [14:24:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:24:38]wFMCommunicate OK [14:24:38]CreateOFDProtocolMessage done [14:24:38]OFDSenderStorePacket 111687 [14:24:38]StoreOFDPacket docnum=111687 [14:24:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 39 98 07 01 51 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 A5 3B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 47 B4 01 00 35 04 06 00 9C 02 40 57 11 F9 1E 98 50 A0 74 13 D4 31 [14:24:38]CheckFolder [14:24:38]dirname=/storage/ofd_packets [14:24:38]CheckFolder done [14:24:38]ProducePacketName [14:24:38]name=ofd_packets/00111687 [14:24:38]NVStorageSaveData ofd_packets/00111687 [14:24:38]File name is /storage/ofd_packets/00111687 [14:24:38]Write 301 bytes [14:24:38]NVStorageSaveData done [14:24:38]OFDSenderStorePacket done [14:24:38]KKMCreateOFDPacket done [14:24:38]NVStorageSaveData kkm_last_timestamp [14:24:38]File name is /storage/kkm_last_timestamp [14:24:38]Write 4 bytes [14:24:38]NVStorageSaveData done [14:24:38]ExternCall_PrintAddStr [14:24:38]wPrintStart [14:24:38]Write to MH i2c: 01 00 00 1E 03 21 [14:24:38]OFD Sender: Processing packet 111687 [packets to send 38, broken 37] [14:24:38]ProducePacketName [14:24:38]name=ofd_packets/00111687 [14:24:38]OFD Sender: To server: pG, [14:24:38]CommunicateWithHost lk.salyk.kg:30040 [14:24:38]ConnectInit lk.salyk.kg [14:24:38]Write i2c OK [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: 01 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: 01 07 00 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: 01 07 00 1E 03 00 00 00 00 00 FF 0F 36 [14:24:38]RasterBufferAndPrint [14:24:38]line Счет N : (1)320303 [14:24:38]line ИНН: 02508201610067 [14:24:38]line Контрольно-Кассовый Чек [14:24:38]line ПРОДАЖА [14:24:38]line ТРК (МРК, ГНК) : 11 [14:24:38]line Товар: 2710124130 [14:24:38]line Аи-92-К-5 [14:24:38]line 4.520 * 66.40 [14:24:38]line = 300.13 [14:24:38]line НДС 12% НСП 1% [14:24:38]line > о реализуемом товаре [14:24:38]line ИТОГО: 300.13 [14:24:38]line НСП 1% : 2.66 [14:24:38]line НДС 12% : 31.87 [14:24:38]line Наличными: 0.00 [14:24:38]line Безнал.: 300.13 [14:24:38]line Место: АЗС № 65 "Партнер Нефть" [14:24:38]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:24:38]line СНО: Общий режим [14:24:38]line Чек 137 20.06.2024 14:24 [14:24:38]line Смена: 389 ФФД: 1.0 [14:24:38]line ЗНМ: 0300000198 [14:24:38]line РНМ: 0000000000092771 [14:24:38]line Версия ККМ: 001 [14:24:38]line Платежная система: О! деньги [14:24:38]line ФМ: 0000000000875083 [14:24:38]line ФД: 111687 [14:24:38]line ФПД: 171533483315705 [14:24:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T142437&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111687&fm=171533483315705&tin=02508201610067®Number=0000000000092771&sum=30013 [14:24:38]written 0, free lines is 4095 [14:24:38]Connected sock=10 [14:24:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 39 98 07 01 51 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 A5 3B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 47 B4 01 00 35 04 06 00 9C 02 40 57 11 F9 1E 98 50 A0 74 13 D4 31 [14:24:38]Write to MH i2c: 01 00 00 48 03 4B [14:24:38]Write i2c OK [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: 01 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: 01 07 00 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: 01 07 00 48 03 00 00 00 00 00 EC 0C 4A [14:24:39]RasterBufferAndPrint [14:24:39]line [14:24:39]line [14:24:39]line [14:24:39]line [14:24:39]line [14:24:39]written 0, free lines is 3317 [14:24:39]MH_Cut [14:24:39]Write to MH i2c: D1 01 00 4F 03 01 24 [14:24:39]Write i2c OK [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: D1 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: D1 01 00 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: D1 01 00 4F 03 00 23 [14:24:39]Write to MH i2c: 01 00 00 50 03 53 [14:24:39]Write i2c OK [14:24:39]MH_I2C_Read... [14:24:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C9 F1 47 00 28 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 47 B4 01 00 F4 03 04 00 ED D2 73 66 B6 04 01 00 00 8C F4 AD 77 F4 7E E2 AA [14:24:39]CommunicateWithHost err = 0 [14:24:39]CheckOFDResponse [14:24:39]1017 (14) - 77093643461234 [14:24:39]1041 (16) - 0000000000875083 [14:24:39]1040 (4) - 111687 [14:24:39]1012 (4) - 20.06.2024 06:57 [14:24:39]1206 (1) - 0 [14:24:39]OFD Sender: Remove packet 111687 [14:24:39]ProducePacketName [14:24:39]name=ofd_packets/00111687 [14:24:39]NVStorageDeleteData [14:24:39]OFD Sender: No OFD packet to send [14:24:39]*** Cut start [14:24:39]*** Partial cut [14:24:39]*** CUTSNS_PIN = 1 [14:24:39]*** CUTSNS_PIN = 0 [14:24:39]*** Brake cut motor [14:24:40]Read from MH i2c: 01 [14:24:40]MH_I2C_Read... [14:24:40]*** Stop cut motor [14:24:40]*** Cut end [14:24:40]Read from MH i2c: 01 07 00 [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: 01 07 00 50 03 00 00 00 00 00 FF 0F 68 [14:24:40]process_action close_receipt done [14:24:40]requested_data is exist [14:24:40]produce_requested_data [14:24:40]requested_item fm.sn is exist - process it [14:24:40]wFMCommunicate request_size=4 [14:24:40]MH_SAM_APDU [14:24:40]CAPDU: 80 11 00 00 [14:24:40]Write to MH i2c: E2 08 00 51 03 80 11 00 00 00 00 00 00 CE [14:24:40]Write i2c OK [14:24:40]MH_I2C_Read... [14:24:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:40]Read from MH i2c: E2 [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: E2 17 00 [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: E2 17 00 51 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 20 [14:24:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:24:40]wFMCommunicate OK [14:24:40]requested_item fd.num is exist - process it [14:24:40]SAM_PROTO_GetFieldsCounters [14:24:40]wFMCommunicate request_size=4 [14:24:40]MH_SAM_APDU [14:24:40]CAPDU: 80 13 00 00 [14:24:40]Write to MH i2c: E2 08 00 52 03 80 13 00 00 00 00 00 00 D1 [14:24:40]Write i2c OK [14:24:40]MH_I2C_Read... [14:24:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:40]Read from MH i2c: E2 [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: E2 62 00 [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: E2 62 00 52 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 47 B4 01 00 0E 04 04 00 85 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 0F [14:24:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 47 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:24:40]wFMCommunicate OK [14:24:40]SAM_PROTO_GetFieldsCounters done [14:24:40]requested_item shift.num is exist - process it [14:24:40]requested_item shift.opened is exist - process it [14:24:40]req_shift_opened [14:24:40]FM_GetShiftState [14:24:40]SAM_PROTO_GetShiftState [14:24:40]wFMCommunicate request_size=4 [14:24:40]MH_SAM_APDU [14:24:40]CAPDU: 80 13 01 00 [14:24:40]Write to MH i2c: E2 08 00 53 03 80 13 01 00 00 00 00 00 D3 [14:24:40]Write i2c OK [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: E2 [14:24:40]MH_I2C_Read... [14:24:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:40]Read from MH i2c: E2 0E 00 [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: E2 0E 00 53 03 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 4E [14:24:40]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:24:40]wFMCommunicate OK [14:24:40]SAM_PROTO_GetShiftState done [14:24:40]FM_GetShiftState done [14:24:40]req_shift_opened done [14:24:40]requested_item shift.open_date is exist - process it [14:24:40]req_shift_open_date [14:24:40]req_shift_open_date done [14:24:40]produce_requested_data done [14:24:40]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111687,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [14:24:40]process_action_free close_receipt [14:24:40]json_value_free [14:24:40]json_value_free done [14:24:40]process_json_proto returns [14:24:40]Send response to host [14:24:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111687,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [14:24:40]free response buf [14:24:40]execute_script done [14:24:40]execute_script returns [14:24:40]free content buf [14:24:40]Sock 9.Close socket [14:24:40]Sock 9.Thread stoped [14:24:44]OFD Sender: No OFD packet to send [14:24:49]OFD Sender: No OFD packet to send [14:24:54]OFD Sender: No OFD packet to send [14:24:59]OFD Sender: No OFD packet to send [14:25:04]OFD Sender: No OFD packet to send [14:25:09]OFD Sender: No OFD packet to send [14:25:14]OFD Sender: No OFD packet to send [14:25:19]OFD Sender: No OFD packet to send [14:25:24]OFD Sender: No OFD packet to send [14:25:29]OFD Sender: No OFD packet to send [14:25:34]OFD Sender: No OFD packet to send [14:25:39]OFD Sender: No OFD packet to send [14:25:44]OFD Sender: No OFD packet to send [14:25:49]OFD Sender: No OFD packet to send [14:25:54]OFD Sender: No OFD packet to send [14:25:59]OFD Sender: No OFD packet to send [14:26:04]OFD Sender: No OFD packet to send [14:26:09]OFD Sender: No OFD packet to send [14:26:14]OFD Sender: No OFD packet to send [14:26:19]OFD Sender: No OFD packet to send [14:26:24]OFD Sender: No OFD packet to send [14:26:29]OFD Sender: No OFD packet to send [14:26:34]OFD Sender: No OFD packet to send [14:26:39]OFD Sender: No OFD packet to send [14:26:44]OFD Sender: No OFD packet to send [14:26:45]accept exits with 7 [14:26:45]New connection [14:26:45]New thread 3067153764 created [14:26:45]Thread 3067297124 joined [14:26:45]Waiting for new connection... [14:26:45] Sock 7.Parse request [14:26:45]Sock 7.Check first char [14:26:45]Sock 7.First char is OK [14:26:45]request: POST /json_proto HTTP/1.0 [14:26:45]Method: POST [14:26:45]URL: /json_proto [14:26:45]Method is POST - this is cgi request [14:26:45]url: /json_proto [14:26:45]query_string will be loaded in cgi processing [14:26:45]execute_cgi json_proto POST (null) [14:26:45]execute_cgi path=json_proto method=POST [14:26:45]POST find Content-Length [14:26:45]Host: 172.17.59.68:8080 [14:26:45]Content-Length: 682 [14:26:45]Content-Type: application/json [14:26:45] [14:26:45]POST finish read [14:26:45]Found Content-Length = 682 [14:26:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 16.570, "sum" : 1100.25, "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" ] } } [14:26:45]execute_script... [14:26: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)320304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 16.570, "sum" : 1100.25, "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" ] } } [14:26:45]POST & json_proto [14:26:45]process_json_proto [14:26:45]json parsed OK: [14:26:45]protocol is kg_v1.0 [14:26:45]action value=close_receipt [14:26:45]process_action close_receipt [14:26:45]cmd_close_receipt [14:26:45]MH_GetDate [14:26:45]Write to MH i2c: F0 00 00 54 03 46 [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: F0 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: F0 09 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: F0 09 00 54 03 00 25 3C 74 66 BC EC 60 65 F7 [14:26:45]GetLastDocTimeStamp 1718893477 [14:26:45]current date 1718893605 [14:26:45]FM_GetShiftState [14:26:45]SAM_PROTO_GetShiftState [14:26:45]wFMCommunicate request_size=4 [14:26:45]MH_SAM_APDU [14:26:45]CAPDU: 80 13 01 00 [14:26:45]Write to MH i2c: E2 08 00 55 03 80 13 01 00 00 00 00 00 D5 [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:45]Read from MH i2c: E2 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 0E 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 0E 00 55 03 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 50 [14:26:45]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:26:45]wFMCommunicate OK [14:26:45]SAM_PROTO_GetShiftState done [14:26:45]FM_GetShiftState done [14:26:45]opened in 1718847247 [14:26:45]opened+sec_in_day 1718933647 [14:26:45]quantity*price = 110024 [14:26:45]sum+1 = 110026 [14:26:45]Check (price>sum+1) || (price+1 о реализуемом товаре [14:28:34]line ОКРУГЛЕНИЕ: -0.25 [14:28:34]line ИТОГО: 1100.00 [14:28:34]line Внесено: 1100.00 [14:28:34]line СДАЧА: 0.00 [14:28:34]line НСП 1% : 9.74 [14:28:34]line НДС 12% : 116.84 [14:28:34]line Наличными: 1100.00 [14:28:34]line Безнал.: 0.00 [14:28:34]line Место: АЗС № 65 "Партнер Нефть" [14:28:34]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:28:34]line СНО: Общий режим [14:28:34]line Чек 138 20.06.2024 14:26 [14:28:34]line Смена: 389 ФФД: 1.0 [14:28:34]line ЗНМ: 0300000198 [14:28:34]line РНМ: 0000000000092771 [14:28:34]line Версия ККМ: 001 [14:28:34]line ФМ: 0000000000875083 [14:28:34]line ФД: 111688 [14:28:34]line ФПД: 67783972814513 [14:28:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T142646&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111688&fm=67783972814513&tin=02508201610067®Number=0000000000092771&sum=110000 [14:28:34]written 0, free lines is 4095 [14:28:35]Write to MH i2c: 01 00 00 48 00 48 [14:28:35]Write i2c OK [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: 01 [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: 01 07 00 [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 E7 0C 42 [14:28:35]RasterBufferAndPrint [14:28:35]line [14:28:35]line [14:28:35]line [14:28:35]line [14:28:35]line [14:28:35]written 0, free lines is 3321 [14:28:35]MH_Cut [14:28:35]Write to MH i2c: D1 01 00 4F 00 01 21 [14:28:35]Write i2c OK [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: D1 [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: D1 01 00 [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: D1 01 00 4F 00 00 20 [14:28:35]Write to MH i2c: 01 00 00 50 00 50 [14:28:35]Write i2c OK [14:28:35]MH_I2C_Read... [14:28:35]*** Cut start [14:28:35]*** Partial cut [14:28:35]*** CUTSNS_PIN = 1 [14:28:35]*** CUTSNS_PIN = 0 [14:28:36]*** Brake cut motor [14:28:36]Read from MH i2c: 01 *** Stop cut motor [14:28:36] [14:28:36]*** Cut end [14:28:36]MH_I2C_Read... [14:28:36]Read from MH i2c: 01 07 00 [14:28:36]MH_I2C_Read... [14:28:36]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [14:28:36]process_action print_doc done [14:28:36]requested_data is exist [14:28:36]produce_requested_data [14:28:36]produce_requested_data return (null) [14:28:36]process_action_free print_doc [14:28:36]json_value_free [14:28:36]json_value_free done [14:28:36]process_json_proto returns [14:28:36]Send response to host [14:28:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [14:28:36]free response buf [14:28:36]execute_script done [14:28:36]execute_script returns [14:28:36]free content buf [14:28:36]Sock 9.Close socket [14:28:36]Sock 9.Thread stoped [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:57]OFD Sender: No OFD packet to send [14:29:02]OFD Sender: No OFD packet to send [14:29:07]OFD Sender: No OFD packet to send [14:29:12]OFD Sender: No OFD packet to send [14:29:17]OFD Sender: No OFD packet to send [14:29:22]OFD Sender: No OFD packet to send [14:29:27]OFD Sender: No OFD packet to send [14:29:30]accept exits with 7 [14:29:30]New connection [14:29:30]New thread 3067178340 created [14:29:30]Thread 3067321700 joined [14:29:30]Waiting for new connection... [14:29:30] Sock 7.Parse request [14:29:30]Sock 7.Check first char [14:29:30]Sock 7.First char is OK [14:29:30]request: POST /json_proto HTTP/1.0 [14:29:30]Method: POST [14:29:30]URL: /json_proto [14:29:30]Method is POST - this is cgi request [14:29:30]url: /json_proto [14:29:30]query_string will be loaded in cgi processing [14:29:30]execute_cgi json_proto POST (null) [14:29:30]execute_cgi path=json_proto method=POST [14:29:30]POST find Content-Length [14:29:30]Host: 172.17.59.68:8080 [14:29:30]Content-Length: 677 [14:29:30]Content-Type: application/json [14:29:30] [14:29:30]POST finish read [14:29:30]Found Content-Length = 677 [14:29:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:30]execute_script... [14:29:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:30]POST & json_proto [14:29:30]process_json_proto [14:29:30]json parsed OK: [14:29:30]protocol is kg_v1.0 [14:29:30]action value=close_receipt [14:29:30]process_action close_receipt [14:29:30]cmd_close_receipt [14:29:30]MH_GetDate [14:29:30]Write to MH i2c: F0 00 00 51 00 40 [14:29:30]Write i2c OK [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: F0 [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: F0 09 00 [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: F0 09 00 51 00 00 CB 3C 74 66 BC EC 60 65 97 [14:29:30]GetLastDocTimeStamp 1718893606 [14:29:30]current date 1718893771 [14:29:30]FM_GetShiftState [14:29:30]SAM_PROTO_GetShiftState [14:29:30]wFMCommunicate request_size=4 [14:29:30]MH_SAM_APDU [14:29:30]CAPDU: 80 13 01 00 [14:29:30]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [14:29:30]Write i2c OK [14:29:30]MH_I2C_Read... [14:29:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:30]Read from MH i2c: E2 [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: E2 0E 00 [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 4A [14:29:30]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:29:30]wFMCommunicate OK [14:29:30]SAM_PROTO_GetShiftState done [14:29:30]FM_GetShiftState done [14:29:30]opened in 1718847247 [14:29:30]opened+sec_in_day 1718933647 [14:29:30]quantity*price = 50065 [14:29:30]sum+1 = 50067 [14:29:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 139 20.06.2024 14:29 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111689 ФПД: 234419362953051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T142931&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111689&fm=234419362953051&tin=02508201610067®Number=0000000000092771&sum=50000 [14:29:31]StoreToDocumentArchive [14:29:31]shift 389 fd 111689 [14:29:31]save to /storage/0389/doc_00111689 [14:29:31]save last doc name /storage/0389/doc_00111689 to /storage/kkm_last_doc_name [14:29:31]save OK [14:29:31]Clear old archive folders... [14:29:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:29:31]tlvbuf is 01746AF0 [14:29:31]SAM_PROTO_ClearQueue [14:29:31]wFMCommunicate request_size=4 [14:29:31]MH_SAM_APDU [14:29:31]CAPDU: 80 09 00 00 [14:29:31]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [14:29:31]Write i2c OK [14:29:31]MH_I2C_Read... [14:29:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:29:31]Read from MH i2c: E2 [14:29:31]MH_I2C_Read... [14:29:31]Read from MH i2c: E2 03 00 [14:29:31]MH_I2C_Read... [14:29:31]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [14:29:31]RAPDU: 90 00 [14:29:31]wFMCommunicate OK [14:29:31]SAM_PROTO_ClearQueue done [14:29:31]KKMCreateOFDPacket [14:29:31]OFDProtocolAddRootSTLVToBuf [14:29:31]FM_MakeSignedData [14:29:31]FM_MakeSignedData [14:29:31]SAM_PROTO_SignData [14:29:31]wFMCommunicate request_size=4 [14:29:31]MH_SAM_APDU [14:29:31]CAPDU: 80 0D 01 02 [14:29:31]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [14:29:31]Write i2c OK [14:29:31]MH_I2C_Read... [14:29:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:29:31]Read from MH i2c: E2 [14:29:31]MH_I2C_Read... [14:29:31]Read from MH i2c: E2 03 00 [14:29:31]MH_I2C_Read... [14:29:31]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [14:29:31]RAPDU: 90 00 [14:29:31]wFMCommunicate OK [14:29:31]wFMCommunicate request_size=255 [14:29:31]MH_SAM_APDU [14:29: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 CB 3C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 49 B4 01 00 35 04 06 00 D5 [14:29:31]Write to MH i2c: E2 02 01 61 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 CB 3C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 49 B4 01 00 35 04 06 00 D5 00 00 52 [14:29:31]Write i2c OK [14:29:31]MH_I2C_Read... [14:29:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:31]Read from MH i2c: E2 [14:29:31]MH_I2C_Read... [14:29:31]Read from MH i2c: E2 03 00 [14:29:31]MH_I2C_Read... [14:29:31]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [14:29:31]RAPDU: 90 00 [14:29:31]wFMCommunicate OK [14:29:31]wFMCommunicate request_size=10 [14:29:31]MH_SAM_APDU [14:29:31]CAPDU: 80 0D 02 02 05 34 02 DB 77 5B [14:29:31]Write to MH i2c: E2 0D 00 62 00 80 0D 02 02 05 00 34 02 DB 77 5B 00 00 C9 [14:29:31]Write i2c OK [14:29:31]MH_I2C_Read... [14:29:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:31]Read from MH i2c: E2 [14:29:31]MH_I2C_Read... [14:29:31]Read from MH i2c: E2 03 00 [14:29:31]MH_I2C_Read... [14:29:31]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [14:29:31]RAPDU: 90 00 [14:29:31]wFMCommunicate OK [14:29:31]wFMCommunicate request_size=4 [14:29:31]MH_SAM_APDU [14:29:31]CAPDU: 80 0D 03 02 [14:29:31]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [14:29:31]Write i2c OK [14:29:31]MH_I2C_Read... [14:29:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:29:31]Read from MH i2c: E2 [14:29:31]MH_I2C_Read... [14:29:31]Read from MH i2c: E2 0B 00 [14:29:31]MH_I2C_Read... [14:29:31]Read from MH i2c: E2 0B 00 63 00 00 90 BB 9C C9 D1 D8 6F 09 90 00 B0 [14:29:31]RAPDU: 90 BB 9C C9 D1 D8 6F 09 90 00 [14:29:31]wFMCommunicate OK [14:29:31]SAM_PROTO_SignData done [14:29:31]FM_MakeSignedData done [14:29:31]CreateOFDProtocolMessage [14:29:31]wFMCommunicate request_size=4 [14:29:31]MH_SAM_APDU [14:29:31]CAPDU: 80 11 00 00 [14:29:31]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [14:29:31]Write i2c OK [14:29:31]MH_I2C_Read... [14:29:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:31]Read from MH i2c: E2 [14:29:31]MH_I2C_Read... [14:29:31]Read from MH i2c: E2 17 00 [14:29:31]MH_I2C_Read... [14:29:31]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 35 30 38 33 90 00 30 [14:29:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:29:31]wFMCommunicate OK [14:29:31]CreateOFDProtocolMessage done [14:29:31]OFDSenderStorePacket 111689 [14:29:31]StoreOFDPacket docnum=111689 [14:29:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D2 43 07 01 4F 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 CB 3C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 49 B4 01 00 35 04 06 00 D5 34 02 DB 77 5B 90 BB 9C C9 D1 D8 6F 09 [14:29:31]CheckFolder [14:29:31]dirname=/storage/ofd_packets [14:29:31]CheckFolder done [14:29:31]ProducePacketName [14:29:31]name=ofd_packets/00111689 [14:29:31]NVStorageSaveData ofd_packets/00111689 [14:29:31]File name is /storage/ofd_packets/00111689 [14:29:31]Write 301 bytes [14:29:31]NVStorageSaveData done [14:29:31]OFDSenderStorePacket done [14:29:31]KKMCreateOFDPacket done [14:29:31]NVStorageSaveData kkm_last_timestamp [14:29:31]File name is /storage/kkm_last_timestamp [14:29:31]Write 4 bytes [14:29:31]NVStorageSaveData done [14:29:31]ExternCall_PrintAddStr [14:29:31]wPrintStart [14:29:31]Write to MH i2c: 01 00 00 65 00 65 [14:29:31]Write i2c OK [14:29:31]MH_I2C_Read... [14:29:31]Read from MH i2c: 01 [14:29:31]MH_I2C_Read... [14:29:31]Read from MH i2c: 01 07 00 [14:29:31]MH_I2C_Read... [14:29:31]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [14:29:31]RasterBufferAndPrint [14:29:31]line Счет N : (1)320307 [14:29:31]line ИНН: 02508201610067 [14:29:31]line Контрольно-Кассовый Чек [14:29:31]line ПРОДАЖА [14:29:31]line ТРК (МРК, ГНК) : 11 [14:29:31]line Товар: 2710124130 [14:29:31]line Аи-92-К-5 [14:29:31]line 7.540 * 66.40 [14:29:31]line = 500.66 [14:29:31]line НДС 12% НСП 1% [14:29:31]line > о реализуемом товаре [14:29:31]line ОКРУГЛЕНИЕ: -0.66 [14:29:31]line ИТОГО: 500.00 [14:29:31]line Внесено: 500.00 [14:29:31]line СДАЧА: 0.00 [14:29:31]line НСП 1% : 4.43 [14:29:31]line НДС 12% : 53.17 [14:29:31]line Наличными: 500.00 [14:29:31]line Безнал.: 0.00 [14:29:31]line Место: АЗС № 65 "Партнер Нефть" [14:29:31]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:29:31]line СНО: Общий режим [14:29:31]line Чек 139 20.06.2024 14:29 [14:29:31]line Смена: 389 ФФД: 1.0 [14:29:31]line ЗНМ: 0300000198 [14:29:31]line РНМ: 0000000000092771 [14:29:31]line Версия ККМ: 001 [14:29:31]line ФМ: 0000000000875083 [14:29:31]line ФД: 111689 [14:29:31]line ФПД: 234419362953051 [14:29:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T142931&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111689&fm=234419362953051&tin=02508201610067®Number=0000000000092771&sum=50000 [14:29:32]OFD Sender: Processing packet 111689 [packets to send 38, broken 37] [14:29:32]ProducePacketName [14:29:32]name=ofd_packets/00111689 [14:29:32]OFD Sender: To server: pG, [14:29:32]CommunicateWithHost lk.salyk.kg:30040 [14:29:32]ConnectInit lk.salyk.kg [14:29:32]written 0, free lines is 4095 [14:29:32]Connected sock=10 [14:29:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D2 43 07 01 4F 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 CB 3C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 49 B4 01 00 35 04 06 00 D5 34 02 DB 77 5B 90 BB 9C C9 D1 D8 6F 09 [14:29:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 0F E3 47 00 BB 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 49 B4 01 00 F4 03 04 00 13 D4 73 66 B6 04 01 00 00 46 E7 99 73 EB EA 0B 63 [14:29:32]CommunicateWithHost err = 0 [14:29:32]CheckOFDResponse [14:29:32]1017 (14) - 77093643461234 [14:29:32]1041 (16) - 0000000000875083 [14:29:32]1040 (4) - 111689 [14:29:32]1012 (4) - 20.06.2024 07:02 [14:29:32]1206 (1) - 0 [14:29:32]OFD Sender: Remove packet 111689 [14:29:32]ProducePacketName [14:29:32]name=ofd_packets/00111689 [14:29:32]NVStorageDeleteData [14:29:32]Write to MH i2c: 01 00 00 90 00 90 [14:29:32]Write i2c OK [14:29:32]MH_I2C_Read... [14:29:32]Read from MH i2c: 01 [14:29:32]MH_I2C_Read... [14:29:32]Read from MH i2c: 01 07 00 [14:29:32]MH_I2C_Read... [14:29:32]Read from MH i2c: 01 07 00 90 00 00 00 00 00 00 E6 0C 89 [14:29:32]RasterBufferAndPrint [14:29:32]line [14:29:32]line [14:29:32]line [14:29:32]line [14:29:32]line [14:29:32]written 0, free lines is 3308 [14:29:32]MH_Cut [14:29:32]Write to MH i2c: D1 01 00 97 00 01 69 [14:29:32]Write i2c OK [14:29:32]MH_I2C_Read... [14:29:32]Read from MH i2c: D1 [14:29:32]MH_I2C_Read... [14:29:32]Read from MH i2c: D1 01 00 [14:29:32]MH_I2C_Read... [14:29:32]Read from MH i2c: D1 01 00 97 00 00 68 [14:29:32]Write to MH i2c: 01 00 00 98 00 98 [14:29:32]Write i2c OK [14:29:32]MH_I2C_Read... [14:29:32]OFD Sender: No OFD packet to send [14:29:33]*** Cut start [14:29:33]*** Partial cut [14:29:33]*** CUTSNS_PIN = 1 [14:29:33]*** CUTSNS_PIN = 0 [14:29:33]*** Brake cut motor [14:29:33]Read from MH i2c: 01 [14:29:33]MH_I2C_Read... [14:29:33]*** Stop cut motor [14:29:33]*** Cut end [14:29:33]Read from MH i2c: 01 07 00 [14:29:33]MH_I2C_Read... [14:29:33]Read from MH i2c: 01 07 00 98 00 00 00 00 00 00 FF 0F AD [14:29:33]process_action close_receipt done [14:29:33]requested_data is exist [14:29:33]produce_requested_data [14:29:33]requested_item fm.sn is exist - process it [14:29:33]wFMCommunicate request_size=4 [14:29:33]MH_SAM_APDU [14:29:33]CAPDU: 80 11 00 00 [14:29:33]Write to MH i2c: E2 08 00 99 00 80 11 00 00 00 00 00 00 13 [14:29:33]Write i2c OK [14:29:33]MH_I2C_Read... [14:29:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:33]Read from MH i2c: E2 [14:29:33]MH_I2C_Read... [14:29:33]Read from MH i2c: E2 17 00 [14:29:33]MH_I2C_Read... [14:29:33]Read from MH i2c: E2 17 00 99 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 65 [14:29:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:29:33]wFMCommunicate OK [14:29:33]requested_item fd.num is exist - process it [14:29:33]SAM_PROTO_GetFieldsCounters [14:29:33]wFMCommunicate request_size=4 [14:29:33]MH_SAM_APDU [14:29:33]CAPDU: 80 13 00 00 [14:29:33]Write to MH i2c: E2 08 00 9A 00 80 13 00 00 00 00 00 00 16 [14:29:33]Write i2c OK [14:29:33]MH_I2C_Read... [14:29:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:29:34]Read from MH i2c: E2 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 62 00 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 62 00 9A 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 49 B4 01 00 0E 04 04 00 85 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 5C [14:29:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 49 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:29:34]wFMCommunicate OK [14:29:34]SAM_PROTO_GetFieldsCounters done [14:29:34]requested_item shift.num is exist - process it [14:29:34]requested_item shift.opened is exist - process it [14:29:34]req_shift_opened [14:29:34]FM_GetShiftState [14:29:34]SAM_PROTO_GetShiftState [14:29:34]wFMCommunicate request_size=4 [14:29:34]MH_SAM_APDU [14:29:34]CAPDU: 80 13 01 00 [14:29:34]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [14:29:34]Write i2c OK [14:29:34]MH_I2C_Read... [14:29:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:34]Read from MH i2c: E2 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 0E 00 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 93 [14:29:34]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:29:34]wFMCommunicate OK [14:29:34]SAM_PROTO_GetShiftState done [14:29:34]FM_GetShiftState done [14:29:34]req_shift_opened done [14:29:34]requested_item shift.open_date is exist - process it [14:29:34]req_shift_open_date [14:29:34]req_shift_open_date done [14:29:34]produce_requested_data done [14:29:34]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111689,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [14:29:34]process_action_free close_receipt [14:29:34]json_value_free [14:29:34]json_value_free done [14:29:34]process_json_proto returns [14:29:34]Send response to host [14:29:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111689,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [14:29:34]free response buf [14:29:34]execute_script done [14:29:34]execute_script returns [14:29:34]free content buf [14:29:34]Sock 7.Close socket [14:29:34]Sock 7.Thread stoped [14:29:37]OFD Sender: No OFD packet to send [14:29:42]OFD Sender: No OFD packet to send [14:29:47]OFD Sender: No OFD packet to send [14:29:52]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:21]accept exits with 9 [14:30:21]New connection [14:30:21]New thread 3067321700 created [14:30:21]Thread 3067178340 joined [14:30:21]Waiting for new connection... [14:30:21] Sock 9.Parse request [14:30:21]Sock 9.Check first char [14:30:21]Sock 9.First char is OK [14:30:21]request: POST /json_proto HTTP/1.0 [14:30:21]Method: POST [14:30:21]URL: /json_proto [14:30:21]Method is POST - this is cgi request [14:30:21]url: /json_proto [14:30:21]query_string will be loaded in cgi processing [14:30:21]execute_cgi json_proto POST (null) [14:30:21]execute_cgi path=json_proto method=POST [14:30:21]POST find Content-Length [14:30:21]Host: 172.17.59.68:8080 [14:30:21]Content-Length: 806 [14:30:21]Content-Type: application/json [14:30:21] [14:30:21]POST finish read [14:30:21]Found Content-Length = 806 [14:30:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:21]execute_script... [14:30:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:21]POST & json_proto [14:30:21]process_json_proto [14:30:21]json parsed OK: [14:30:21]protocol is kg_v1.0 [14:30:21]action value=close_receipt [14:30:21]process_action close_receipt [14:30:21]cmd_close_receipt [14:30:21]MH_GetDate [14:30:21]Write to MH i2c: F0 00 00 9C 00 8B [14:30:21]Write i2c OK [14:30:21]MH_I2C_Read... [14:30:21]Read from MH i2c: F0 [14:30:21]MH_I2C_Read... [14:30:21]Read from MH i2c: F0 09 00 [14:30:21]MH_I2C_Read... [14:30:21]Read from MH i2c: F0 09 00 9C 00 00 FE 3C 74 66 BC EC 60 65 15 [14:30:21]GetLastDocTimeStamp 1718893771 [14:30:21]current date 1718893822 [14:30:21]FM_GetShiftState [14:30:21]SAM_PROTO_GetShiftState [14:30:21]wFMCommunicate request_size=4 [14:30:21]MH_SAM_APDU [14:30:21]CAPDU: 80 13 01 00 [14:30:21]Write to MH i2c: E2 08 00 9D 00 80 13 01 00 00 00 00 00 1A [14:30:21]Write i2c OK [14:30:21]MH_I2C_Read... [14:30:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:21]Read from MH i2c: E2 [14:30:21]MH_I2C_Read... [14:30:21]Read from MH i2c: E2 0E 00 [14:30:21]MH_I2C_Read... [14:30:21]Read from MH i2c: E2 0E 00 9D 00 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 95 [14:30:21]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:30:21]wFMCommunicate OK [14:30:21]SAM_PROTO_GetShiftState done [14:30:21]FM_GetShiftState done [14:30:21]opened in 1718847247 [14:30:21]opened+sec_in_day 1718933647 [14:30:21]quantity*price = 70052 [14:30:21]sum+1 = 70053 [14:30:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.52 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 0.00 Безнал.: 700.52 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 140 20.06.2024 14:30 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111690 ФПД: 76598200105624 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T143022&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111690&fm=76598200105624&tin=02508201610067®Number=0000000000092771&sum=70052 [14:30:22]StoreToDocumentArchive [14:30:22]shift 389 fd 111690 [14:30:22]save to /storage/0389/doc_00111690 [14:30:22]save last doc name /storage/0389/doc_00111690 to /storage/kkm_last_doc_name [14:30:22]save OK [14:30:22]Clear old archive folders... [14:30:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:30:22]tlvbuf is 0174A470 [14:30:22]SAM_PROTO_ClearQueue [14:30:22]wFMCommunicate request_size=4 [14:30:22]MH_SAM_APDU [14:30:22]CAPDU: 80 09 00 00 [14:30:22]Write to MH i2c: E2 08 00 AA 00 80 09 00 00 00 00 00 00 1C [14:30:22]Write i2c OK [14:30:22]MH_I2C_Read... [14:30:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:22]Read from MH i2c: E2 [14:30:22]MH_I2C_Read... [14:30:22]Read from MH i2c: E2 03 00 [14:30:22]MH_I2C_Read... [14:30:22]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [14:30:22]RAPDU: 90 00 [14:30:22]wFMCommunicate OK [14:30:22]SAM_PROTO_ClearQueue done [14:30:22]KKMCreateOFDPacket [14:30:22]OFDProtocolAddRootSTLVToBuf [14:30:22]FM_MakeSignedData [14:30:22]FM_MakeSignedData [14:30:22]SAM_PROTO_SignData [14:30:22]wFMCommunicate request_size=4 [14:30:22]MH_SAM_APDU [14:30:22]CAPDU: 80 0D 01 02 [14:30:22]Write to MH i2c: E2 08 00 AB 00 80 0D 01 02 00 00 00 00 24 [14:30:22]Write i2c OK [14:30:22]MH_I2C_Read... [14:30:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:22]Read from MH i2c: E2 [14:30:22]MH_I2C_Read... [14:30:22]Read from MH i2c: E2 03 00 [14:30:22]MH_I2C_Read... [14:30:22]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [14:30:22]RAPDU: 90 00 [14:30:22]wFMCommunicate OK [14:30:22]wFMCommunicate request_size=255 [14:30:22]MH_SAM_APDU [14:30:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 FE 3C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4A B4 01 00 35 04 06 00 45 [14:30:22]Write to MH i2c: E2 02 01 AC 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 FE 3C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4A B4 01 00 35 04 06 00 45 00 00 BC [14:30:22]Write i2c OK [14:30:22]MH_I2C_Read... [14:30:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:22]Read from MH i2c: E2 [14:30:22]MH_I2C_Read... [14:30:22]Read from MH i2c: E2 03 00 [14:30:22]MH_I2C_Read... [14:30:22]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [14:30:22]RAPDU: 90 00 [14:30:22]wFMCommunicate OK [14:30:22]wFMCommunicate request_size=10 [14:30:22]MH_SAM_APDU [14:30:22]CAPDU: 80 0D 02 02 05 AA 68 81 FA 98 [14:30:22]Write to MH i2c: E2 0D 00 AD 00 80 0D 02 02 05 00 AA 68 81 FA 98 00 00 56 [14:30:22]Write i2c OK [14:30:22]MH_I2C_Read... [14:30:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:22]Read from MH i2c: E2 [14:30:22]MH_I2C_Read... [14:30:22]Read from MH i2c: E2 03 00 [14:30:22]MH_I2C_Read... [14:30:22]Read from MH i2c: E2 03 00 AD 00 00 90 00 21 [14:30:22]RAPDU: 90 00 [14:30:22]wFMCommunicate OK [14:30:22]wFMCommunicate request_size=4 [14:30:22]MH_SAM_APDU [14:30:22]CAPDU: 80 0D 03 02 [14:30:22]Write to MH i2c: E2 08 00 AE 00 80 0D 03 02 00 00 00 00 29 [14:30:22]Write i2c OK [14:30:22]MH_I2C_Read... [14:30:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:22]Read from MH i2c: E2 [14:30:22]MH_I2C_Read... [14:30:22]Read from MH i2c: E2 0B 00 [14:30:22]MH_I2C_Read... [14:30:22]Read from MH i2c: E2 0B 00 AE 00 00 88 19 ED EA 6A D1 C2 D4 90 00 73 [14:30:22]RAPDU: 88 19 ED EA 6A D1 C2 D4 90 00 [14:30:22]wFMCommunicate OK [14:30:22]SAM_PROTO_SignData done [14:30:22]FM_MakeSignedData done [14:30:22]CreateOFDProtocolMessage [14:30:22]wFMCommunicate request_size=4 [14:30:22]MH_SAM_APDU [14:30:22]CAPDU: 80 11 00 00 [14:30:22]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [14:30:22]Write i2c OK [14:30:22]MH_I2C_Read... [14:30:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:22]Read from MH i2c: E2 [14:30:22]MH_I2C_Read... [14:30:22]Read from MH i2c: E2 17 00 [14:30:22]MH_I2C_Read... [14:30:22]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7B [14:30:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:30:22]wFMCommunicate OK [14:30:22]CreateOFDProtocolMessage done [14:30:22]OFDSenderStorePacket 111690 [14:30:22]StoreOFDPacket docnum=111690 [14:30:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 8F 39 07 01 9D 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 FE 3C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4A B4 01 00 35 04 06 00 45 AA 68 81 FA 98 88 19 ED EA 6A D1 C2 D4 [14:30:22]CheckFolder [14:30:22]dirname=/storage/ofd_packets [14:30:22]CheckFolder done [14:30:22]ProducePacketName [14:30:22]name=ofd_packets/00111690 [14:30:22]NVStorageSaveData ofd_packets/00111690 [14:30:22]File name is /storage/ofd_packets/00111690 [14:30:22]Write 301 bytes [14:30:22]NVStorageSaveData done [14:30:22]OFDSenderStorePacket done [14:30:22]KKMCreateOFDPacket done [14:30:22]NVStorageSaveData kkm_last_timestamp [14:30:22]File name is /storage/kkm_last_timestamp [14:30:22]Write 4 bytes [14:30:22]NVStorageSaveData done [14:30:22]ExternCall_PrintAddStr [14:30:22]wPrintStart [14:30:22]Write to MH i2c: 01 00 00 B0 00 B0 [14:30:22]Write i2c OK [14:30:22]MH_I2C_Read... [14:30:22]Read from MH i2c: 01 [14:30:22]MH_I2C_Read... [14:30:22]Read from MH i2c: 01 07 00 [14:30:22]MH_I2C_Read... [14:30:22]Read from MH i2c: 01 07 00 B0 00 00 00 00 00 00 FF 0F C5 [14:30:22]RasterBufferAndPrint [14:30:22]line Счет N : (1)320308 [14:30:22]line ИНН: 02508201610067 [14:30:22]line Контрольно-Кассовый Чек [14:30:22]line ПРОДАЖА [14:30:22]line ТРК (МРК, ГНК) : 11 [14:30:22]line Товар: 2710124130 [14:30:22]line Аи-92-К-5 [14:30:22]line 10.550 * 66.40 [14:30:22]line = 700.52 [14:30:22]line НДС 12% НСП 1% [14:30:22]line > о реализуемом товаре [14:30:22]line ИТОГО: 700.52 [14:30:22]line НСП 1% : 6.20 [14:30:22]line НДС 12% : 74.39 [14:30:22]line Наличными: 0.00 [14:30:22]line Безнал.: 700.52 [14:30:22]line Место: АЗС № 65 "Партнер Нефть" [14:30:22]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:30:22]line СНО: Общий режим [14:30:22]line Чек 140 20.06.2024 14:30 [14:30:22]line Смена: 389 ФФД: 1.0 [14:30:22]line ЗНМ: 0300000198 [14:30:22]line РНМ: 0000000000092771 [14:30:22]line Версия ККМ: 001 [14:30:22]line Платежная система: О! деньги [14:30:22]line ФМ: 0000000000875083 [14:30:22]line ФД: 111690 [14:30:22]line ФПД: 76598200105624 [14:30:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T143022&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111690&fm=76598200105624&tin=02508201610067®Number=0000000000092771&sum=70052 [14:30:23]written 0, free lines is 4095 [14:30:23]OFD Sender: Processing packet 111690 [packets to send 38, broken 37] [14:30:23]ProducePacketName [14:30:23]name=ofd_packets/00111690 [14:30:23]OFD Sender: To server: pG, [14:30:23]CommunicateWithHost lk.salyk.kg:30040 [14:30:23]ConnectInit lk.salyk.kg [14:30:23]Connected sock=10 [14:30:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 8F 39 07 01 9D 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 FE 3C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4A B4 01 00 35 04 06 00 45 AA 68 81 FA 98 88 19 ED EA 6A D1 C2 D4 [14:30:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 7C D8 47 00 BA 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4A B4 01 00 F4 03 04 00 46 D4 73 66 B6 04 01 00 00 0E 8D 9A 8A B4 5F A2 3C [14:30:23]CommunicateWithHost err = 0 [14:30:23]CheckOFDResponse [14:30:23]1017 (14) - 77093643461234 [14:30:23]1041 (16) - 0000000000875083 [14:30:23]1040 (4) - 111690 [14:30:23]1012 (4) - 20.06.2024 07:03 [14:30:23]1206 (1) - 0 [14:30:23]OFD Sender: Remove packet 111690 [14:30:23]ProducePacketName [14:30:23]name=ofd_packets/00111690 [14:30:23]NVStorageDeleteData [14:30:23]Write to MH i2c: 01 00 00 DA 00 DA [14:30:23]Write i2c OK [14:30:23]MH_I2C_Read... [14:30:23]Read from MH i2c: 01 [14:30:23]MH_I2C_Read... [14:30:23]Read from MH i2c: 01 07 00 [14:30:23]MH_I2C_Read... [14:30:23]Read from MH i2c: 01 07 00 DA 00 00 00 00 00 00 E6 0C D3 [14:30:23]RasterBufferAndPrint [14:30:23]line [14:30:23]line [14:30:23]line [14:30:23]line [14:30:23]line [14:30:23]written 0, free lines is 3309 [14:30:23]MH_Cut [14:30:23]Write to MH i2c: D1 01 00 E1 00 01 B3 [14:30:23]Write i2c OK [14:30:23]MH_I2C_Read... [14:30:23]Read from MH i2c: D1 [14:30:23]MH_I2C_Read... [14:30:23]Read from MH i2c: D1 01 00 [14:30:23]MH_I2C_Read... [14:30:23]Read from MH i2c: D1 01 00 E1 00 00 B2 [14:30:23]Write to MH i2c: 01 00 00 E2 00 E2 [14:30:23]Write i2c OK [14:30:23]MH_I2C_Read... [14:30:24]OFD Sender: No OFD packet to send [14:30:24]*** Cut start [14:30:24]*** Partial cut [14:30:24]*** CUTSNS_PIN = 1 [14:30:24]*** CUTSNS_PIN = 0 [14:30:24]*** Brake cut motor [14:30:25]Read from MH i2c: 01 [14:30:25]MH_I2C_Read... [14:30:25]*** Stop cut motor [14:30:25]*** Cut end [14:30:25]Read from MH i2c: 01 07 00 [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: 01 07 00 E2 00 00 00 00 00 00 FF 0F F7 [14:30:25]process_action close_receipt done [14:30:25]requested_data is exist [14:30:25]produce_requested_data [14:30:25]requested_item fm.sn is exist - process it [14:30:25]wFMCommunicate request_size=4 [14:30:25]MH_SAM_APDU [14:30:25]CAPDU: 80 11 00 00 [14:30:25]Write to MH i2c: E2 08 00 E3 00 80 11 00 00 00 00 00 00 5D [14:30:25]Write i2c OK [14:30:25]MH_I2C_Read... [14:30:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:25]Read from MH i2c: E2 [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: E2 17 00 [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: E2 17 00 E3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AF [14:30:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:30:25]wFMCommunicate OK [14:30:25]requested_item fd.num is exist - process it [14:30:25]SAM_PROTO_GetFieldsCounters [14:30:25]wFMCommunicate request_size=4 [14:30:25]MH_SAM_APDU [14:30:25]CAPDU: 80 13 00 00 [14:30:25]Write to MH i2c: E2 08 00 E4 00 80 13 00 00 00 00 00 00 60 [14:30:25]Write i2c OK [14:30:25]MH_I2C_Read... [14:30:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:25]Read from MH i2c: E2 [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: E2 62 00 [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: E2 62 00 E4 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4A B4 01 00 0E 04 04 00 85 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 AA [14:30:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4A B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:30:25]wFMCommunicate OK [14:30:25]SAM_PROTO_GetFieldsCounters done [14:30:25]requested_item shift.num is exist - process it [14:30:25]requested_item shift.opened is exist - process it [14:30:25]req_shift_opened [14:30:25]FM_GetShiftState [14:30:25]SAM_PROTO_GetShiftState [14:30:25]wFMCommunicate request_size=4 [14:30:25]MH_SAM_APDU [14:30:25]CAPDU: 80 13 01 00 [14:30:25]Write to MH i2c: E2 08 00 E5 00 80 13 01 00 00 00 00 00 62 [14:30:25]Write i2c OK [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: E2 [14:30:25]MH_I2C_Read... [14:30:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:25]Read from MH i2c: E2 0E 00 [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: E2 0E 00 E5 00 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 DD [14:30:25]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:30:25]wFMCommunicate OK [14:30:25]SAM_PROTO_GetShiftState done [14:30:25]FM_GetShiftState done [14:30:25]req_shift_opened done [14:30:25]requested_item shift.open_date is exist - process it [14:30:25]req_shift_open_date [14:30:25]req_shift_open_date done [14:30:25]produce_requested_data done [14:30:25]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111690,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [14:30:25]process_action_free close_receipt [14:30:25]json_value_free [14:30:25]json_value_free done [14:30:25]process_json_proto returns [14:30:25]Send response to host [14:30:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111690,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [14:30:25]free response buf [14:30:25]execute_script done [14:30:25]execute_script returns [14:30:25]free content buf [14:30:25]Sock 9.Close socket [14:30:25]Sock 9.Thread stoped [14:30:29]OFD Sender: No OFD packet to send [14:30:34]OFD Sender: No OFD packet to send [14:30:39]OFD Sender: No OFD packet to send [14:30:44]OFD Sender: No OFD packet to send [14:30:49]OFD Sender: No OFD packet to send [14:30:54]OFD Sender: No OFD packet to send [14:30:59]OFD Sender: No OFD packet to send [14:31:04]OFD Sender: No OFD packet to send [14:31:09]OFD Sender: No OFD packet to send [14:31:14]OFD Sender: No OFD packet to send [14:31:19]OFD Sender: No OFD packet to send [14:31:24]OFD Sender: No OFD packet to send [14:31:29]OFD Sender: No OFD packet to send [14:31:34]OFD Sender: No OFD packet to send [14:31:39]OFD Sender: No OFD packet to send [14:31:44]OFD Sender: No OFD packet to send [14:31:49]OFD Sender: No OFD packet to send [14:31:54]OFD Sender: No OFD packet to send [14:31:59]OFD Sender: No OFD packet to send [14:32:04]OFD Sender: No OFD packet to send [14:32:08]accept exits with 7 [14:32:08]New connection [14:32:08]New thread 3067178340 created [14:32:08]Thread 3067321700 joined [14:32:08]Waiting for new connection... [14:32:08] Sock 7.Parse request [14:32:08]Sock 7.Check first char [14:32:08]Sock 7.First char is OK [14:32:08]request: POST /json_proto HTTP/1.0 [14:32:08]Method: POST [14:32:08]URL: /json_proto [14:32:08]Method is POST - this is cgi request [14:32:08]url: /json_proto [14:32:08]query_string will be loaded in cgi processing [14:32:08]execute_cgi json_proto POST (null) [14:32:08]execute_cgi path=json_proto method=POST [14:32:08]POST find Content-Length [14:32:08]Host: 172.17.59.68:8080 [14:32:08]Content-Length: 682 [14:32:08]Content-Type: application/json [14:32:08] [14:32:08]POST finish read [14:32:08]Found Content-Length = 682 [14:32:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:08]execute_script... [14:32: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)320309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:08]POST & json_proto [14:32:08]process_json_proto [14:32:08]json parsed OK: [14:32:08]protocol is kg_v1.0 [14:32:08]action value=close_receipt [14:32:08]process_action close_receipt [14:32:08]cmd_close_receipt [14:32:08]MH_GetDate [14:32:08]Write to MH i2c: F0 00 00 E6 00 D5 [14:32:08]Write i2c OK [14:32:08]MH_I2C_Read... [14:32:08]Read from MH i2c: F0 [14:32:08]MH_I2C_Read... [14:32:08]Read from MH i2c: F0 09 00 [14:32:08]MH_I2C_Read... [14:32:08]Read from MH i2c: F0 09 00 E6 00 00 6A 3D 74 66 BC EC 60 65 CC [14:32:08]GetLastDocTimeStamp 1718893822 [14:32:08]current date 1718893930 [14:32:08]FM_GetShiftState [14:32:08]SAM_PROTO_GetShiftState [14:32:08]wFMCommunicate request_size=4 [14:32:08]MH_SAM_APDU [14:32:08]CAPDU: 80 13 01 00 [14:32:08]Write to MH i2c: E2 08 00 E7 00 80 13 01 00 00 00 00 00 64 [14:32:08]Write i2c OK [14:32:08]MH_I2C_Read... [14:32:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:09]Read from MH i2c: E2 [14:32:09]MH_I2C_Read... [14:32:09]Read from MH i2c: E2 0E 00 [14:32:09]MH_I2C_Read... [14:32:09]Read from MH i2c: E2 0E 00 E7 00 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 DF [14:32:09]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:32:09]wFMCommunicate OK [14:32:09]SAM_PROTO_GetShiftState done [14:32:09]FM_GetShiftState done [14:32:09]opened in 1718847247 [14:32:09]opened+sec_in_day 1718933647 [14:32:09]quantity*price = 200063 [14:32:09]sum+1 = 200064 [14:32:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 141 20.06.2024 14:32 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111691 ФПД: 79272941204036 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T143210&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111691&fm=79272941204036&tin=02508201610067®Number=0000000000092771&sum=200000 [14:32:10]StoreToDocumentArchive [14:32:10]shift 389 fd 111691 [14:32:10]save to /storage/0389/doc_00111691 [14:32:10]save last doc name /storage/0389/doc_00111691 to /storage/kkm_last_doc_name [14:32:10]save OK [14:32:10]Clear old archive folders... [14:32:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:32:10]tlvbuf is 017431E0 [14:32:10]SAM_PROTO_ClearQueue [14:32:10]wFMCommunicate request_size=4 [14:32:10]MH_SAM_APDU [14:32:10]CAPDU: 80 09 00 00 [14:32:10]Write to MH i2c: E2 08 00 F4 00 80 09 00 00 00 00 00 00 66 [14:32:10]Write i2c OK [14:32:10]MH_I2C_Read... [14:32:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:32:10]Read from MH i2c: E2 [14:32:10]MH_I2C_Read... [14:32:10]Read from MH i2c: E2 03 00 [14:32:10]MH_I2C_Read... [14:32:10]Read from MH i2c: E2 03 00 F4 00 00 90 00 68 [14:32:10]RAPDU: 90 00 [14:32:10]wFMCommunicate OK [14:32:10]SAM_PROTO_ClearQueue done [14:32:10]KKMCreateOFDPacket [14:32:10]OFDProtocolAddRootSTLVToBuf [14:32:10]FM_MakeSignedData [14:32:10]FM_MakeSignedData [14:32:10]SAM_PROTO_SignData [14:32:10]wFMCommunicate request_size=4 [14:32:10]MH_SAM_APDU [14:32:10]CAPDU: 80 0D 01 02 [14:32:10]Write to MH i2c: E2 08 00 F5 00 80 0D 01 02 00 00 00 00 6E [14:32:10]Write i2c OK [14:32:10]MH_I2C_Read... [14:32:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:32:10]Read from MH i2c: E2 [14:32:10]MH_I2C_Read... [14:32:10]Read from MH i2c: E2 03 00 [14:32:10]MH_I2C_Read... [14:32:10]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [14:32:10]RAPDU: 90 00 [14:32:10]wFMCommunicate OK [14:32:10]wFMCommunicate request_size=255 [14:32:10]MH_SAM_APDU [14:32:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 6A 3D 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4B B4 01 00 35 04 06 00 48 [14:32:10]Write to MH i2c: E2 02 01 F6 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 6A 3D 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4B B4 01 00 35 04 06 00 48 00 00 F3 [14:32:10]Write i2c OK [14:32:10]MH_I2C_Read... [14:32:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:10]Read from MH i2c: E2 [14:32:10]MH_I2C_Read... [14:32:10]Read from MH i2c: E2 03 00 [14:32:10]MH_I2C_Read... [14:32:10]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [14:32:10]RAPDU: 90 00 [14:32:10]wFMCommunicate OK [14:32:10]wFMCommunicate request_size=10 [14:32:10]MH_SAM_APDU [14:32:10]CAPDU: 80 0D 02 02 05 19 2B 80 32 44 [14:32:10]Write to MH i2c: E2 0D 00 F7 00 80 0D 02 02 05 00 19 2B 80 32 44 00 00 B5 [14:32:10]Write i2c OK [14:32:10]MH_I2C_Read... [14:32:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:10]Read from MH i2c: E2 [14:32:10]MH_I2C_Read... [14:32:10]Read from MH i2c: E2 03 00 [14:32:10]MH_I2C_Read... [14:32:10]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [14:32:10]RAPDU: 90 00 [14:32:10]wFMCommunicate OK [14:32:10]wFMCommunicate request_size=4 [14:32:10]MH_SAM_APDU [14:32:10]CAPDU: 80 0D 03 02 [14:32:10]Write to MH i2c: E2 08 00 F8 00 80 0D 03 02 00 00 00 00 73 [14:32:10]Write i2c OK [14:32:10]MH_I2C_Read... [14:32:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:32:10]Read from MH i2c: E2 [14:32:10]MH_I2C_Read... [14:32:10]Read from MH i2c: E2 0B 00 [14:32:10]MH_I2C_Read... [14:32:10]Read from MH i2c: E2 0B 00 F8 00 00 01 8F DF 3D 31 67 6B 79 90 00 9C [14:32:10]RAPDU: 01 8F DF 3D 31 67 6B 79 90 00 [14:32:10]wFMCommunicate OK [14:32:10]SAM_PROTO_SignData done [14:32:10]FM_MakeSignedData done [14:32:10]CreateOFDProtocolMessage [14:32:10]wFMCommunicate request_size=4 [14:32:10]MH_SAM_APDU [14:32:10]CAPDU: 80 11 00 00 [14:32:10]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [14:32:10]Write i2c OK [14:32:10]MH_I2C_Read... [14:32:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:10]Read from MH i2c: E2 [14:32:10]MH_I2C_Read... [14:32:10]Read from MH i2c: E2 17 00 [14:32:10]MH_I2C_Read... [14:32:10]Read from MH i2c: E2 17 00 F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C5 [14:32:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:32:10]wFMCommunicate OK [14:32:10]CreateOFDProtocolMessage done [14:32:10]OFDSenderStorePacket 111691 [14:32:10]StoreOFDPacket docnum=111691 [14:32:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D7 23 07 01 03 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 6A 3D 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4B B4 01 00 35 04 06 00 48 19 2B 80 32 44 01 8F DF 3D 31 67 6B 79 [14:32:10]CheckFolder [14:32:10]dirname=/storage/ofd_packets [14:32:10]CheckFolder done [14:32:10]ProducePacketName [14:32:10]name=ofd_packets/00111691 [14:32:10]NVStorageSaveData ofd_packets/00111691 [14:32:10]File name is /storage/ofd_packets/00111691 [14:32:10]Write 301 bytes [14:32:10]NVStorageSaveData done [14:32:10]OFDSenderStorePacket done [14:32:10]KKMCreateOFDPacket done [14:32:10]NVStorageSaveData kkm_last_timestamp [14:32:10]File name is /storage/kkm_last_timestamp [14:32:10]Write 4 bytes [14:32:10]NVStorageSaveData done [14:32:10]ExternCall_PrintAddStr [14:32:10]wPrintStart [14:32:10]Write to MH i2c: 01 00 00 FA 00 FA [14:32:10]Write i2c OK [14:32:10]MH_I2C_Read... [14:32:10]Read from MH i2c: 01 [14:32:10]MH_I2C_Read... [14:32:10]Read from MH i2c: 01 07 00 [14:32:10]MH_I2C_Read... [14:32:10]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [14:32:10]RasterBufferAndPrint [14:32:10]line Счет N : (1)320309 [14:32:10]line ИНН: 02508201610067 [14:32:10]line Контрольно-Кассовый Чек [14:32:10]line ПРОДАЖА [14:32:10]line ТРК (МРК, ГНК) : 11 [14:32:10]line Товар: 2710124130 [14:32:10]line Аи-92-К-5 [14:32:10]line 30.130 * 66.40 [14:32:10]line = 2000.63 [14:32:10]line НДС 12% НСП 1% [14:32:10]line > о реализуемом товаре [14:32:10]line ОКРУГЛЕНИЕ: -0.63 [14:32:10]line ИТОГО: 2000.00 [14:32:10]line Внесено: 2000.00 [14:32:10]line СДАЧА: 0.00 [14:32:10]line НСП 1% : 17.70 [14:32:10]line НДС 12% : 212.46 [14:32:10]line Наличными: 2000.00 [14:32:10]line Безнал.: 0.00 [14:32:10]line Место: АЗС № 65 "Партнер Нефть" [14:32:10]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:32:10]line СНО: Общий режим [14:32:10]line Чек 141 20.06.2024 14:32 [14:32:10]line Смена: 389 ФФД: 1.0 [14:32:10]line ЗНМ: 0300000198 [14:32:10]line РНМ: 0000000000092771 [14:32:10]line Версия ККМ: 001 [14:32:10]line ФМ: 0000000000875083 [14:32:10]line ФД: 111691 [14:32:10]line ФПД: 79272941204036 [14:32:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T143210&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111691&fm=79272941204036&tin=02508201610067®Number=0000000000092771&sum=200000 [14:32:11]OFD Sender: Processing packet 111691 [packets to send 38, broken 37] [14:32:11]ProducePacketName [14:32:11]name=ofd_packets/00111691 [14:32:11]OFD Sender: To server: pG, [14:32:11]CommunicateWithHost lk.salyk.kg:30040 [14:32:11]ConnectInit lk.salyk.kg [14:32:11]written 0, free lines is 4095 [14:32:11]Write to MH i2c: 01 00 00 25 01 26 [14:32:11]Write i2c OK [14:32:11]MH_I2C_Read... [14:32:11]Read from MH i2c: 01 [14:32:11]MH_I2C_Read... [14:32:11]Read from MH i2c: 01 07 00 [14:32:11]MH_I2C_Read... [14:32:11]Read from MH i2c: 01 07 00 25 01 00 00 00 00 00 D8 0C 11 [14:32:11]RasterBufferAndPrint [14:32:11]line [14:32:11]line [14:32:11]line [14:32:11]line [14:32:11]line [14:32:11]written 0, free lines is 3295 [14:32:11]MH_Cut [14:32:11]Write to MH i2c: D1 01 00 2C 01 01 FF [14:32:11]Write i2c OK [14:32:11]MH_I2C_Read... [14:32:11]Read from MH i2c: D1 [14:32:11]MH_I2C_Read... [14:32:11]Read from MH i2c: D1 01 00 [14:32:11]MH_I2C_Read... [14:32:11]Read from MH i2c: D1 01 00 2C 01 00 FE [14:32:11]Write to MH i2c: 01 00 00 2D 01 2E [14:32:11]Write i2c OK [14:32:11]MH_I2C_Read... [14:32:12]*** Cut start [14:32:12]*** Partial cut [14:32:12]*** CUTSNS_PIN = 1 [14:32:12]*** CUTSNS_PIN = 0 [14:32:12]*** Brake cut motor [14:32:12]Read from MH i2c: 01 [14:32:12]MH_I2C_Read... [14:32:12]*** Stop cut motor [14:32:12]*** Cut end [14:32:12]Read from MH i2c: 01 07 00 [14:32:12]MH_I2C_Read... [14:32:12]Read from MH i2c: 01 07 00 2D 01 00 00 00 00 00 FF 0F 43 [14:32:12]process_action close_receipt done [14:32:12]requested_data is exist [14:32:12]produce_requested_data [14:32:12]requested_item fm.sn is exist - process it [14:32:12]wFMCommunicate request_size=4 [14:32:12]MH_SAM_APDU [14:32:12]CAPDU: 80 11 00 00 [14:32:12]Write to MH i2c: E2 08 00 2E 01 80 11 00 00 00 00 00 00 A9 [14:32:12]Write i2c OK [14:32:12]MH_I2C_Read... [14:32:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:12]Read from MH i2c: E2 [14:32:12]MH_I2C_Read... [14:32:12]Read from MH i2c: E2 17 00 [14:32:12]MH_I2C_Read... [14:32:12]Read from MH i2c: E2 17 00 2E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FB [14:32:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:32:12]wFMCommunicate OK [14:32:12]requested_item fd.num is exist - process it [14:32:12]SAM_PROTO_GetFieldsCounters [14:32:12]wFMCommunicate request_size=4 [14:32:12]MH_SAM_APDU [14:32:12]CAPDU: 80 13 00 00 [14:32:12]Write to MH i2c: E2 08 00 2F 01 80 13 00 00 00 00 00 00 AC [14:32:12]Write i2c OK [14:32:12]MH_I2C_Read... [14:32:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:13]Read from MH i2c: E2 [14:32:13]MH_I2C_Read... [14:32:13]Read from MH i2c: E2 62 00 [14:32:13]MH_I2C_Read... [14:32:13]Read from MH i2c: E2 62 00 2F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4B B4 01 00 0E 04 04 00 85 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 FA [14:32:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4B B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:32:13]wFMCommunicate OK [14:32:13]SAM_PROTO_GetFieldsCounters done [14:32:13]requested_item shift.num is exist - process it [14:32:13]requested_item shift.opened is exist - process it [14:32:13]req_shift_opened [14:32:13]FM_GetShiftState [14:32:13]SAM_PROTO_GetShiftState [14:32:13]wFMCommunicate request_size=4 [14:32:13]MH_SAM_APDU [14:32:13]CAPDU: 80 13 01 00 [14:32:13]Write to MH i2c: E2 08 00 30 01 80 13 01 00 00 00 00 00 AE [14:32:13]Write i2c OK [14:32:13]MH_I2C_Read... [14:32:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:13]Read from MH i2c: E2 [14:32:13]MH_I2C_Read... [14:32:13]Read from MH i2c: E2 0E 00 [14:32:13]MH_I2C_Read... [14:32:13]Read from MH i2c: E2 0E 00 30 01 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 29 [14:32:13]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:32:13]wFMCommunicate OK [14:32:13]SAM_PROTO_GetShiftState done [14:32:13]FM_GetShiftState done [14:32:13]req_shift_opened done [14:32:13]requested_item shift.open_date is exist - process it [14:32:13]req_shift_open_date [14:32:13]req_shift_open_date done [14:32:13]produce_requested_data done [14:32:13]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111691,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [14:32:13]process_action_free close_receipt [14:32:13]json_value_free [14:32:13]json_value_free done [14:32:13]process_json_proto returns [14:32:13]Send response to host [14:32:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111691,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [14:32:13]free response buf [14:32:13]execute_script done [14:32:13]execute_script returns [14:32:13]free content buf [14:32:13]Sock 7.Close socket [14:32:13]Sock 7.Thread stoped [14:34:24]ConnectInit Can't connect to host [14:34:24]CommunicateWithHost connect error [14:34:24]CommunicateWithHost err = -1 [14:34:24]OFD Sender: Server communicate error [14:34:29]OFD Sender: Processing packet 111691 [packets to send 38, broken 37] [14:34:29]ProducePacketName [14:34:29]name=ofd_packets/00111691 [14:34:29]OFD Sender: To server: pG, [14:34:29]CommunicateWithHost lk.salyk.kg:30040 [14:34:29]ConnectInit lk.salyk.kg [14:34:29]Connected sock=7 [14:34:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D7 23 07 01 03 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 6A 3D 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4B B4 01 00 35 04 06 00 48 19 2B 80 32 44 01 8F DF 3D 31 67 6B 79 [14:34:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 CF 80 47 00 EC 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4B B4 01 00 F4 03 04 00 3C D5 73 66 B6 04 01 00 00 B0 9F 46 14 A5 A5 9B 24 [14:34:29]CommunicateWithHost err = 0 [14:34:29]CheckOFDResponse [14:34:29]1017 (14) - 77093643461234 [14:34:29]1041 (16) - 0000000000875083 [14:34:29]1040 (4) - 111691 [14:34:29]1012 (4) - 20.06.2024 07:07 [14:34:29]1206 (1) - 0 [14:34:29]OFD Sender: Remove packet 111691 [14:34:29]ProducePacketName [14:34:29]name=ofd_packets/00111691 [14:34:29]NVStorageDeleteData [14:34:29]OFD Sender: No OFD packet to send [14:34:34]OFD Sender: No OFD packet to send [14:34:39]OFD Sender: No OFD packet to send [14:34:44]OFD Sender: No OFD packet to send [14:34:49]OFD Sender: No OFD packet to send [14:34:54]OFD Sender: No OFD packet to send [14:34:59]OFD Sender: No OFD packet to send [14:35:04]OFD Sender: No OFD packet to send [14:35:09]OFD Sender: No OFD packet to send [14:35:14]OFD Sender: No OFD packet to send [14:35:19]OFD Sender: No OFD packet to send [14:35:24]OFD Sender: No OFD packet to send [14:35:29]OFD Sender: No OFD packet to send [14:35:34]OFD Sender: No OFD packet to send [14:35:34]accept exits with 9 [14:35:34]New connection [14:35:34]New thread 3067321700 created [14:35:34]Thread 3067178340 joined [14:35:34]Waiting for new connection... [14:35:34] Sock 9.Parse request [14:35:34]Sock 9.Check first char [14:35:34]Sock 9.First char is OK [14:35:34]request: POST /json_proto HTTP/1.0 [14:35:34]Method: POST [14:35:34]URL: /json_proto [14:35:34]Method is POST - this is cgi request [14:35:34]url: /json_proto [14:35:34]query_string will be loaded in cgi processing [14:35:34]execute_cgi json_proto POST (null) [14:35:34]execute_cgi path=json_proto method=POST [14:35:34]POST find Content-Length [14:35:34]Host: 172.17.59.68:8080 [14:35:34]Content-Length: 682 [14:35:34]Content-Type: application/json [14:35:34] [14:35:34]POST finish read [14:35:34]Found Content-Length = 682 [14:35:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:34]execute_script... [14:35: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)320310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:34]POST & json_proto [14:35:34]process_json_proto [14:35:34]json parsed OK: [14:35:34]protocol is kg_v1.0 [14:35:34]action value=close_receipt [14:35:34]process_action close_receipt [14:35:34]cmd_close_receipt [14:35:34]MH_GetDate [14:35:34]Write to MH i2c: F0 00 00 31 01 21 [14:35:34]Write i2c OK [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: F0 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: F0 09 00 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: F0 09 00 31 01 00 38 3E 74 66 BC EC 60 65 E7 [14:35:34]GetLastDocTimeStamp 1718893930 [14:35:34]current date 1718894136 [14:35:34]FM_GetShiftState [14:35:34]SAM_PROTO_GetShiftState [14:35:34]wFMCommunicate request_size=4 [14:35:34]MH_SAM_APDU [14:35:34]CAPDU: 80 13 01 00 [14:35:34]Write to MH i2c: E2 08 00 32 01 80 13 01 00 00 00 00 00 B0 [14:35:34]Write i2c OK [14:35:34]MH_I2C_Read... [14:35:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:34]Read from MH i2c: E2 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: E2 0E 00 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: E2 0E 00 32 01 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 2B [14:35:34]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:35:34]wFMCommunicate OK [14:35:34]SAM_PROTO_GetShiftState done [14:35:34]FM_GetShiftState done [14:35:34]opened in 1718847247 [14:35:34]opened+sec_in_day 1718933647 [14:35:34]quantity*price = 100064 [14:35:34]sum+1 = 100066 [14:35:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 142 20.06.2024 14:35 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111692 ФПД: 250896748921724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T143536&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111692&fm=250896748921724&tin=02508201610067®Number=0000000000092771&sum=100000 [14:35:36]StoreToDocumentArchive [14:35:36]shift 389 fd 111692 [14:35:36]save to /storage/0389/doc_00111692 [14:35:36]save last doc name /storage/0389/doc_00111692 to /storage/kkm_last_doc_name [14:35:36]save OK [14:35:36]Clear old archive folders... [14:35:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:35:36]tlvbuf is 01701760 [14:35:36]SAM_PROTO_ClearQueue [14:35:36]wFMCommunicate request_size=4 [14:35:36]MH_SAM_APDU [14:35:36]CAPDU: 80 09 00 00 [14:35:36]Write to MH i2c: E2 08 00 3F 01 80 09 00 00 00 00 00 00 B2 [14:35:36]Write i2c OK [14:35:36]MH_I2C_Read... [14:35:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:36]Read from MH i2c: E2 [14:35:36]MH_I2C_Read... [14:35:36]Read from MH i2c: E2 03 00 [14:35:36]MH_I2C_Read... [14:35:36]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [14:35:36]RAPDU: 90 00 [14:35:36]wFMCommunicate OK [14:35:36]SAM_PROTO_ClearQueue done [14:35:36]KKMCreateOFDPacket [14:35:36]OFDProtocolAddRootSTLVToBuf [14:35:36]FM_MakeSignedData [14:35:36]FM_MakeSignedData [14:35:36]SAM_PROTO_SignData [14:35:36]wFMCommunicate request_size=4 [14:35:36]MH_SAM_APDU [14:35:36]CAPDU: 80 0D 01 02 [14:35:36]Write to MH i2c: E2 08 00 40 01 80 0D 01 02 00 00 00 00 BA [14:35:36]Write i2c OK [14:35:36]MH_I2C_Read... [14:35:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:36]Read from MH i2c: E2 [14:35:36]MH_I2C_Read... [14:35:36]Read from MH i2c: E2 03 00 [14:35:36]MH_I2C_Read... [14:35:36]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [14:35:36]RAPDU: 90 00 [14:35:36]wFMCommunicate OK [14:35:36]wFMCommunicate request_size=255 [14:35:36]MH_SAM_APDU [14:35:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 38 3E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4C B4 01 00 35 04 06 00 E4 [14:35:36]Write to MH i2c: E2 02 01 41 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 38 3E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4C B4 01 00 35 04 06 00 E4 00 00 07 [14:35:36]Write i2c OK [14:35:36]MH_I2C_Read... [14:35:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:36]Read from MH i2c: E2 [14:35:36]MH_I2C_Read... [14:35:36]Read from MH i2c: E2 03 00 [14:35:36]MH_I2C_Read... [14:35:36]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [14:35:36]RAPDU: 90 00 [14:35:36]wFMCommunicate OK [14:35:36]wFMCommunicate request_size=10 [14:35:36]MH_SAM_APDU [14:35:36]CAPDU: 80 0D 02 02 05 30 73 98 43 7C [14:35:36]Write to MH i2c: E2 0D 00 42 01 80 0D 02 02 05 00 30 73 98 43 7C 00 00 C1 [14:35:36]Write i2c OK [14:35:36]MH_I2C_Read... [14:35:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:36]Read from MH i2c: E2 [14:35:36]MH_I2C_Read... [14:35:36]Read from MH i2c: E2 03 00 [14:35:36]MH_I2C_Read... [14:35:36]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [14:35:36]RAPDU: 90 00 [14:35:36]wFMCommunicate OK [14:35:36]wFMCommunicate request_size=4 [14:35:36]MH_SAM_APDU [14:35:36]CAPDU: 80 0D 03 02 [14:35:36]Write to MH i2c: E2 08 00 43 01 80 0D 03 02 00 00 00 00 BF [14:35:36]Write i2c OK [14:35:36]MH_I2C_Read... [14:35:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:36]Read from MH i2c: E2 [14:35:36]MH_I2C_Read... [14:35:36]Read from MH i2c: E2 0B 00 [14:35:36]MH_I2C_Read... [14:35:36]Read from MH i2c: E2 0B 00 43 01 00 83 42 E4 18 DA 83 17 E6 90 00 DB [14:35:36]RAPDU: 83 42 E4 18 DA 83 17 E6 90 00 [14:35:36]wFMCommunicate OK [14:35:36]SAM_PROTO_SignData done [14:35:36]FM_MakeSignedData done [14:35:36]CreateOFDProtocolMessage [14:35:36]wFMCommunicate request_size=4 [14:35:36]MH_SAM_APDU [14:35:36]CAPDU: 80 11 00 00 [14:35:36]Write to MH i2c: E2 08 00 44 01 80 11 00 00 00 00 00 00 BF [14:35:36]Write i2c OK [14:35:36]MH_I2C_Read... [14:35:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:36]Read from MH i2c: E2 [14:35:36]MH_I2C_Read... [14:35:36]Read from MH i2c: E2 17 00 [14:35:36]MH_I2C_Read... [14:35:36]Read from MH i2c: E2 17 00 44 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 11 [14:35:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:35:36]wFMCommunicate OK [14:35:36]CreateOFDProtocolMessage done [14:35:36]OFDSenderStorePacket 111692 [14:35:36]StoreOFDPacket docnum=111692 [14:35:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FD 6F 07 01 41 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 38 3E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4C B4 01 00 35 04 06 00 E4 30 73 98 43 7C 83 42 E4 18 DA 83 17 E6 [14:35:36]CheckFolder [14:35:36]dirname=/storage/ofd_packets [14:35:36]CheckFolder done [14:35:36]ProducePacketName [14:35:36]name=ofd_packets/00111692 [14:35:36]NVStorageSaveData ofd_packets/00111692 [14:35:36]File name is /storage/ofd_packets/00111692 [14:35:36]Write 301 bytes [14:35:36]NVStorageSaveData done [14:35:36]OFDSenderStorePacket done [14:35:36]KKMCreateOFDPacket done [14:35:36]NVStorageSaveData kkm_last_timestamp [14:35:36]File name is /storage/kkm_last_timestamp [14:35:36]Write 4 bytes [14:35:36]NVStorageSaveData done [14:35:36]ExternCall_PrintAddStr [14:35:36]wPrintStart [14:35:36]Write to MH i2c: 01 00 00 45 01 46 [14:35:36]Write i2c OK [14:35:36]MH_I2C_Read... [14:35:36]Read from MH i2c: 01 [14:35:36]MH_I2C_Read... [14:35:36]Read from MH i2c: 01 07 00 [14:35:36]MH_I2C_Read... [14:35:36]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [14:35:36]RasterBufferAndPrint [14:35:36]line Счет N : (1)320310 [14:35:36]line ИНН: 02508201610067 [14:35:36]line Контрольно-Кассовый Чек [14:35:36]line ПРОДАЖА [14:35:36]line ТРК (МРК, ГНК) : 11 [14:35:36]line Товар: 2710124130 [14:35:36]line Аи-92-К-5 [14:35:36]line 15.070 * 66.40 [14:35:36]line = 1000.65 [14:35:36]line НДС 12% НСП 1% [14:35:36]line > о реализуемом товаре [14:35:36]line ОКРУГЛЕНИЕ: -0.65 [14:35:36]line ИТОГО: 1000.00 [14:35:36]line Внесено: 1000.00 [14:35:36]line СДАЧА: 0.00 [14:35:36]line НСП 1% : 8.85 [14:35:36]line НДС 12% : 106.26 [14:35:36]line Наличными: 1000.00 [14:35:36]line Безнал.: 0.00 [14:35:36]line Место: АЗС № 65 "Партнер Нефть" [14:35:36]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:35:36]line СНО: Общий режим [14:35:36]line Чек 142 20.06.2024 14:35 [14:35:36]line Смена: 389 ФФД: 1.0 [14:35:36]line ЗНМ: 0300000198 [14:35:36]line РНМ: 0000000000092771 [14:35:36]line Версия ККМ: 001 [14:35:36]line ФМ: 0000000000875083 [14:35:36]line ФД: 111692 [14:35:36]line ФПД: 250896748921724 [14:35:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T143536&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111692&fm=250896748921724&tin=02508201610067®Number=0000000000092771&sum=100000 [14:35:36]OFD Sender: Processing packet 111692 [packets to send 38, broken 37] [14:35:36]ProducePacketName [14:35:36]name=ofd_packets/00111692 [14:35:36]OFD Sender: To server: pG, [14:35:36]CommunicateWithHost lk.salyk.kg:30040 [14:35:36]ConnectInit lk.salyk.kg [14:35:36]written 0, free lines is 4095 [14:35:37]Connected sock=10 [14:35:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FD 6F 07 01 41 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 38 3E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4C B4 01 00 35 04 06 00 E4 30 73 98 43 7C 83 42 E4 18 DA 83 17 E6 [14:35:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 63 0E 47 00 27 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4C B4 01 00 F4 03 04 00 80 D5 73 66 B6 04 01 00 00 3B 13 F7 0B A2 BF 23 C7 [14:35:37]CommunicateWithHost err = 0 [14:35:37]CheckOFDResponse [14:35:37]1017 (14) - 77093643461234 [14:35:37]1041 (16) - 0000000000875083 [14:35:37]1040 (4) - 111692 [14:35:37]1012 (4) - 20.06.2024 07:08 [14:35:37]1206 (1) - 0 [14:35:37]OFD Sender: Remove packet 111692 [14:35:37]ProducePacketName [14:35:37]name=ofd_packets/00111692 [14:35:37]NVStorageDeleteData [14:35:37]Write to MH i2c: 01 00 00 70 01 71 [14:35:37]Write i2c OK [14:35:37]MH_I2C_Read... [14:35:37]Read from MH i2c: 01 [14:35:37]MH_I2C_Read... [14:35:37]Read from MH i2c: 01 07 00 [14:35:37]MH_I2C_Read... [14:35:37]Read from MH i2c: 01 07 00 70 01 00 00 00 00 00 E1 0C 65 [14:35:37]RasterBufferAndPrint [14:35:37]line [14:35:37]line [14:35:37]line [14:35:37]line [14:35:37]line [14:35:37]written 0, free lines is 3302 [14:35:37]MH_Cut [14:35:37]Write to MH i2c: D1 01 00 77 01 01 4A [14:35:37]Write i2c OK [14:35:37]MH_I2C_Read... [14:35:37]Read from MH i2c: D1 [14:35:37]MH_I2C_Read... [14:35:37]Read from MH i2c: D1 01 00 [14:35:37]MH_I2C_Read... [14:35:37]Read from MH i2c: D1 01 00 77 01 00 49 [14:35:37]Write to MH i2c: 01 00 00 78 01 79 [14:35:37]Write i2c OK [14:35:37]MH_I2C_Read... [14:35:37]OFD Sender: No OFD packet to send [14:35:38]*** Cut start [14:35:38]*** Partial cut [14:35:38]*** CUTSNS_PIN = 1 [14:35:38]*** CUTSNS_PIN = 0 [14:35:38]*** Brake cut motor [14:35:38]Read from MH i2c: 01 [14:35:38]MH_I2C_Read... [14:35:38]*** Stop cut motor [14:35:38]*** Cut end [14:35:38]Read from MH i2c: 01 07 00 [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: 01 07 00 78 01 00 00 00 00 00 FF 0F 8E [14:35:38]process_action close_receipt done [14:35:38]requested_data is exist [14:35:38]produce_requested_data [14:35:38]requested_item fm.sn is exist - process it [14:35:38]wFMCommunicate request_size=4 [14:35:38]MH_SAM_APDU [14:35:38]CAPDU: 80 11 00 00 [14:35:38]Write to MH i2c: E2 08 00 79 01 80 11 00 00 00 00 00 00 F4 [14:35:38]Write i2c OK [14:35:38]MH_I2C_Read... [14:35:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:38]Read from MH i2c: E2 [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: E2 17 00 [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: E2 17 00 79 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 46 [14:35:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:35:38]wFMCommunicate OK [14:35:38]requested_item fd.num is exist - process it [14:35:38]SAM_PROTO_GetFieldsCounters [14:35:38]wFMCommunicate request_size=4 [14:35:38]MH_SAM_APDU [14:35:38]CAPDU: 80 13 00 00 [14:35:38]Write to MH i2c: E2 08 00 7A 01 80 13 00 00 00 00 00 00 F7 [14:35:38]Write i2c OK [14:35:38]MH_I2C_Read... [14:35:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:38]Read from MH i2c: E2 [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: E2 62 00 [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: E2 62 00 7A 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4C B4 01 00 0E 04 04 00 85 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 49 [14:35:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4C B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:35:38]wFMCommunicate OK [14:35:38]SAM_PROTO_GetFieldsCounters done [14:35:38]requested_item shift.num is exist - process it [14:35:38]requested_item shift.opened is exist - process it [14:35:38]req_shift_opened [14:35:38]FM_GetShiftState [14:35:38]SAM_PROTO_GetShiftState [14:35:38]wFMCommunicate request_size=4 [14:35:38]MH_SAM_APDU [14:35:38]CAPDU: 80 13 01 00 [14:35:38]Write to MH i2c: E2 08 00 7B 01 80 13 01 00 00 00 00 00 F9 [14:35:38]Write i2c OK [14:35:38]MH_I2C_Read... [14:35:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:39]Read from MH i2c: E2 [14:35:39]MH_I2C_Read... [14:35:39]Read from MH i2c: E2 0E 00 [14:35:39]MH_I2C_Read... [14:35:39]Read from MH i2c: E2 0E 00 7B 01 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 74 [14:35:39]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:35:39]wFMCommunicate OK [14:35:39]SAM_PROTO_GetShiftState done [14:35:39]FM_GetShiftState done [14:35:39]req_shift_opened done [14:35:39]requested_item shift.open_date is exist - process it [14:35:39]req_shift_open_date [14:35:39]req_shift_open_date done [14:35:39]produce_requested_data done [14:35:39]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111692,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [14:35:39]process_action_free close_receipt [14:35:39]json_value_free [14:35:39]json_value_free done [14:35:39]process_json_proto returns [14:35:39]Send response to host [14:35:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111692,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [14:35:39]free response buf [14:35:39]execute_script done [14:35:39]execute_script returns [14:35:39]free content buf [14:35:39]Sock 9.Close socket [14:35:39]Sock 9.Thread stoped [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:44]accept exits with 7 [14:38:44]New connection [14:38:44]New thread 3067178340 created [14:38:44]Thread 3067321700 joined [14:38:44]Waiting for new connection... [14:38:44] Sock 7.Parse request [14:38:44]Sock 7.Check first char [14:38:44]Sock 7.First char is OK [14:38:44]request: POST /json_proto HTTP/1.0 [14:38:44]Method: POST [14:38:44]URL: /json_proto [14:38:44]Method is POST - this is cgi request [14:38:44]url: /json_proto [14:38:44]query_string will be loaded in cgi processing [14:38:44]execute_cgi json_proto POST (null) [14:38:44]execute_cgi path=json_proto method=POST [14:38:44]POST find Content-Length [14:38:44]Host: 172.17.59.68:8080 [14:38:44]Content-Length: 677 [14:38:44]Content-Type: application/json [14:38:44] [14:38:44]POST finish read [14:38:44]Found Content-Length = 677 [14:38:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 1.510, "sum" : 100.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:44]execute_script... [14:38: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)320311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 1.510, "sum" : 100.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:44]POST & json_proto [14:38:44]process_json_proto [14:38:44]json parsed OK: [14:38:44]protocol is kg_v1.0 [14:38:44]action value=close_receipt [14:38:44]process_action close_receipt [14:38:44]cmd_close_receipt [14:38:44]MH_GetDate [14:38:44]Write to MH i2c: F0 00 00 7C 01 6C [14:38:44]Write i2c OK [14:38:44]MH_I2C_Read... [14:38:44]Read from MH i2c: F0 [14:38:44]MH_I2C_Read... [14:38:44]Read from MH i2c: F0 09 00 [14:38:44]MH_I2C_Read... [14:38:44]Read from MH i2c: F0 09 00 7C 01 00 F6 3E 74 66 BC EC 60 65 F0 [14:38:44]GetLastDocTimeStamp 1718894136 [14:38:44]current date 1718894326 [14:38:44]FM_GetShiftState [14:38:44]SAM_PROTO_GetShiftState [14:38:44]wFMCommunicate request_size=4 [14:38:44]MH_SAM_APDU [14:38:44]CAPDU: 80 13 01 00 [14:38:44]Write to MH i2c: E2 08 00 7D 01 80 13 01 00 00 00 00 00 FB [14:38:44]Write i2c OK [14:38:44]MH_I2C_Read... [14:38:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:45]Read from MH i2c: E2 [14:38:45]MH_I2C_Read... [14:38:45]Read from MH i2c: E2 0E 00 [14:38:45]MH_I2C_Read... [14:38:45]Read from MH i2c: E2 0E 00 7D 01 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 76 [14:38:45]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:38:45]wFMCommunicate OK [14:38:45]SAM_PROTO_GetShiftState done [14:38:45]FM_GetShiftState done [14:38:45]opened in 1718847247 [14:38:45]opened+sec_in_day 1718933647 [14:38:45]quantity*price = 10026 [14:38:45]sum+1 = 10027 [14:38:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.65 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 143 20.06.2024 14:38 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111693 ФПД: 24984639372477 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T143846&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111693&fm=24984639372477&tin=02508201610067®Number=0000000000092771&sum=10000 [14:38:46]StoreToDocumentArchive [14:38:46]shift 389 fd 111693 [14:38:46]save to /storage/0389/doc_00111693 [14:38:46]save last doc name /storage/0389/doc_00111693 to /storage/kkm_last_doc_name [14:38:46]save OK [14:38:46]Clear old archive folders... [14:38:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:38:46]tlvbuf is 01701320 [14:38:46]SAM_PROTO_ClearQueue [14:38:46]wFMCommunicate request_size=4 [14:38:46]MH_SAM_APDU [14:38:46]CAPDU: 80 09 00 00 [14:38:46]Write to MH i2c: E2 08 00 8A 01 80 09 00 00 00 00 00 00 FD [14:38:46]Write i2c OK [14:38:46]MH_I2C_Read... [14:38:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:46]Read from MH i2c: E2 [14:38:46]MH_I2C_Read... [14:38:46]Read from MH i2c: E2 03 00 [14:38:46]MH_I2C_Read... [14:38:46]Read from MH i2c: E2 03 00 8A 01 00 90 00 FF [14:38:46]RAPDU: 90 00 [14:38:46]wFMCommunicate OK [14:38:46]SAM_PROTO_ClearQueue done [14:38:46]KKMCreateOFDPacket [14:38:46]OFDProtocolAddRootSTLVToBuf [14:38:46]FM_MakeSignedData [14:38:46]FM_MakeSignedData [14:38:46]SAM_PROTO_SignData [14:38:46]wFMCommunicate request_size=4 [14:38:46]MH_SAM_APDU [14:38:46]CAPDU: 80 0D 01 02 [14:38:46]Write to MH i2c: E2 08 00 8B 01 80 0D 01 02 00 00 00 00 05 [14:38:46]Write i2c OK [14:38:46]MH_I2C_Read... [14:38:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:46]Read from MH i2c: E2 [14:38:46]MH_I2C_Read... [14:38:46]Read from MH i2c: E2 03 00 [14:38:46]MH_I2C_Read... [14:38:46]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [14:38:46]RAPDU: 90 00 [14:38:46]wFMCommunicate OK [14:38:46]wFMCommunicate request_size=255 [14:38:46]MH_SAM_APDU [14:38: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 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 F6 3E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4D B4 01 00 35 04 06 00 16 [14:38:46]Write to MH i2c: E2 02 01 8C 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 F6 3E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4D B4 01 00 35 04 06 00 16 00 00 83 [14:38:46]Write i2c OK [14:38:46]MH_I2C_Read... [14:38:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:46]Read from MH i2c: E2 [14:38:46]MH_I2C_Read... [14:38:46]Read from MH i2c: E2 03 00 [14:38:46]MH_I2C_Read... [14:38:46]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [14:38:46]RAPDU: 90 00 [14:38:46]wFMCommunicate OK [14:38:46]wFMCommunicate request_size=10 [14:38:46]MH_SAM_APDU [14:38:46]CAPDU: 80 0D 02 02 05 B9 30 8D FC BD [14:38:46]Write to MH i2c: E2 0D 00 8D 01 80 0D 02 02 05 00 B9 30 8D FC BD 00 00 41 [14:38:46]Write i2c OK [14:38:46]MH_I2C_Read... [14:38:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:46]Read from MH i2c: E2 [14:38:46]MH_I2C_Read... [14:38:46]Read from MH i2c: E2 03 00 [14:38:46]MH_I2C_Read... [14:38:46]Read from MH i2c: E2 03 00 8D 01 00 90 00 02 [14:38:46]RAPDU: 90 00 [14:38:46]wFMCommunicate OK [14:38:46]wFMCommunicate request_size=4 [14:38:46]MH_SAM_APDU [14:38:46]CAPDU: 80 0D 03 02 [14:38:46]Write to MH i2c: E2 08 00 8E 01 80 0D 03 02 00 00 00 00 0A [14:38:46]Write i2c OK [14:38:46]MH_I2C_Read... [14:38:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:46]Read from MH i2c: E2 [14:38:46]MH_I2C_Read... [14:38:46]Read from MH i2c: E2 0B 00 [14:38:46]MH_I2C_Read... [14:38:46]Read from MH i2c: E2 0B 00 8E 01 00 4A A0 ED CD EE D6 3A 57 90 00 04 [14:38:46]RAPDU: 4A A0 ED CD EE D6 3A 57 90 00 [14:38:46]wFMCommunicate OK [14:38:46]SAM_PROTO_SignData done [14:38:46]FM_MakeSignedData done [14:38:46]CreateOFDProtocolMessage [14:38:46]wFMCommunicate request_size=4 [14:38:46]MH_SAM_APDU [14:38:46]CAPDU: 80 11 00 00 [14:38:46]Write to MH i2c: E2 08 00 8F 01 80 11 00 00 00 00 00 00 0A [14:38:46]Write i2c OK [14:38:46]MH_I2C_Read... [14:38:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:46]Read from MH i2c: E2 [14:38:46]MH_I2C_Read... [14:38:46]Read from MH i2c: E2 17 00 [14:38:46]MH_I2C_Read... [14:38:46]Read from MH i2c: E2 17 00 8F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5C [14:38:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:38:46]wFMCommunicate OK [14:38:46]CreateOFDProtocolMessage done [14:38:46]OFDSenderStorePacket 111693 [14:38:46]StoreOFDPacket docnum=111693 [14:38:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 20 95 07 01 4A 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 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 F6 3E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4D B4 01 00 35 04 06 00 16 B9 30 8D FC BD 4A A0 ED CD EE D6 3A 57 [14:38:46]CheckFolder [14:38:46]dirname=/storage/ofd_packets [14:38:46]CheckFolder done [14:38:46]ProducePacketName [14:38:46]name=ofd_packets/00111693 [14:38:46]NVStorageSaveData ofd_packets/00111693 [14:38:46]File name is /storage/ofd_packets/00111693 [14:38:46]Write 301 bytes [14:38:46]NVStorageSaveData done [14:38:46]OFDSenderStorePacket done [14:38:46]KKMCreateOFDPacket done [14:38:46]NVStorageSaveData kkm_last_timestamp [14:38:46]File name is /storage/kkm_last_timestamp [14:38:46]Write 4 bytes [14:38:46]NVStorageSaveData done [14:38:46]ExternCall_PrintAddStr [14:38:46]wPrintStart [14:38:46]Write to MH i2c: 01 00 00 90 01 91 [14:38:46]Write i2c OK [14:38:46]MH_I2C_Read... [14:38:46]Read from MH i2c: 01 [14:38:46]MH_I2C_Read... [14:38:46]Read from MH i2c: 01 07 00 [14:38:46]MH_I2C_Read... [14:38:46]Read from MH i2c: 01 07 00 90 01 00 00 00 00 00 FF 0F A6 [14:38:46]RasterBufferAndPrint [14:38:46]line Счет N : (1)320311 [14:38:46]line ИНН: 02508201610067 [14:38:46]line Контрольно-Кассовый Чек [14:38:46]line ПРОДАЖА [14:38:46]line ТРК (МРК, ГНК) : 11 [14:38:46]line Товар: 2710124130 [14:38:46]line Аи-92-К-5 [14:38:46]line 1.510 * 66.40 [14:38:46]line = 100.26 [14:38:46]line НДС 12% НСП 1% [14:38:46]line > о реализуемом товаре [14:38:46]line ОКРУГЛЕНИЕ: -0.26 [14:38:46]line ИТОГО: 100.00 [14:38:46]line Внесено: 100.00 [14:38:46]line СДАЧА: 0.00 [14:38:46]line НСП 1% : 0.89 [14:38:46]line НДС 12% : 10.65 [14:38:46]line Наличными: 100.00 [14:38:46]line Безнал.: 0.00 [14:38:46]line Место: АЗС № 65 "Партнер Нефть" [14:38:46]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:38:46]line СНО: Общий режим [14:38:46]line Чек 143 20.06.2024 14:38 [14:38:46]line Смена: 389 ФФД: 1.0 [14:38:46]line ЗНМ: 0300000198 [14:38:46]line РНМ: 0000000000092771 [14:38:46]line Версия ККМ: 001 [14:38:46]line ФМ: 0000000000875083 [14:38:46]line ФД: 111693 [14:38:46]line ФПД: 24984639372477 [14:38:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T143846&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111693&fm=24984639372477&tin=02508201610067®Number=0000000000092771&sum=10000 [14:38:47]OFD Sender: Processing packet 111693 [packets to send 38, broken 37] [14:38:47]ProducePacketName [14:38:47]name=ofd_packets/00111693 [14:38:47]OFD Sender: To server: pG, [14:38:47]CommunicateWithHost lk.salyk.kg:30040 [14:38:47]ConnectInit lk.salyk.kg [14:38:47]written 0, free lines is 4095 [14:38:47]Connected sock=9 [14:38:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 20 95 07 01 4A 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 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 F6 3E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4D B4 01 00 35 04 06 00 16 B9 30 8D FC BD 4A A0 ED CD EE D6 3A 57 [14:38:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 01 BB 47 00 68 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4D B4 01 00 F4 03 04 00 3E D6 73 66 B6 04 01 00 00 EC FD D5 B6 75 DF 14 70 [14:38:47]CommunicateWithHost err = 0 [14:38:47]CheckOFDResponse [14:38:47]1017 (14) - 77093643461234 [14:38:47]1041 (16) - 0000000000875083 [14:38:47]1040 (4) - 111693 [14:38:47]1012 (4) - 20.06.2024 07:11 [14:38:47]1206 (1) - 0 [14:38:47]OFD Sender: Remove packet 111693 [14:38:47]ProducePacketName [14:38:47]name=ofd_packets/00111693 [14:38:47]NVStorageDeleteData [14:38:47]Write to MH i2c: 01 00 00 BB 01 BC [14:38:47]Write i2c OK [14:38:47]MH_I2C_Read... [14:38:47]Read from MH i2c: 01 [14:38:47]MH_I2C_Read... [14:38:47]Read from MH i2c: 01 07 00 [14:38:47]MH_I2C_Read... [14:38:47]Read from MH i2c: 01 07 00 BB 01 00 00 00 00 00 E4 0C B3 [14:38:47]RasterBufferAndPrint [14:38:47]line [14:38:47]line [14:38:47]line [14:38:47]line [14:38:47]line [14:38:47]written 0, free lines is 3306 [14:38:47]MH_Cut [14:38:47]Write to MH i2c: D1 01 00 C2 01 01 95 [14:38:47]Write i2c OK [14:38:47]MH_I2C_Read... [14:38:47]Read from MH i2c: D1 [14:38:47]MH_I2C_Read... [14:38:47]Read from MH i2c: D1 01 00 [14:38:47]MH_I2C_Read... [14:38:47]Read from MH i2c: D1 01 00 C2 01 00 94 [14:38:47]Write to MH i2c: 01 00 00 C3 01 C4 [14:38:47]Write i2c OK [14:38:47]MH_I2C_Read... [14:38:47]OFD Sender: No OFD packet to send [14:38:48]*** Cut start [14:38:48]*** Partial cut [14:38:48]*** CUTSNS_PIN = 1 [14:38:48]*** CUTSNS_PIN = 0 [14:38:48]*** Brake cut motor [14:38:48]Read from MH i2c: 01 [14:38:48]MH_I2C_Read... [14:38:48]*** Stop cut motor [14:38:48]*** Cut end [14:38:48]Read from MH i2c: 01 07 00 [14:38:48]MH_I2C_Read... [14:38:48]Read from MH i2c: 01 07 00 C3 01 00 00 00 00 00 FF 0F D9 [14:38:48]process_action close_receipt done [14:38:48]requested_data is exist [14:38:48]produce_requested_data [14:38:48]requested_item fm.sn is exist - process it [14:38:48]wFMCommunicate request_size=4 [14:38:48]MH_SAM_APDU [14:38:48]CAPDU: 80 11 00 00 [14:38:48]Write to MH i2c: E2 08 00 C4 01 80 11 00 00 00 00 00 00 3F [14:38:48]Write i2c OK [14:38:48]MH_I2C_Read... [14:38:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:48]Read from MH i2c: E2 [14:38:48]MH_I2C_Read... [14:38:48]Read from MH i2c: E2 17 00 [14:38:48]MH_I2C_Read... [14:38:48]Read from MH i2c: E2 17 00 C4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 91 [14:38:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:38:48]wFMCommunicate OK [14:38:48]requested_item fd.num is exist - process it [14:38:48]SAM_PROTO_GetFieldsCounters [14:38:48]wFMCommunicate request_size=4 [14:38:48]MH_SAM_APDU [14:38:48]CAPDU: 80 13 00 00 [14:38:48]Write to MH i2c: E2 08 00 C5 01 80 13 00 00 00 00 00 00 42 [14:38:48]Write i2c OK [14:38:48]MH_I2C_Read... [14:38:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:49]Read from MH i2c: E2 [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: E2 62 00 [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: E2 62 00 C5 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4D B4 01 00 0E 04 04 00 85 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 98 [14:38:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4D B4 01 00 0E 04 04 00 85 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 [14:38:49]wFMCommunicate OK [14:38:49]SAM_PROTO_GetFieldsCounters done [14:38:49]requested_item shift.num is exist - process it [14:38:49]requested_item shift.opened is exist - process it [14:38:49]req_shift_opened [14:38:49]FM_GetShiftState [14:38:49]SAM_PROTO_GetShiftState [14:38:49]wFMCommunicate request_size=4 [14:38:49]MH_SAM_APDU [14:38:49]CAPDU: 80 13 01 00 [14:38:49]Write to MH i2c: E2 08 00 C6 01 80 13 01 00 00 00 00 00 44 [14:38:49]Write i2c OK [14:38:49]MH_I2C_Read... [14:38:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:49]Read from MH i2c: E2 [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: E2 0E 00 [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: E2 0E 00 C6 01 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 BF [14:38:49]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:38:49]wFMCommunicate OK [14:38:49]SAM_PROTO_GetShiftState done [14:38:49]FM_GetShiftState done [14:38:49]req_shift_opened done [14:38:49]requested_item shift.open_date is exist - process it [14:38:49]req_shift_open_date [14:38:49]req_shift_open_date done [14:38:49]produce_requested_data done [14:38:49]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111693,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [14:38:49]process_action_free close_receipt [14:38:49]json_value_free [14:38:49]json_value_free done [14:38:49]process_json_proto returns [14:38:49]Send response to host [14:38:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111693,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [14:38:49]free response buf [14:38:49]execute_script done [14:38:49]execute_script returns [14:38:49]free content buf [14:38:49]Sock 7.Close socket [14:38:49]Sock 7.Thread stoped [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:22]OFD Sender: No OFD packet to send [14:39:27]OFD Sender: No OFD packet to send [14:39:32]OFD Sender: No OFD packet to send [14:39:37]OFD Sender: No OFD packet to send [14:39:42]OFD Sender: No OFD packet to send [14:39:47]OFD Sender: No OFD packet to send [14:39:52]OFD Sender: No OFD packet to send [14:39:57]OFD Sender: No OFD packet to send [14:40:02]OFD Sender: No OFD packet to send [14:40:07]OFD Sender: No OFD packet to send [14:40:12]OFD Sender: No OFD packet to send [14:40:17]OFD Sender: No OFD packet to send [14:40:22]OFD Sender: No OFD packet to send [14:40:27]OFD Sender: No OFD packet to send [14:40:32]OFD Sender: No OFD packet to send [14:40:37]OFD Sender: No OFD packet to send [14:40:42]OFD Sender: No OFD packet to send [14:40:47]OFD Sender: No OFD packet to send [14:40:52]OFD Sender: No OFD packet to send [14:40:57]OFD Sender: No OFD packet to send [14:41:02]OFD Sender: No OFD packet to send [14:41:07]OFD Sender: No OFD packet to send [14:41:12]OFD Sender: No OFD packet to send [14:41:17]OFD Sender: No OFD packet to send [14:41:22]OFD Sender: No OFD packet to send [14:41:27]OFD Sender: No OFD packet to send [14:41:32]OFD Sender: No OFD packet to send [14:41:37]OFD Sender: No OFD packet to send [14:41:42]OFD Sender: No OFD packet to send [14:41:47]OFD Sender: No OFD packet to send [14:41:52]OFD Sender: No OFD packet to send [14:41:57]OFD Sender: No OFD packet to send [14:42:03]OFD Sender: No OFD packet to send [14:42:08]OFD Sender: No OFD packet to send [14:42:13]OFD Sender: No OFD packet to send [14:42:18]OFD Sender: No OFD packet to send [14:42:20]accept exits with 10 [14:42:20]New connection [14:42:20]New thread 3067321700 created [14:42:20]Thread 3067178340 joined [14:42:20]Waiting for new connection... [14:42:20] Sock 10.Parse request [14:42:20]Sock 10.Check first char [14:42:20]Sock 10.First char is OK [14:42:20]request: POST /json_proto HTTP/1.0 [14:42:20]Method: POST [14:42:20]URL: /json_proto [14:42:20]Method is POST - this is cgi request [14:42:20]url: /json_proto [14:42:20]query_string will be loaded in cgi processing [14:42:20]execute_cgi json_proto POST (null) [14:42:20]execute_cgi path=json_proto method=POST [14:42:20]POST find Content-Length [14:42:20]Host: 172.17.59.68:8080 [14:42:20]Content-Length: 678 [14:42:20]Content-Type: application/json [14:42:20] [14:42:20]POST finish read [14:42:20]Found Content-Length = 678 [14:42:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:20]execute_script... [14:42: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)320312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:20]POST & json_proto [14:42:20]process_json_proto [14:42:20]json parsed OK: [14:42:20]protocol is kg_v1.0 [14:42:20]action value=close_receipt [14:42:20]process_action close_receipt [14:42:20]cmd_close_receipt [14:42:20]MH_GetDate [14:42:20]Write to MH i2c: F0 00 00 C7 01 B7 [14:42:20]Write i2c OK [14:42:20]MH_I2C_Read... [14:42:20]Read from MH i2c: F0 [14:42:20]MH_I2C_Read... [14:42:20]Read from MH i2c: F0 09 00 [14:42:20]MH_I2C_Read... [14:42:20]Read from MH i2c: F0 09 00 C7 01 00 CE 3F 74 66 BC EC 60 65 14 [14:42:20]GetLastDocTimeStamp 1718894326 [14:42:20]current date 1718894542 [14:42:20]FM_GetShiftState [14:42:20]SAM_PROTO_GetShiftState [14:42:20]wFMCommunicate request_size=4 [14:42:20]MH_SAM_APDU [14:42:20]CAPDU: 80 13 01 00 [14:42:20]Write to MH i2c: E2 08 00 C8 01 80 13 01 00 00 00 00 00 46 [14:42:20]Write i2c OK [14:42:20]MH_I2C_Read... [14:42:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:20]Read from MH i2c: E2 [14:42:20]MH_I2C_Read... [14:42:20]Read from MH i2c: E2 0E 00 [14:42:20]MH_I2C_Read... [14:42:20]Read from MH i2c: E2 0E 00 C8 01 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 C1 [14:42:20]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:42:20]wFMCommunicate OK [14:42:20]SAM_PROTO_GetShiftState done [14:42:20]FM_GetShiftState done [14:42:20]opened in 1718847247 [14:42:20]opened+sec_in_day 1718933647 [14:42:20]quantity*price = 70052 [14:42:20]sum+1 = 70053 [14:42:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 144 20.06.2024 14:42 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111694 ФПД: 28624702349403 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T144222&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111694&fm=28624702349403&tin=02508201610067®Number=0000000000092771&sum=70000 [14:42:21]StoreToDocumentArchive [14:42:21]shift 389 fd 111694 [14:42:21]save to /storage/0389/doc_00111694 [14:42:21]save last doc name /storage/0389/doc_00111694 to /storage/kkm_last_doc_name [14:42:21]save OK [14:42:21]Clear old archive folders... [14:42:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:42:21]tlvbuf is 016F54F0 [14:42:21]SAM_PROTO_ClearQueue [14:42:21]wFMCommunicate request_size=4 [14:42:21]MH_SAM_APDU [14:42:21]CAPDU: 80 09 00 00 [14:42:21]Write to MH i2c: E2 08 00 D5 01 80 09 00 00 00 00 00 00 48 [14:42:21]Write i2c OK [14:42:21]MH_I2C_Read... [14:42:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:22]Read from MH i2c: E2 [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: E2 03 00 [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: E2 03 00 D5 01 00 90 00 4A [14:42:22]RAPDU: 90 00 [14:42:22]wFMCommunicate OK [14:42:22]SAM_PROTO_ClearQueue done [14:42:22]KKMCreateOFDPacket [14:42:22]OFDProtocolAddRootSTLVToBuf [14:42:22]FM_MakeSignedData [14:42:22]FM_MakeSignedData [14:42:22]SAM_PROTO_SignData [14:42:22]wFMCommunicate request_size=4 [14:42:22]MH_SAM_APDU [14:42:22]CAPDU: 80 0D 01 02 [14:42:22]Write to MH i2c: E2 08 00 D6 01 80 0D 01 02 00 00 00 00 50 [14:42:22]Write i2c OK [14:42:22]MH_I2C_Read... [14:42:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:22]Read from MH i2c: E2 [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: E2 03 00 [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: E2 03 00 D6 01 00 90 00 4B [14:42:22]RAPDU: 90 00 [14:42:22]wFMCommunicate OK [14:42:22]wFMCommunicate request_size=255 [14:42:22]MH_SAM_APDU [14:42:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 CE 3F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4E B4 01 00 35 04 06 00 1A [14:42:22]Write to MH i2c: E2 02 01 D7 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 CE 3F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4E B4 01 00 35 04 06 00 1A 00 00 30 [14:42:22]Write i2c OK [14:42:22]MH_I2C_Read... [14:42:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:22]Read from MH i2c: E2 [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: E2 03 00 [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: E2 03 00 D7 01 00 90 00 4C [14:42:22]RAPDU: 90 00 [14:42:22]wFMCommunicate OK [14:42:22]wFMCommunicate request_size=10 [14:42:22]MH_SAM_APDU [14:42:22]CAPDU: 80 0D 02 02 05 08 B5 37 20 5B [14:42:22]Write to MH i2c: E2 0D 00 D8 01 80 0D 02 02 05 00 08 B5 37 20 5B 00 00 CC [14:42:22]Write i2c OK [14:42:22]MH_I2C_Read... [14:42:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:22]Read from MH i2c: E2 [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: E2 03 00 [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: E2 03 00 D8 01 00 90 00 4D [14:42:22]RAPDU: 90 00 [14:42:22]wFMCommunicate OK [14:42:22]wFMCommunicate request_size=4 [14:42:22]MH_SAM_APDU [14:42:22]CAPDU: 80 0D 03 02 [14:42:22]Write to MH i2c: E2 08 00 D9 01 80 0D 03 02 00 00 00 00 55 [14:42:22]Write i2c OK [14:42:22]MH_I2C_Read... [14:42:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:22]Read from MH i2c: E2 [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: E2 0B 00 [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: E2 0B 00 D9 01 00 07 F0 40 00 6B E8 FF 2C 90 00 0B [14:42:22]RAPDU: 07 F0 40 00 6B E8 FF 2C 90 00 [14:42:22]wFMCommunicate OK [14:42:22]SAM_PROTO_SignData done [14:42:22]FM_MakeSignedData done [14:42:22]CreateOFDProtocolMessage [14:42:22]wFMCommunicate request_size=4 [14:42:22]MH_SAM_APDU [14:42:22]CAPDU: 80 11 00 00 [14:42:22]Write to MH i2c: E2 08 00 DA 01 80 11 00 00 00 00 00 00 55 [14:42:22]Write i2c OK [14:42:22]MH_I2C_Read... [14:42:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:22]Read from MH i2c: E2 [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: E2 17 00 [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: E2 17 00 DA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A7 [14:42:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:42:22]wFMCommunicate OK [14:42:22]CreateOFDProtocolMessage done [14:42:22]OFDSenderStorePacket 111694 [14:42:22]StoreOFDPacket docnum=111694 [14:42:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 29 90 07 01 95 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 CE 3F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4E B4 01 00 35 04 06 00 1A 08 B5 37 20 5B 07 F0 40 00 6B E8 FF 2C [14:42:22]CheckFolder [14:42:22]dirname=/storage/ofd_packets [14:42:22]CheckFolder done [14:42:22]ProducePacketName [14:42:22]name=ofd_packets/00111694 [14:42:22]NVStorageSaveData ofd_packets/00111694 [14:42:22]File name is /storage/ofd_packets/00111694 [14:42:22]Write 301 bytes [14:42:22]NVStorageSaveData done [14:42:22]OFDSenderStorePacket done [14:42:22]KKMCreateOFDPacket done [14:42:22]NVStorageSaveData kkm_last_timestamp [14:42:22]File name is /storage/kkm_last_timestamp [14:42:22]Write 4 bytes [14:42:22]NVStorageSaveData done [14:42:22]ExternCall_PrintAddStr [14:42:22]wPrintStart [14:42:22]Write to MH i2c: 01 00 00 DB 01 DC [14:42:22]Write i2c OK [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: 01 [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: 01 07 00 [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: 01 07 00 DB 01 00 00 00 00 00 FF 0F F1 [14:42:22]RasterBufferAndPrint [14:42:22]line Счет N : (1)320312 [14:42:22]line ИНН: 02508201610067 [14:42:22]line Контрольно-Кассовый Чек [14:42:22]line ПРОДАЖА [14:42:22]line ТРК (МРК, ГНК) : 11 [14:42:22]line Товар: 2710124130 [14:42:22]line Аи-92-К-5 [14:42:22]line 10.550 * 66.40 [14:42:22]line = 700.52 [14:42:22]line НДС 12% НСП 1% [14:42:22]line > о реализуемом товаре [14:42:22]line ОКРУГЛЕНИЕ: -0.52 [14:42:22]line ИТОГО: 700.00 [14:42:22]line Внесено: 700.00 [14:42:22]line СДАЧА: 0.00 [14:42:22]line НСП 1% : 6.20 [14:42:22]line НДС 12% : 74.39 [14:42:22]line Наличными: 700.00 [14:42:22]line Безнал.: 0.00 [14:42:22]line Место: АЗС № 65 "Партнер Нефть" [14:42:22]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:42:22]line СНО: Общий режим [14:42:22]line Чек 144 20.06.2024 14:42 [14:42:22]line Смена: 389 ФФД: 1.0 [14:42:22]line ЗНМ: 0300000198 [14:42:22]line РНМ: 0000000000092771 [14:42:22]line Версия ККМ: 001 [14:42:22]line ФМ: 0000000000875083 [14:42:22]line ФД: 111694 [14:42:22]line ФПД: 28624702349403 [14:42:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T144222&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111694&fm=28624702349403&tin=02508201610067®Number=0000000000092771&sum=70000 [14:42:22]OFD Sender: Processing packet 111694 [packets to send 38, broken 37] [14:42:22]ProducePacketName [14:42:22]name=ofd_packets/00111694 [14:42:22]OFD Sender: To server: pG, [14:42:22]CommunicateWithHost lk.salyk.kg:30040 [14:42:22]ConnectInit lk.salyk.kg [14:42:22]written 0, free lines is 4095 [14:42:22]Connected sock=9 [14:42:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 29 90 07 01 95 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 CE 3F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4E B4 01 00 35 04 06 00 1A 08 B5 37 20 5B 07 F0 40 00 6B E8 FF 2C [14:42:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 45 95 47 00 24 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4E B4 01 00 F4 03 04 00 15 D7 73 66 B6 04 01 00 00 81 87 17 A8 F2 C7 4E 63 [14:42:23]CommunicateWithHost err = 0 [14:42:23]CheckOFDResponse [14:42:23]1017 (14) - 77093643461234 [14:42:23]1041 (16) - 0000000000875083 [14:42:23]1040 (4) - 111694 [14:42:23]1012 (4) - 20.06.2024 07:15 [14:42:23]1206 (1) - 0 [14:42:23]OFD Sender: Remove packet 111694 [14:42:23]ProducePacketName [14:42:23]name=ofd_packets/00111694 [14:42:23]NVStorageDeleteData [14:42:23]Write to MH i2c: 01 00 00 06 02 08 [14:42:23]Write i2c OK [14:42:23]MH_I2C_Read... [14:42:23]Read from MH i2c: 01 [14:42:23]MH_I2C_Read... [14:42:23]Read from MH i2c: 01 07 00 [14:42:23]MH_I2C_Read... [14:42:23]Read from MH i2c: 01 07 00 06 02 00 00 00 00 00 E8 0C 03 [14:42:23]RasterBufferAndPrint [14:42:23]line [14:42:23]line [14:42:23]line [14:42:23]line [14:42:23]line [14:42:23]written 0, free lines is 3310 [14:42:23]MH_Cut [14:42:23]Write to MH i2c: D1 01 00 0D 02 01 E1 [14:42:23]Write i2c OK [14:42:23]MH_I2C_Read... [14:42:23]Read from MH i2c: D1 [14:42:23]MH_I2C_Read... [14:42:23]Read from MH i2c: D1 01 00 [14:42:23]MH_I2C_Read... [14:42:23]Read from MH i2c: D1 01 00 0D 02 00 E0 [14:42:23]Write to MH i2c: 01 00 00 0E 02 10 [14:42:23]Write i2c OK [14:42:23]MH_I2C_Read... [14:42:23]OFD Sender: No OFD packet to send [14:42:24]*** Cut start [14:42:24]*** Partial cut [14:42:24]*** CUTSNS_PIN = 1 [14:42:24]*** CUTSNS_PIN = 0 [14:42:24]*** Brake cut motor [14:42:24]Read from MH i2c: 01 [14:42:24]MH_I2C_Read... [14:42:24]*** Stop cut motor [14:42:24]*** Cut end [14:42:24]Read from MH i2c: 01 07 00 [14:42:24]MH_I2C_Read... [14:42:24]Read from MH i2c: 01 07 00 0E 02 00 00 00 00 00 FF 0F 25 [14:42:24]process_action close_receipt done [14:42:24]requested_data is exist [14:42:24]produce_requested_data [14:42:24]requested_item fm.sn is exist - process it [14:42:24]wFMCommunicate request_size=4 [14:42:24]MH_SAM_APDU [14:42:24]CAPDU: 80 11 00 00 [14:42:24]Write to MH i2c: E2 08 00 0F 02 80 11 00 00 00 00 00 00 8B [14:42:24]Write i2c OK [14:42:24]MH_I2C_Read... [14:42:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:24]Read from MH i2c: E2 [14:42:24]MH_I2C_Read... [14:42:24]Read from MH i2c: E2 17 00 [14:42:24]MH_I2C_Read... [14:42:24]Read from MH i2c: E2 17 00 0F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DD [14:42:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:42:24]wFMCommunicate OK [14:42:24]requested_item fd.num is exist - process it [14:42:24]SAM_PROTO_GetFieldsCounters [14:42:24]wFMCommunicate request_size=4 [14:42:24]MH_SAM_APDU [14:42:24]CAPDU: 80 13 00 00 [14:42:24]Write to MH i2c: E2 08 00 10 02 80 13 00 00 00 00 00 00 8E [14:42:24]Write i2c OK [14:42:24]MH_I2C_Read... [14:42:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:24]Read from MH i2c: E2 [14:42:24]MH_I2C_Read... [14:42:24]Read from MH i2c: E2 62 00 [14:42:24]MH_I2C_Read... [14:42:24]Read from MH i2c: E2 62 00 10 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4E B4 01 00 0E 04 04 00 85 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 E8 [14:42:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4E B4 01 00 0E 04 04 00 85 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 [14:42:24]wFMCommunicate OK [14:42:24]SAM_PROTO_GetFieldsCounters done [14:42:24]requested_item shift.num is exist - process it [14:42:24]requested_item shift.opened is exist - process it [14:42:24]req_shift_opened [14:42:24]FM_GetShiftState [14:42:24]SAM_PROTO_GetShiftState [14:42:24]wFMCommunicate request_size=4 [14:42:24]MH_SAM_APDU [14:42:24]CAPDU: 80 13 01 00 [14:42:24]Write to MH i2c: E2 08 00 11 02 80 13 01 00 00 00 00 00 90 [14:42:24]Write i2c OK [14:42:24]MH_I2C_Read... [14:42:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:24]Read from MH i2c: E2 [14:42:24]MH_I2C_Read... [14:42:24]Read from MH i2c: E2 0E 00 [14:42:24]MH_I2C_Read... [14:42:24]Read from MH i2c: E2 0E 00 11 02 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 0B [14:42:24]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:42:24]wFMCommunicate OK [14:42:24]SAM_PROTO_GetShiftState done [14:42:24]FM_GetShiftState done [14:42:24]req_shift_opened done [14:42:24]requested_item shift.open_date is exist - process it [14:42:24]req_shift_open_date [14:42:24]req_shift_open_date done [14:42:24]produce_requested_data done [14:42:24]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111694,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [14:42:24]process_action_free close_receipt [14:42:24]json_value_free [14:42:24]json_value_free done [14:42:24]process_json_proto returns [14:42:24]Send response to host [14:42:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111694,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [14:42:24]free response buf [14:42:24]execute_script done [14:42:24]execute_script returns [14:42:24]free content buf [14:42:24]Sock 10.Close socket [14:42:24]Sock 10.Thread stoped [14:42:28]OFD Sender: No OFD packet to send [14:42:33]OFD Sender: No OFD packet to send [14:42:38]OFD Sender: No OFD packet to send [14:42:43]OFD Sender: No OFD packet to send [14:42: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:23]OFD Sender: No OFD packet to send [14:43:28]OFD Sender: No OFD packet to send [14:43:33]OFD Sender: No OFD packet to send [14:43:38]OFD Sender: No OFD packet to send [14:43:43]OFD Sender: No OFD packet to send [14:43:48]OFD Sender: No OFD packet to send [14:43:53]OFD Sender: No OFD packet to send [14:43:58]OFD Sender: No OFD packet to send [14:44:03]OFD Sender: No OFD packet to send [14:44:08]OFD Sender: No OFD packet to send [14:44:13]OFD Sender: No OFD packet to send [14:44:18]OFD Sender: No OFD packet to send [14:44:23]OFD Sender: No OFD packet to send [14:44:28]OFD Sender: No OFD packet to send [14:44:33]OFD Sender: No OFD packet to send [14:44:38]OFD Sender: No OFD packet to send [14:44:43]OFD Sender: No OFD packet to send [14:44:48]OFD Sender: No OFD packet to send [14:44:53]OFD Sender: No OFD packet to send [14:44:58]OFD Sender: No OFD packet to send [14:45:03]OFD Sender: No OFD packet to send [14:45:08]OFD Sender: No OFD packet to send [14:45:13]OFD Sender: No OFD packet to send [14:45:18]OFD Sender: No OFD packet to send [14:45:23]OFD Sender: No OFD packet to send [14:45:28]OFD Sender: No OFD packet to send [14:45:33]OFD Sender: No OFD packet to send [14:45:38]OFD Sender: No OFD packet to send [14:45:43]OFD Sender: No OFD packet to send [14:45:48]OFD Sender: No OFD packet to send [14:45:53]OFD Sender: No OFD packet to send [14:45:58]OFD Sender: No OFD packet to send [14:46:03]OFD Sender: No OFD packet to send [14:46:08]OFD Sender: No OFD packet to send [14:46:13]OFD Sender: No OFD packet to send [14:46:18]OFD Sender: No OFD packet to send [14:46:23]OFD Sender: No OFD packet to send [14:46:28]OFD Sender: No OFD packet to send [14:46:33]OFD Sender: No OFD packet to send [14:46:38]OFD Sender: No OFD packet to send [14:46:43]OFD Sender: No OFD packet to send [14:46:48]OFD Sender: No OFD packet to send [14:46:53]OFD Sender: No OFD packet to send [14:46:58]OFD Sender: No OFD packet to send [14:47:03]OFD Sender: No OFD packet to send [14:47:08]OFD Sender: No OFD packet to send [14:47:13]OFD Sender: No OFD packet to send [14:47:18]OFD Sender: No OFD packet to send [14:47:23]OFD Sender: No OFD packet to send [14:47:28]OFD Sender: No OFD packet to send [14:47:33]OFD Sender: No OFD packet to send [14:47:38]OFD Sender: No OFD packet to send [14:47:43]OFD Sender: No OFD packet to send [14:47:48]OFD Sender: No OFD packet to send [14:47:53]OFD Sender: No OFD packet to send [14:47:58]OFD Sender: No OFD packet to send [14:48:03]OFD Sender: No OFD packet to send [14:48:08]OFD Sender: No OFD packet to send [14:48:13]OFD Sender: No OFD packet to send [14:48:18]OFD Sender: No OFD packet to send [14:48:24]OFD Sender: No OFD packet to send [14:48:29]OFD Sender: No OFD packet to send [14:48:34]OFD Sender: No OFD packet to send [14:48:39]OFD Sender: No OFD packet to send [14:48:44]OFD Sender: No OFD packet to send [14:48:49]OFD Sender: No OFD packet to send [14:48:54]OFD Sender: No OFD packet to send [14:48:59]OFD Sender: No OFD packet to send [14:49:04]OFD Sender: No OFD packet to send [14:49:09]OFD Sender: No OFD packet to send [14:49:14]OFD Sender: No OFD packet to send [14:49:19]OFD Sender: No OFD packet to send [14:49:24]OFD Sender: No OFD packet to send [14:49:29]OFD Sender: No OFD packet to send [14:49:34]OFD Sender: No OFD packet to send [14:49:39]OFD Sender: No OFD packet to send [14:49:44]OFD Sender: No OFD packet to send [14:49:49]OFD Sender: No OFD packet to send [14:49:54]OFD Sender: No OFD packet to send [14:49:59]OFD Sender: No OFD packet to send [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:26]accept exits with 7 [14:53:26]New connection [14:53:26]New thread 3067178340 created [14:53:26]Thread 3067321700 joined [14:53:26]Waiting for new connection... [14:53:26] Sock 7.Parse request [14:53:26]Sock 7.Check first char [14:53:26]Sock 7.First char is OK [14:53:26]request: POST /json_proto HTTP/1.0 [14:53:26]Method: POST [14:53:26]URL: /json_proto [14:53:26]Method is POST - this is cgi request [14:53:26]url: /json_proto [14:53:26]query_string will be loaded in cgi processing [14:53:26]execute_cgi json_proto POST (null) [14:53:26]execute_cgi path=json_proto method=POST [14:53:26]POST find Content-Length [14:53:26]Host: 172.17.59.68:8080 [14:53:26]Content-Length: 674 [14:53:26]Content-Type: application/json [14:53:26] [14:53:26]POST finish read [14:53:26]Found Content-Length = 674 [14:53:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:26]execute_script... [14:53: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)320314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:26]POST & json_proto [14:53:26]process_json_proto [14:53:26]json parsed OK: [14:53:26]protocol is kg_v1.0 [14:53:26]action value=close_receipt [14:53:26]process_action close_receipt [14:53:26]cmd_close_receipt [14:53:26]MH_GetDate [14:53:26]Write to MH i2c: F0 00 00 12 02 03 [14:53:26]Write i2c OK [14:53:26]MH_I2C_Read... [14:53:26]Read from MH i2c: F0 [14:53:26]MH_I2C_Read... [14:53:26]Read from MH i2c: F0 09 00 [14:53:26]MH_I2C_Read... [14:53:26]Read from MH i2c: F0 09 00 12 02 00 68 42 74 66 BC EC 60 65 FD [14:53:26]GetLastDocTimeStamp 1718894542 [14:53:26]current date 1718895208 [14:53:26]FM_GetShiftState [14:53:26]SAM_PROTO_GetShiftState [14:53:26]wFMCommunicate request_size=4 [14:53:26]MH_SAM_APDU [14:53:26]CAPDU: 80 13 01 00 [14:53:26]Write to MH i2c: E2 08 00 13 02 80 13 01 00 00 00 00 00 92 [14:53:26]Write i2c OK [14:53:26]MH_I2C_Read... [14:53:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:26]Read from MH i2c: E2 [14:53:26]MH_I2C_Read... [14:53:26]Read from MH i2c: E2 0E 00 [14:53:26]MH_I2C_Read... [14:53:26]Read from MH i2c: E2 0E 00 13 02 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 0D [14:53:26]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:53:26]wFMCommunicate OK [14:53:26]SAM_PROTO_GetShiftState done [14:53:26]FM_GetShiftState done [14:53:26]opened in 1718847247 [14:53:26]opened+sec_in_day 1718933647 [14:53:26]quantity*price = 50009 [14:53:26]sum+1 = 50010 [14:53:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 145 20.06.2024 14:53 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111695 ФПД: 174854078200341 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T145328&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111695&fm=174854078200341&tin=02508201610067®Number=0000000000092771&sum=50000 [14:53:28]StoreToDocumentArchive [14:53:28]shift 389 fd 111695 [14:53:28]save to /storage/0389/doc_00111695 [14:53:28]save last doc name /storage/0389/doc_00111695 to /storage/kkm_last_doc_name [14:53:28]save OK [14:53:28]Clear old archive folders... [14:53:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:53:28]tlvbuf is 01742C90 [14:53:28]SAM_PROTO_ClearQueue [14:53:28]wFMCommunicate request_size=4 [14:53:28]MH_SAM_APDU [14:53:28]CAPDU: 80 09 00 00 [14:53:28]Write to MH i2c: E2 08 00 20 02 80 09 00 00 00 00 00 00 94 [14:53:28]Write i2c OK [14:53:28]MH_I2C_Read... [14:53:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:28]Read from MH i2c: E2 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: E2 03 00 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: E2 03 00 20 02 00 90 00 96 [14:53:28]RAPDU: 90 00 [14:53:28]wFMCommunicate OK [14:53:28]SAM_PROTO_ClearQueue done [14:53:28]KKMCreateOFDPacket [14:53:28]OFDProtocolAddRootSTLVToBuf [14:53:28]FM_MakeSignedData [14:53:28]FM_MakeSignedData [14:53:28]SAM_PROTO_SignData [14:53:28]wFMCommunicate request_size=4 [14:53:28]MH_SAM_APDU [14:53:28]CAPDU: 80 0D 01 02 [14:53:28]Write to MH i2c: E2 08 00 21 02 80 0D 01 02 00 00 00 00 9C [14:53:28]Write i2c OK [14:53:28]MH_I2C_Read... [14:53:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:28]Read from MH i2c: E2 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: E2 03 00 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: E2 03 00 21 02 00 90 00 97 [14:53:28]RAPDU: 90 00 [14:53:28]wFMCommunicate OK [14:53:28]wFMCommunicate request_size=255 [14:53:28]MH_SAM_APDU [14:53:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 68 42 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4F B4 01 00 35 04 06 00 9F 07 63 37 [14:53:28]Write to MH i2c: E2 02 01 22 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 68 42 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4F B4 01 00 35 04 06 00 9F 07 63 37 00 00 25 [14:53:28]Write i2c OK [14:53:28]MH_I2C_Read... [14:53:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:28]Read from MH i2c: E2 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: E2 03 00 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: E2 03 00 22 02 00 90 00 98 [14:53:28]RAPDU: 90 00 [14:53:28]wFMCommunicate OK [14:53:28]wFMCommunicate request_size=7 [14:53:28]MH_SAM_APDU [14:53:28]CAPDU: 80 0D 02 02 02 FA 15 [14:53:28]Write to MH i2c: E2 0A 00 23 02 80 0D 02 02 02 00 FA 15 00 00 B2 [14:53:28]Write i2c OK [14:53:28]MH_I2C_Read... [14:53:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:28]Read from MH i2c: E2 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: E2 03 00 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: E2 03 00 23 02 00 90 00 99 [14:53:28]RAPDU: 90 00 [14:53:28]wFMCommunicate OK [14:53:28]wFMCommunicate request_size=4 [14:53:28]MH_SAM_APDU [14:53:28]CAPDU: 80 0D 03 02 [14:53:28]Write to MH i2c: E2 08 00 24 02 80 0D 03 02 00 00 00 00 A1 [14:53:28]Write i2c OK [14:53:28]MH_I2C_Read... [14:53:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:28]Read from MH i2c: E2 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: E2 0B 00 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: E2 0B 00 24 02 00 2A CE 82 5E 0B 17 12 ED 90 00 9B [14:53:28]RAPDU: 2A CE 82 5E 0B 17 12 ED 90 00 [14:53:28]wFMCommunicate OK [14:53:28]SAM_PROTO_SignData done [14:53:28]FM_MakeSignedData done [14:53:28]CreateOFDProtocolMessage [14:53:28]wFMCommunicate request_size=4 [14:53:28]MH_SAM_APDU [14:53:28]CAPDU: 80 11 00 00 [14:53:28]Write to MH i2c: E2 08 00 25 02 80 11 00 00 00 00 00 00 A1 [14:53:28]Write i2c OK [14:53:28]MH_I2C_Read... [14:53:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:28]Read from MH i2c: E2 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: E2 17 00 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: E2 17 00 25 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F3 [14:53:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:53:28]wFMCommunicate OK [14:53:28]CreateOFDProtocolMessage done [14:53:28]OFDSenderStorePacket 111695 [14:53:28]StoreOFDPacket docnum=111695 [14:53:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 FC CB 04 01 E3 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 68 42 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4F B4 01 00 35 04 06 00 9F 07 63 37 FA 15 2A CE 82 5E 0B 17 12 ED [14:53:28]CheckFolder [14:53:28]dirname=/storage/ofd_packets [14:53:28]CheckFolder done [14:53:28]ProducePacketName [14:53:28]name=ofd_packets/00111695 [14:53:28]NVStorageSaveData ofd_packets/00111695 [14:53:28]File name is /storage/ofd_packets/00111695 [14:53:28]Write 298 bytes [14:53:28]NVStorageSaveData done [14:53:28]OFDSenderStorePacket done [14:53:28]KKMCreateOFDPacket done [14:53:28]NVStorageSaveData kkm_last_timestamp [14:53:28]File name is /storage/kkm_last_timestamp [14:53:28]Write 4 bytes [14:53:28]NVStorageSaveData done [14:53:28]ExternCall_PrintAddStr [14:53:28]wPrintStart [14:53:28]Write to MH i2c: 01 00 00 26 02 28 [14:53:28]Write i2c OK [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: 01 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: 01 07 00 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: 01 07 00 26 02 00 00 00 00 00 FF 0F 3D [14:53:28]RasterBufferAndPrint [14:53:28]line Счет N : (1)320314 [14:53:28]line ИНН: 02508201610067 [14:53:28]line Контрольно-Кассовый Чек [14:53:28]line ПРОДАЖА [14:53:28]line ТРК (МРК, ГНК) : 22 [14:53:28]line Товар: 2710194210 [14:53:28]line ДТ-К-5 [14:53:28]line 6.860 * 72.90 [14:53:28]line = 500.09 [14:53:28]line НДС 12% НСП 1% [14:53:28]line > о реализуемом товаре [14:53:28]line ОКРУГЛЕНИЕ: -0.09 [14:53:28]line ИТОГО: 500.00 [14:53:28]line Внесено: 500.00 [14:53:28]line СДАЧА: 0.00 [14:53:28]line НСП 1% : 4.43 [14:53:28]line НДС 12% : 53.11 [14:53:28]line Наличными: 500.00 [14:53:28]line Безнал.: 0.00 [14:53:28]line Место: АЗС № 65 "Партнер Нефть" [14:53:28]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:53:28]line СНО: Общий режим [14:53:28]line Чек 145 20.06.2024 14:53 [14:53:28]line Смена: 389 ФФД: 1.0 [14:53:28]line ЗНМ: 0300000198 [14:53:28]line РНМ: 0000000000092771 [14:53:28]line Версия ККМ: 001 [14:53:28]line ФМ: 0000000000875083 [14:53:28]line ФД: 111695 [14:53:28]line ФПД: 174854078200341 [14:53:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T145328&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111695&fm=174854078200341&tin=02508201610067®Number=0000000000092771&sum=50000 [14:53:28]written 0, free lines is 4095 [14:53:28]OFD Sender: Processing packet 111695 [packets to send 38, broken 37] [14:53:28]ProducePacketName [14:53:28]name=ofd_packets/00111695 [14:53:28]OFD Sender: To server: pG, [14:53:28]CommunicateWithHost lk.salyk.kg:30040 [14:53:28]ConnectInit lk.salyk.kg [14:53:28]Connected sock=10 [14:53:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 FC CB 04 01 E3 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 68 42 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4F B4 01 00 35 04 06 00 9F 07 63 37 FA 15 2A CE 82 5E 0B 17 12 ED [14:53:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 CA 89 47 00 24 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4F B4 01 00 F4 03 04 00 AF D9 73 66 B6 04 01 00 00 B2 74 03 29 49 27 EB 9A [14:53:29]CommunicateWithHost err = 0 [14:53:29]CheckOFDResponse [14:53:29]1017 (14) - 77093643461234 [14:53:29]1041 (16) - 0000000000875083 [14:53:29]1040 (4) - 111695 [14:53:29]1012 (4) - 20.06.2024 07:26 [14:53:29]1206 (1) - 0 [14:53:29]OFD Sender: Remove packet 111695 [14:53:29]ProducePacketName [14:53:29]name=ofd_packets/00111695 [14:53:29]NVStorageDeleteData [14:53:29]Write to MH i2c: 01 00 00 51 02 53 [14:53:29]Write i2c OK [14:53:29]MH_I2C_Read... [14:53:29]Read from MH i2c: 01 [14:53:29]MH_I2C_Read... [14:53:29]Read from MH i2c: 01 07 00 [14:53:29]MH_I2C_Read... [14:53:29]Read from MH i2c: 01 07 00 51 02 00 00 00 00 00 D4 0C 3A [14:53:29]RasterBufferAndPrint [14:53:29]line [14:53:29]line [14:53:29]line [14:53:29]line [14:53:29]line [14:53:29]written 0, free lines is 3288 [14:53:29]MH_Cut [14:53:29]Write to MH i2c: D1 01 00 58 02 01 2C [14:53:29]Write i2c OK [14:53:29]MH_I2C_Read... [14:53:29]Read from MH i2c: D1 [14:53:29]MH_I2C_Read... [14:53:29]Read from MH i2c: D1 01 00 [14:53:29]MH_I2C_Read... [14:53:29]Read from MH i2c: D1 01 00 58 02 00 2B [14:53:29]Write to MH i2c: 01 00 00 59 02 5B [14:53:29]Write i2c OK [14:53:29]MH_I2C_Read... [14:53:29]OFD Sender: No OFD packet to send [14:53:30]*** Cut start [14:53:30]*** Partial cut [14:53:30]*** CUTSNS_PIN = 1 [14:53:30]*** CUTSNS_PIN = 0 [14:53:30]*** Brake cut motor [14:53:30]Read from MH i2c: 01 [14:53:30]MH_I2C_Read... [14:53:30]*** Stop cut motor [14:53:30]*** Cut end [14:53:30]Read from MH i2c: 01 07 00 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: 01 07 00 59 02 00 00 00 00 00 FF 0F 70 [14:53:30]process_action close_receipt done [14:53:30]requested_data is exist [14:53:30]produce_requested_data [14:53:30]requested_item fm.sn is exist - process it [14:53:30]wFMCommunicate request_size=4 [14:53:30]MH_SAM_APDU [14:53:30]CAPDU: 80 11 00 00 [14:53:30]Write to MH i2c: E2 08 00 5A 02 80 11 00 00 00 00 00 00 D6 [14:53:30]Write i2c OK [14:53:30]MH_I2C_Read... [14:53:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:30]Read from MH i2c: E2 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: E2 17 00 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: E2 17 00 5A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 28 [14:53:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:53:30]wFMCommunicate OK [14:53:30]requested_item fd.num is exist - process it [14:53:30]SAM_PROTO_GetFieldsCounters [14:53:30]wFMCommunicate request_size=4 [14:53:30]MH_SAM_APDU [14:53:30]CAPDU: 80 13 00 00 [14:53:30]Write to MH i2c: E2 08 00 5B 02 80 13 00 00 00 00 00 00 D9 [14:53:30]Write i2c OK [14:53:30]MH_I2C_Read... [14:53:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:30]Read from MH i2c: E2 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: E2 62 00 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: E2 62 00 5B 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4F B4 01 00 0E 04 04 00 85 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 37 [14:53:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4F B4 01 00 0E 04 04 00 85 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 [14:53:30]wFMCommunicate OK [14:53:30]SAM_PROTO_GetFieldsCounters done [14:53:30]requested_item shift.num is exist - process it [14:53:30]requested_item shift.opened is exist - process it [14:53:30]req_shift_opened [14:53:30]FM_GetShiftState [14:53:30]SAM_PROTO_GetShiftState [14:53:30]wFMCommunicate request_size=4 [14:53:30]MH_SAM_APDU [14:53:30]CAPDU: 80 13 01 00 [14:53:30]Write to MH i2c: E2 08 00 5C 02 80 13 01 00 00 00 00 00 DB [14:53:30]Write i2c OK [14:53:30]MH_I2C_Read... [14:53:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:30]Read from MH i2c: E2 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: E2 0E 00 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: E2 0E 00 5C 02 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 56 [14:53:30]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:53:30]wFMCommunicate OK [14:53:30]SAM_PROTO_GetShiftState done [14:53:30]FM_GetShiftState done [14:53:30]req_shift_opened done [14:53:30]requested_item shift.open_date is exist - process it [14:53:30]req_shift_open_date [14:53:30]req_shift_open_date done [14:53:30]produce_requested_data done [14:53:30]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111695,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [14:53:30]process_action_free close_receipt [14:53:30]json_value_free [14:53:30]json_value_free done [14:53:30]process_json_proto returns [14:53:30]Send response to host [14:53:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111695,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [14:53:30]free response buf [14:53:30]execute_script done [14:53:30]execute_script returns [14:53:30]free content buf [14:53:30]Sock 7.Close socket [14:53:30]Sock 7.Thread stoped [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:59]OFD Sender: No OFD packet to send [14:54:04]OFD Sender: No OFD packet to send [14:54:04]accept exits with 9 [14:54:04]New connection [14:54:04]New thread 3067321700 created [14:54:04]Thread 3067178340 joined [14:54:04]Waiting for new connection... [14:54:04] Sock 9.Parse request [14:54:04]Sock 9.Check first char [14:54:04]Sock 9.First char is OK [14:54:04]request: POST /json_proto HTTP/1.0 [14:54:04]Method: POST [14:54:04]URL: /json_proto [14:54:04]Method is POST - this is cgi request [14:54:04]url: /json_proto [14:54:04]query_string will be loaded in cgi processing [14:54:04]execute_cgi json_proto POST (null) [14:54:04]execute_cgi path=json_proto method=POST [14:54:04]POST find Content-Length [14:54:04]Host: 172.17.59.68:8080 [14:54:04]Content-Length: 677 [14:54:04]Content-Type: application/json [14:54:04] [14:54:04]POST finish read [14:54:04]Found Content-Length = 677 [14:54:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.430, "sum" : 360.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 664.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:04]execute_script... [14:54: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)320313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.430, "sum" : 360.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 664.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:04]POST & json_proto [14:54:04]process_json_proto [14:54:04]json parsed OK: [14:54:04]protocol is kg_v1.0 [14:54:04]action value=close_receipt [14:54:04]process_action close_receipt [14:54:04]cmd_close_receipt [14:54:04]MH_GetDate [14:54:04]Write to MH i2c: F0 00 00 5D 02 4E [14:54:04]Write i2c OK [14:54:04]MH_I2C_Read... [14:54:04]Read from MH i2c: F0 [14:54:04]MH_I2C_Read... [14:54:04]Read from MH i2c: F0 09 00 [14:54:04]MH_I2C_Read... [14:54:04]Read from MH i2c: F0 09 00 5D 02 00 8E 42 74 66 BC EC 60 65 6E [14:54:04]GetLastDocTimeStamp 1718895208 [14:54:04]current date 1718895246 [14:54:04]FM_GetShiftState [14:54:04]SAM_PROTO_GetShiftState [14:54:04]wFMCommunicate request_size=4 [14:54:04]MH_SAM_APDU [14:54:04]CAPDU: 80 13 01 00 [14:54:04]Write to MH i2c: E2 08 00 5E 02 80 13 01 00 00 00 00 00 DD [14:54:04]Write i2c OK [14:54:04]MH_I2C_Read... [14:54:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:04]Read from MH i2c: E2 [14:54:04]MH_I2C_Read... [14:54:04]Read from MH i2c: E2 0E 00 [14:54:04]MH_I2C_Read... [14:54:04]Read from MH i2c: E2 0E 00 5E 02 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 58 [14:54:04]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:54:04]wFMCommunicate OK [14:54:04]SAM_PROTO_GetShiftState done [14:54:04]FM_GetShiftState done [14:54:04]opened in 1718847247 [14:54:04]opened+sec_in_day 1718933647 [14:54:04]quantity*price = 36055 [14:54:04]sum+1 = 36056 [14:54:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 360.00 Внесено: 664.00 СДАЧА: 304.00 НСП 1% : 3.19 НДС 12% : 38.29 Наличными: 360.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 146 20.06.2024 14:54 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111696 ФПД: 250420891290177 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T145406&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111696&fm=250420891290177&tin=02508201610067®Number=0000000000092771&sum=36000 [14:54:06]StoreToDocumentArchive [14:54:06]shift 389 fd 111696 [14:54:06]save to /storage/0389/doc_00111696 [14:54:06]save last doc name /storage/0389/doc_00111696 to /storage/kkm_last_doc_name [14:54:06]save OK [14:54:06]Clear old archive folders... [14:54:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:54:06]tlvbuf is 01747960 [14:54:06]SAM_PROTO_ClearQueue [14:54:06]wFMCommunicate request_size=4 [14:54:06]MH_SAM_APDU [14:54:06]CAPDU: 80 09 00 00 [14:54:06]Write to MH i2c: E2 08 00 6B 02 80 09 00 00 00 00 00 00 DF [14:54:06]Write i2c OK [14:54:06]MH_I2C_Read... [14:54:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:06]Read from MH i2c: E2 [14:54:06]MH_I2C_Read... [14:54:06]Read from MH i2c: E2 03 00 [14:54:06]MH_I2C_Read... [14:54:06]Read from MH i2c: E2 03 00 6B 02 00 90 00 E1 [14:54:06]RAPDU: 90 00 [14:54:06]wFMCommunicate OK [14:54:06]SAM_PROTO_ClearQueue done [14:54:06]KKMCreateOFDPacket [14:54:06]OFDProtocolAddRootSTLVToBuf [14:54:06]FM_MakeSignedData [14:54:06]FM_MakeSignedData [14:54:06]SAM_PROTO_SignData [14:54:06]wFMCommunicate request_size=4 [14:54:06]MH_SAM_APDU [14:54:06]CAPDU: 80 0D 01 02 [14:54:06]Write to MH i2c: E2 08 00 6C 02 80 0D 01 02 00 00 00 00 E7 [14:54:06]Write i2c OK [14:54:06]MH_I2C_Read... [14:54:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:06]Read from MH i2c: E2 [14:54:06]MH_I2C_Read... [14:54:06]Read from MH i2c: E2 03 00 [14:54:06]MH_I2C_Read... [14:54:06]Read from MH i2c: E2 03 00 6C 02 00 90 00 E2 [14:54:06]RAPDU: 90 00 [14:54:06]wFMCommunicate OK [14:54:06]wFMCommunicate request_size=255 [14:54:06]MH_SAM_APDU [14:54:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 15 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D7 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 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 8E 42 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 50 B4 01 00 35 04 06 00 E3 [14:54:06]Write to MH i2c: E2 02 01 6D 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 15 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D7 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 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 8E 42 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 50 B4 01 00 35 04 06 00 E3 00 00 ED [14:54:06]Write i2c OK [14:54:06]MH_I2C_Read... [14:54:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:06]Read from MH i2c: E2 [14:54:06]MH_I2C_Read... [14:54:06]Read from MH i2c: E2 03 00 [14:54:06]MH_I2C_Read... [14:54:06]Read from MH i2c: E2 03 00 6D 02 00 90 00 E3 [14:54:06]RAPDU: 90 00 [14:54:06]wFMCommunicate OK [14:54:06]wFMCommunicate request_size=10 [14:54:06]MH_SAM_APDU [14:54:06]CAPDU: 80 0D 02 02 05 C1 A8 45 0A 41 [14:54:06]Write to MH i2c: E2 0D 00 6E 02 80 0D 02 02 05 00 C1 A8 45 0A 41 00 00 ED [14:54:06]Write i2c OK [14:54:06]MH_I2C_Read... [14:54:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:06]Read from MH i2c: E2 [14:54:06]MH_I2C_Read... [14:54:06]Read from MH i2c: E2 03 00 [14:54:06]MH_I2C_Read... [14:54:06]Read from MH i2c: E2 03 00 6E 02 00 90 00 E4 [14:54:06]RAPDU: 90 00 [14:54:06]wFMCommunicate OK [14:54:06]wFMCommunicate request_size=4 [14:54:06]MH_SAM_APDU [14:54:06]CAPDU: 80 0D 03 02 [14:54:06]Write to MH i2c: E2 08 00 6F 02 80 0D 03 02 00 00 00 00 EC [14:54:06]Write i2c OK [14:54:06]MH_I2C_Read... [14:54:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:06]Read from MH i2c: E2 [14:54:06]MH_I2C_Read... [14:54:06]Read from MH i2c: E2 0B 00 [14:54:06]MH_I2C_Read... [14:54:06]Read from MH i2c: E2 0B 00 6F 02 00 06 AF C8 AB C7 F8 61 0D 90 00 42 [14:54:06]RAPDU: 06 AF C8 AB C7 F8 61 0D 90 00 [14:54:06]wFMCommunicate OK [14:54:06]SAM_PROTO_SignData done [14:54:06]FM_MakeSignedData done [14:54:06]CreateOFDProtocolMessage [14:54:06]wFMCommunicate request_size=4 [14:54:06]MH_SAM_APDU [14:54:06]CAPDU: 80 11 00 00 [14:54:06]Write to MH i2c: E2 08 00 70 02 80 11 00 00 00 00 00 00 EC [14:54:06]Write i2c OK [14:54:06]MH_I2C_Read... [14:54:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:06]Read from MH i2c: E2 [14:54:06]MH_I2C_Read... [14:54:06]Read from MH i2c: E2 17 00 [14:54:06]MH_I2C_Read... [14:54:06]Read from MH i2c: E2 17 00 70 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3E [14:54:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:54:06]wFMCommunicate OK [14:54:06]CreateOFDProtocolMessage done [14:54:06]OFDSenderStorePacket 111696 [14:54:06]StoreOFDPacket docnum=111696 [14:54:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 54 69 07 01 FB 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 36 15 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D7 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 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 8E 42 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 50 B4 01 00 35 04 06 00 E3 C1 A8 45 0A 41 06 AF C8 AB C7 F8 61 0D [14:54:06]CheckFolder [14:54:06]dirname=/storage/ofd_packets [14:54:06]CheckFolder done [14:54:06]ProducePacketName [14:54:06]name=ofd_packets/00111696 [14:54:06]NVStorageSaveData ofd_packets/00111696 [14:54:06]File name is /storage/ofd_packets/00111696 [14:54:06]Write 301 bytes [14:54:06]NVStorageSaveData done [14:54:06]OFDSenderStorePacket done [14:54:06]KKMCreateOFDPacket done [14:54:06]NVStorageSaveData kkm_last_timestamp [14:54:06]File name is /storage/kkm_last_timestamp [14:54:06]Write 4 bytes [14:54:06]NVStorageSaveData done [14:54:06]ExternCall_PrintAddStr [14:54:06]wPrintStart [14:54:06]Write to MH i2c: 01 00 00 71 02 73 [14:54:06]Write i2c OK [14:54:06]MH_I2C_Read... [14:54:06]Read from MH i2c: 01 [14:54:06]MH_I2C_Read... [14:54:06]Read from MH i2c: 01 07 00 [14:54:06]MH_I2C_Read... [14:54:06]Read from MH i2c: 01 07 00 71 02 00 00 00 00 00 FF 0F 88 [14:54:06]RasterBufferAndPrint [14:54:06]line Счет N : (1)320313 [14:54:06]line ИНН: 02508201610067 [14:54:06]line Контрольно-Кассовый Чек [14:54:06]line ПРОДАЖА [14:54:06]line ТРК (МРК, ГНК) : 11 [14:54:06]line Товар: 2710124130 [14:54:06]line Аи-92-К-5 [14:54:06]line 5.430 * 66.40 [14:54:06]line = 360.55 [14:54:06]line НДС 12% НСП 1% [14:54:06]line > о реализуемом товаре [14:54:06]line ОКРУГЛЕНИЕ: -0.55 [14:54:06]line ИТОГО: 360.00 [14:54:06]line Внесено: 664.00 [14:54:06]line СДАЧА: 304.00 [14:54:06]line НСП 1% : 3.19 [14:54:06]line НДС 12% : 38.29 [14:54:06]line Наличными: 360.00 [14:54:06]line Безнал.: 0.00 [14:54:06]line Место: АЗС № 65 "Партнер Нефть" [14:54:06]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:54:06]line СНО: Общий режим [14:54:06]line Чек 146 20.06.2024 14:54 [14:54:06]line Смена: 389 ФФД: 1.0 [14:54:06]line ЗНМ: 0300000198 [14:54:06]line РНМ: 0000000000092771 [14:54:06]line Версия ККМ: 001 [14:54:06]line ФМ: 0000000000875083 [14:54:06]line ФД: 111696 [14:54:06]line ФПД: 250420891290177 [14:54:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T145406&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111696&fm=250420891290177&tin=02508201610067®Number=0000000000092771&sum=36000 [14:54:06]OFD Sender: Processing packet 111696 [packets to send 38, broken 37] [14:54:06]ProducePacketName [14:54:06]name=ofd_packets/00111696 [14:54:06]OFD Sender: To server: pG, [14:54:06]CommunicateWithHost lk.salyk.kg:30040 [14:54:06]ConnectInit lk.salyk.kg [14:54:06]written 0, free lines is 4095 [14:54:06]Connected sock=10 [14:54:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 54 69 07 01 FB 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 36 15 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D7 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 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 8E 42 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 50 B4 01 00 35 04 06 00 E3 C1 A8 45 0A 41 06 AF C8 AB C7 F8 61 0D [14:54:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 12 5B 47 00 A6 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 50 B4 01 00 F4 03 04 00 D5 D9 73 66 B6 04 01 00 00 CE 9F BD C7 94 1A C3 29 [14:54:07]CommunicateWithHost err = 0 [14:54:07]CheckOFDResponse [14:54:07]1017 (14) - 77093643461234 [14:54:07]1041 (16) - 0000000000875083 [14:54:07]1040 (4) - 111696 [14:54:07]1012 (4) - 20.06.2024 07:27 [14:54:07]1206 (1) - 0 [14:54:07]OFD Sender: Remove packet 111696 [14:54:07]ProducePacketName [14:54:07]name=ofd_packets/00111696 [14:54:07]NVStorageDeleteData [14:54:07]Write to MH i2c: 01 00 00 9C 02 9E [14:54:07]Write i2c OK [14:54:07]MH_I2C_Read... [14:54:07]Read from MH i2c: 01 [14:54:07]MH_I2C_Read... [14:54:07]Read from MH i2c: 01 07 00 [14:54:07]MH_I2C_Read... [14:54:07]Read from MH i2c: 01 07 00 9C 02 00 00 00 00 00 EE 0C 9F [14:54:07]RasterBufferAndPrint [14:54:07]line [14:54:07]line [14:54:07]line [14:54:07]line [14:54:07]line [14:54:07]written 0, free lines is 3316 [14:54:07]MH_Cut [14:54:07]Write to MH i2c: D1 01 00 A3 02 01 77 [14:54:07]Write i2c OK [14:54:07]MH_I2C_Read... [14:54:07]Read from MH i2c: D1 [14:54:07]MH_I2C_Read... [14:54:07]Read from MH i2c: D1 01 00 [14:54:07]MH_I2C_Read... [14:54:07]Read from MH i2c: D1 01 00 A3 02 00 76 [14:54:07]Write to MH i2c: 01 00 00 A4 02 A6 [14:54:07]Write i2c OK [14:54:07]MH_I2C_Read... [14:54:07]OFD Sender: No OFD packet to send [14:54:08]*** Cut start [14:54:08]*** Partial cut [14:54:08]*** CUTSNS_PIN = 1 [14:54:08]*** CUTSNS_PIN = 0 [14:54:08]*** Brake cut motor [14:54:08]Read from MH i2c: 01 [14:54:08]MH_I2C_Read... [14:54:08]*** Stop cut motor [14:54:08]*** Cut end [14:54:08]Read from MH i2c: 01 07 00 [14:54:08]MH_I2C_Read... [14:54:08]Read from MH i2c: 01 07 00 A4 02 00 00 00 00 00 FF 0F BB [14:54:08]process_action close_receipt done [14:54:08]requested_data is exist [14:54:08]produce_requested_data [14:54:08]requested_item fm.sn is exist - process it [14:54:08]wFMCommunicate request_size=4 [14:54:08]MH_SAM_APDU [14:54:08]CAPDU: 80 11 00 00 [14:54:08]Write to MH i2c: E2 08 00 A5 02 80 11 00 00 00 00 00 00 21 [14:54:08]Write i2c OK [14:54:08]MH_I2C_Read... [14:54:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:08]Read from MH i2c: E2 [14:54:08]MH_I2C_Read... [14:54:08]Read from MH i2c: E2 17 00 [14:54:08]MH_I2C_Read... [14:54:08]Read from MH i2c: E2 17 00 A5 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 73 [14:54:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:54:08]wFMCommunicate OK [14:54:08]requested_item fd.num is exist - process it [14:54:08]SAM_PROTO_GetFieldsCounters [14:54:08]wFMCommunicate request_size=4 [14:54:08]MH_SAM_APDU [14:54:08]CAPDU: 80 13 00 00 [14:54:08]Write to MH i2c: E2 08 00 A6 02 80 13 00 00 00 00 00 00 24 [14:54:08]Write i2c OK [14:54:08]MH_I2C_Read... [14:54:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:08]Read from MH i2c: E2 [14:54:08]MH_I2C_Read... [14:54:08]Read from MH i2c: E2 62 00 [14:54:08]MH_I2C_Read... [14:54:08]Read from MH i2c: E2 62 00 A6 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 50 B4 01 00 0E 04 04 00 85 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 86 [14:54:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 50 B4 01 00 0E 04 04 00 85 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 [14:54:08]wFMCommunicate OK [14:54:08]SAM_PROTO_GetFieldsCounters done [14:54:08]requested_item shift.num is exist - process it [14:54:08]requested_item shift.opened is exist - process it [14:54:08]req_shift_opened [14:54:08]FM_GetShiftState [14:54:08]SAM_PROTO_GetShiftState [14:54:08]wFMCommunicate request_size=4 [14:54:08]MH_SAM_APDU [14:54:08]CAPDU: 80 13 01 00 [14:54:08]Write to MH i2c: E2 08 00 A7 02 80 13 01 00 00 00 00 00 26 [14:54:08]Write i2c OK [14:54:08]MH_I2C_Read... [14:54:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:08]Read from MH i2c: E2 [14:54:08]MH_I2C_Read... [14:54:08]Read from MH i2c: E2 0E 00 [14:54:08]MH_I2C_Read... [14:54:08]Read from MH i2c: E2 0E 00 A7 02 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 A1 [14:54:08]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:54:08]wFMCommunicate OK [14:54:08]SAM_PROTO_GetShiftState done [14:54:08]FM_GetShiftState done [14:54:08]req_shift_opened done [14:54:08]requested_item shift.open_date is exist - process it [14:54:08]req_shift_open_date [14:54:08]req_shift_open_date done [14:54:08]produce_requested_data done [14:54:08]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111696,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [14:54:08]process_action_free close_receipt [14:54:08]json_value_free [14:54:08]json_value_free done [14:54:08]process_json_proto returns [14:54:08]Send response to host [14:54:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111696,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [14:54:08]free response buf [14:54:08]execute_script done [14:54:08]execute_script returns [14:54:08]free content buf [14:54:08]Sock 9.Close socket [14:54:08]Sock 9.Thread stoped [14:54:12]OFD Sender: No OFD packet to send [14:54:17]OFD Sender: No OFD packet to send [14:54:22]OFD Sender: No OFD packet to send [14:54:27]OFD Sender: No OFD packet to send [14:54:32]OFD Sender: No OFD packet to send [14:54:37]OFD Sender: No OFD packet to send [14:54:42]OFD Sender: No OFD packet to send [14:54:47]OFD Sender: No OFD packet to send [14:54:52]OFD Sender: No OFD packet to send [14:54:57]OFD Sender: No OFD packet to send [14:55:02]OFD Sender: No OFD packet to send [14:55:07]OFD Sender: No OFD packet to send [14:55:12]OFD Sender: No OFD packet to send [14:55:17]OFD Sender: No OFD packet to send [14:55:22]OFD Sender: No OFD packet to send [14:55:27]OFD Sender: No OFD packet to send [14:55:32]OFD Sender: No OFD packet to send [14:55:37]OFD Sender: No OFD packet to send [14:55:42]OFD Sender: No OFD packet to send [14:55:47]OFD Sender: No OFD packet to send [14:55:52]OFD Sender: No OFD packet to send [14:55:57]OFD Sender: No OFD packet to send [14:56:02]OFD Sender: No OFD packet to send [14:56:07]OFD Sender: No OFD packet to send [14:56:12]OFD Sender: No OFD packet to send [14:56:17]OFD Sender: No OFD packet to send [14:56:22]OFD Sender: No OFD packet to send [14:56:27]OFD Sender: No OFD packet to send [14:56:32]OFD Sender: No OFD packet to send [14:56:37]OFD Sender: No OFD packet to send [14:56:42]OFD Sender: No OFD packet to send [14:56:47]OFD Sender: No OFD packet to send [14:56:52]OFD Sender: No OFD packet to send [14:56:57]OFD Sender: No OFD packet to send [14:57:01]accept exits with 7 [14:57:01]New connection [14:57:01]New thread 3067178340 created [14:57:01]Thread 3067321700 joined [14:57:01]Waiting for new connection... [14:57:01] Sock 7.Parse request [14:57:01]Sock 7.Check first char [14:57:01]Sock 7.First char is OK [14:57:01]request: POST /json_proto HTTP/1.0 [14:57:01]Method: POST [14:57:01]URL: /json_proto [14:57:01]Method is POST - this is cgi request [14:57:01]url: /json_proto [14:57:01]query_string will be loaded in cgi processing [14:57:01]execute_cgi json_proto POST (null) [14:57:01]execute_cgi path=json_proto method=POST [14:57:01]POST find Content-Length [14:57:01]Host: 172.17.59.68:8080 [14:57:01]Content-Length: 682 [14:57:01]Content-Type: application/json [14:57:01] [14:57:01]POST finish read [14:57:01]Found Content-Length = 682 [14:57:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:01]execute_script... [14:57: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)320315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:01]POST & json_proto [14:57:01]process_json_proto [14:57:01]json parsed OK: [14:57:01]protocol is kg_v1.0 [14:57:01]action value=close_receipt [14:57:01]process_action close_receipt [14:57:01]cmd_close_receipt [14:57:01]MH_GetDate [14:57:01]Write to MH i2c: F0 00 00 A8 02 99 [14:57:01]Write i2c OK [14:57:01]MH_I2C_Read... [14:57:01]Read from MH i2c: F0 [14:57:01]MH_I2C_Read... [14:57:01]Read from MH i2c: F0 09 00 [14:57:01]MH_I2C_Read... [14:57:01]Read from MH i2c: F0 09 00 A8 02 00 3F 43 74 66 BC EC 60 65 6B [14:57:01]GetLastDocTimeStamp 1718895246 [14:57:01]current date 1718895423 [14:57:01]FM_GetShiftState [14:57:01]SAM_PROTO_GetShiftState [14:57:01]wFMCommunicate request_size=4 [14:57:01]MH_SAM_APDU [14:57:01]CAPDU: 80 13 01 00 [14:57:01]Write to MH i2c: E2 08 00 A9 02 80 13 01 00 00 00 00 00 28 [14:57:01]Write i2c OK [14:57:01]MH_I2C_Read... [14:57:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:01]Read from MH i2c: E2 [14:57:01]MH_I2C_Read... [14:57:01]Read from MH i2c: E2 0E 00 [14:57:01]MH_I2C_Read... [14:57:01]Read from MH i2c: E2 0E 00 A9 02 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 A3 [14:57:01]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:57:01]wFMCommunicate OK [14:57:01]SAM_PROTO_GetShiftState done [14:57:01]FM_GetShiftState done [14:57:01]opened in 1718847247 [14:57:01]opened+sec_in_day 1718933647 [14:57:01]quantity*price = 100064 [14:57:01]sum+1 = 100066 [14:57:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 147 20.06.2024 14:57 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111697 ФПД: 104582583176951 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T145703&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111697&fm=104582583176951&tin=02508201610067®Number=0000000000092771&sum=100000 [14:57:02]StoreToDocumentArchive [14:57:02]shift 389 fd 111697 [14:57:02]save to /storage/0389/doc_00111697 [14:57:02]save last doc name /storage/0389/doc_00111697 to /storage/kkm_last_doc_name [14:57:02]save OK [14:57:02]Clear old archive folders... [14:57:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:57:02]tlvbuf is 0173E0C0 [14:57:02]SAM_PROTO_ClearQueue [14:57:02]wFMCommunicate request_size=4 [14:57:02]MH_SAM_APDU [14:57:02]CAPDU: 80 09 00 00 [14:57:02]Write to MH i2c: E2 08 00 B6 02 80 09 00 00 00 00 00 00 2A [14:57:02]Write i2c OK [14:57:02]MH_I2C_Read... [14:57:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:02]Read from MH i2c: E2 [14:57:02]MH_I2C_Read... [14:57:02]Read from MH i2c: E2 03 00 [14:57:02]MH_I2C_Read... [14:57:02]Read from MH i2c: E2 03 00 B6 02 00 90 00 2C [14:57:02]RAPDU: 90 00 [14:57:02]wFMCommunicate OK [14:57:02]SAM_PROTO_ClearQueue done [14:57:02]KKMCreateOFDPacket [14:57:02]OFDProtocolAddRootSTLVToBuf [14:57:02]FM_MakeSignedData [14:57:02]FM_MakeSignedData [14:57:02]SAM_PROTO_SignData [14:57:02]wFMCommunicate request_size=4 [14:57:02]MH_SAM_APDU [14:57:02]CAPDU: 80 0D 01 02 [14:57:02]Write to MH i2c: E2 08 00 B7 02 80 0D 01 02 00 00 00 00 32 [14:57:02]Write i2c OK [14:57:02]MH_I2C_Read... [14:57:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:02]Read from MH i2c: E2 [14:57:02]MH_I2C_Read... [14:57:02]Read from MH i2c: E2 03 00 [14:57:02]MH_I2C_Read... [14:57:02]Read from MH i2c: E2 03 00 B7 02 00 90 00 2D [14:57:02]RAPDU: 90 00 [14:57:02]wFMCommunicate OK [14:57:02]wFMCommunicate request_size=255 [14:57:02]MH_SAM_APDU [14:57: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 3F 43 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 51 B4 01 00 35 04 06 00 5F [14:57:02]Write to MH i2c: E2 02 01 B8 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 3F 43 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 51 B4 01 00 35 04 06 00 5F 00 00 10 [14:57:02]Write i2c OK [14:57:02]MH_I2C_Read... [14:57:02]OFD Sender: No OFD packet to send [14:57:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:03]Read from MH i2c: E2 [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: E2 03 00 [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: E2 03 00 B8 02 00 90 00 2E [14:57:03]RAPDU: 90 00 [14:57:03]wFMCommunicate OK [14:57:03]wFMCommunicate request_size=10 [14:57:03]MH_SAM_APDU [14:57:03]CAPDU: 80 0D 02 02 05 1E 07 B8 4E F7 [14:57:03]Write to MH i2c: E2 0D 00 B9 02 80 0D 02 02 05 00 1E 07 B8 4E F7 00 00 61 [14:57:03]Write i2c OK [14:57:03]MH_I2C_Read... [14:57:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:03]Read from MH i2c: E2 [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: E2 03 00 [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: E2 03 00 B9 02 00 90 00 2F [14:57:03]RAPDU: 90 00 [14:57:03]wFMCommunicate OK [14:57:03]wFMCommunicate request_size=4 [14:57:03]MH_SAM_APDU [14:57:03]CAPDU: 80 0D 03 02 [14:57:03]Write to MH i2c: E2 08 00 BA 02 80 0D 03 02 00 00 00 00 37 [14:57:03]Write i2c OK [14:57:03]MH_I2C_Read... [14:57:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:03]Read from MH i2c: E2 [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: E2 0B 00 [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: E2 0B 00 BA 02 00 DE 88 76 B7 B0 F6 AC 1C 90 00 39 [14:57:03]RAPDU: DE 88 76 B7 B0 F6 AC 1C 90 00 [14:57:03]wFMCommunicate OK [14:57:03]SAM_PROTO_SignData done [14:57:03]FM_MakeSignedData done [14:57:03]CreateOFDProtocolMessage [14:57:03]wFMCommunicate request_size=4 [14:57:03]MH_SAM_APDU [14:57:03]CAPDU: 80 11 00 00 [14:57:03]Write to MH i2c: E2 08 00 BB 02 80 11 00 00 00 00 00 00 37 [14:57:03]Write i2c OK [14:57:03]MH_I2C_Read... [14:57:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:03]Read from MH i2c: E2 [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: E2 17 00 [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: E2 17 00 BB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 89 [14:57:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:57:03]wFMCommunicate OK [14:57:03]CreateOFDProtocolMessage done [14:57:03]OFDSenderStorePacket 111697 [14:57:03]StoreOFDPacket docnum=111697 [14:57:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 76 A3 07 01 94 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 3F 43 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 51 B4 01 00 35 04 06 00 5F 1E 07 B8 4E F7 DE 88 76 B7 B0 F6 AC 1C [14:57:03]CheckFolder [14:57:03]dirname=/storage/ofd_packets [14:57:03]CheckFolder done [14:57:03]ProducePacketName [14:57:03]name=ofd_packets/00111697 [14:57:03]NVStorageSaveData ofd_packets/00111697 [14:57:03]File name is /storage/ofd_packets/00111697 [14:57:03]Write 301 bytes [14:57:03]NVStorageSaveData done [14:57:03]OFDSenderStorePacket done [14:57:03]KKMCreateOFDPacket done [14:57:03]NVStorageSaveData kkm_last_timestamp [14:57:03]File name is /storage/kkm_last_timestamp [14:57:03]Write 4 bytes [14:57:03]NVStorageSaveData done [14:57:03]ExternCall_PrintAddStr [14:57:03]wPrintStart [14:57:03]Write to MH i2c: 01 00 00 BC 02 BE [14:57:03]Write i2c OK [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: 01 [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: 01 07 00 [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: 01 07 00 BC 02 00 00 00 00 00 FF 0F D3 [14:57:03]RasterBufferAndPrint [14:57:03]line Счет N : (1)320315 [14:57:03]line ИНН: 02508201610067 [14:57:03]line Контрольно-Кассовый Чек [14:57:03]line ПРОДАЖА [14:57:03]line ТРК (МРК, ГНК) : 11 [14:57:03]line Товар: 2710124130 [14:57:03]line Аи-92-К-5 [14:57:03]line 15.070 * 66.40 [14:57:03]line = 1000.65 [14:57:03]line НДС 12% НСП 1% [14:57:03]line > о реализуемом товаре [14:57:03]line ОКРУГЛЕНИЕ: -0.65 [14:57:03]line ИТОГО: 1000.00 [14:57:03]line Внесено: 1000.00 [14:57:03]line СДАЧА: 0.00 [14:57:03]line НСП 1% : 8.85 [14:57:03]line НДС 12% : 106.26 [14:57:03]line Наличными: 1000.00 [14:57:03]line Безнал.: 0.00 [14:57:03]line Место: АЗС № 65 "Партнер Нефть" [14:57:03]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:57:03]line СНО: Общий режим [14:57:03]line Чек 147 20.06.2024 14:57 [14:57:03]line Смена: 389 ФФД: 1.0 [14:57:03]line ЗНМ: 0300000198 [14:57:03]line РНМ: 0000000000092771 [14:57:03]line Версия ККМ: 001 [14:57:03]line ФМ: 0000000000875083 [14:57:03]line ФД: 111697 [14:57:03]line ФПД: 104582583176951 [14:57:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T145703&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111697&fm=104582583176951&tin=02508201610067®Number=0000000000092771&sum=100000 [14:57:03]OFD Sender: Processing packet 111697 [packets to send 38, broken 37] [14:57:03]ProducePacketName [14:57:03]name=ofd_packets/00111697 [14:57:03]OFD Sender: To server: pG, [14:57:03]CommunicateWithHost lk.salyk.kg:30040 [14:57:03]ConnectInit lk.salyk.kg [14:57:03]written 0, free lines is 4095 [14:57:03]Connected sock=10 [14:57:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 76 A3 07 01 94 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 3F 43 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 51 B4 01 00 35 04 06 00 5F 1E 07 B8 4E F7 DE 88 76 B7 B0 F6 AC 1C [14:57:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3F 89 47 00 ED 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 51 B4 01 00 F4 03 04 00 86 DA 73 66 B6 04 01 00 00 BF 25 F9 02 87 8B 6F 00 [14:57:03]CommunicateWithHost err = 0 [14:57:03]CheckOFDResponse [14:57:03]1017 (14) - 77093643461234 [14:57:03]1041 (16) - 0000000000875083 [14:57:03]1040 (4) - 111697 [14:57:03]1012 (4) - 20.06.2024 07:30 [14:57:03]1206 (1) - 0 [14:57:03]OFD Sender: Remove packet 111697 [14:57:03]ProducePacketName [14:57:03]name=ofd_packets/00111697 [14:57:03]NVStorageDeleteData [14:57:03]Write to MH i2c: 01 00 00 E7 02 E9 [14:57:03]Write i2c OK [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: 01 [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: 01 07 00 [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: 01 07 00 E7 02 00 00 00 00 00 E2 0C DE [14:57:03]RasterBufferAndPrint [14:57:03]line [14:57:03]line [14:57:03]line [14:57:03]line [14:57:03]line [14:57:03]written 0, free lines is 3304 [14:57:03]MH_Cut [14:57:03]Write to MH i2c: D1 01 00 EE 02 01 C2 [14:57:03]Write i2c OK [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: D1 [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: D1 01 00 [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: D1 01 00 EE 02 00 C1 [14:57:03]Write to MH i2c: 01 00 00 EF 02 F1 [14:57:03]Write i2c OK [14:57:03]MH_I2C_Read... [14:57:04]OFD Sender: No OFD packet to send [14:57:04]*** Cut start [14:57:04]*** Partial cut [14:57:04]*** CUTSNS_PIN = 1 [14:57:04]*** CUTSNS_PIN = 0 [14:57:04]*** Brake cut motor [14:57:05]Read from MH i2c: 01 [14:57:05]MH_I2C_Read... [14:57:05]*** Stop cut motor [14:57:05]*** Cut end [14:57:05]Read from MH i2c: 01 07 00 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: 01 07 00 EF 02 00 00 00 00 00 FF 0F 06 [14:57:05]process_action close_receipt done [14:57:05]requested_data is exist [14:57:05]produce_requested_data [14:57:05]requested_item fm.sn is exist - process it [14:57:05]wFMCommunicate request_size=4 [14:57:05]MH_SAM_APDU [14:57:05]CAPDU: 80 11 00 00 [14:57:05]Write to MH i2c: E2 08 00 F0 02 80 11 00 00 00 00 00 00 6C [14:57:05]Write i2c OK [14:57:05]MH_I2C_Read... [14:57:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:05]Read from MH i2c: E2 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: E2 17 00 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: E2 17 00 F0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BE [14:57:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:57:05]wFMCommunicate OK [14:57:05]requested_item fd.num is exist - process it [14:57:05]SAM_PROTO_GetFieldsCounters [14:57:05]wFMCommunicate request_size=4 [14:57:05]MH_SAM_APDU [14:57:05]CAPDU: 80 13 00 00 [14:57:05]Write to MH i2c: E2 08 00 F1 02 80 13 00 00 00 00 00 00 6F [14:57:05]Write i2c OK [14:57:05]MH_I2C_Read... [14:57:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:05]Read from MH i2c: E2 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: E2 62 00 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: E2 62 00 F1 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 51 B4 01 00 0E 04 04 00 85 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 D5 [14:57:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 51 B4 01 00 0E 04 04 00 85 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 [14:57:05]wFMCommunicate OK [14:57:05]SAM_PROTO_GetFieldsCounters done [14:57:05]requested_item shift.num is exist - process it [14:57:05]requested_item shift.opened is exist - process it [14:57:05]req_shift_opened [14:57:05]FM_GetShiftState [14:57:05]SAM_PROTO_GetShiftState [14:57:05]wFMCommunicate request_size=4 [14:57:05]MH_SAM_APDU [14:57:05]CAPDU: 80 13 01 00 [14:57:05]Write to MH i2c: E2 08 00 F2 02 80 13 01 00 00 00 00 00 71 [14:57:05]Write i2c OK [14:57:05]MH_I2C_Read... [14:57:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:05]Read from MH i2c: E2 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: E2 0E 00 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: E2 0E 00 F2 02 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 EC [14:57:05]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [14:57:05]wFMCommunicate OK [14:57:05]SAM_PROTO_GetShiftState done [14:57:05]FM_GetShiftState done [14:57:05]req_shift_opened done [14:57:05]requested_item shift.open_date is exist - process it [14:57:05]req_shift_open_date [14:57:05]req_shift_open_date done [14:57:05]produce_requested_data done [14:57:05]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111697,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [14:57:05]process_action_free close_receipt [14:57:05]json_value_free [14:57:05]json_value_free done [14:57:05]process_json_proto returns [14:57:05]Send response to host [14:57:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111697,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [14:57:05]free response buf [14:57:05]execute_script done [14:57:05]execute_script returns [14:57:05]free content buf [14:57:05]Sock 7.Close socket [14:57:05]Sock 7.Thread stoped [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:54]OFD Sender: No OFD packet to send [14:59:59]OFD Sender: No OFD packet to send [15:00:04]OFD Sender: No OFD packet to send [15:00:09]OFD Sender: No OFD packet to send [15:00:14]OFD Sender: No OFD packet to send [15:00:18]accept exits with 9 [15:00:18]New connection [15:00:18]New thread 3067321700 created [15:00:18]Thread 3067178340 joined [15:00:18]Waiting for new connection... [15:00:18] Sock 9.Parse request [15:00:18]Sock 9.Check first char [15:00:18]Sock 9.First char is OK [15:00:18]request: POST /json_proto HTTP/1.0 [15:00:18]Method: POST [15:00:18]URL: /json_proto [15:00:18]Method is POST - this is cgi request [15:00:18]url: /json_proto [15:00:18]query_string will be loaded in cgi processing [15:00:18]execute_cgi json_proto POST (null) [15:00:18]execute_cgi path=json_proto method=POST [15:00:18]POST find Content-Length [15:00:18]Host: 172.17.59.68:8080 [15:00:18]Content-Length: 674 [15:00:18]Content-Type: application/json [15:00:18] [15:00:18]POST finish read [15:00:18]Found Content-Length = 674 [15:00:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 4.120, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:18]execute_script... [15:00: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)320316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 4.120, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:18]POST & json_proto [15:00:18]process_json_proto [15:00:18]json parsed OK: [15:00:18]protocol is kg_v1.0 [15:00:18]action value=close_receipt [15:00:18]process_action close_receipt [15:00:18]cmd_close_receipt [15:00:18]MH_GetDate [15:00:18]Write to MH i2c: F0 00 00 F3 02 E4 [15:00:18]Write i2c OK [15:00:18]MH_I2C_Read... [15:00:18]Read from MH i2c: F0 [15:00:18]MH_I2C_Read... [15:00:18]Read from MH i2c: F0 09 00 [15:00:18]MH_I2C_Read... [15:00:18]Read from MH i2c: F0 09 00 F3 02 00 04 44 74 66 BC EC 60 65 7C [15:00:18]GetLastDocTimeStamp 1718895423 [15:00:18]current date 1718895620 [15:00:18]FM_GetShiftState [15:00:18]SAM_PROTO_GetShiftState [15:00:18]wFMCommunicate request_size=4 [15:00:18]MH_SAM_APDU [15:00:18]CAPDU: 80 13 01 00 [15:00:18]Write to MH i2c: E2 08 00 F4 02 80 13 01 00 00 00 00 00 73 [15:00:18]Write i2c OK [15:00:18]MH_I2C_Read... [15:00:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:18]Read from MH i2c: E2 [15:00:18]MH_I2C_Read... [15:00:18]Read from MH i2c: E2 0E 00 [15:00:18]MH_I2C_Read... [15:00:18]Read from MH i2c: E2 0E 00 F4 02 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 EE [15:00:18]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:00:18]wFMCommunicate OK [15:00:18]SAM_PROTO_GetShiftState done [15:00:18]FM_GetShiftState done [15:00:18]opened in 1718847247 [15:00:18]opened+sec_in_day 1718933647 [15:00:18]quantity*price = 30034 [15:00:18]sum+1 = 30036 [15:00:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 148 20.06.2024 15:00 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111698 ФПД: 84092520247851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T150020&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111698&fm=84092520247851&tin=02508201610067®Number=0000000000092771&sum=30000 [15:00:20]StoreToDocumentArchive [15:00:20]shift 389 fd 111698 [15:00:20]save to /storage/0389/doc_00111698 [15:00:20]save last doc name /storage/0389/doc_00111698 to /storage/kkm_last_doc_name [15:00:20]save OK [15:00:20]Clear old archive folders... [15:00:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:00:20]tlvbuf is 017410D0 [15:00:20]SAM_PROTO_ClearQueue [15:00:20]wFMCommunicate request_size=4 [15:00:20]MH_SAM_APDU [15:00:20]CAPDU: 80 09 00 00 [15:00:20]Write to MH i2c: E2 08 00 01 03 80 09 00 00 00 00 00 00 76 [15:00:20]Write i2c OK [15:00:20]MH_I2C_Read... [15:00:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:00:20]Read from MH i2c: E2 [15:00:20]MH_I2C_Read... [15:00:20]Read from MH i2c: E2 03 00 [15:00:20]MH_I2C_Read... [15:00:20]Read from MH i2c: E2 03 00 01 03 00 90 00 78 [15:00:20]RAPDU: 90 00 [15:00:20]wFMCommunicate OK [15:00:20]SAM_PROTO_ClearQueue done [15:00:20]KKMCreateOFDPacket [15:00:20]OFDProtocolAddRootSTLVToBuf [15:00:20]FM_MakeSignedData [15:00:20]FM_MakeSignedData [15:00:20]SAM_PROTO_SignData [15:00:20]wFMCommunicate request_size=4 [15:00:20]MH_SAM_APDU [15:00:20]CAPDU: 80 0D 01 02 [15:00:20]Write to MH i2c: E2 08 00 02 03 80 0D 01 02 00 00 00 00 7E [15:00:20]Write i2c OK [15:00:20]MH_I2C_Read... [15:00:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:00:20]Read from MH i2c: E2 [15:00:20]MH_I2C_Read... [15:00:20]Read from MH i2c: E2 03 00 [15:00:20]MH_I2C_Read... [15:00:20]Read from MH i2c: E2 03 00 02 03 00 90 00 79 [15:00:20]RAPDU: 90 00 [15:00:20]wFMCommunicate OK [15:00:20]wFMCommunicate request_size=255 [15:00:20]MH_SAM_APDU [15:00:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 04 44 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 52 B4 01 00 35 04 06 00 4C 7B 50 CC [15:00:20]Write to MH i2c: E2 02 01 03 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 04 44 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 52 B4 01 00 35 04 06 00 4C 7B 50 CC 00 00 5E [15:00:20]Write i2c OK [15:00:20]MH_I2C_Read... [15:00:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:20]Read from MH i2c: E2 [15:00:20]MH_I2C_Read... [15:00:20]Read from MH i2c: E2 03 00 [15:00:20]MH_I2C_Read... [15:00:20]Read from MH i2c: E2 03 00 03 03 00 90 00 7A [15:00:20]RAPDU: 90 00 [15:00:20]wFMCommunicate OK [15:00:20]wFMCommunicate request_size=7 [15:00:20]MH_SAM_APDU [15:00:20]CAPDU: 80 0D 02 02 02 32 2B [15:00:20]Write to MH i2c: E2 0A 00 04 03 80 0D 02 02 02 00 32 2B 00 00 E2 [15:00:20]Write i2c OK [15:00:20]MH_I2C_Read... [15:00:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:20]Read from MH i2c: E2 [15:00:20]MH_I2C_Read... [15:00:20]Read from MH i2c: E2 03 00 [15:00:20]MH_I2C_Read... [15:00:20]Read from MH i2c: E2 03 00 04 03 00 90 00 7B [15:00:20]RAPDU: 90 00 [15:00:20]wFMCommunicate OK [15:00:20]wFMCommunicate request_size=4 [15:00:20]MH_SAM_APDU [15:00:20]CAPDU: 80 0D 03 02 [15:00:20]Write to MH i2c: E2 08 00 05 03 80 0D 03 02 00 00 00 00 83 [15:00:20]Write i2c OK [15:00:20]MH_I2C_Read... [15:00:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:00:20]Read from MH i2c: E2 [15:00:20]MH_I2C_Read... [15:00:20]Read from MH i2c: E2 0B 00 [15:00:20]MH_I2C_Read... [15:00:20]Read from MH i2c: E2 0B 00 05 03 00 91 53 47 32 2B B6 56 B7 90 00 CF [15:00:20]RAPDU: 91 53 47 32 2B B6 56 B7 90 00 [15:00:20]wFMCommunicate OK [15:00:20]SAM_PROTO_SignData done [15:00:20]FM_MakeSignedData done [15:00:20]CreateOFDProtocolMessage [15:00:20]wFMCommunicate request_size=4 [15:00:20]MH_SAM_APDU [15:00:20]CAPDU: 80 11 00 00 [15:00:20]Write to MH i2c: E2 08 00 06 03 80 11 00 00 00 00 00 00 83 [15:00:20]Write i2c OK [15:00:20]MH_I2C_Read... [15:00:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:20]Read from MH i2c: E2 [15:00:20]MH_I2C_Read... [15:00:20]Read from MH i2c: E2 17 00 [15:00:20]MH_I2C_Read... [15:00:20]Read from MH i2c: E2 17 00 06 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D5 [15:00:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:00:20]wFMCommunicate OK [15:00:20]CreateOFDProtocolMessage done [15:00:20]OFDSenderStorePacket 111698 [15:00:20]StoreOFDPacket docnum=111698 [15:00:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 1C 3C 04 01 9F ED 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 04 44 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 52 B4 01 00 35 04 06 00 4C 7B 50 CC 32 2B 91 53 47 32 2B B6 56 B7 [15:00:20]CheckFolder [15:00:20]dirname=/storage/ofd_packets [15:00:20]CheckFolder done [15:00:20]ProducePacketName [15:00:20]name=ofd_packets/00111698 [15:00:20]NVStorageSaveData ofd_packets/00111698 [15:00:20]File name is /storage/ofd_packets/00111698 [15:00:20]Write 298 bytes [15:00:20]NVStorageSaveData done [15:00:20]OFDSenderStorePacket done [15:00:20]KKMCreateOFDPacket done [15:00:20]NVStorageSaveData kkm_last_timestamp [15:00:20]File name is /storage/kkm_last_timestamp [15:00:20]Write 4 bytes [15:00:20]NVStorageSaveData done [15:00:20]ExternCall_PrintAddStr [15:00:20]wPrintStart [15:00:20]Write to MH i2c: 01 00 00 07 03 0A [15:00:20]Write i2c OK [15:00:20]MH_I2C_Read... [15:00:20]Read from MH i2c: 01 [15:00:20]MH_I2C_Read... [15:00:20]Read from MH i2c: 01 07 00 [15:00:20]MH_I2C_Read... [15:00:20]Read from MH i2c: 01 07 00 07 03 00 00 00 00 00 FF 0F 1F [15:00:20]RasterBufferAndPrint [15:00:20]line Счет N : (1)320316 [15:00:20]line ИНН: 02508201610067 [15:00:20]line Контрольно-Кассовый Чек [15:00:20]line ПРОДАЖА [15:00:20]line ТРК (МРК, ГНК) : 22 [15:00:20]line Товар: 2710194210 [15:00:20]line ДТ-К-5 [15:00:20]line 4.120 * 72.90 [15:00:20]line = 300.35 [15:00:20]line НДС 12% НСП 1% [15:00:20]line > о реализуемом товаре [15:00:20]line ОКРУГЛЕНИЕ: -0.35 [15:00:20]line ИТОГО: 300.00 [15:00:20]line Внесено: 300.00 [15:00:20]line СДАЧА: 0.00 [15:00:20]line НСП 1% : 2.66 [15:00:20]line НДС 12% : 31.90 [15:00:20]line Наличными: 300.00 [15:00:20]line Безнал.: 0.00 [15:00:20]line Место: АЗС № 65 "Партнер Нефть" [15:00:20]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:00:20]line СНО: Общий режим [15:00:20]line Чек 148 20.06.2024 15:00 [15:00:20]line Смена: 389 ФФД: 1.0 [15:00:20]line ЗНМ: 0300000198 [15:00:20]line РНМ: 0000000000092771 [15:00:20]line Версия ККМ: 001 [15:00:20]line ФМ: 0000000000875083 [15:00:20]line ФД: 111698 [15:00:20]line ФПД: 84092520247851 [15:00:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T150020&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111698&fm=84092520247851&tin=02508201610067®Number=0000000000092771&sum=30000 [15:00:20]OFD Sender: Processing packet 111698 [packets to send 38, broken 37] [15:00:20]ProducePacketName [15:00:20]name=ofd_packets/00111698 [15:00:20]OFD Sender: To server: pG, [15:00:20]CommunicateWithHost lk.salyk.kg:30040 [15:00:20]ConnectInit lk.salyk.kg [15:00:20]written 0, free lines is 4095 [15:00:20]Connected sock=7 [15:00:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 1C 3C 04 01 9F ED 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 04 44 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 52 B4 01 00 35 04 06 00 4C 7B 50 CC 32 2B 91 53 47 32 2B B6 56 B7 [15:00:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 24 85 47 00 DE 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 35 30 38 33 10 04 04 00 52 B4 01 00 F4 03 04 00 4B DB 73 66 B6 04 01 00 00 C9 D7 CB 4E 48 63 97 B7 [15:00:21]CommunicateWithHost err = 0 [15:00:21]CheckOFDResponse [15:00:21]1017 (14) - 77093643461234 [15:00:21]1041 (16) - 0000000000875083 [15:00:21]1040 (4) - 111698 [15:00:21]1012 (4) - 20.06.2024 07:33 [15:00:21]1206 (1) - 0 [15:00:21]OFD Sender: Remove packet 111698 [15:00:21]ProducePacketName [15:00:21]name=ofd_packets/00111698 [15:00:21]NVStorageDeleteData [15:00:21]Write to MH i2c: 01 00 00 32 03 35 [15:00:21]Write i2c OK [15:00:21]MH_I2C_Read... [15:00:21]Read from MH i2c: 01 [15:00:21]MH_I2C_Read... [15:00:21]Read from MH i2c: 01 07 00 [15:00:21]MH_I2C_Read... [15:00:21]Read from MH i2c: 01 07 00 32 03 00 00 00 00 00 E0 0C 28 [15:00:21]RasterBufferAndPrint [15:00:21]line [15:00:21]line [15:00:21]line [15:00:21]line [15:00:21]line [15:00:21]written 0, free lines is 3302 [15:00:21]MH_Cut [15:00:21]Write to MH i2c: D1 01 00 39 03 01 0E [15:00:21]Write i2c OK [15:00:21]MH_I2C_Read... [15:00:21]Read from MH i2c: D1 [15:00:21]MH_I2C_Read... [15:00:21]Read from MH i2c: D1 01 00 [15:00:21]MH_I2C_Read... [15:00:21]Read from MH i2c: D1 01 00 39 03 00 0D [15:00:21]Write to MH i2c: 01 00 00 3A 03 3D [15:00:21]Write i2c OK [15:00:21]MH_I2C_Read... [15:00:21]OFD Sender: No OFD packet to send [15:00:22]*** Cut start [15:00:22]*** Partial cut [15:00:22]*** CUTSNS_PIN = 1 [15:00:22]*** CUTSNS_PIN = 0 [15:00:22]*** Brake cut motor [15:00:22]Read from MH i2c: 01 [15:00:22]MH_I2C_Read... [15:00:22]*** Stop cut motor [15:00:22]*** Cut end [15:00:22]Read from MH i2c: 01 07 00 [15:00:22]MH_I2C_Read... [15:00:22]Read from MH i2c: 01 07 00 3A 03 00 00 00 00 00 FF 0F 52 [15:00:22]process_action close_receipt done [15:00:22]requested_data is exist [15:00:22]produce_requested_data [15:00:22]requested_item fm.sn is exist - process it [15:00:22]wFMCommunicate request_size=4 [15:00:22]MH_SAM_APDU [15:00:22]CAPDU: 80 11 00 00 [15:00:22]Write to MH i2c: E2 08 00 3B 03 80 11 00 00 00 00 00 00 B8 [15:00:22]Write i2c OK [15:00:22]MH_I2C_Read... [15:00:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:22]Read from MH i2c: E2 [15:00:22]MH_I2C_Read... [15:00:22]Read from MH i2c: E2 17 00 [15:00:22]MH_I2C_Read... [15:00:22]Read from MH i2c: E2 17 00 3B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0A [15:00:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:00:22]wFMCommunicate OK [15:00:22]requested_item fd.num is exist - process it [15:00:22]SAM_PROTO_GetFieldsCounters [15:00:22]wFMCommunicate request_size=4 [15:00:22]MH_SAM_APDU [15:00:22]CAPDU: 80 13 00 00 [15:00:22]Write to MH i2c: E2 08 00 3C 03 80 13 00 00 00 00 00 00 BB [15:00:22]Write i2c OK [15:00:22]MH_I2C_Read... [15:00:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:00:22]Read from MH i2c: E2 [15:00:22]MH_I2C_Read... [15:00:22]Read from MH i2c: E2 62 00 [15:00:22]MH_I2C_Read... [15:00:22]Read from MH i2c: E2 62 00 3C 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 52 B4 01 00 0E 04 04 00 85 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 25 [15:00:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 52 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:00:22]wFMCommunicate OK [15:00:22]SAM_PROTO_GetFieldsCounters done [15:00:22]requested_item shift.num is exist - process it [15:00:22]requested_item shift.opened is exist - process it [15:00:22]req_shift_opened [15:00:22]FM_GetShiftState [15:00:22]SAM_PROTO_GetShiftState [15:00:22]wFMCommunicate request_size=4 [15:00:22]MH_SAM_APDU [15:00:22]CAPDU: 80 13 01 00 [15:00:22]Write to MH i2c: E2 08 00 3D 03 80 13 01 00 00 00 00 00 BD [15:00:22]Write i2c OK [15:00:22]MH_I2C_Read... [15:00:22]Read from MH i2c: E2 [15:00:22]MH_I2C_Read... [15:00:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:22]Read from MH i2c: E2 0E 00 [15:00:22]MH_I2C_Read... [15:00:22]Read from MH i2c: E2 0E 00 3D 03 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 38 [15:00:22]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:00:22]wFMCommunicate OK [15:00:22]SAM_PROTO_GetShiftState done [15:00:22]FM_GetShiftState done [15:00:22]req_shift_opened done [15:00:22]requested_item shift.open_date is exist - process it [15:00:22]req_shift_open_date [15:00:22]req_shift_open_date done [15:00:22]produce_requested_data done [15:00:22]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111698,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [15:00:22]process_action_free close_receipt [15:00:22]json_value_free [15:00:22]json_value_free done [15:00:22]process_json_proto returns [15:00:22]Send response to host [15:00:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111698,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [15:00:22]free response buf [15:00:22]execute_script done [15:00:22]execute_script returns [15:00:22]free content buf [15:00:22]Sock 9.Close socket [15:00:22]Sock 9.Thread stoped [15:00:26]OFD Sender: No OFD packet to send [15:00:31]OFD Sender: No OFD packet to send [15:00:36]OFD Sender: No OFD packet to send [15:00:41]OFD Sender: No OFD packet to send [15:00:46]OFD Sender: No OFD packet to send [15:00:51]OFD Sender: No OFD packet to send [15:00:56]OFD Sender: No OFD packet to send [15:01:01]OFD Sender: No OFD packet to send [15:01:06]OFD Sender: No OFD packet to send [15:01:11]OFD Sender: No OFD packet to send [15:01:16]OFD Sender: No OFD packet to send [15:01:21]OFD Sender: No OFD packet to send [15:01:26]OFD Sender: No OFD packet to send [15:01:31]OFD Sender: No OFD packet to send [15:01:36]OFD Sender: No OFD packet to send [15:01:41]OFD Sender: No OFD packet to send [15:01:46]OFD Sender: No OFD packet to send [15:01:51]accept exits with 10 [15:01:51]New connection [15:01:51]New thread 3067178340 created [15:01:51]Thread 3067321700 joined [15:01:51]Waiting for new connection... [15:01:51] Sock 10.Parse request [15:01:51]Sock 10.Check first char [15:01:51]Sock 10.First char is OK [15:01:51]request: POST /json_proto HTTP/1.0 [15:01:51]Method: POST [15:01:51]URL: /json_proto [15:01:51]Method is POST - this is cgi request [15:01:51]url: /json_proto [15:01:51]query_string will be loaded in cgi processing [15:01:51]execute_cgi json_proto POST (null) [15:01:51]execute_cgi path=json_proto method=POST [15:01:51]POST find Content-Length [15:01:51]Host: 172.17.59.68:8080 [15:01:51]Content-Length: 805 [15:01:51]Content-Type: application/json [15:01:51] [15:01:51]POST finish read [15:01:51]Found Content-Length = 805 [15:01:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:51]execute_script... [15:01: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)320317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:51]POST & json_proto [15:01:51]process_json_proto [15:01:51]json parsed OK: [15:01:51]protocol is kg_v1.0 [15:01:51]action value=close_receipt [15:01:51]process_action close_receipt [15:01:51]cmd_close_receipt [15:01:51]MH_GetDate [15:01:51]Write to MH i2c: F0 00 00 3E 03 30 [15:01:51]Write i2c OK [15:01:51]MH_I2C_Read... [15:01:51]Read from MH i2c: F0 [15:01:51]MH_I2C_Read... [15:01:51]Read from MH i2c: F0 09 00 [15:01:51]MH_I2C_Read... [15:01:51]Read from MH i2c: F0 09 00 3E 03 00 61 44 74 66 BC EC 60 65 25 [15:01:51]GetLastDocTimeStamp 1718895620 [15:01:51]current date 1718895713 [15:01:51]FM_GetShiftState [15:01:51]SAM_PROTO_GetShiftState [15:01:51]wFMCommunicate request_size=4 [15:01:51]MH_SAM_APDU [15:01:51]CAPDU: 80 13 01 00 [15:01:51]Write to MH i2c: E2 08 00 3F 03 80 13 01 00 00 00 00 00 BF [15:01:51]Write i2c OK [15:01:51]MH_I2C_Read... [15:01:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:51]Read from MH i2c: E2 [15:01:51]MH_I2C_Read... [15:01:51]Read from MH i2c: E2 0E 00 [15:01:51]MH_I2C_Read... [15:01:51]Read from MH i2c: E2 0E 00 3F 03 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 3A [15:01:51]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:01:51]wFMCommunicate OK [15:01:51]SAM_PROTO_GetShiftState done [15:01:51]FM_GetShiftState done [15:01:51]opened in 1718847247 [15:01:51]opened+sec_in_day 1718933647 [15:01:51]quantity*price = 30012 [15:01:51]sum+1 = 30014 [15:01:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.13 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 0.00 Безнал.: 300.13 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 149 20.06.2024 15:01 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111699 ФПД: 198198273020523 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T150153&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111699&fm=198198273020523&tin=02508201610067®Number=0000000000092771&sum=30013 [15:01:52]StoreToDocumentArchive [15:01:52]shift 389 fd 111699 [15:01:52]save to /storage/0389/doc_00111699 [15:01:52]save last doc name /storage/0389/doc_00111699 to /storage/kkm_last_doc_name [15:01:52]save OK [15:01:52]Clear old archive folders... [15:01:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:01:52]tlvbuf is 0173FBE0 [15:01:52]SAM_PROTO_ClearQueue [15:01:52]wFMCommunicate request_size=4 [15:01:52]MH_SAM_APDU [15:01:52]CAPDU: 80 09 00 00 [15:01:52]Write to MH i2c: E2 08 00 4C 03 80 09 00 00 00 00 00 00 C1 [15:01:52]Write i2c OK [15:01:52]MH_I2C_Read... [15:01:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:01:52]Read from MH i2c: E2 [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: E2 03 00 [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: E2 03 00 4C 03 00 90 00 C3 [15:01:52]RAPDU: 90 00 [15:01:52]wFMCommunicate OK [15:01:52]SAM_PROTO_ClearQueue done [15:01:52]KKMCreateOFDPacket [15:01:52]OFDProtocolAddRootSTLVToBuf [15:01:52]FM_MakeSignedData [15:01:52]FM_MakeSignedData [15:01:52]SAM_PROTO_SignData [15:01:52]wFMCommunicate request_size=4 [15:01:52]MH_SAM_APDU [15:01:52]CAPDU: 80 0D 01 02 [15:01:52]Write to MH i2c: E2 08 00 4D 03 80 0D 01 02 00 00 00 00 C9 [15:01:52]Write i2c OK [15:01:52]MH_I2C_Read... [15:01:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:01:52]Read from MH i2c: E2 [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: E2 03 00 [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: E2 03 00 4D 03 00 90 00 C4 [15:01:52]RAPDU: 90 00 [15:01:52]wFMCommunicate OK [15:01:52]wFMCommunicate request_size=255 [15:01:52]MH_SAM_APDU [15:01: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 61 44 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 53 B4 01 00 35 04 06 00 B4 [15:01:52]Write to MH i2c: E2 02 01 4E 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 61 44 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 53 B4 01 00 35 04 06 00 B4 00 00 8B [15:01:52]Write i2c OK [15:01:52]MH_I2C_Read... [15:01:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:53]Read from MH i2c: E2 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 03 00 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 03 00 4E 03 00 90 00 C5 [15:01:53]RAPDU: 90 00 [15:01:53]wFMCommunicate OK [15:01:53]wFMCommunicate request_size=10 [15:01:53]MH_SAM_APDU [15:01:53]CAPDU: 80 0D 02 02 05 42 A1 A8 92 6B [15:01:53]Write to MH i2c: E2 0D 00 4F 03 80 0D 02 02 05 00 42 A1 A8 92 6B 00 00 5E [15:01:53]Write i2c OK [15:01:53]MH_I2C_Read... [15:01:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:53]Read from MH i2c: E2 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 03 00 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 03 00 4F 03 00 90 00 C6 [15:01:53]RAPDU: 90 00 [15:01:53]wFMCommunicate OK [15:01:53]wFMCommunicate request_size=4 [15:01:53]MH_SAM_APDU [15:01:53]CAPDU: 80 0D 03 02 [15:01:53]Write to MH i2c: E2 08 00 50 03 80 0D 03 02 00 00 00 00 CE [15:01:53]Write i2c OK [15:01:53]MH_I2C_Read... [15:01:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:01:53]Read from MH i2c: E2 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 0B 00 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 0B 00 50 03 00 C9 BE 71 74 63 36 AF B5 90 00 38 [15:01:53]RAPDU: C9 BE 71 74 63 36 AF B5 90 00 [15:01:53]wFMCommunicate OK [15:01:53]SAM_PROTO_SignData done [15:01:53]FM_MakeSignedData done [15:01:53]CreateOFDProtocolMessage [15:01:53]wFMCommunicate request_size=4 [15:01:53]MH_SAM_APDU [15:01:53]CAPDU: 80 11 00 00 [15:01:53]Write to MH i2c: E2 08 00 51 03 80 11 00 00 00 00 00 00 CE [15:01:53]Write i2c OK [15:01:53]MH_I2C_Read... [15:01:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:53]Read from MH i2c: E2 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 17 00 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 17 00 51 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 20 [15:01:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:01:53]wFMCommunicate OK [15:01:53]CreateOFDProtocolMessage done [15:01:53]OFDSenderStorePacket 111699 [15:01:53]StoreOFDPacket docnum=111699 [15:01:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 58 77 07 01 91 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 61 44 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 53 B4 01 00 35 04 06 00 B4 42 A1 A8 92 6B C9 BE 71 74 63 36 AF B5 [15:01:53]CheckFolder [15:01:53]dirname=/storage/ofd_packets [15:01:53]CheckFolder done [15:01:53]ProducePacketName [15:01:53]name=ofd_packets/00111699 [15:01:53]NVStorageSaveData ofd_packets/00111699 [15:01:53]File name is /storage/ofd_packets/00111699 [15:01:53]Write 301 bytes [15:01:53]NVStorageSaveData done [15:01:53]OFDSenderStorePacket done [15:01:53]KKMCreateOFDPacket done [15:01:53]NVStorageSaveData kkm_last_timestamp [15:01:53]File name is /storage/kkm_last_timestamp [15:01:53]Write 4 bytes [15:01:53]NVStorageSaveData done [15:01:53]ExternCall_PrintAddStr [15:01:53]wPrintStart [15:01:53]Write to MH i2c: 01 00 00 52 03 55 [15:01:53]Write i2c OK [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: 01 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: 01 07 00 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: 01 07 00 52 03 00 00 00 00 00 FF 0F 6A [15:01:53]RasterBufferAndPrint [15:01:53]line Счет N : (1)320317 [15:01:53]line ИНН: 02508201610067 [15:01:53]line Контрольно-Кассовый Чек [15:01:53]line ПРОДАЖА [15:01:53]line ТРК (МРК, ГНК) : 11 [15:01:53]line Товар: 2710124130 [15:01:53]line Аи-92-К-5 [15:01:53]line 4.520 * 66.40 [15:01:53]line = 300.13 [15:01:53]line НДС 12% НСП 1% [15:01:53]line > о реализуемом товаре [15:01:53]line ИТОГО: 300.13 [15:01:53]line НСП 1% : 2.66 [15:01:53]line НДС 12% : 31.87 [15:01:53]line Наличными: 0.00 [15:01:53]line Безнал.: 300.13 [15:01:53]line Место: АЗС № 65 "Партнер Нефть" [15:01:53]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:01:53]line СНО: Общий режим [15:01:53]line Чек 149 20.06.2024 15:01 [15:01:53]line Смена: 389 ФФД: 1.0 [15:01:53]line ЗНМ: 0300000198 [15:01:53]line РНМ: 0000000000092771 [15:01:53]line Версия ККМ: 001 [15:01:53]line Платежная система: О! деньги [15:01:53]line ФМ: 0000000000875083 [15:01:53]line ФД: 111699 [15:01:53]line ФПД: 198198273020523 [15:01:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T150153&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111699&fm=198198273020523&tin=02508201610067®Number=0000000000092771&sum=30013 [15:01:53]written 0, free lines is 4095 [15:01:53]OFD Sender: Processing packet 111699 [packets to send 38, broken 37] [15:01:53]ProducePacketName [15:01:53]name=ofd_packets/00111699 [15:01:53]OFD Sender: To server: pG, [15:01:53]CommunicateWithHost lk.salyk.kg:30040 [15:01:53]ConnectInit lk.salyk.kg [15:01:53]Connected sock=11 [15:01:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 58 77 07 01 91 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 61 44 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 53 B4 01 00 35 04 06 00 B4 42 A1 A8 92 6B C9 BE 71 74 63 36 AF B5 [15:01:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 5E 82 47 00 93 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 53 B4 01 00 F4 03 04 00 A8 DB 73 66 B6 04 01 00 00 9A 60 61 58 67 C1 DD 20 [15:01:53]CommunicateWithHost err = 0 [15:01:53]CheckOFDResponse [15:01:53]1017 (14) - 77093643461234 [15:01:53]1041 (16) - 0000000000875083 [15:01:53]1040 (4) - 111699 [15:01:53]1012 (4) - 20.06.2024 07:35 [15:01:53]1206 (1) - 0 [15:01:53]OFD Sender: Remove packet 111699 [15:01:53]ProducePacketName [15:01:53]name=ofd_packets/00111699 [15:01:53]NVStorageDeleteData [15:01:53]Write to MH i2c: 01 00 00 7C 03 7F [15:01:53]Write i2c OK [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: 01 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: 01 07 00 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: 01 07 00 7C 03 00 00 00 00 00 F0 0C 82 [15:01:53]RasterBufferAndPrint [15:01:53]line [15:01:53]line [15:01:53]line [15:01:53]line [15:01:53]line [15:01:53]written 0, free lines is 3319 [15:01:53]MH_Cut [15:01:53]Write to MH i2c: D1 01 00 83 03 01 58 [15:01:53]Write i2c OK [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: D1 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: D1 01 00 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: D1 01 00 83 03 00 57 [15:01:53]Write to MH i2c: 01 00 00 84 03 87 [15:01:53]Write i2c OK [15:01:53]MH_I2C_Read... [15:01:54]OFD Sender: No OFD packet to send [15:01:54]*** Cut start [15:01:54]*** Partial cut [15:01:54]*** CUTSNS_PIN = 1 [15:01:54]*** CUTSNS_PIN = 0 [15:01:54]*** Brake cut motor [15:01:55]Read from MH i2c: 01 [15:01:55]MH_I2C_Read... [15:01:55]*** Stop cut motor [15:01:55]*** Cut end [15:01:55]Read from MH i2c: 01 07 00 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: 01 07 00 84 03 00 00 00 00 00 FF 0F 9C [15:01:55]process_action close_receipt done [15:01:55]requested_data is exist [15:01:55]produce_requested_data [15:01:55]requested_item fm.sn is exist - process it [15:01:55]wFMCommunicate request_size=4 [15:01:55]MH_SAM_APDU [15:01:55]CAPDU: 80 11 00 00 [15:01:55]Write to MH i2c: E2 08 00 85 03 80 11 00 00 00 00 00 00 02 [15:01:55]Write i2c OK [15:01:55]MH_I2C_Read... [15:01:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:55]Read from MH i2c: E2 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: E2 17 00 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: E2 17 00 85 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 54 [15:01:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:01:55]wFMCommunicate OK [15:01:55]requested_item fd.num is exist - process it [15:01:55]SAM_PROTO_GetFieldsCounters [15:01:55]wFMCommunicate request_size=4 [15:01:55]MH_SAM_APDU [15:01:55]CAPDU: 80 13 00 00 [15:01:55]Write to MH i2c: E2 08 00 86 03 80 13 00 00 00 00 00 00 05 [15:01:55]Write i2c OK [15:01:55]MH_I2C_Read... [15:01:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:01:55]Read from MH i2c: E2 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: E2 62 00 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: E2 62 00 86 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 53 B4 01 00 0E 04 04 00 85 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 73 [15:01:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 53 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:01:55]wFMCommunicate OK [15:01:55]SAM_PROTO_GetFieldsCounters done [15:01:55]requested_item shift.num is exist - process it [15:01:55]requested_item shift.opened is exist - process it [15:01:55]req_shift_opened [15:01:55]FM_GetShiftState [15:01:55]SAM_PROTO_GetShiftState [15:01:55]wFMCommunicate request_size=4 [15:01:55]MH_SAM_APDU [15:01:55]CAPDU: 80 13 01 00 [15:01:55]Write to MH i2c: E2 08 00 87 03 80 13 01 00 00 00 00 00 07 [15:01:55]Write i2c OK [15:01:55]MH_I2C_Read... [15:01:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:55]Read from MH i2c: E2 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: E2 0E 00 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: E2 0E 00 87 03 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 82 [15:01:55]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:01:55]wFMCommunicate OK [15:01:55]SAM_PROTO_GetShiftState done [15:01:55]FM_GetShiftState done [15:01:55]req_shift_opened done [15:01:55]requested_item shift.open_date is exist - process it [15:01:55]req_shift_open_date [15:01:55]req_shift_open_date done [15:01:55]produce_requested_data done [15:01:55]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111699,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [15:01:55]process_action_free close_receipt [15:01:55]json_value_free [15:01:55]json_value_free done [15:01:55]process_json_proto returns [15:01:55]Send response to host [15:01:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111699,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [15:01:55]free response buf [15:01:55]execute_script done [15:01:55]execute_script returns [15:01:55]free content buf [15:01:55]Sock 10.Close socket [15:01:55]Sock 10.Thread stoped [15:01:59]OFD Sender: No OFD packet to send [15:02:04]OFD Sender: No OFD packet to send [15:02:09]OFD Sender: No OFD packet to send [15:02:14]OFD Sender: No OFD packet to send [15:02:19]OFD Sender: No OFD packet to send [15:02:24]OFD Sender: No OFD packet to send [15:02:29]OFD Sender: No OFD packet to send [15:02:34]OFD Sender: No OFD packet to send [15:02:39]OFD Sender: No OFD packet to send [15:02:44]OFD Sender: No OFD packet to send [15:02:49]OFD Sender: No OFD packet to send [15:02:54]OFD Sender: No OFD packet to send [15:02:59]OFD Sender: No OFD packet to send [15:03:04]OFD Sender: No OFD packet to send [15:03:09]OFD Sender: No OFD packet to send [15:03:14]OFD Sender: No OFD packet to send [15:03:19]OFD Sender: No OFD packet to send [15:03:24]OFD Sender: No OFD packet to send [15:03:29]OFD Sender: No OFD packet to send [15:03:34]OFD Sender: No OFD packet to send [15:03:39]OFD Sender: No OFD packet to send [15:03:44]OFD Sender: No OFD packet to send [15:03:49]OFD Sender: No OFD packet to send [15:03:54]OFD Sender: No OFD packet to send [15:03:59]OFD Sender: No OFD packet to send [15:04:04]OFD Sender: No OFD packet to send [15:04:09]OFD Sender: No OFD packet to send [15:04:14]OFD Sender: No OFD packet to send [15:04:19]OFD Sender: No OFD packet to send [15:04:24]OFD Sender: No OFD packet to send [15:04:29]OFD Sender: No OFD packet to send [15:04:34]OFD Sender: No OFD packet to send [15:04:39]OFD Sender: No OFD packet to send [15:04:44]OFD Sender: No OFD packet to send [15:04:49]OFD Sender: No OFD packet to send [15:04: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:09]OFD Sender: No OFD packet to send [15:05:14]OFD Sender: No OFD packet to send [15:05:19]OFD Sender: No OFD packet to send [15:05:24]OFD Sender: No OFD packet to send [15:05:29]OFD Sender: No OFD packet to send [15:05:34]OFD Sender: No OFD packet to send [15:05:39]OFD Sender: No OFD packet to send [15:05:44]OFD Sender: No OFD packet to send [15:05:49]OFD Sender: No OFD packet to send [15:05:54]OFD Sender: No OFD packet to send [15:05:59]OFD Sender: No OFD packet to send [15:06:04]OFD Sender: No OFD packet to send [15:06:09]OFD Sender: No OFD packet to send [15:06:14]OFD Sender: No OFD packet to send [15:06:19]OFD Sender: No OFD packet to send [15:06:24]OFD Sender: No OFD packet to send [15:06:29]OFD Sender: No OFD packet to send [15:06:32]accept exits with 7 [15:06:32]New connection [15:06:32]New thread 3067321700 created [15:06:32]Thread 3067178340 joined [15:06:32]Waiting for new connection... [15:06:32] Sock 7.Parse request [15:06:32]Sock 7.Check first char [15:06:32]Sock 7.First char is OK [15:06:32]request: POST /json_proto HTTP/1.0 [15:06:32]Method: POST [15:06:32]URL: /json_proto [15:06:32]Method is POST - this is cgi request [15:06:32]url: /json_proto [15:06:32]query_string will be loaded in cgi processing [15:06:32]execute_cgi json_proto POST (null) [15:06:32]execute_cgi path=json_proto method=POST [15:06:32]POST find Content-Length [15:06:32]Host: 172.17.59.68:8080 [15:06:32]Content-Length: 678 [15:06:32]Content-Type: application/json [15:06:32] [15:06:32]POST finish read [15:06:32]Found Content-Length = 678 [15:06:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:32]execute_script... [15:06: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)320318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:32]POST & json_proto [15:06:32]process_json_proto [15:06:32]json parsed OK: [15:06:32]protocol is kg_v1.0 [15:06:32]action value=close_receipt [15:06:32]process_action close_receipt [15:06:32]cmd_close_receipt [15:06:32]MH_GetDate [15:06:32]Write to MH i2c: F0 00 00 88 03 7A [15:06:32]Write i2c OK [15:06:32]MH_I2C_Read... [15:06:32]Read from MH i2c: F0 [15:06:32]MH_I2C_Read... [15:06:32]Read from MH i2c: F0 09 00 [15:06:32]MH_I2C_Read... [15:06:32]Read from MH i2c: F0 09 00 88 03 00 7A 45 74 66 BC EC 60 65 89 [15:06:32]GetLastDocTimeStamp 1718895713 [15:06:32]current date 1718895994 [15:06:32]FM_GetShiftState [15:06:32]SAM_PROTO_GetShiftState [15:06:32]wFMCommunicate request_size=4 [15:06:32]MH_SAM_APDU [15:06:32]CAPDU: 80 13 01 00 [15:06:32]Write to MH i2c: E2 08 00 89 03 80 13 01 00 00 00 00 00 09 [15:06:32]Write i2c OK [15:06:32]MH_I2C_Read... [15:06:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:32]Read from MH i2c: E2 [15:06:32]MH_I2C_Read... [15:06:32]Read from MH i2c: E2 0E 00 [15:06:32]MH_I2C_Read... [15:06:32]Read from MH i2c: E2 0E 00 89 03 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 84 [15:06:32]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:06:32]wFMCommunicate OK [15:06:32]SAM_PROTO_GetShiftState done [15:06:32]FM_GetShiftState done [15:06:32]opened in 1718847247 [15:06:32]opened+sec_in_day 1718933647 [15:06:32]quantity*price = 70052 [15:06:32]sum+1 = 70053 [15:06:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 150 20.06.2024 15:06 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111700 ФПД: 131981157136688 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T150634&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111700&fm=131981157136688&tin=02508201610067®Number=0000000000092771&sum=70000 [15:06:34]StoreToDocumentArchive [15:06:34]shift 389 fd 111700 [15:06:34]save to /storage/0389/doc_00111700 [15:06:34]save last doc name /storage/0389/doc_00111700 to /storage/kkm_last_doc_name [15:06:34]save OK [15:06:34]Clear old archive folders... [15:06:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:06:34]tlvbuf is 016FB380 [15:06:34]SAM_PROTO_ClearQueue [15:06:34]wFMCommunicate request_size=4 [15:06:34]MH_SAM_APDU [15:06:34]CAPDU: 80 09 00 00 [15:06:34]Write to MH i2c: E2 08 00 96 03 80 09 00 00 00 00 00 00 0B [15:06:34]Write i2c OK [15:06:34]MH_I2C_Read... [15:06:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:06:34]Read from MH i2c: E2 [15:06:34]MH_I2C_Read... [15:06:34]Read from MH i2c: E2 03 00 [15:06:34]MH_I2C_Read... [15:06:34]Read from MH i2c: E2 03 00 96 03 00 90 00 0D [15:06:34]RAPDU: 90 00 [15:06:34]wFMCommunicate OK [15:06:34]SAM_PROTO_ClearQueue done [15:06:34]KKMCreateOFDPacket [15:06:34]OFDProtocolAddRootSTLVToBuf [15:06:34]FM_MakeSignedData [15:06:34]FM_MakeSignedData [15:06:34]SAM_PROTO_SignData [15:06:34]wFMCommunicate request_size=4 [15:06:34]MH_SAM_APDU [15:06:34]CAPDU: 80 0D 01 02 [15:06:34]Write to MH i2c: E2 08 00 97 03 80 0D 01 02 00 00 00 00 13 [15:06:34]Write i2c OK [15:06:34]MH_I2C_Read... [15:06:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:06:34]Read from MH i2c: E2 [15:06:34]MH_I2C_Read... [15:06:34]Read from MH i2c: E2 03 00 [15:06:34]MH_I2C_Read... [15:06:34]Read from MH i2c: E2 03 00 97 03 00 90 00 0E [15:06:34]RAPDU: 90 00 [15:06:34]wFMCommunicate OK [15:06:34]wFMCommunicate request_size=255 [15:06:34]MH_SAM_APDU [15:06:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 7A 45 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 54 B4 01 00 35 04 06 00 78 [15:06:34]Write to MH i2c: E2 02 01 98 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 7A 45 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 54 B4 01 00 35 04 06 00 78 00 00 0F [15:06:34]Write i2c OK [15:06:34]MH_I2C_Read... [15:06:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:34]Read from MH i2c: E2 [15:06:34]MH_I2C_Read... [15:06:34]Read from MH i2c: E2 03 00 [15:06:34]MH_I2C_Read... [15:06:34]Read from MH i2c: E2 03 00 98 03 00 90 00 0F [15:06:34]RAPDU: 90 00 [15:06:34]wFMCommunicate OK [15:06:34]wFMCommunicate request_size=10 [15:06:34]MH_SAM_APDU [15:06:34]CAPDU: 80 0D 02 02 05 09 41 FC F9 30 [15:06:34]Write to MH i2c: E2 0D 00 99 03 80 0D 02 02 05 00 09 41 FC F9 30 00 00 8F [15:06:34]Write i2c OK [15:06:34]MH_I2C_Read... [15:06:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:34]Read from MH i2c: E2 [15:06:34]MH_I2C_Read... [15:06:34]Read from MH i2c: E2 03 00 [15:06:34]MH_I2C_Read... [15:06:34]Read from MH i2c: E2 03 00 99 03 00 90 00 10 [15:06:34]RAPDU: 90 00 [15:06:34]wFMCommunicate OK [15:06:34]wFMCommunicate request_size=4 [15:06:34]MH_SAM_APDU [15:06:34]CAPDU: 80 0D 03 02 [15:06:34]Write to MH i2c: E2 08 00 9A 03 80 0D 03 02 00 00 00 00 18 [15:06:34]Write i2c OK [15:06:34]MH_I2C_Read... [15:06:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:06:34]Read from MH i2c: E2 [15:06:34]MH_I2C_Read... [15:06:34]Read from MH i2c: E2 0B 00 [15:06:34]MH_I2C_Read... [15:06:34]Read from MH i2c: E2 0B 00 9A 03 00 CB 01 9F 6F C5 A7 6C CE 90 00 99 [15:06:34]RAPDU: CB 01 9F 6F C5 A7 6C CE 90 00 [15:06:34]wFMCommunicate OK [15:06:34]SAM_PROTO_SignData done [15:06:34]FM_MakeSignedData done [15:06:34]CreateOFDProtocolMessage [15:06:34]wFMCommunicate request_size=4 [15:06:34]MH_SAM_APDU [15:06:34]CAPDU: 80 11 00 00 [15:06:34]Write to MH i2c: E2 08 00 9B 03 80 11 00 00 00 00 00 00 18 [15:06:34]Write i2c OK [15:06:34]MH_I2C_Read... [15:06:34]OFD Sender: No OFD packet to send [15:06:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:34]Read from MH i2c: E2 [15:06:34]MH_I2C_Read... [15:06:34]Read from MH i2c: E2 17 00 [15:06:34]MH_I2C_Read... [15:06:34]Read from MH i2c: E2 17 00 9B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6A [15:06:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:06:34]wFMCommunicate OK [15:06:34]CreateOFDProtocolMessage done [15:06:34]OFDSenderStorePacket 111700 [15:06:34]StoreOFDPacket docnum=111700 [15:06:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 31 3C 07 01 CE 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 7A 45 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 54 B4 01 00 35 04 06 00 78 09 41 FC F9 30 CB 01 9F 6F C5 A7 6C CE [15:06:34]CheckFolder [15:06:34]dirname=/storage/ofd_packets [15:06:34]CheckFolder done [15:06:34]ProducePacketName [15:06:34]name=ofd_packets/00111700 [15:06:34]NVStorageSaveData ofd_packets/00111700 [15:06:34]File name is /storage/ofd_packets/00111700 [15:06:34]Write 301 bytes [15:06:34]NVStorageSaveData done [15:06:34]OFDSenderStorePacket done [15:06:34]KKMCreateOFDPacket done [15:06:34]NVStorageSaveData kkm_last_timestamp [15:06:34]File name is /storage/kkm_last_timestamp [15:06:34]Write 4 bytes [15:06:34]NVStorageSaveData done [15:06:34]ExternCall_PrintAddStr [15:06:34]wPrintStart [15:06:34]Write to MH i2c: 01 00 00 9C 03 9F [15:06:34]Write i2c OK [15:06:34]MH_I2C_Read... [15:06:34]Read from MH i2c: 01 [15:06:34]MH_I2C_Read... [15:06:34]Read from MH i2c: 01 07 00 [15:06:34]MH_I2C_Read... [15:06:34]Read from MH i2c: 01 07 00 9C 03 00 00 00 00 00 FF 0F B4 [15:06:34]RasterBufferAndPrint [15:06:34]line Счет N : (1)320318 [15:06:34]line ИНН: 02508201610067 [15:06:34]line Контрольно-Кассовый Чек [15:06:34]line ПРОДАЖА [15:06:34]line ТРК (МРК, ГНК) : 11 [15:06:34]line Товар: 2710124130 [15:06:34]line Аи-92-К-5 [15:06:34]line 10.550 * 66.40 [15:06:34]line = 700.52 [15:06:34]line НДС 12% НСП 1% [15:06:34]line > о реализуемом товаре [15:06:34]line ОКРУГЛЕНИЕ: -0.52 [15:06:34]line ИТОГО: 700.00 [15:06:34]line Внесено: 700.00 [15:06:34]line СДАЧА: 0.00 [15:06:34]line НСП 1% : 6.20 [15:06:34]line НДС 12% : 74.39 [15:06:34]line Наличными: 700.00 [15:06:34]line Безнал.: 0.00 [15:06:34]line Место: АЗС № 65 "Партнер Нефть" [15:06:34]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:06:34]line СНО: Общий режим [15:06:34]line Чек 150 20.06.2024 15:06 [15:06:34]line Смена: 389 ФФД: 1.0 [15:06:34]line ЗНМ: 0300000198 [15:06:34]line РНМ: 0000000000092771 [15:06:34]line Версия ККМ: 001 [15:06:34]line ФМ: 0000000000875083 [15:06:34]line ФД: 111700 [15:06:34]line ФПД: 131981157136688 [15:06:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T150634&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111700&fm=131981157136688&tin=02508201610067®Number=0000000000092771&sum=70000 [15:06:34]OFD Sender: Processing packet 111700 [packets to send 38, broken 37] [15:06:34]ProducePacketName [15:06:34]name=ofd_packets/00111700 [15:06:34]OFD Sender: To server: pG, [15:06:34]CommunicateWithHost lk.salyk.kg:30040 [15:06:34]ConnectInit lk.salyk.kg [15:06:34]written 0, free lines is 4095 [15:06:34]Connected sock=10 [15:06:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 31 3C 07 01 CE 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 7A 45 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 54 B4 01 00 35 04 06 00 78 09 41 FC F9 30 CB 01 9F 6F C5 A7 6C CE [15:06:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 86 96 47 00 0F 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 54 B4 01 00 F4 03 04 00 C1 DC 73 66 B6 04 01 00 00 BC 25 81 17 7E BE 9B 39 [15:06:35]CommunicateWithHost err = 0 [15:06:35]CheckOFDResponse [15:06:35]1017 (14) - 77093643461234 [15:06:35]1041 (16) - 0000000000875083 [15:06:35]1040 (4) - 111700 [15:06:35]1012 (4) - 20.06.2024 07:39 [15:06:35]1206 (1) - 0 [15:06:35]OFD Sender: Remove packet 111700 [15:06:35]ProducePacketName [15:06:35]name=ofd_packets/00111700 [15:06:35]NVStorageDeleteData [15:06:35]Write to MH i2c: 01 00 00 C7 03 CA [15:06:35]Write i2c OK [15:06:35]MH_I2C_Read... [15:06:35]Read from MH i2c: 01 [15:06:35]MH_I2C_Read... [15:06:35]Read from MH i2c: 01 07 00 [15:06:35]MH_I2C_Read... [15:06:35]Read from MH i2c: 01 07 00 C7 03 00 00 00 00 00 DC 0C B9 [15:06:35]RasterBufferAndPrint [15:06:35]line [15:06:35]line [15:06:35]line [15:06:35]line [15:06:35]line [15:06:35]written 0, free lines is 3298 [15:06:35]MH_Cut [15:06:35]Write to MH i2c: D1 01 00 CE 03 01 A3 [15:06:35]Write i2c OK [15:06:35]MH_I2C_Read... [15:06:35]Read from MH i2c: D1 [15:06:35]MH_I2C_Read... [15:06:35]Read from MH i2c: D1 01 00 [15:06:35]MH_I2C_Read... [15:06:35]Read from MH i2c: D1 01 00 CE 03 00 A2 [15:06:35]Write to MH i2c: 01 00 00 CF 03 D2 [15:06:35]Write i2c OK [15:06:35]MH_I2C_Read... [15:06:35]OFD Sender: No OFD packet to send [15:06:36]*** Cut start [15:06:36]*** Partial cut [15:06:36]*** CUTSNS_PIN = 1 [15:06:36]*** CUTSNS_PIN = 0 [15:06:36]*** Brake cut motor [15:06:36]Read from MH i2c: 01 [15:06:36]MH_I2C_Read... [15:06:36]*** Stop cut motor [15:06:36]*** Cut end [15:06:36]Read from MH i2c: 01 07 00 [15:06:36]MH_I2C_Read... [15:06:36]Read from MH i2c: 01 07 00 CF 03 00 00 00 00 00 FF 0F E7 [15:06:36]process_action close_receipt done [15:06:36]requested_data is exist [15:06:36]produce_requested_data [15:06:36]requested_item fm.sn is exist - process it [15:06:36]wFMCommunicate request_size=4 [15:06:36]MH_SAM_APDU [15:06:36]CAPDU: 80 11 00 00 [15:06:36]Write to MH i2c: E2 08 00 D0 03 80 11 00 00 00 00 00 00 4D [15:06:36]Write i2c OK [15:06:36]MH_I2C_Read... [15:06:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:36]Read from MH i2c: E2 [15:06:36]MH_I2C_Read... [15:06:36]Read from MH i2c: E2 17 00 [15:06:36]MH_I2C_Read... [15:06:36]Read from MH i2c: E2 17 00 D0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9F [15:06:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:06:36]wFMCommunicate OK [15:06:36]requested_item fd.num is exist - process it [15:06:36]SAM_PROTO_GetFieldsCounters [15:06:36]wFMCommunicate request_size=4 [15:06:36]MH_SAM_APDU [15:06:36]CAPDU: 80 13 00 00 [15:06:36]Write to MH i2c: E2 08 00 D1 03 80 13 00 00 00 00 00 00 50 [15:06:36]Write i2c OK [15:06:36]MH_I2C_Read... [15:06:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:06:36]Read from MH i2c: E2 [15:06:36]MH_I2C_Read... [15:06:36]Read from MH i2c: E2 62 00 [15:06:36]MH_I2C_Read... [15:06:36]Read from MH i2c: E2 62 00 D1 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 54 B4 01 00 0E 04 04 00 85 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 C2 [15:06:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 54 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:06:36]wFMCommunicate OK [15:06:36]SAM_PROTO_GetFieldsCounters done [15:06:36]requested_item shift.num is exist - process it [15:06:36]requested_item shift.opened is exist - process it [15:06:36]req_shift_opened [15:06:36]FM_GetShiftState [15:06:36]SAM_PROTO_GetShiftState [15:06:36]wFMCommunicate request_size=4 [15:06:36]MH_SAM_APDU [15:06:36]CAPDU: 80 13 01 00 [15:06:36]Write to MH i2c: E2 08 00 D2 03 80 13 01 00 00 00 00 00 52 [15:06:36]Write i2c OK [15:06:36]MH_I2C_Read... [15:06:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:36]Read from MH i2c: E2 [15:06:36]MH_I2C_Read... [15:06:36]Read from MH i2c: E2 0E 00 [15:06:36]MH_I2C_Read... [15:06:36]Read from MH i2c: E2 0E 00 D2 03 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 CD [15:06:36]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:06:36]wFMCommunicate OK [15:06:36]SAM_PROTO_GetShiftState done [15:06:36]FM_GetShiftState done [15:06:36]req_shift_opened done [15:06:36]requested_item shift.open_date is exist - process it [15:06:36]req_shift_open_date [15:06:36]req_shift_open_date done [15:06:36]produce_requested_data done [15:06:36]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111700,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [15:06:36]process_action_free close_receipt [15:06:36]json_value_free [15:06:36]json_value_free done [15:06:36]process_json_proto returns [15:06:36]Send response to host [15:06:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111700,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [15:06:36]free response buf [15:06:36]execute_script done [15:06:36]execute_script returns [15:06:36]free content buf [15:06:36]Sock 7.Close socket [15:06:36]Sock 7.Thread stoped [15:06:40]OFD Sender: No OFD packet to send [15:06:45]OFD Sender: No OFD packet to send [15:06:50]OFD Sender: No OFD packet to send [15:06:55]OFD Sender: No OFD packet to send [15:07:00]OFD Sender: No OFD packet to send [15:07:05]OFD Sender: No OFD packet to send [15:07:10]OFD Sender: No OFD packet to send [15:07:15]OFD Sender: No OFD packet to send [15:07:20]OFD Sender: No OFD packet to send [15:07:25]OFD Sender: No OFD packet to send [15:07:30]OFD Sender: No OFD packet to send [15:07:35]OFD Sender: No OFD packet to send [15:07:38]accept exits with 9 [15:07:38]New connection [15:07:38]New thread 3067178340 created [15:07:38]Thread 3067321700 joined [15:07:38]Waiting for new connection... [15:07:38] Sock 9.Parse request [15:07:38]Sock 9.Check first char [15:07:38]Sock 9.First char is OK [15:07:38]request: POST /json_proto HTTP/1.0 [15:07:38]Method: POST [15:07:38]URL: /json_proto [15:07:38]Method is POST - this is cgi request [15:07:38]url: /json_proto [15:07:38]query_string will be loaded in cgi processing [15:07:38]execute_cgi json_proto POST (null) [15:07:38]execute_cgi path=json_proto method=POST [15:07:38]POST find Content-Length [15:07:38]Host: 172.17.59.68:8080 [15:07:38]Content-Length: 675 [15:07:38]Content-Type: application/json [15:07:38] [15:07:38]POST finish read [15:07:38]Found Content-Length = 675 [15:07:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.980, "sum" : 800.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:38]execute_script... [15: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)320319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.980, "sum" : 800.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:38]POST & json_proto [15:07:38]process_json_proto [15:07:38]json parsed OK: [15:07:38]protocol is kg_v1.0 [15:07:38]action value=close_receipt [15:07:38]process_action close_receipt [15:07:38]cmd_close_receipt [15:07:38]MH_GetDate [15:07:38]Write to MH i2c: F0 00 00 D3 03 C5 [15:07:38]Write i2c OK [15:07:38]MH_I2C_Read... [15:07:38]Read from MH i2c: F0 [15:07:38]MH_I2C_Read... [15:07:38]Read from MH i2c: F0 09 00 [15:07:38]MH_I2C_Read... [15:07:38]Read from MH i2c: F0 09 00 D3 03 00 BC 45 74 66 BC EC 60 65 16 [15:07:38]GetLastDocTimeStamp 1718895994 [15:07:38]current date 1718896060 [15:07:38]FM_GetShiftState [15:07:38]SAM_PROTO_GetShiftState [15:07:38]wFMCommunicate request_size=4 [15:07:38]MH_SAM_APDU [15:07:38]CAPDU: 80 13 01 00 [15:07:38]Write to MH i2c: E2 08 00 D4 03 80 13 01 00 00 00 00 00 54 [15:07:38]Write i2c OK [15:07:38]MH_I2C_Read... [15:07:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:38]Read from MH i2c: E2 [15:07:38]MH_I2C_Read... [15:07:38]Read from MH i2c: E2 0E 00 [15:07:38]MH_I2C_Read... [15:07:38]Read from MH i2c: E2 0E 00 D4 03 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 CF [15:07:38]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:07:38]wFMCommunicate OK [15:07:38]SAM_PROTO_GetShiftState done [15:07:38]FM_GetShiftState done [15:07:38]opened in 1718847247 [15:07:38]opened+sec_in_day 1718933647 [15:07:38]quantity*price = 80044 [15:07:38]sum+1 = 80045 [15:07:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.00 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 151 20.06.2024 15:07 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111701 ФПД: 5810479983718 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T150740&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111701&fm=5810479983718&tin=02508201610067®Number=0000000000092771&sum=80000 [15:07:39]StoreToDocumentArchive [15:07:39]shift 389 fd 111701 [15:07:39]save to /storage/0389/doc_00111701 [15:07:39]save last doc name /storage/0389/doc_00111701 to /storage/kkm_last_doc_name [15:07:39]save OK [15:07:39]Clear old archive folders... [15:07:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:07:39]tlvbuf is 016FDC50 [15:07:39]SAM_PROTO_ClearQueue [15:07:39]wFMCommunicate request_size=4 [15:07:39]MH_SAM_APDU [15:07:39]CAPDU: 80 09 00 00 [15:07:39]Write to MH i2c: E2 08 00 E1 03 80 09 00 00 00 00 00 00 56 [15:07:39]Write i2c OK [15:07:39]MH_I2C_Read... [15:07:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:07:39]Read from MH i2c: E2 [15:07:39]MH_I2C_Read... [15:07:39]Read from MH i2c: E2 03 00 [15:07:39]MH_I2C_Read... [15:07:39]Read from MH i2c: E2 03 00 E1 03 00 90 00 58 [15:07:39]RAPDU: 90 00 [15:07:39]wFMCommunicate OK [15:07:39]SAM_PROTO_ClearQueue done [15:07:39]KKMCreateOFDPacket [15:07:39]OFDProtocolAddRootSTLVToBuf [15:07:39]FM_MakeSignedData [15:07:39]FM_MakeSignedData [15:07:39]SAM_PROTO_SignData [15:07:39]wFMCommunicate request_size=4 [15:07:39]MH_SAM_APDU [15:07:39]CAPDU: 80 0D 01 02 [15:07:39]Write to MH i2c: E2 08 00 E2 03 80 0D 01 02 00 00 00 00 5E [15:07:39]Write i2c OK [15:07:39]MH_I2C_Read... [15:07:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:07:39]Read from MH i2c: E2 [15:07:39]MH_I2C_Read... [15:07:39]Read from MH i2c: E2 03 00 [15:07:39]MH_I2C_Read... [15:07:39]Read from MH i2c: E2 03 00 E2 03 00 90 00 59 [15:07:39]RAPDU: 90 00 [15:07:39]wFMCommunicate OK [15:07:39]wFMCommunicate request_size=255 [15:07:39]MH_SAM_APDU [15:07:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E4 2A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AC 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 BC 45 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 55 B4 01 00 35 04 06 00 05 48 DB 98 [15:07:39]Write to MH i2c: E2 02 01 E3 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E4 2A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AC 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 BC 45 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 55 B4 01 00 35 04 06 00 05 48 DB 98 00 00 93 [15:07:39]Write i2c OK [15:07:39]MH_I2C_Read... [15:07:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:39]Read from MH i2c: E2 [15:07:39]MH_I2C_Read... [15:07:39]Read from MH i2c: E2 03 00 [15:07:39]MH_I2C_Read... [15:07:39]Read from MH i2c: E2 03 00 E3 03 00 90 00 5A [15:07:39]RAPDU: 90 00 [15:07:39]wFMCommunicate OK [15:07:39]wFMCommunicate request_size=7 [15:07:39]MH_SAM_APDU [15:07:39]CAPDU: 80 0D 02 02 02 6C 66 [15:07:39]Write to MH i2c: E2 0A 00 E4 03 80 0D 02 02 02 00 6C 66 00 00 37 [15:07:39]Write i2c OK [15:07:39]MH_I2C_Read... [15:07:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:39]Read from MH i2c: E2 [15:07:39]MH_I2C_Read... [15:07:39]Read from MH i2c: E2 03 00 [15:07:39]MH_I2C_Read... [15:07:39]Read from MH i2c: E2 03 00 E4 03 00 90 00 5B [15:07:39]RAPDU: 90 00 [15:07:39]wFMCommunicate OK [15:07:39]wFMCommunicate request_size=4 [15:07:39]MH_SAM_APDU [15:07:39]CAPDU: 80 0D 03 02 [15:07:39]Write to MH i2c: E2 08 00 E5 03 80 0D 03 02 00 00 00 00 63 [15:07:39]Write i2c OK [15:07:39]MH_I2C_Read... [15:07:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:07:40]Read from MH i2c: E2 [15:07:40]MH_I2C_Read... [15:07:40]Read from MH i2c: E2 0B 00 [15:07:40]MH_I2C_Read... [15:07:40]Read from MH i2c: E2 0B 00 E5 03 00 71 CE 9A E6 4E 76 47 3B 90 00 69 [15:07:40]RAPDU: 71 CE 9A E6 4E 76 47 3B 90 00 [15:07:40]wFMCommunicate OK [15:07:40]SAM_PROTO_SignData done [15:07:40]FM_MakeSignedData done [15:07:40]CreateOFDProtocolMessage [15:07:40]wFMCommunicate request_size=4 [15:07:40]MH_SAM_APDU [15:07:40]CAPDU: 80 11 00 00 [15:07:40]Write to MH i2c: E2 08 00 E6 03 80 11 00 00 00 00 00 00 63 [15:07:40]Write i2c OK [15:07:40]MH_I2C_Read... [15:07:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:40]Read from MH i2c: E2 [15:07:40]MH_I2C_Read... [15:07:40]Read from MH i2c: E2 17 00 [15:07:40]MH_I2C_Read... [15:07:40]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 35 30 38 33 90 00 B5 [15:07:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:07:40]wFMCommunicate OK [15:07:40]CreateOFDProtocolMessage done [15:07:40]OFDSenderStorePacket 111701 [15:07:40]StoreOFDPacket docnum=111701 [15:07:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 F1 35 04 01 7F 5D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E4 2A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AC 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 BC 45 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 55 B4 01 00 35 04 06 00 05 48 DB 98 6C 66 71 CE 9A E6 4E 76 47 3B [15:07:40]CheckFolder [15:07:40]dirname=/storage/ofd_packets [15:07:40]CheckFolder done [15:07:40]ProducePacketName [15:07:40]name=ofd_packets/00111701 [15:07:40]NVStorageSaveData ofd_packets/00111701 [15:07:40]File name is /storage/ofd_packets/00111701 [15:07:40]Write 298 bytes [15:07:40]NVStorageSaveData done [15:07:40]OFDSenderStorePacket done [15:07:40]KKMCreateOFDPacket done [15:07:40]NVStorageSaveData kkm_last_timestamp [15:07:40]File name is /storage/kkm_last_timestamp [15:07:40]Write 4 bytes [15:07:40]NVStorageSaveData done [15:07:40]ExternCall_PrintAddStr [15:07:40]wPrintStart [15:07:40]Write to MH i2c: 01 00 00 E7 03 EA [15:07:40]Write i2c OK [15:07:40]MH_I2C_Read... [15:07:40]Read from MH i2c: 01 [15:07:40]MH_I2C_Read... [15:07:40]Read from MH i2c: 01 07 00 [15:07:40]MH_I2C_Read... [15:07:40]Read from MH i2c: 01 07 00 E7 03 00 00 00 00 00 FF 0F FF [15:07:40]RasterBufferAndPrint [15:07:40]line Счет N : (1)320319 [15:07:40]line ИНН: 02508201610067 [15:07:40]line Контрольно-Кассовый Чек [15:07:40]line ПРОДАЖА [15:07:40]line ТРК (МРК, ГНК) : 22 [15:07:40]line Товар: 2710194210 [15:07:40]line ДТ-К-5 [15:07:40]line 10.980 * 72.90 [15:07:40]line = 800.44 [15:07:40]line НДС 12% НСП 1% [15:07:40]line > о реализуемом товаре [15:07:40]line ОКРУГЛЕНИЕ: -0.44 [15:07:40]line ИТОГО: 800.00 [15:07:40]line Внесено: 800.00 [15:07:40]line СДАЧА: 0.00 [15:07:40]line НСП 1% : 7.08 [15:07:40]line НДС 12% : 85.00 [15:07:40]line Наличными: 800.00 [15:07:40]line Безнал.: 0.00 [15:07:40]line Место: АЗС № 65 "Партнер Нефть" [15:07:40]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:07:40]line СНО: Общий режим [15:07:40]line Чек 151 20.06.2024 15:07 [15:07:40]line Смена: 389 ФФД: 1.0 [15:07:40]line ЗНМ: 0300000198 [15:07:40]line РНМ: 0000000000092771 [15:07:40]line Версия ККМ: 001 [15:07:40]line ФМ: 0000000000875083 [15:07:40]line ФД: 111701 [15:07:40]line ФПД: 5810479983718 [15:07:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T150740&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111701&fm=5810479983718&tin=02508201610067®Number=0000000000092771&sum=80000 [15:07:40]OFD Sender: Processing packet 111701 [packets to send 38, broken 37] [15:07:40]ProducePacketName [15:07:40]name=ofd_packets/00111701 [15:07:40]OFD Sender: To server: pG, [15:07:40]CommunicateWithHost lk.salyk.kg:30040 [15:07:40]ConnectInit lk.salyk.kg [15:07:40]written 0, free lines is 4095 [15:07:40]Connected sock=10 [15: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 35 30 38 33 0C 01 00 00 F1 35 04 01 7F 5D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E4 2A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AC 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 BC 45 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 55 B4 01 00 35 04 06 00 05 48 DB 98 6C 66 71 CE 9A E6 4E 76 47 3B [15:07:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 43 E7 47 00 71 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 55 B4 01 00 F4 03 04 00 03 DD 73 66 B6 04 01 00 00 2E 6D BE 25 D4 55 BE 20 [15:07:40]CommunicateWithHost err = 0 [15:07:40]CheckOFDResponse [15:07:40]1017 (14) - 77093643461234 [15:07:40]1041 (16) - 0000000000875083 [15:07:40]1040 (4) - 111701 [15:07:40]1012 (4) - 20.06.2024 07:40 [15:07:40]1206 (1) - 0 [15:07:40]OFD Sender: Remove packet 111701 [15:07:40]ProducePacketName [15:07:40]name=ofd_packets/00111701 [15:07:40]NVStorageDeleteData [15:07:40]Write to MH i2c: 01 00 00 12 04 16 [15:07:40]Write i2c OK [15:07:40]MH_I2C_Read... [15:07:40]Read from MH i2c: 01 [15:07:40]MH_I2C_Read... [15:07:40]Read from MH i2c: 01 07 00 [15:07:40]MH_I2C_Read... [15:07:40]Read from MH i2c: 01 07 00 12 04 00 00 00 00 00 E0 0C 09 [15:07:40]RasterBufferAndPrint [15:07:40]line [15:07:40]line [15:07:40]line [15:07:40]line [15:07:40]line [15:07:40]written 0, free lines is 3301 [15:07:40]MH_Cut [15:07:40]Write to MH i2c: D1 01 00 19 04 01 EF [15:07:40]Write i2c OK [15:07:40]MH_I2C_Read... [15:07:40]Read from MH i2c: D1 [15:07:40]MH_I2C_Read... [15:07:40]Read from MH i2c: D1 01 00 [15:07:40]MH_I2C_Read... [15:07:40]Read from MH i2c: D1 01 00 19 04 00 EE [15:07:40]Write to MH i2c: 01 00 00 1A 04 1E [15:07:40]Write i2c OK [15:07:40]MH_I2C_Read... [15:07:41]OFD Sender: No OFD packet to send [15:07:41]*** Cut start [15:07:41]*** Partial cut [15:07:41]*** CUTSNS_PIN = 1 [15:07:41]*** CUTSNS_PIN = 0 [15:07:41]*** Brake cut motor [15:07:42]Read from MH i2c: 01 [15:07:42]MH_I2C_Read... [15:07:42]*** Stop cut motor [15:07:42]*** Cut end [15:07:42]Read from MH i2c: 01 07 00 [15:07:42]MH_I2C_Read... [15:07:42]Read from MH i2c: 01 07 00 1A 04 00 00 00 00 00 FF 0F 33 [15:07:42]process_action close_receipt done [15:07:42]requested_data is exist [15:07:42]produce_requested_data [15:07:42]requested_item fm.sn is exist - process it [15:07:42]wFMCommunicate request_size=4 [15:07:42]MH_SAM_APDU [15:07:42]CAPDU: 80 11 00 00 [15:07:42]Write to MH i2c: E2 08 00 1B 04 80 11 00 00 00 00 00 00 99 [15:07:42]Write i2c OK [15:07:42]MH_I2C_Read... [15:07:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:42]Read from MH i2c: E2 [15:07:42]MH_I2C_Read... [15:07:42]Read from MH i2c: E2 17 00 [15:07:42]MH_I2C_Read... [15:07:42]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 35 30 38 33 90 00 EB [15:07:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:07:42]wFMCommunicate OK [15:07:42]requested_item fd.num is exist - process it [15:07:42]SAM_PROTO_GetFieldsCounters [15:07:42]wFMCommunicate request_size=4 [15:07:42]MH_SAM_APDU [15:07:42]CAPDU: 80 13 00 00 [15:07:42]Write to MH i2c: E2 08 00 1C 04 80 13 00 00 00 00 00 00 9C [15:07:42]Write i2c OK [15:07:42]MH_I2C_Read... [15:07:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:42]Read from MH i2c: E2 [15:07:42]MH_I2C_Read... [15:07:42]Read from MH i2c: E2 62 00 [15:07:42]MH_I2C_Read... [15:07:42]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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 55 B4 01 00 0E 04 04 00 85 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 [15: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 55 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:07:42]wFMCommunicate OK [15:07:42]SAM_PROTO_GetFieldsCounters done [15:07:42]requested_item shift.num is exist - process it [15:07:42]requested_item shift.opened is exist - process it [15:07:42]req_shift_opened [15:07:42]FM_GetShiftState [15:07:42]SAM_PROTO_GetShiftState [15:07:42]wFMCommunicate request_size=4 [15:07:42]MH_SAM_APDU [15:07:42]CAPDU: 80 13 01 00 [15:07:42]Write to MH i2c: E2 08 00 1D 04 80 13 01 00 00 00 00 00 9E [15:07:42]Write i2c OK [15:07:42]MH_I2C_Read... [15:07:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:42]Read from MH i2c: E2 [15:07:42]MH_I2C_Read... [15:07:42]Read from MH i2c: E2 0E 00 [15:07:42]MH_I2C_Read... [15:07:42]Read from MH i2c: E2 0E 00 1D 04 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 19 [15:07:42]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:07:42]wFMCommunicate OK [15:07:42]SAM_PROTO_GetShiftState done [15:07:42]FM_GetShiftState done [15:07:42]req_shift_opened done [15:07:42]requested_item shift.open_date is exist - process it [15:07:42]req_shift_open_date [15:07:42]req_shift_open_date done [15:07:42]produce_requested_data done [15:07:42]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111701,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [15:07:42]process_action_free close_receipt [15:07:42]json_value_free [15:07:42]json_value_free done [15:07:42]process_json_proto returns [15:07:42]Send response to host [15:07:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111701,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [15:07:42]free response buf [15:07:42]execute_script done [15:07:42]execute_script returns [15:07:42]free content buf [15:07:42]Sock 9.Close socket [15:07:42]Sock 9.Thread stoped [15:07:46]OFD Sender: No OFD packet to send [15:07:51]OFD Sender: No OFD packet to send [15:07:56]OFD Sender: No OFD packet to send [15:08:01]OFD Sender: No OFD packet to send [15:08:06]OFD Sender: No OFD packet to send [15:08:11]OFD Sender: No OFD packet to send [15:08:16]OFD Sender: No OFD packet to send [15:08:21]OFD Sender: No OFD packet to send [15:08:26]OFD Sender: No OFD packet to send [15:08:31]OFD Sender: No OFD packet to send [15:08:36]OFD Sender: No OFD packet to send [15:08:41]OFD Sender: No OFD packet to send [15:08:46]OFD Sender: No OFD packet to send [15:08:51]OFD Sender: No OFD packet to send [15:08:56]OFD Sender: No OFD packet to send [15:09:00]accept exits with 7 [15:09:00]New connection [15:09:00]New thread 3067321700 created [15:09:00]Thread 3067178340 joined [15:09:00]Waiting for new connection... [15:09:00] Sock 7.Parse request [15:09:00]Sock 7.Check first char [15:09:00]Sock 7.First char is OK [15:09:00]request: POST /json_proto HTTP/1.0 [15:09:00]Method: POST [15:09:00]URL: /json_proto [15:09:00]Method is POST - this is cgi request [15:09:00]url: /json_proto [15:09:00]query_string will be loaded in cgi processing [15:09:00]execute_cgi json_proto POST (null) [15:09:00]execute_cgi path=json_proto method=POST [15:09:00]POST find Content-Length [15:09:00]Host: 172.17.59.68:8080 [15:09:00]Content-Length: 677 [15:09:00]Content-Type: application/json [15:09:00] [15:09:00]POST finish read [15:09:00]Found Content-Length = 677 [15:09:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:00]execute_script... [15:09: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)320320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:00]POST & json_proto [15:09:00]process_json_proto [15:09:00]json parsed OK: [15:09:00]protocol is kg_v1.0 [15:09:00]action value=close_receipt [15:09:00]process_action close_receipt [15:09:00]cmd_close_receipt [15:09:00]MH_GetDate [15:09:00]Write to MH i2c: F0 00 00 1E 04 11 [15:09:00]Write i2c OK [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: F0 [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: F0 09 00 [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: F0 09 00 1E 04 00 0E 46 74 66 BC EC 60 65 B5 [15:09:00]GetLastDocTimeStamp 1718896060 [15:09:00]current date 1718896142 [15:09:00]FM_GetShiftState [15:09:00]SAM_PROTO_GetShiftState [15:09:00]wFMCommunicate request_size=4 [15:09:00]MH_SAM_APDU [15:09:00]CAPDU: 80 13 01 00 [15:09:00]Write to MH i2c: E2 08 00 1F 04 80 13 01 00 00 00 00 00 A0 [15:09:00]Write i2c OK [15:09:00]MH_I2C_Read... [15:09:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:00]Read from MH i2c: E2 [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: E2 0E 00 [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: E2 0E 00 1F 04 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 1B [15:09:00]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:09:00]wFMCommunicate OK [15:09:00]SAM_PROTO_GetShiftState done [15:09:00]FM_GetShiftState done [15:09:00]opened in 1718847247 [15:09:00]opened+sec_in_day 1718933647 [15:09:00]quantity*price = 40039 [15:09:00]sum+1 = 40040 [15:09:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 152 20.06.2024 15:09 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111702 ФПД: 100549988541914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T150902&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111702&fm=100549988541914&tin=02508201610067®Number=0000000000092771&sum=40000 [15:09:01]StoreToDocumentArchive [15:09:01]shift 389 fd 111702 [15:09:01]save to /storage/0389/doc_00111702 [15:09:01]save last doc name /storage/0389/doc_00111702 to /storage/kkm_last_doc_name [15:09:01]save OK [15:09:01]Clear old archive folders... [15:09:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:09:01]tlvbuf is 016ECEF0 [15:09:01]SAM_PROTO_ClearQueue [15:09:01]wFMCommunicate request_size=4 [15:09:01]MH_SAM_APDU [15:09:01]CAPDU: 80 09 00 00 [15:09:01]Write to MH i2c: E2 08 00 2C 04 80 09 00 00 00 00 00 00 A2 [15:09:01]Write i2c OK [15:09:01]MH_I2C_Read... [15:09:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:01]Read from MH i2c: E2 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 03 00 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 03 00 2C 04 00 90 00 A4 [15:09:01]RAPDU: 90 00 [15:09:01]wFMCommunicate OK [15:09:01]SAM_PROTO_ClearQueue done [15:09:01]KKMCreateOFDPacket [15:09:01]OFDProtocolAddRootSTLVToBuf [15:09:01]FM_MakeSignedData [15:09:01]FM_MakeSignedData [15:09:01]SAM_PROTO_SignData [15:09:01]wFMCommunicate request_size=4 [15:09:01]MH_SAM_APDU [15:09:01]CAPDU: 80 0D 01 02 [15:09:01]Write to MH i2c: E2 08 00 2D 04 80 0D 01 02 00 00 00 00 AA [15:09:01]Write i2c OK [15:09:01]MH_I2C_Read... [15:09:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:01]Read from MH i2c: E2 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 03 00 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 03 00 2D 04 00 90 00 A5 [15:09:01]RAPDU: 90 00 [15:09:01]wFMCommunicate OK [15:09:01]wFMCommunicate request_size=255 [15:09:01]MH_SAM_APDU [15:09: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 0E 46 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 56 B4 01 00 35 04 06 00 5B [15:09:01]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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 0E 46 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 56 B4 01 00 35 04 06 00 5B 00 00 DE [15:09:01]Write i2c OK [15:09:01]MH_I2C_Read... [15:09:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:01]Read from MH i2c: E2 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 03 00 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 03 00 2E 04 00 90 00 A6 [15:09:01]RAPDU: 90 00 [15:09:01]wFMCommunicate OK [15:09:01]wFMCommunicate request_size=10 [15:09:01]MH_SAM_APDU [15:09:01]CAPDU: 80 0D 02 02 05 73 1E 59 65 DA [15:09:01]Write to MH i2c: E2 0D 00 2F 04 80 0D 02 02 05 00 73 1E 59 65 DA 00 00 E0 [15:09:01]Write i2c OK [15:09:01]MH_I2C_Read... [15:09:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:01]Read from MH i2c: E2 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 03 00 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 03 00 2F 04 00 90 00 A7 [15:09:01]RAPDU: 90 00 [15:09:01]wFMCommunicate OK [15:09:01]wFMCommunicate request_size=4 [15:09:01]MH_SAM_APDU [15:09:01]CAPDU: 80 0D 03 02 [15:09:01]Write to MH i2c: E2 08 00 30 04 80 0D 03 02 00 00 00 00 AF [15:09:01]Write i2c OK [15:09:01]MH_I2C_Read... [15:09:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:01]Read from MH i2c: E2 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 0B 00 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 0B 00 30 04 00 74 72 A3 95 F4 8F C5 2C 90 00 42 [15:09:01]RAPDU: 74 72 A3 95 F4 8F C5 2C 90 00 [15:09:01]wFMCommunicate OK [15:09:01]SAM_PROTO_SignData done [15:09:01]FM_MakeSignedData done [15:09:01]CreateOFDProtocolMessage [15:09:01]wFMCommunicate request_size=4 [15:09:01]MH_SAM_APDU [15:09:01]CAPDU: 80 11 00 00 [15:09:01]Write to MH i2c: E2 08 00 31 04 80 11 00 00 00 00 00 00 AF [15:09:01]Write i2c OK [15:09:01]MH_I2C_Read... [15:09:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:01]Read from MH i2c: E2 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 17 00 [15:09:01]MH_I2C_Read... [15:09:01]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 35 30 38 33 90 00 01 [15:09:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:09:01]wFMCommunicate OK [15:09:01]CreateOFDProtocolMessage done [15:09:01]OFDSenderStorePacket 111702 [15:09:01]StoreOFDPacket docnum=111702 [15:09:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 53 5D 07 01 EE 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 0E 46 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 56 B4 01 00 35 04 06 00 5B 73 1E 59 65 DA 74 72 A3 95 F4 8F C5 2C [15:09:01]CheckFolder [15:09:01]dirname=/storage/ofd_packets [15:09:01]CheckFolder done [15:09:01]ProducePacketName [15:09:01]name=ofd_packets/00111702 [15:09:01]NVStorageSaveData ofd_packets/00111702 [15:09:01]File name is /storage/ofd_packets/00111702 [15:09:01]Write 301 bytes [15:09:01]NVStorageSaveData done [15:09:01]OFDSenderStorePacket done [15:09:01]KKMCreateOFDPacket done [15:09:01]NVStorageSaveData kkm_last_timestamp [15:09:01]File name is /storage/kkm_last_timestamp [15:09:01]Write 4 bytes [15:09:01]NVStorageSaveData done [15:09:01]ExternCall_PrintAddStr [15:09:01]wPrintStart [15:09:01]Write to MH i2c: 01 00 00 32 04 36 [15:09:01]Write i2c OK [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: 01 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: 01 07 00 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: 01 07 00 32 04 00 00 00 00 00 FF 0F 4B [15:09:01]RasterBufferAndPrint [15:09:01]line Счет N : (1)320320 [15:09:01]line ИНН: 02508201610067 [15:09:01]line Контрольно-Кассовый Чек [15:09:01]line ПРОДАЖА [15:09:01]line ТРК (МРК, ГНК) : 11 [15:09:01]line Товар: 2710124130 [15:09:01]line Аи-92-К-5 [15:09:01]line 6.030 * 66.40 [15:09:01]line = 400.39 [15:09:01]line НДС 12% НСП 1% [15:09:01]line > о реализуемом товаре [15:09:01]line ОКРУГЛЕНИЕ: -0.39 [15:09:01]line ИТОГО: 400.00 [15:09:01]line Внесено: 400.00 [15:09:01]line СДАЧА: 0.00 [15:09:01]line НСП 1% : 3.54 [15:09:01]line НДС 12% : 42.52 [15:09:01]line Наличными: 400.00 [15:09:01]line Безнал.: 0.00 [15:09:01]line Место: АЗС № 65 "Партнер Нефть" [15:09:01]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:09:01]line СНО: Общий режим [15:09:01]line Чек 152 20.06.2024 15:09 [15:09:01]line Смена: 389 ФФД: 1.0 [15:09:01]line ЗНМ: 0300000198 [15:09:01]line РНМ: 0000000000092771 [15:09:01]line Версия ККМ: 001 [15:09:01]line ФМ: 0000000000875083 [15:09:01]line ФД: 111702 [15:09:01]line ФПД: 100549988541914 [15:09:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T150902&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111702&fm=100549988541914&tin=02508201610067®Number=0000000000092771&sum=40000 [15:09:02]OFD Sender: Processing packet 111702 [packets to send 38, broken 37] [15:09:02]ProducePacketName [15:09:02]name=ofd_packets/00111702 [15:09:02]OFD Sender: To server: pG, [15:09:02]CommunicateWithHost lk.salyk.kg:30040 [15:09:02]ConnectInit lk.salyk.kg [15:09:02]written 0, free lines is 4095 [15:09:02]Connected sock=10 [15:09:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 53 5D 07 01 EE 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 0E 46 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 56 B4 01 00 35 04 06 00 5B 73 1E 59 65 DA 74 72 A3 95 F4 8F C5 2C [15:09:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 30 D0 47 00 6B 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 35 30 38 33 10 04 04 00 56 B4 01 00 F4 03 04 00 55 DD 73 66 B6 04 01 00 00 76 3B 8D 37 9E 69 A2 90 [15:09:02]CommunicateWithHost err = 0 [15:09:02]CheckOFDResponse [15:09:02]1017 (14) - 77093643461234 [15:09:02]1041 (16) - 0000000000875083 [15:09:02]1040 (4) - 111702 [15:09:02]1012 (4) - 20.06.2024 07:42 [15:09:02]1206 (1) - 0 [15:09:02]OFD Sender: Remove packet 111702 [15:09:02]ProducePacketName [15:09:02]name=ofd_packets/00111702 [15:09:02]NVStorageDeleteData [15:09:02]Write to MH i2c: 01 00 00 5D 04 61 [15:09:02]Write i2c OK [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: 01 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: 01 07 00 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: 01 07 00 5D 04 00 00 00 00 00 E4 0C 58 [15:09:02]RasterBufferAndPrint [15:09:02]line [15:09:02]line [15:09:02]line [15:09:02]line [15:09:02]line [15:09:02]written 0, free lines is 3306 [15:09:02]MH_Cut [15:09:02]Write to MH i2c: D1 01 00 64 04 01 3A [15:09:02]Write i2c OK [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: D1 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: D1 01 00 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: D1 01 00 64 04 00 39 [15:09:02]Write to MH i2c: 01 00 00 65 04 69 [15:09:02]Write i2c OK [15:09:02]MH_I2C_Read... [15:09:03]OFD Sender: No OFD packet to send [15:09:03]*** Cut start [15:09:03]*** Partial cut [15:09:03]*** CUTSNS_PIN = 1 [15:09:03]*** CUTSNS_PIN = 0 [15:09:03]*** Brake cut motor [15:09:04]Read from MH i2c: 01 [15:09:04]MH_I2C_Read... [15:09:04]*** Stop cut motor [15:09:04]*** Cut end [15:09:04]Read from MH i2c: 01 07 00 [15:09:04]MH_I2C_Read... [15:09:04]Read from MH i2c: 01 07 00 65 04 00 00 00 00 00 FF 0F 7E [15:09:04]process_action close_receipt done [15:09:04]requested_data is exist [15:09:04]produce_requested_data [15:09:04]requested_item fm.sn is exist - process it [15:09:04]wFMCommunicate request_size=4 [15:09:04]MH_SAM_APDU [15:09:04]CAPDU: 80 11 00 00 [15:09:04]Write to MH i2c: E2 08 00 66 04 80 11 00 00 00 00 00 00 E4 [15:09:04]Write i2c OK [15:09:04]MH_I2C_Read... [15:09:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:04]Read from MH i2c: E2 [15:09:04]MH_I2C_Read... [15:09:04]Read from MH i2c: E2 17 00 [15:09:04]MH_I2C_Read... [15:09:04]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 35 30 38 33 90 00 36 [15:09:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:09:04]wFMCommunicate OK [15:09:04]requested_item fd.num is exist - process it [15:09:04]SAM_PROTO_GetFieldsCounters [15:09:04]wFMCommunicate request_size=4 [15:09:04]MH_SAM_APDU [15:09:04]CAPDU: 80 13 00 00 [15:09:04]Write to MH i2c: E2 08 00 67 04 80 13 00 00 00 00 00 00 E7 [15:09:04]Write i2c OK [15:09:04]MH_I2C_Read... [15:09:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:04]Read from MH i2c: E2 [15:09:04]MH_I2C_Read... [15:09:04]Read from MH i2c: E2 62 00 [15:09:04]MH_I2C_Read... [15:09:04]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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 56 B4 01 00 0E 04 04 00 85 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 61 [15:09:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 56 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:09:04]wFMCommunicate OK [15:09:04]SAM_PROTO_GetFieldsCounters done [15:09:04]requested_item shift.num is exist - process it [15:09:04]requested_item shift.opened is exist - process it [15:09:04]req_shift_opened [15:09:04]FM_GetShiftState [15:09:04]SAM_PROTO_GetShiftState [15:09:04]wFMCommunicate request_size=4 [15:09:04]MH_SAM_APDU [15:09:04]CAPDU: 80 13 01 00 [15:09:04]Write to MH i2c: E2 08 00 68 04 80 13 01 00 00 00 00 00 E9 [15:09:04]Write i2c OK [15:09:04]MH_I2C_Read... [15:09:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:04]Read from MH i2c: E2 [15:09:04]MH_I2C_Read... [15:09:04]Read from MH i2c: E2 0E 00 [15:09:04]MH_I2C_Read... [15:09:04]Read from MH i2c: E2 0E 00 68 04 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 64 [15:09:04]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:09:04]wFMCommunicate OK [15:09:04]SAM_PROTO_GetShiftState done [15:09:04]FM_GetShiftState done [15:09:04]req_shift_opened done [15:09:04]requested_item shift.open_date is exist - process it [15:09:04]req_shift_open_date [15:09:04]req_shift_open_date done [15:09:04]produce_requested_data done [15:09:04]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111702,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [15:09:04]process_action_free close_receipt [15:09:04]json_value_free [15:09:04]json_value_free done [15:09:04]process_json_proto returns [15:09:04]Send response to host [15:09:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111702,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [15:09:04]free response buf [15:09:04]execute_script done [15:09:04]execute_script returns [15:09:04]free content buf [15:09:04]Sock 7.Close socket [15:09:04]Sock 7.Thread stoped [15:09:08]OFD Sender: No OFD packet to send [15:09:13]OFD Sender: No OFD packet to send [15:09:18]OFD Sender: No OFD packet to send [15:09:23]OFD Sender: No OFD packet to send [15:09:28]OFD Sender: No OFD packet to send [15:09:33]OFD Sender: No OFD packet to send [15:09:38]OFD Sender: No OFD packet to send [15:09:43]OFD Sender: No OFD packet to send [15:09:48]OFD Sender: No OFD packet to send [15:09:49]accept exits with 9 [15:09:49]New connection [15:09:49]New thread 3067178340 created [15:09:49]Thread 3067321700 joined [15:09:49]Waiting for new connection... [15:09:49] Sock 9.Parse request [15:09:49]Sock 9.Check first char [15:09:49]Sock 9.First char is OK [15:09:49]request: POST /json_proto HTTP/1.0 [15:09:49]Method: POST [15:09:49]URL: /json_proto [15:09:49]Method is POST - this is cgi request [15:09:49]url: /json_proto [15:09:49]query_string will be loaded in cgi processing [15:09:49]execute_cgi json_proto POST (null) [15:09:49]execute_cgi path=json_proto method=POST [15:09:49]POST find Content-Length [15:09:49]Host: 172.17.59.68:8080 [15:09:49]Content-Length: 677 [15:09:49]Content-Type: application/json [15:09:49] [15:09:49]POST finish read [15:09:49]Found Content-Length = 677 [15:09:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:49]execute_script... [15:09: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)320321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:49]POST & json_proto [15:09:49]process_json_proto [15:09:49]json parsed OK: [15:09:49]protocol is kg_v1.0 [15:09:49]action value=close_receipt [15:09:49]process_action close_receipt [15:09:49]cmd_close_receipt [15:09:49]MH_GetDate [15:09:49]Write to MH i2c: F0 00 00 69 04 5C [15:09:49]Write i2c OK [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: F0 [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: F0 09 00 [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: F0 09 00 69 04 00 3F 46 74 66 BC EC 60 65 31 [15:09:49]GetLastDocTimeStamp 1718896142 [15:09:49]current date 1718896191 [15:09:49]FM_GetShiftState [15:09:49]SAM_PROTO_GetShiftState [15:09:49]wFMCommunicate request_size=4 [15:09:49]MH_SAM_APDU [15:09:49]CAPDU: 80 13 01 00 [15:09:49]Write to MH i2c: E2 08 00 6A 04 80 13 01 00 00 00 00 00 EB [15:09:49]Write i2c OK [15:09:49]MH_I2C_Read... [15:09:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:49]Read from MH i2c: E2 [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: E2 0E 00 [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: E2 0E 00 6A 04 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 66 [15:09:49]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:09:49]wFMCommunicate OK [15:09:49]SAM_PROTO_GetShiftState done [15:09:49]FM_GetShiftState done [15:09:49]opened in 1718847247 [15:09:49]opened+sec_in_day 1718933647 [15:09:49]quantity*price = 40039 [15:09:49]sum+1 = 40040 [15:09:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 153 20.06.2024 15:09 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111703 ФПД: 106781010047909 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T150951&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111703&fm=106781010047909&tin=02508201610067®Number=0000000000092771&sum=40000 [15:09:50]StoreToDocumentArchive [15:09:50]shift 389 fd 111703 [15:09:50]save to /storage/0389/doc_00111703 [15:09:50]save last doc name /storage/0389/doc_00111703 to /storage/kkm_last_doc_name [15:09:50]save OK [15:09:50]Clear old archive folders... [15:09:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:09:50]tlvbuf is 016F22F0 [15:09:50]SAM_PROTO_ClearQueue [15:09:50]wFMCommunicate request_size=4 [15:09:50]MH_SAM_APDU [15:09:50]CAPDU: 80 09 00 00 [15:09:50]Write to MH i2c: E2 08 00 77 04 80 09 00 00 00 00 00 00 ED [15:09:50]Write i2c OK [15:09:50]MH_I2C_Read... [15:09:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:51]Read from MH i2c: E2 [15:09:51]MH_I2C_Read... [15:09:51]Read from MH i2c: E2 03 00 [15:09:51]MH_I2C_Read... [15:09:51]Read from MH i2c: E2 03 00 77 04 00 90 00 EF [15:09:51]RAPDU: 90 00 [15:09:51]wFMCommunicate OK [15:09:51]SAM_PROTO_ClearQueue done [15:09:51]KKMCreateOFDPacket [15:09:51]OFDProtocolAddRootSTLVToBuf [15:09:51]FM_MakeSignedData [15:09:51]FM_MakeSignedData [15:09:51]SAM_PROTO_SignData [15:09:51]wFMCommunicate request_size=4 [15:09:51]MH_SAM_APDU [15:09:51]CAPDU: 80 0D 01 02 [15:09:51]Write to MH i2c: E2 08 00 78 04 80 0D 01 02 00 00 00 00 F5 [15:09:51]Write i2c OK [15:09:51]MH_I2C_Read... [15:09:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:51]Read from MH i2c: E2 [15:09:51]MH_I2C_Read... [15:09:51]Read from MH i2c: E2 03 00 [15:09:51]MH_I2C_Read... [15:09:51]Read from MH i2c: E2 03 00 78 04 00 90 00 F0 [15:09:51]RAPDU: 90 00 [15:09:51]wFMCommunicate OK [15:09:51]wFMCommunicate request_size=255 [15:09:51]MH_SAM_APDU [15:09:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 3F 46 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 57 B4 01 00 35 04 06 00 61 [15:09:51]Write to MH i2c: E2 02 01 79 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 3F 46 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 57 B4 01 00 35 04 06 00 61 00 00 62 [15:09:51]Write i2c OK [15:09:51]MH_I2C_Read... [15:09:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:51]Read from MH i2c: E2 [15:09:51]MH_I2C_Read... [15:09:51]Read from MH i2c: E2 03 00 [15:09:51]MH_I2C_Read... [15:09:51]Read from MH i2c: E2 03 00 79 04 00 90 00 F1 [15:09:51]RAPDU: 90 00 [15:09:51]wFMCommunicate OK [15:09:51]wFMCommunicate request_size=10 [15:09:51]MH_SAM_APDU [15:09:51]CAPDU: 80 0D 02 02 05 1D E4 2C 33 A5 [15:09:51]Write to MH i2c: E2 0D 00 7A 04 80 0D 02 02 05 00 1D E4 2C 33 A5 00 00 07 [15:09:51]Write i2c OK [15:09:51]MH_I2C_Read... [15:09:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:51]Read from MH i2c: E2 [15:09:51]MH_I2C_Read... [15:09:51]Read from MH i2c: E2 03 00 [15:09:51]MH_I2C_Read... [15:09:51]Read from MH i2c: E2 03 00 7A 04 00 90 00 F2 [15:09:51]RAPDU: 90 00 [15:09:51]wFMCommunicate OK [15:09:51]wFMCommunicate request_size=4 [15:09:51]MH_SAM_APDU [15:09:51]CAPDU: 80 0D 03 02 [15:09:51]Write to MH i2c: E2 08 00 7B 04 80 0D 03 02 00 00 00 00 FA [15:09:51]Write i2c OK [15:09:51]MH_I2C_Read... [15:09:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:51]Read from MH i2c: E2 [15:09:51]MH_I2C_Read... [15:09:51]Read from MH i2c: E2 0B 00 [15:09:51]MH_I2C_Read... [15:09:51]Read from MH i2c: E2 0B 00 7B 04 00 8A 30 B0 1C E4 2B B1 82 90 00 C3 [15:09:51]RAPDU: 8A 30 B0 1C E4 2B B1 82 90 00 [15:09:51]wFMCommunicate OK [15:09:51]SAM_PROTO_SignData done [15:09:51]FM_MakeSignedData done [15:09:51]CreateOFDProtocolMessage [15:09:51]wFMCommunicate request_size=4 [15:09:51]MH_SAM_APDU [15:09:51]CAPDU: 80 11 00 00 [15:09:51]Write to MH i2c: E2 08 00 7C 04 80 11 00 00 00 00 00 00 FA [15:09:51]Write i2c OK [15:09:51]MH_I2C_Read... [15:09:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:51]Read from MH i2c: E2 [15:09:51]MH_I2C_Read... [15:09:51]Read from MH i2c: E2 17 00 [15:09:51]MH_I2C_Read... [15:09:51]Read from MH i2c: E2 17 00 7C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4C [15:09:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:09:51]wFMCommunicate OK [15:09:51]CreateOFDProtocolMessage done [15:09:51]OFDSenderStorePacket 111703 [15:09:51]StoreOFDPacket docnum=111703 [15:09:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 35 BC 07 01 21 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 3F 46 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 57 B4 01 00 35 04 06 00 61 1D E4 2C 33 A5 8A 30 B0 1C E4 2B B1 82 [15:09:51]CheckFolder [15:09:51]dirname=/storage/ofd_packets [15:09:51]CheckFolder done [15:09:51]ProducePacketName [15:09:51]name=ofd_packets/00111703 [15:09:51]NVStorageSaveData ofd_packets/00111703 [15:09:51]File name is /storage/ofd_packets/00111703 [15:09:51]Write 301 bytes [15:09:51]NVStorageSaveData done [15:09:51]OFDSenderStorePacket done [15:09:51]KKMCreateOFDPacket done [15:09:51]NVStorageSaveData kkm_last_timestamp [15:09:51]File name is /storage/kkm_last_timestamp [15:09:51]Write 4 bytes [15:09:51]NVStorageSaveData done [15:09:51]ExternCall_PrintAddStr [15:09:51]wPrintStart [15:09:51]Write to MH i2c: 01 00 00 7D 04 81 [15:09:51]Write i2c OK [15:09:51]MH_I2C_Read... [15:09:51]Read from MH i2c: 01 [15:09:51]MH_I2C_Read... [15:09:51]Read from MH i2c: 01 07 00 [15:09:51]MH_I2C_Read... [15:09:51]Read from MH i2c: 01 07 00 7D 04 00 00 00 00 00 FF 0F 96 [15:09:51]RasterBufferAndPrint [15:09:51]line Счет N : (1)320321 [15:09:51]line ИНН: 02508201610067 [15:09:51]line Контрольно-Кассовый Чек [15:09:51]line ПРОДАЖА [15:09:51]line ТРК (МРК, ГНК) : 11 [15:09:51]line Товар: 2710124130 [15:09:51]line Аи-92-К-5 [15:09:51]line 6.030 * 66.40 [15:09:51]line = 400.39 [15:09:51]line НДС 12% НСП 1% [15:09:51]line > о реализуемом товаре [15:09:51]line ОКРУГЛЕНИЕ: -0.39 [15:09:51]line ИТОГО: 400.00 [15:09:51]line Внесено: 400.00 [15:09:51]line СДАЧА: 0.00 [15:09:51]line НСП 1% : 3.54 [15:09:51]line НДС 12% : 42.52 [15:09:51]line Наличными: 400.00 [15:09:51]line Безнал.: 0.00 [15:09:51]line Место: АЗС № 65 "Партнер Нефть" [15:09:51]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:09:51]line СНО: Общий режим [15:09:51]line Чек 153 20.06.2024 15:09 [15:09:51]line Смена: 389 ФФД: 1.0 [15:09:51]line ЗНМ: 0300000198 [15:09:51]line РНМ: 0000000000092771 [15:09:51]line Версия ККМ: 001 [15:09:51]line ФМ: 0000000000875083 [15:09:51]line ФД: 111703 [15:09:51]line ФПД: 106781010047909 [15:09:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T150951&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111703&fm=106781010047909&tin=02508201610067®Number=0000000000092771&sum=40000 [15:09:51]OFD Sender: Processing packet 111703 [packets to send 38, broken 37] [15:09:51]ProducePacketName [15:09:51]name=ofd_packets/00111703 [15:09:51]OFD Sender: To server: pG, [15:09:51]CommunicateWithHost lk.salyk.kg:30040 [15:09:51]ConnectInit lk.salyk.kg [15:09:51]written 0, free lines is 4095 [15:09:51]Connected sock=10 [15:09:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 35 BC 07 01 21 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 3F 46 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 57 B4 01 00 35 04 06 00 61 1D E4 2C 33 A5 8A 30 B0 1C E4 2B B1 82 [15:09:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 88 70 47 00 6A 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 35 30 38 33 10 04 04 00 57 B4 01 00 F4 03 04 00 86 DD 73 66 B6 04 01 00 00 9B 24 57 7E 0B 10 5F 15 [15:09:52]CommunicateWithHost err = 0 [15:09:52]CheckOFDResponse [15:09:52]1017 (14) - 77093643461234 [15:09:52]1041 (16) - 0000000000875083 [15:09:52]1040 (4) - 111703 [15:09:52]1012 (4) - 20.06.2024 07:43 [15:09:52]1206 (1) - 0 [15:09:52]OFD Sender: Remove packet 111703 [15:09:52]ProducePacketName [15:09:52]name=ofd_packets/00111703 [15:09:52]NVStorageDeleteData [15:09:52]Write to MH i2c: 01 00 00 A8 04 AC [15:09:52]Write i2c OK [15:09:52]MH_I2C_Read... [15:09:52]Read from MH i2c: 01 [15:09:52]MH_I2C_Read... [15:09:52]Read from MH i2c: 01 07 00 [15:09:52]MH_I2C_Read... [15:09:52]Read from MH i2c: 01 07 00 A8 04 00 00 00 00 00 E7 0C A6 [15:09:52]RasterBufferAndPrint [15:09:52]line [15:09:52]line [15:09:52]line [15:09:52]line [15:09:52]line [15:09:52]written 0, free lines is 3310 [15:09:52]MH_Cut [15:09:52]Write to MH i2c: D1 01 00 AF 04 01 85 [15:09:52]Write i2c OK [15:09:52]MH_I2C_Read... [15:09:52]Read from MH i2c: D1 [15:09:52]MH_I2C_Read... [15:09:52]Read from MH i2c: D1 01 00 [15:09:52]MH_I2C_Read... [15:09:52]Read from MH i2c: D1 01 00 AF 04 00 84 [15:09:52]Write to MH i2c: 01 00 00 B0 04 B4 [15:09:52]Write i2c OK [15:09:52]MH_I2C_Read... [15:09:52]OFD Sender: No OFD packet to send [15:09:53]*** Cut start [15:09:53]*** Partial cut [15:09:53]*** CUTSNS_PIN = 1 [15:09:53]*** CUTSNS_PIN = 0 [15:09:53]*** Brake cut motor [15:09:53]Read from MH i2c: 01 [15:09:53]MH_I2C_Read... [15:09:53]*** Stop cut motor [15:09:53]*** Cut end [15:09:53]Read from MH i2c: 01 07 00 [15:09:53]MH_I2C_Read... [15:09:53]Read from MH i2c: 01 07 00 B0 04 00 00 00 00 00 FF 0F C9 [15:09:53]process_action close_receipt done [15:09:53]requested_data is exist [15:09:53]produce_requested_data [15:09:53]requested_item fm.sn is exist - process it [15:09:53]wFMCommunicate request_size=4 [15:09:53]MH_SAM_APDU [15:09:53]CAPDU: 80 11 00 00 [15:09:53]Write to MH i2c: E2 08 00 B1 04 80 11 00 00 00 00 00 00 2F [15:09:53]Write i2c OK [15:09:53]MH_I2C_Read... [15:09:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:53]Read from MH i2c: E2 [15:09:53]MH_I2C_Read... [15:09:53]Read from MH i2c: E2 17 00 [15:09:53]MH_I2C_Read... [15:09:53]Read from MH i2c: E2 17 00 B1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 81 [15:09:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:09:53]wFMCommunicate OK [15:09:53]requested_item fd.num is exist - process it [15:09:53]SAM_PROTO_GetFieldsCounters [15:09:53]wFMCommunicate request_size=4 [15:09:53]MH_SAM_APDU [15:09:53]CAPDU: 80 13 00 00 [15:09:53]Write to MH i2c: E2 08 00 B2 04 80 13 00 00 00 00 00 00 32 [15:09:53]Write i2c OK [15:09:53]MH_I2C_Read... [15:09:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:53]Read from MH i2c: E2 [15:09:53]MH_I2C_Read... [15:09:53]Read from MH i2c: E2 62 00 [15:09:53]MH_I2C_Read... [15:09:53]Read from MH i2c: E2 62 00 B2 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 57 B4 01 00 0E 04 04 00 85 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 B0 [15:09:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 57 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:09:53]wFMCommunicate OK [15:09:53]SAM_PROTO_GetFieldsCounters done [15:09:53]requested_item shift.num is exist - process it [15:09:53]requested_item shift.opened is exist - process it [15:09:53]req_shift_opened [15:09:53]FM_GetShiftState [15:09:53]SAM_PROTO_GetShiftState [15:09:53]wFMCommunicate request_size=4 [15:09:53]MH_SAM_APDU [15:09:53]CAPDU: 80 13 01 00 [15:09:53]Write to MH i2c: E2 08 00 B3 04 80 13 01 00 00 00 00 00 34 [15:09:53]Write i2c OK [15:09:53]MH_I2C_Read... [15:09:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:53]Read from MH i2c: E2 [15:09:53]MH_I2C_Read... [15:09:53]Read from MH i2c: E2 0E 00 [15:09:53]MH_I2C_Read... [15:09:53]Read from MH i2c: E2 0E 00 B3 04 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 AF [15:09:53]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:09:53]wFMCommunicate OK [15:09:53]SAM_PROTO_GetShiftState done [15:09:53]FM_GetShiftState done [15:09:53]req_shift_opened done [15:09:53]requested_item shift.open_date is exist - process it [15:09:53]req_shift_open_date [15:09:53]req_shift_open_date done [15:09:53]produce_requested_data done [15:09:53]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111703,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [15:09:53]process_action_free close_receipt [15:09:53]json_value_free [15:09:53]json_value_free done [15:09:53]process_json_proto returns [15:09:53]Send response to host [15:09:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111703,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [15:09:53]free response buf [15:09:53]execute_script done [15:09:53]execute_script returns [15:09:53]free content buf [15:09:53]Sock 9.Close socket [15:09:53]Sock 9.Thread stoped [15:09:57]OFD Sender: No OFD packet to send [15:10:02]OFD Sender: No OFD packet to send [15:10:07]OFD Sender: No OFD packet to send [15:10:12]OFD Sender: No OFD packet to send [15:10:17]OFD Sender: No OFD packet to send [15:10:22]OFD Sender: No OFD packet to send [15:10:27]OFD Sender: No OFD packet to send [15:10:30]accept exits with 7 [15:10:30]New connection [15:10:30]New thread 3067321700 created [15:10:30]Thread 3067178340 joined [15:10:30]Waiting for new connection... [15:10:30] Sock 7.Parse request [15:10:30]Sock 7.Check first char [15:10:30]Sock 7.First char is OK [15:10:30]request: POST /json_proto HTTP/1.0 [15:10:30]Method: POST [15:10:30]URL: /json_proto [15:10:30]Method is POST - this is cgi request [15:10:30]url: /json_proto [15:10:30]query_string will be loaded in cgi processing [15:10:30]execute_cgi json_proto POST (null) [15:10:30]execute_cgi path=json_proto method=POST [15:10:30]POST find Content-Length [15:10:30]Host: 172.17.59.68:8080 [15:10:30]Content-Length: 677 [15:10:30]Content-Type: application/json [15:10:30] [15:10:30]POST finish read [15:10:30]Found Content-Length = 677 [15:10:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:30]execute_script... [15:10: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)320322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:30]POST & json_proto [15:10:30]process_json_proto [15:10:30]json parsed OK: [15:10:30]protocol is kg_v1.0 [15:10:30]action value=close_receipt [15:10:30]process_action close_receipt [15:10:30]cmd_close_receipt [15:10:30]MH_GetDate [15:10:30]Write to MH i2c: F0 00 00 B4 04 A7 [15:10:30]Write i2c OK [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: F0 [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: F0 09 00 [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: F0 09 00 B4 04 00 68 46 74 66 BC EC 60 65 A5 [15:10:30]GetLastDocTimeStamp 1718896191 [15:10:30]current date 1718896232 [15:10:30]FM_GetShiftState [15:10:30]SAM_PROTO_GetShiftState [15:10:30]wFMCommunicate request_size=4 [15:10:30]MH_SAM_APDU [15:10:30]CAPDU: 80 13 01 00 [15:10:30]Write to MH i2c: E2 08 00 B5 04 80 13 01 00 00 00 00 00 36 [15:10:30]Write i2c OK [15:10:30]MH_I2C_Read... [15:10:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:30]Read from MH i2c: E2 [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: E2 0E 00 [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: E2 0E 00 B5 04 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 B1 [15:10:30]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:10:30]wFMCommunicate OK [15:10:30]SAM_PROTO_GetShiftState done [15:10:30]FM_GetShiftState done [15:10:30]opened in 1718847247 [15:10:30]opened+sec_in_day 1718933647 [15:10:30]quantity*price = 20052 [15:10:30]sum+1 = 20054 [15:10:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 154 20.06.2024 15:10 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111704 ФПД: 194082934867479 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T151032&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111704&fm=194082934867479&tin=02508201610067®Number=0000000000092771&sum=20000 [15:10:31]StoreToDocumentArchive [15:10:31]shift 389 fd 111704 [15:10:31]save to /storage/0389/doc_00111704 [15:10:31]save last doc name /storage/0389/doc_00111704 to /storage/kkm_last_doc_name [15:10:31]save OK [15:10:31]Clear old archive folders... [15:10:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:10:31]tlvbuf is 016F3C20 [15:10:31]SAM_PROTO_ClearQueue [15:10:31]wFMCommunicate request_size=4 [15:10:31]MH_SAM_APDU [15:10:31]CAPDU: 80 09 00 00 [15:10:31]Write to MH i2c: E2 08 00 C2 04 80 09 00 00 00 00 00 00 38 [15:10:31]Write i2c OK [15:10:31]MH_I2C_Read... [15:10:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:31]Read from MH i2c: E2 [15:10:31]MH_I2C_Read... [15:10:31]Read from MH i2c: E2 03 00 [15:10:31]MH_I2C_Read... [15:10:31]Read from MH i2c: E2 03 00 C2 04 00 90 00 3A [15:10:31]RAPDU: 90 00 [15:10:31]wFMCommunicate OK [15:10:31]SAM_PROTO_ClearQueue done [15:10:31]KKMCreateOFDPacket [15:10:31]OFDProtocolAddRootSTLVToBuf [15:10:31]FM_MakeSignedData [15:10:31]FM_MakeSignedData [15:10:31]SAM_PROTO_SignData [15:10:31]wFMCommunicate request_size=4 [15:10:31]MH_SAM_APDU [15:10:31]CAPDU: 80 0D 01 02 [15:10:31]Write to MH i2c: E2 08 00 C3 04 80 0D 01 02 00 00 00 00 40 [15:10:31]Write i2c OK [15:10:31]MH_I2C_Read... [15:10:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:31]Read from MH i2c: E2 [15:10:31]MH_I2C_Read... [15:10:31]Read from MH i2c: E2 03 00 [15:10:31]MH_I2C_Read... [15:10:31]Read from MH i2c: E2 03 00 C3 04 00 90 00 3B [15:10:31]RAPDU: 90 00 [15:10:31]wFMCommunicate OK [15:10:31]wFMCommunicate request_size=255 [15:10:31]MH_SAM_APDU [15:10: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 68 46 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 58 B4 01 00 35 04 06 00 B0 [15:10:31]Write to MH i2c: E2 02 01 C4 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 68 46 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 58 B4 01 00 35 04 06 00 B0 00 00 18 [15:10:31]Write i2c OK [15:10:31]MH_I2C_Read... [15:10:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:31]Read from MH i2c: E2 [15:10:31]MH_I2C_Read... [15:10:31]Read from MH i2c: E2 03 00 [15:10:31]MH_I2C_Read... [15:10:31]Read from MH i2c: E2 03 00 C4 04 00 90 00 3C [15:10:31]RAPDU: 90 00 [15:10:31]wFMCommunicate OK [15:10:31]wFMCommunicate request_size=10 [15:10:31]MH_SAM_APDU [15:10:31]CAPDU: 80 0D 02 02 05 84 74 63 C6 17 [15:10:31]Write to MH i2c: E2 0D 00 C5 04 80 0D 02 02 05 00 84 74 63 C6 17 00 00 85 [15:10:31]Write i2c OK [15:10:31]MH_I2C_Read... [15:10:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:31]Read from MH i2c: E2 [15:10:31]MH_I2C_Read... [15:10:31]Read from MH i2c: E2 03 00 [15:10:31]MH_I2C_Read... [15:10:31]Read from MH i2c: E2 03 00 C5 04 00 90 00 3D [15:10:31]RAPDU: 90 00 [15:10:31]wFMCommunicate OK [15:10:31]wFMCommunicate request_size=4 [15:10:31]MH_SAM_APDU [15:10:31]CAPDU: 80 0D 03 02 [15:10:31]Write to MH i2c: E2 08 00 C6 04 80 0D 03 02 00 00 00 00 45 [15:10:31]Write i2c OK [15:10:31]MH_I2C_Read... [15:10:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:31]Read from MH i2c: E2 [15:10:31]MH_I2C_Read... [15:10:31]Read from MH i2c: E2 0B 00 [15:10:31]MH_I2C_Read... [15:10:31]Read from MH i2c: E2 0B 00 C6 04 00 96 9B 73 15 89 C8 1F 2C 90 00 9B [15:10:31]RAPDU: 96 9B 73 15 89 C8 1F 2C 90 00 [15:10:31]wFMCommunicate OK [15:10:31]SAM_PROTO_SignData done [15:10:31]FM_MakeSignedData done [15:10:31]CreateOFDProtocolMessage [15:10:31]wFMCommunicate request_size=4 [15:10:31]MH_SAM_APDU [15:10:31]CAPDU: 80 11 00 00 [15:10:31]Write to MH i2c: E2 08 00 C7 04 80 11 00 00 00 00 00 00 45 [15:10:31]Write i2c OK [15:10:31]MH_I2C_Read... [15:10:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:31]Read from MH i2c: E2 [15:10:31]MH_I2C_Read... [15:10:31]Read from MH i2c: E2 17 00 [15:10:31]MH_I2C_Read... [15:10:31]Read from MH i2c: E2 17 00 C7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 97 [15:10:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:10:31]wFMCommunicate OK [15:10:31]CreateOFDProtocolMessage done [15:10:31]OFDSenderStorePacket 111704 [15:10:31]StoreOFDPacket docnum=111704 [15:10:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B1 70 07 01 76 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 68 46 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 58 B4 01 00 35 04 06 00 B0 84 74 63 C6 17 96 9B 73 15 89 C8 1F 2C [15:10:31]CheckFolder [15:10:31]dirname=/storage/ofd_packets [15:10:31]CheckFolder done [15:10:31]ProducePacketName [15:10:31]name=ofd_packets/00111704 [15:10:31]NVStorageSaveData ofd_packets/00111704 [15:10:31]File name is /storage/ofd_packets/00111704 [15:10:31]Write 301 bytes [15:10:31]NVStorageSaveData done [15:10:31]OFDSenderStorePacket done [15:10:31]KKMCreateOFDPacket done [15:10:31]NVStorageSaveData kkm_last_timestamp [15:10:31]File name is /storage/kkm_last_timestamp [15:10:31]Write 4 bytes [15:10:31]NVStorageSaveData done [15:10:31]ExternCall_PrintAddStr [15:10:31]wPrintStart [15:10:31]Write to MH i2c: 01 00 00 C8 04 CC [15:10:31]Write i2c OK [15:10:31]MH_I2C_Read... [15:10:31]Read from MH i2c: 01 [15:10:31]MH_I2C_Read... [15:10:31]Read from MH i2c: 01 07 00 [15:10:31]MH_I2C_Read... [15:10:31]Read from MH i2c: 01 07 00 C8 04 00 00 00 00 00 FF 0F E1 [15:10:31]RasterBufferAndPrint [15:10:31]line Счет N : (1)320322 [15:10:31]line ИНН: 02508201610067 [15:10:31]line Контрольно-Кассовый Чек [15:10:31]line ПРОДАЖА [15:10:31]line ТРК (МРК, ГНК) : 11 [15:10:31]line Товар: 2710124130 [15:10:31]line Аи-92-К-5 [15:10:31]line 3.020 * 66.40 [15:10:31]line = 200.53 [15:10:31]line НДС 12% НСП 1% [15:10:31]line > о реализуемом товаре [15:10:31]line ОКРУГЛЕНИЕ: -0.53 [15:10:31]line ИТОГО: 200.00 [15:10:31]line Внесено: 200.00 [15:10:31]line СДАЧА: 0.00 [15:10:31]line НСП 1% : 1.77 [15:10:31]line НДС 12% : 21.29 [15:10:31]line Наличными: 200.00 [15:10:31]line Безнал.: 0.00 [15:10:31]line Место: АЗС № 65 "Партнер Нефть" [15:10:31]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:10:31]line СНО: Общий режим [15:10:31]line Чек 154 20.06.2024 15:10 [15:10:31]line Смена: 389 ФФД: 1.0 [15:10:31]line ЗНМ: 0300000198 [15:10:31]line РНМ: 0000000000092771 [15:10:31]line Версия ККМ: 001 [15:10:31]line ФМ: 0000000000875083 [15:10:31]line ФД: 111704 [15:10:31]line ФПД: 194082934867479 [15:10:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T151032&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111704&fm=194082934867479&tin=02508201610067®Number=0000000000092771&sum=20000 [15:10:32]OFD Sender: Processing packet 111704 [packets to send 38, broken 37] [15:10:32]ProducePacketName [15:10:32]name=ofd_packets/00111704 [15:10:32]OFD Sender: To server: pG, [15:10:32]CommunicateWithHost lk.salyk.kg:30040 [15:10:32]ConnectInit lk.salyk.kg [15:10:32]written 0, free lines is 4095 [15:10:32]Connected sock=10 [15:10:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B1 70 07 01 76 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 68 46 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 58 B4 01 00 35 04 06 00 B0 84 74 63 C6 17 96 9B 73 15 89 C8 1F 2C [15:10:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C5 D0 47 00 A2 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 58 B4 01 00 F4 03 04 00 AF DD 73 66 B6 04 01 00 00 43 03 21 38 F4 6E 06 9A [15:10:32]CommunicateWithHost err = 0 [15:10:32]CheckOFDResponse [15:10:32]1017 (14) - 77093643461234 [15:10:32]1041 (16) - 0000000000875083 [15:10:32]1040 (4) - 111704 [15:10:32]1012 (4) - 20.06.2024 07:43 [15:10:32]1206 (1) - 0 [15:10:32]OFD Sender: Remove packet 111704 [15:10:32]ProducePacketName [15:10:32]name=ofd_packets/00111704 [15:10:32]NVStorageDeleteData [15:10:32]Write to MH i2c: 01 00 00 F3 04 F7 [15:10:32]Write i2c OK [15:10:32]MH_I2C_Read... [15:10:32]Read from MH i2c: 01 [15:10:32]MH_I2C_Read... [15:10:32]Read from MH i2c: 01 07 00 [15:10:32]MH_I2C_Read... [15:10:32]Read from MH i2c: 01 07 00 F3 04 00 00 00 00 00 DE 0C E8 [15:10:32]RasterBufferAndPrint [15:10:32]line [15:10:32]line [15:10:32]line [15:10:32]line [15:10:32]line [15:10:32]written 0, free lines is 3300 [15:10:32]MH_Cut [15:10:32]Write to MH i2c: D1 01 00 FA 04 01 D0 [15:10:32]Write i2c OK [15:10:32]MH_I2C_Read... [15:10:32]Read from MH i2c: D1 [15:10:32]MH_I2C_Read... [15:10:32]Read from MH i2c: D1 01 00 [15:10:32]MH_I2C_Read... [15:10:32]Read from MH i2c: D1 01 00 FA 04 00 CF [15:10:32]Write to MH i2c: 01 00 00 FB 04 FF [15:10:32]Write i2c OK [15:10:32]MH_I2C_Read... [15:10:32]OFD Sender: No OFD packet to send [15:10:33]*** Cut start [15:10:33]*** Partial cut [15:10:33]*** CUTSNS_PIN = 1 [15:10:33]*** CUTSNS_PIN = 0 [15:10:33]*** Brake cut motor [15:10:33]Read from MH i2c: 01 [15:10:33]MH_I2C_Read... [15:10:33]*** Stop cut motor [15:10:33]*** Cut end [15:10:33]Read from MH i2c: 01 07 00 [15:10:33]MH_I2C_Read... [15:10:33]Read from MH i2c: 01 07 00 FB 04 00 00 00 00 00 FF 0F 14 [15:10:33]process_action close_receipt done [15:10:33]requested_data is exist [15:10:33]produce_requested_data [15:10:33]requested_item fm.sn is exist - process it [15:10:33]wFMCommunicate request_size=4 [15:10:33]MH_SAM_APDU [15:10:33]CAPDU: 80 11 00 00 [15:10:33]Write to MH i2c: E2 08 00 FC 04 80 11 00 00 00 00 00 00 7A [15:10:33]Write i2c OK [15:10:33]MH_I2C_Read... [15:10:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:34]Read from MH i2c: E2 [15:10:34]MH_I2C_Read... [15:10:34]Read from MH i2c: E2 17 00 [15:10:34]MH_I2C_Read... [15:10:34]Read from MH i2c: E2 17 00 FC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CC [15:10:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:10:34]wFMCommunicate OK [15:10:34]requested_item fd.num is exist - process it [15:10:34]SAM_PROTO_GetFieldsCounters [15:10:34]wFMCommunicate request_size=4 [15:10:34]MH_SAM_APDU [15:10:34]CAPDU: 80 13 00 00 [15:10:34]Write to MH i2c: E2 08 00 FD 04 80 13 00 00 00 00 00 00 7D [15:10:34]Write i2c OK [15:10:34]MH_I2C_Read... [15:10:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:34]Read from MH i2c: E2 [15:10:34]MH_I2C_Read... [15:10:34]Read from MH i2c: E2 62 00 [15:10:34]MH_I2C_Read... [15:10:34]Read from MH i2c: E2 62 00 FD 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 58 B4 01 00 0E 04 04 00 85 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 FF [15:10:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 58 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:10:34]wFMCommunicate OK [15:10:34]SAM_PROTO_GetFieldsCounters done [15:10:34]requested_item shift.num is exist - process it [15:10:34]requested_item shift.opened is exist - process it [15:10:34]req_shift_opened [15:10:34]FM_GetShiftState [15:10:34]SAM_PROTO_GetShiftState [15:10:34]wFMCommunicate request_size=4 [15:10:34]MH_SAM_APDU [15:10:34]CAPDU: 80 13 01 00 [15:10:34]Write to MH i2c: E2 08 00 FE 04 80 13 01 00 00 00 00 00 7F [15:10:34]Write i2c OK [15:10:34]MH_I2C_Read... [15:10:34]Read from MH i2c: E2 [15:10:34]MH_I2C_Read... [15:10:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:34]Read from MH i2c: E2 0E 00 [15:10:34]MH_I2C_Read... [15:10:34]Read from MH i2c: E2 0E 00 FE 04 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 FA [15:10:34]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:10:34]wFMCommunicate OK [15:10:34]SAM_PROTO_GetShiftState done [15:10:34]FM_GetShiftState done [15:10:34]req_shift_opened done [15:10:34]requested_item shift.open_date is exist - process it [15:10:34]req_shift_open_date [15:10:34]req_shift_open_date done [15:10:34]produce_requested_data done [15:10:34]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111704,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [15:10:34]process_action_free close_receipt [15:10:34]json_value_free [15:10:34]json_value_free done [15:10:34]process_json_proto returns [15:10:34]Send response to host [15:10:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111704,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [15:10:34]free response buf [15:10:34]execute_script done [15:10:34]execute_script returns [15:10:34]free content buf [15:10:34]Sock 7.Close socket [15:10:34]Sock 7.Thread stoped [15:10:38]OFD Sender: No OFD packet to send [15:10:43]OFD Sender: No OFD packet to send [15:10:48]OFD Sender: No OFD packet to send [15:10:53]OFD Sender: No OFD packet to send [15:10:58]OFD Sender: No OFD packet to send [15:11:03]OFD Sender: No OFD packet to send [15:11:08]OFD Sender: No OFD packet to send [15:11:13]OFD Sender: No OFD packet to send [15:11:18]OFD Sender: No OFD packet to send [15:11:23]OFD Sender: No OFD packet to send [15:11:28]OFD Sender: No OFD packet to send [15:11:33]OFD Sender: No OFD packet to send [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:13]OFD Sender: No OFD packet to send [15:12:18]OFD Sender: No OFD packet to send [15:12:23]OFD Sender: No OFD packet to send [15:12:28]OFD Sender: No OFD packet to send [15:12:33]OFD Sender: No OFD packet to send [15:12:38]OFD Sender: No OFD packet to send [15:12:43]OFD Sender: No OFD packet to send [15:12:48]OFD Sender: No OFD packet to send [15:12:53]OFD Sender: No OFD packet to send [15:12:58]OFD Sender: No OFD packet to send [15:13:03]OFD Sender: No OFD packet to send [15:13:08]OFD Sender: No OFD packet to send [15:13:13]OFD Sender: No OFD packet to send [15:13:18]OFD Sender: No OFD packet to send [15:13:23]OFD Sender: No OFD packet to send [15:13:28]OFD Sender: No OFD packet to send [15:13:33]OFD Sender: No OFD packet to send [15:13:38]OFD Sender: No OFD packet to send [15:13:43]OFD Sender: No OFD packet to send [15:13:48]OFD Sender: No OFD packet to send [15:13:53]OFD Sender: No OFD packet to send [15:13:58]OFD Sender: No OFD packet to send [15:14:03]OFD Sender: No OFD packet to send [15:14:08]OFD Sender: No OFD packet to send [15:14:13]OFD Sender: No OFD packet to send [15:14:18]OFD Sender: No OFD packet to send [15:14:23]OFD Sender: No OFD packet to send [15:14:28]OFD Sender: No OFD packet to send [15:14:33]OFD Sender: No OFD packet to send [15:14:38]OFD Sender: No OFD packet to send [15:14:43]OFD Sender: No OFD packet to send [15:14:48]OFD Sender: No OFD packet to send [15:14:53]OFD Sender: No OFD packet to send [15:14:58]OFD Sender: No OFD packet to send [15:15:03]OFD Sender: No OFD packet to send [15:15:08]OFD Sender: No OFD packet to send [15:15:13]OFD Sender: No OFD packet to send [15:15:18]OFD Sender: No OFD packet to send [15:15:23]OFD Sender: No OFD packet to send [15:15:28]OFD Sender: No OFD packet to send [15:15:33]OFD Sender: No OFD packet to send [15:15:38]OFD Sender: No OFD packet to send [15:15:43]OFD Sender: No OFD packet to send [15:15:48]OFD Sender: No OFD packet to send [15:15:53]OFD Sender: No OFD packet to send [15:15:58]OFD Sender: No OFD packet to send [15:16:03]OFD Sender: No OFD packet to send [15:16:08]OFD Sender: No OFD packet to send [15:16:13]OFD Sender: No OFD packet to send [15:16:18]OFD Sender: No OFD packet to send [15:16:23]OFD Sender: No OFD packet to send [15:16:28]OFD Sender: No OFD packet to send [15:16:33]OFD Sender: No OFD packet to send [15:16:38]OFD Sender: No OFD packet to send [15:16:43]OFD Sender: No OFD packet to send [15:16:48]OFD Sender: No OFD packet to send [15:16:53]OFD Sender: No OFD packet to send [15:16:58]OFD Sender: No OFD packet to send [15:17:03]OFD Sender: No OFD packet to send [15:17:08]OFD Sender: No OFD packet to send [15:17:13]OFD Sender: No OFD packet to send [15:17:18]OFD Sender: No OFD packet to send [15:17:23]OFD Sender: No OFD packet to send [15:17:28]OFD Sender: No OFD packet to send [15:17:33]OFD Sender: No OFD packet to send [15:17:38]OFD Sender: No OFD packet to send [15:17:43]OFD Sender: No OFD packet to send [15:17:48]OFD Sender: No OFD packet to send [15:17:53]OFD Sender: No OFD packet to send [15:17:58]OFD Sender: No OFD packet to send [15:18:03]OFD Sender: No OFD packet to send [15:18:08]OFD Sender: No OFD packet to send [15:18:13]OFD Sender: No OFD packet to send [15:18:18]OFD Sender: No OFD packet to send [15:18:23]OFD Sender: No OFD packet to send [15:18:28]OFD Sender: No OFD packet to send [15:18:33]OFD Sender: No OFD packet to send [15:18:38]OFD Sender: No OFD packet to send [15:18:43]OFD Sender: No OFD packet to send [15:18:48]OFD Sender: No OFD packet to send [15:18:53]OFD Sender: No OFD packet to send [15:18:58]OFD Sender: No OFD packet to send [15:19:03]OFD Sender: No OFD packet to send [15:19:08]OFD Sender: No OFD packet to send [15:19:13]OFD Sender: No OFD packet to send [15:19:18]OFD Sender: No OFD packet to send [15:19:23]OFD Sender: No OFD packet to send [15:19:28]OFD Sender: No OFD packet to send [15:19:33]OFD Sender: No OFD packet to send [15:19:38]OFD Sender: No OFD packet to send [15:19:38]accept exits with 9 [15:19:38]New connection [15:19:38]New thread 3067178340 created [15:19:38]Thread 3067321700 joined [15:19:38]Waiting for new connection... [15:19:38] Sock 9.Parse request [15:19:38]Sock 9.Check first char [15:19:38]Sock 9.First char is OK [15:19:38]request: POST /json_proto HTTP/1.0 [15:19:38]Method: POST [15:19:38]URL: /json_proto [15:19:38]Method is POST - this is cgi request [15:19:38]url: /json_proto [15:19:38]query_string will be loaded in cgi processing [15:19:38]execute_cgi json_proto POST (null) [15:19:38]execute_cgi path=json_proto method=POST [15:19:38]POST find Content-Length [15:19:38]Host: 172.17.59.68:8080 [15:19:38]Content-Length: 679 [15:19:38]Content-Type: application/json [15:19:38] [15:19:38]POST finish read [15:19:38]Found Content-Length = 679 [15:19:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:38]execute_script... [15:19:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:38]POST & json_proto [15:19:38]process_json_proto [15:19:38]json parsed OK: [15:19:38]protocol is kg_v1.0 [15:19:38]action value=close_receipt [15:19:38]process_action close_receipt [15:19:38]cmd_close_receipt [15:19:38]MH_GetDate [15:19:38]Write to MH i2c: F0 00 00 FF 04 F2 [15:19:38]Write i2c OK [15:19:38]MH_I2C_Read... [15:19:38]Read from MH i2c: F0 [15:19:38]MH_I2C_Read... [15:19:38]Read from MH i2c: F0 09 00 [15:19:38]MH_I2C_Read... [15:19:38]Read from MH i2c: F0 09 00 FF 04 00 8C 48 74 66 BC EC 60 65 16 [15:19:38]GetLastDocTimeStamp 1718896232 [15:19:38]current date 1718896780 [15:19:38]FM_GetShiftState [15:19:38]SAM_PROTO_GetShiftState [15:19:38]wFMCommunicate request_size=4 [15:19:38]MH_SAM_APDU [15:19:38]CAPDU: 80 13 01 00 [15:19:38]Write to MH i2c: E2 08 00 00 05 80 13 01 00 00 00 00 00 82 [15:19:38]Write i2c OK [15:19:38]MH_I2C_Read... [15:19:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:38]Read from MH i2c: E2 [15:19:38]MH_I2C_Read... [15:19:38]Read from MH i2c: E2 0E 00 [15:19:38]MH_I2C_Read... [15:19:38]Read from MH i2c: E2 0E 00 00 05 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 FD [15:19:38]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:19:38]wFMCommunicate OK [15:19:38]SAM_PROTO_GetShiftState done [15:19:38]FM_GetShiftState done [15:19:38]opened in 1718847247 [15:19:38]opened+sec_in_day 1718933647 [15:19:38]quantity*price = 300056 [15:19:38]sum+1 = 300057 [15:19:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 155 20.06.2024 15:19 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111705 ФПД: 178496952383550 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T151940&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111705&fm=178496952383550&tin=02508201610067®Number=0000000000092771&sum=300000 [15:19:39]StoreToDocumentArchive [15:19:39]shift 389 fd 111705 [15:19:39]save to /storage/0389/doc_00111705 [15:19:39]save last doc name /storage/0389/doc_00111705 to /storage/kkm_last_doc_name [15:19:39]save OK [15:19:39]Clear old archive folders... [15:19:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:19:39]tlvbuf is 01747C10 [15:19:39]SAM_PROTO_ClearQueue [15:19:39]wFMCommunicate request_size=4 [15:19:39]MH_SAM_APDU [15:19:39]CAPDU: 80 09 00 00 [15:19:39]Write to MH i2c: E2 08 00 0D 05 80 09 00 00 00 00 00 00 84 [15:19:39]Write i2c OK [15:19:39]MH_I2C_Read... [15:19:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:19:39]Read from MH i2c: E2 [15:19:39]MH_I2C_Read... [15:19:39]Read from MH i2c: E2 03 00 [15:19:39]MH_I2C_Read... [15:19:39]Read from MH i2c: E2 03 00 0D 05 00 90 00 86 [15:19:39]RAPDU: 90 00 [15:19:39]wFMCommunicate OK [15:19:39]SAM_PROTO_ClearQueue done [15:19:39]KKMCreateOFDPacket [15:19:39]OFDProtocolAddRootSTLVToBuf [15:19:39]FM_MakeSignedData [15:19:39]FM_MakeSignedData [15:19:39]SAM_PROTO_SignData [15:19:39]wFMCommunicate request_size=4 [15:19:39]MH_SAM_APDU [15:19:39]CAPDU: 80 0D 01 02 [15:19:39]Write to MH i2c: E2 08 00 0E 05 80 0D 01 02 00 00 00 00 8C [15:19:39]Write i2c OK [15:19:39]MH_I2C_Read... [15:19:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:19:39]Read from MH i2c: E2 [15:19:39]MH_I2C_Read... [15:19:39]Read from MH i2c: E2 03 00 [15:19:39]MH_I2C_Read... [15:19:39]Read from MH i2c: E2 03 00 0E 05 00 90 00 87 [15:19:39]RAPDU: 90 00 [15:19:39]wFMCommunicate OK [15:19:39]wFMCommunicate request_size=255 [15:19:39]MH_SAM_APDU [15:19:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 8C 48 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 59 B4 01 00 35 04 06 00 A2 57 8F 70 [15:19:39]Write to MH i2c: E2 02 01 0F 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 8C 48 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 59 B4 01 00 35 04 06 00 A2 57 8F 70 00 00 B7 [15:19:39]Write i2c OK [15:19:39]MH_I2C_Read... [15:19:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:40]Read from MH i2c: E2 [15:19:40]MH_I2C_Read... [15:19:40]Read from MH i2c: E2 03 00 [15:19:40]MH_I2C_Read... [15:19:40]Read from MH i2c: E2 03 00 0F 05 00 90 00 88 [15:19:40]RAPDU: 90 00 [15:19:40]wFMCommunicate OK [15:19:40]wFMCommunicate request_size=7 [15:19:40]MH_SAM_APDU [15:19:40]CAPDU: 80 0D 02 02 02 B8 3E [15:19:40]Write to MH i2c: E2 0A 00 10 05 80 0D 02 02 02 00 B8 3E 00 00 89 [15:19:40]Write i2c OK [15:19:40]MH_I2C_Read... [15:19:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:40]Read from MH i2c: E2 [15:19:40]MH_I2C_Read... [15:19:40]Read from MH i2c: E2 03 00 [15:19:40]MH_I2C_Read... [15:19:40]Read from MH i2c: E2 03 00 10 05 00 90 00 89 [15:19:40]RAPDU: 90 00 [15:19:40]wFMCommunicate OK [15:19:40]wFMCommunicate request_size=4 [15:19:40]MH_SAM_APDU [15:19:40]CAPDU: 80 0D 03 02 [15:19:40]Write to MH i2c: E2 08 00 11 05 80 0D 03 02 00 00 00 00 91 [15:19:40]Write i2c OK [15:19:40]MH_I2C_Read... [15:19:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:19:40]Read from MH i2c: E2 [15:19:40]MH_I2C_Read... [15:19:40]Read from MH i2c: E2 0B 00 [15:19:40]MH_I2C_Read... [15:19:40]Read from MH i2c: E2 0B 00 11 05 00 D4 93 60 13 D5 67 80 FB 90 00 23 [15:19:40]RAPDU: D4 93 60 13 D5 67 80 FB 90 00 [15:19:40]wFMCommunicate OK [15:19:40]SAM_PROTO_SignData done [15:19:40]FM_MakeSignedData done [15:19:40]CreateOFDProtocolMessage [15:19:40]wFMCommunicate request_size=4 [15:19:40]MH_SAM_APDU [15:19:40]CAPDU: 80 11 00 00 [15:19:40]Write to MH i2c: E2 08 00 12 05 80 11 00 00 00 00 00 00 91 [15:19:40]Write i2c OK [15:19:40]MH_I2C_Read... [15:19:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:40]Read from MH i2c: E2 [15:19:40]MH_I2C_Read... [15:19:40]Read from MH i2c: E2 17 00 [15:19:40]MH_I2C_Read... [15:19:40]Read from MH i2c: E2 17 00 12 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E3 [15:19:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:19:40]wFMCommunicate OK [15:19:40]CreateOFDProtocolMessage done [15:19:40]OFDSenderStorePacket 111705 [15:19:40]StoreOFDPacket docnum=111705 [15:19:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 C6 EF 04 01 5A 21 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 8C 48 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 59 B4 01 00 35 04 06 00 A2 57 8F 70 B8 3E D4 93 60 13 D5 67 80 FB [15:19:40]CheckFolder [15:19:40]dirname=/storage/ofd_packets [15:19:40]CheckFolder done [15:19:40]ProducePacketName [15:19:40]name=ofd_packets/00111705 [15:19:40]NVStorageSaveData ofd_packets/00111705 [15:19:40]File name is /storage/ofd_packets/00111705 [15:19:40]Write 298 bytes [15:19:40]NVStorageSaveData done [15:19:40]OFDSenderStorePacket done [15:19:40]KKMCreateOFDPacket done [15:19:40]NVStorageSaveData kkm_last_timestamp [15:19:40]File name is /storage/kkm_last_timestamp [15:19:40]Write 4 bytes [15:19:40]NVStorageSaveData done [15:19:40]ExternCall_PrintAddStr [15:19:40]wPrintStart [15:19:40]Write to MH i2c: 01 00 00 13 05 18 [15:19:40]Write i2c OK [15:19:40]MH_I2C_Read... [15:19:40]Read from MH i2c: 01 [15:19:40]MH_I2C_Read... [15:19:40]Read from MH i2c: 01 07 00 [15:19:40]MH_I2C_Read... [15:19:40]Read from MH i2c: 01 07 00 13 05 00 00 00 00 00 FF 0F 2D [15:19:40]RasterBufferAndPrint [15:19:40]line Счет N : (1)320323 [15:19:40]line ИНН: 02508201610067 [15:19:40]line Контрольно-Кассовый Чек [15:19:40]line ПРОДАЖА [15:19:40]line ТРК (МРК, ГНК) : 22 [15:19:40]line Товар: 2710194210 [15:19:40]line ДТ-К-5 [15:19:40]line 41.160 * 72.90 [15:19:40]line = 3000.56 [15:19:40]line НДС 12% НСП 1% [15:19:40]line > о реализуемом товаре [15:19:40]line ОКРУГЛЕНИЕ: -0.56 [15:19:40]line ИТОГО: 3000.00 [15:19:40]line Внесено: 3000.00 [15:19:40]line СДАЧА: 0.00 [15:19:40]line НСП 1% : 26.55 [15:19:40]line НДС 12% : 318.64 [15:19:40]line Наличными: 3000.00 [15:19:40]line Безнал.: 0.00 [15:19:40]line Место: АЗС № 65 "Партнер Нефть" [15:19:40]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:19:40]line СНО: Общий режим [15:19:40]line Чек 155 20.06.2024 15:19 [15:19:40]line Смена: 389 ФФД: 1.0 [15:19:40]line ЗНМ: 0300000198 [15:19:40]line РНМ: 0000000000092771 [15:19:40]line Версия ККМ: 001 [15:19:40]line ФМ: 0000000000875083 [15:19:40]line ФД: 111705 [15:19:40]line ФПД: 178496952383550 [15:19:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T151940&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111705&fm=178496952383550&tin=02508201610067®Number=0000000000092771&sum=300000 [15:19:40]OFD Sender: Processing packet 111705 [packets to send 38, broken 37] [15:19:40]ProducePacketName [15:19:40]name=ofd_packets/00111705 [15:19:40]OFD Sender: To server: pG, [15:19:40]CommunicateWithHost lk.salyk.kg:30040 [15:19:40]ConnectInit lk.salyk.kg [15:19:40]written 0, free lines is 4095 [15:19:40]Connected sock=10 [15:19:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 C6 EF 04 01 5A 21 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 8C 48 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 59 B4 01 00 35 04 06 00 A2 57 8F 70 B8 3E D4 93 60 13 D5 67 80 FB [15:19:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 68 99 47 00 47 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 35 30 38 33 10 04 04 00 59 B4 01 00 F4 03 04 00 D3 DF 73 66 B6 04 01 00 00 DF 1E 48 52 BA C0 EE 87 [15:19:40]CommunicateWithHost err = 0 [15:19:40]CheckOFDResponse [15:19:40]1017 (14) - 77093643461234 [15:19:40]1041 (16) - 0000000000875083 [15:19:40]1040 (4) - 111705 [15:19:40]1012 (4) - 20.06.2024 07:52 [15:19:40]1206 (1) - 0 [15:19:40]OFD Sender: Remove packet 111705 [15:19:40]ProducePacketName [15:19:40]name=ofd_packets/00111705 [15:19:40]NVStorageDeleteData [15:19:41]Write to MH i2c: 01 00 00 3E 05 43 [15:19:41]Write i2c OK [15:19:41]MH_I2C_Read... [15:19:41]Read from MH i2c: 01 [15:19:41]MH_I2C_Read... [15:19:41]Read from MH i2c: 01 07 00 [15:19:41]MH_I2C_Read... [15:19:41]Read from MH i2c: 01 07 00 3E 05 00 00 00 00 00 EF 0C 45 [15:19:41]RasterBufferAndPrint [15:19:41]line [15:19:41]line [15:19:41]line [15:19:41]line [15:19:41]line [15:19:41]written 0, free lines is 3317 [15:19:41]MH_Cut [15:19:41]Write to MH i2c: D1 01 00 45 05 01 1C [15:19:41]Write i2c OK [15:19:41]MH_I2C_Read... [15:19:41]Read from MH i2c: D1 [15:19:41]MH_I2C_Read... [15:19:41]Read from MH i2c: D1 01 00 [15:19:41]MH_I2C_Read... [15:19:41]Read from MH i2c: D1 01 00 45 05 00 1B [15:19:41]Write to MH i2c: 01 00 00 46 05 4B [15:19:41]Write i2c OK [15:19:41]MH_I2C_Read... [15:19:41]OFD Sender: No OFD packet to send [15:19:41]*** Cut start [15:19:41]*** Partial cut [15:19:41]*** CUTSNS_PIN = 1 [15:19:41]*** CUTSNS_PIN = 0 [15:19:42]*** Brake cut motor [15:19:42]Read from MH i2c: 01 [15:19:42]MH_I2C_Read... [15:19:42]*** Stop cut motor [15:19:42]*** Cut end [15:19:42]Read from MH i2c: 01 07 00 [15:19:42]MH_I2C_Read... [15:19:42]Read from MH i2c: 01 07 00 46 05 00 00 00 00 00 FF 0F 60 [15:19:42]process_action close_receipt done [15:19:42]requested_data is exist [15:19:42]produce_requested_data [15:19:42]requested_item fm.sn is exist - process it [15:19:42]wFMCommunicate request_size=4 [15:19:42]MH_SAM_APDU [15:19:42]CAPDU: 80 11 00 00 [15:19:42]Write to MH i2c: E2 08 00 47 05 80 11 00 00 00 00 00 00 C6 [15:19:42]Write i2c OK [15:19:42]MH_I2C_Read... [15:19:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:42]Read from MH i2c: E2 [15:19:42]MH_I2C_Read... [15:19:42]Read from MH i2c: E2 17 00 [15:19:42]MH_I2C_Read... [15:19:42]Read from MH i2c: E2 17 00 47 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 18 [15:19:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:19:42]wFMCommunicate OK [15:19:42]requested_item fd.num is exist - process it [15:19:42]SAM_PROTO_GetFieldsCounters [15:19:42]wFMCommunicate request_size=4 [15:19:42]MH_SAM_APDU [15:19:42]CAPDU: 80 13 00 00 [15:19:42]Write to MH i2c: E2 08 00 48 05 80 13 00 00 00 00 00 00 C9 [15:19:42]Write i2c OK [15:19:42]MH_I2C_Read... [15:19:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:19:42]Read from MH i2c: E2 [15:19:42]MH_I2C_Read... [15:19:42]Read from MH i2c: E2 62 00 [15:19:42]MH_I2C_Read... [15:19:42]Read from MH i2c: E2 62 00 48 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 59 B4 01 00 0E 04 04 00 85 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 4F [15:19:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 59 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:19:42]wFMCommunicate OK [15:19:42]SAM_PROTO_GetFieldsCounters done [15:19:42]requested_item shift.num is exist - process it [15:19:42]requested_item shift.opened is exist - process it [15:19:42]req_shift_opened [15:19:42]FM_GetShiftState [15:19:42]SAM_PROTO_GetShiftState [15:19:42]wFMCommunicate request_size=4 [15:19:42]MH_SAM_APDU [15:19:42]CAPDU: 80 13 01 00 [15:19:42]Write to MH i2c: E2 08 00 49 05 80 13 01 00 00 00 00 00 CB [15:19:42]Write i2c OK [15:19:42]MH_I2C_Read... [15:19:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:42]Read from MH i2c: E2 [15:19:42]MH_I2C_Read... [15:19:42]Read from MH i2c: E2 0E 00 [15:19:42]MH_I2C_Read... [15:19:42]Read from MH i2c: E2 0E 00 49 05 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 46 [15:19:42]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:19:42]wFMCommunicate OK [15:19:42]SAM_PROTO_GetShiftState done [15:19:42]FM_GetShiftState done [15:19:42]req_shift_opened done [15:19:42]requested_item shift.open_date is exist - process it [15:19:42]req_shift_open_date [15:19:42]req_shift_open_date done [15:19:42]produce_requested_data done [15:19:42]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111705,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [15:19:42]process_action_free close_receipt [15:19:42]json_value_free [15:19:42]json_value_free done [15:19:42]process_json_proto returns [15:19:42]Send response to host [15:19:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111705,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [15:19:42]free response buf [15:19:42]execute_script done [15:19:42]execute_script returns [15:19:42]free content buf [15:19:42]Sock 9.Close socket [15:19:42]Sock 9.Thread stoped [15:19:46]OFD Sender: No OFD packet to send [15:19:51]OFD Sender: No OFD packet to send [15:19:56]OFD Sender: No OFD packet to send [15:20:01]OFD Sender: No OFD packet to send [15:20:06]OFD Sender: No OFD packet to send [15:20:11]OFD Sender: No OFD packet to send [15:20:16]OFD Sender: No OFD packet to send [15:20:21]OFD Sender: No OFD packet to send [15:20:26]OFD Sender: No OFD packet to send [15:20:31]OFD Sender: No OFD packet to send [15:20:36]OFD Sender: No OFD packet to send [15:20:41]OFD Sender: No OFD packet to send [15:20:46]OFD Sender: No OFD packet to send [15:20:51]OFD Sender: No OFD packet to send [15:20:56]OFD Sender: No OFD packet to send [15:21:01]OFD Sender: No OFD packet to send [15:21:06]OFD Sender: No OFD packet to send [15:21:11]OFD Sender: No OFD packet to send [15:21:16]OFD Sender: No OFD packet to send [15:21:21]OFD Sender: No OFD packet to send [15:21:26]OFD Sender: No OFD packet to send [15:21:31]OFD Sender: No OFD packet to send [15:21:36]OFD Sender: No OFD packet to send [15:21:41]OFD Sender: No OFD packet to send [15:21:46]OFD Sender: No OFD packet to send [15:21:51]OFD Sender: No OFD packet to send [15:21:52]accept exits with 7 [15:21:52]New connection [15:21:52]New thread 3067321700 created [15:21:52]Thread 3067178340 joined [15:21:52]Waiting for new connection... [15:21:52] Sock 7.Parse request [15:21:52]Sock 7.Check first char [15:21:52]Sock 7.First char is OK [15:21:52]request: POST /json_proto HTTP/1.0 [15:21:52]Method: POST [15:21:52]URL: /json_proto [15:21:52]Method is POST - this is cgi request [15:21:52]url: /json_proto [15:21:52]query_string will be loaded in cgi processing [15:21:52]execute_cgi json_proto POST (null) [15:21:52]execute_cgi path=json_proto method=POST [15:21:52]POST find Content-Length [15:21:52]Host: 172.17.59.68:8080 [15:21:52]Content-Length: 682 [15:21:52]Content-Type: application/json [15:21:52] [15:21:52]POST finish read [15:21:52]Found Content-Length = 682 [15:21:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:52]execute_script... [15:21: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)320324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:52]POST & json_proto [15:21:52]process_json_proto [15:21:52]json parsed OK: [15:21:52]protocol is kg_v1.0 [15:21:52]action value=close_receipt [15:21:52]process_action close_receipt [15:21:52]cmd_close_receipt [15:21:52]MH_GetDate [15:21:52]Write to MH i2c: F0 00 00 4A 05 3E [15:21:52]Write i2c OK [15:21:52]MH_I2C_Read... [15:21:52]Read from MH i2c: F0 [15:21:52]MH_I2C_Read... [15:21:52]Read from MH i2c: F0 09 00 [15:21:52]MH_I2C_Read... [15:21:52]Read from MH i2c: F0 09 00 4A 05 00 12 49 74 66 BC EC 60 65 E9 [15:21:52]GetLastDocTimeStamp 1718896780 [15:21:52]current date 1718896914 [15:21:52]FM_GetShiftState [15:21:52]SAM_PROTO_GetShiftState [15:21:52]wFMCommunicate request_size=4 [15:21:52]MH_SAM_APDU [15:21:52]CAPDU: 80 13 01 00 [15:21:52]Write to MH i2c: E2 08 00 4B 05 80 13 01 00 00 00 00 00 CD [15:21:52]Write i2c OK [15:21:52]MH_I2C_Read... [15:21:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:52]Read from MH i2c: E2 [15:21:52]MH_I2C_Read... [15:21:52]Read from MH i2c: E2 0E 00 [15:21:52]MH_I2C_Read... [15:21:52]Read from MH i2c: E2 0E 00 4B 05 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 48 [15:21:52]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:21:52]wFMCommunicate OK [15:21:52]SAM_PROTO_GetShiftState done [15:21:52]FM_GetShiftState done [15:21:52]opened in 1718847247 [15:21:52]opened+sec_in_day 1718933647 [15:21:52]quantity*price = 100064 [15:21:52]sum+1 = 100066 [15:21:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 156 20.06.2024 15:21 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111706 ФПД: 191449453019018 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T152154&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111706&fm=191449453019018&tin=02508201610067®Number=0000000000092771&sum=100000 [15:21:53]StoreToDocumentArchive [15:21:53]shift 389 fd 111706 [15:21:53]save to /storage/0389/doc_00111706 [15:21:53]save last doc name /storage/0389/doc_00111706 to /storage/kkm_last_doc_name [15:21:53]save OK [15:21:53]Clear old archive folders... [15:21:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:21:53]tlvbuf is 016EA9B0 [15:21:53]SAM_PROTO_ClearQueue [15:21:53]wFMCommunicate request_size=4 [15:21:53]MH_SAM_APDU [15:21:53]CAPDU: 80 09 00 00 [15:21:53]Write to MH i2c: E2 08 00 58 05 80 09 00 00 00 00 00 00 CF [15:21:53]Write i2c OK [15:21:53]MH_I2C_Read... [15:21:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:53]Read from MH i2c: E2 [15:21:53]MH_I2C_Read... [15:21:53]Read from MH i2c: E2 03 00 [15:21:53]MH_I2C_Read... [15:21:53]Read from MH i2c: E2 03 00 58 05 00 90 00 D1 [15:21:53]RAPDU: 90 00 [15:21:53]wFMCommunicate OK [15:21:53]SAM_PROTO_ClearQueue done [15:21:53]KKMCreateOFDPacket [15:21:53]OFDProtocolAddRootSTLVToBuf [15:21:53]FM_MakeSignedData [15:21:53]FM_MakeSignedData [15:21:53]SAM_PROTO_SignData [15:21:53]wFMCommunicate request_size=4 [15:21:53]MH_SAM_APDU [15:21:53]CAPDU: 80 0D 01 02 [15:21:53]Write to MH i2c: E2 08 00 59 05 80 0D 01 02 00 00 00 00 D7 [15:21:53]Write i2c OK [15:21:53]MH_I2C_Read... [15:21:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:53]Read from MH i2c: E2 [15:21:53]MH_I2C_Read... [15:21:53]Read from MH i2c: E2 03 00 [15:21:53]MH_I2C_Read... [15:21:53]Read from MH i2c: E2 03 00 59 05 00 90 00 D2 [15:21:53]RAPDU: 90 00 [15:21:53]wFMCommunicate OK [15:21:53]wFMCommunicate request_size=255 [15:21:53]MH_SAM_APDU [15:21: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 12 49 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5A B4 01 00 35 04 06 00 AE [15:21:53]Write to MH i2c: E2 02 01 5A 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 12 49 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5A B4 01 00 35 04 06 00 AE 00 00 EF [15:21:53]Write i2c OK [15:21:53]MH_I2C_Read... [15:21:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:54]Read from MH i2c: E2 [15:21:54]MH_I2C_Read... [15:21:54]Read from MH i2c: E2 03 00 [15:21:54]MH_I2C_Read... [15:21:54]Read from MH i2c: E2 03 00 5A 05 00 90 00 D3 [15:21:54]RAPDU: 90 00 [15:21:54]wFMCommunicate OK [15:21:54]wFMCommunicate request_size=10 [15:21:54]MH_SAM_APDU [15:21:54]CAPDU: 80 0D 02 02 05 1F 4C A3 BF 8A [15:21:54]Write to MH i2c: E2 0D 00 5B 05 80 0D 02 02 05 00 1F 4C A3 BF 8A 00 00 3B [15:21:54]Write i2c OK [15:21:54]MH_I2C_Read... [15:21:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:54]Read from MH i2c: E2 [15:21:54]MH_I2C_Read... [15:21:54]Read from MH i2c: E2 03 00 [15:21:54]MH_I2C_Read... [15:21:54]Read from MH i2c: E2 03 00 5B 05 00 90 00 D4 [15:21:54]RAPDU: 90 00 [15:21:54]wFMCommunicate OK [15:21:54]wFMCommunicate request_size=4 [15:21:54]MH_SAM_APDU [15:21:54]CAPDU: 80 0D 03 02 [15:21:54]Write to MH i2c: E2 08 00 5C 05 80 0D 03 02 00 00 00 00 DC [15:21:54]Write i2c OK [15:21:54]MH_I2C_Read... [15:21:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:54]Read from MH i2c: E2 [15:21:54]MH_I2C_Read... [15:21:54]Read from MH i2c: E2 0B 00 [15:21:54]MH_I2C_Read... [15:21:54]Read from MH i2c: E2 0B 00 5C 05 00 31 CA 57 7C 22 CC 2E A8 90 00 6F [15:21:54]RAPDU: 31 CA 57 7C 22 CC 2E A8 90 00 [15:21:54]wFMCommunicate OK [15:21:54]SAM_PROTO_SignData done [15:21:54]FM_MakeSignedData done [15:21:54]CreateOFDProtocolMessage [15:21:54]wFMCommunicate request_size=4 [15:21:54]MH_SAM_APDU [15:21:54]CAPDU: 80 11 00 00 [15:21:54]Write to MH i2c: E2 08 00 5D 05 80 11 00 00 00 00 00 00 DC [15:21:54]Write i2c OK [15:21:54]MH_I2C_Read... [15:21:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:54]Read from MH i2c: E2 [15:21:54]MH_I2C_Read... [15:21:54]Read from MH i2c: E2 17 00 [15:21:54]MH_I2C_Read... [15:21:54]Read from MH i2c: E2 17 00 5D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2E [15:21:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:21:54]wFMCommunicate OK [15:21:54]CreateOFDProtocolMessage done [15:21:54]OFDSenderStorePacket 111706 [15:21:54]StoreOFDPacket docnum=111706 [15:21:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 8F 3F 07 01 A1 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 12 49 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5A B4 01 00 35 04 06 00 AE 1F 4C A3 BF 8A 31 CA 57 7C 22 CC 2E A8 [15:21:54]CheckFolder [15:21:54]dirname=/storage/ofd_packets [15:21:54]CheckFolder done [15:21:54]ProducePacketName [15:21:54]name=ofd_packets/00111706 [15:21:54]NVStorageSaveData ofd_packets/00111706 [15:21:54]File name is /storage/ofd_packets/00111706 [15:21:54]Write 301 bytes [15:21:54]NVStorageSaveData done [15:21:54]OFDSenderStorePacket done [15:21:54]KKMCreateOFDPacket done [15:21:54]NVStorageSaveData kkm_last_timestamp [15:21:54]File name is /storage/kkm_last_timestamp [15:21:54]Write 4 bytes [15:21:54]NVStorageSaveData done [15:21:54]ExternCall_PrintAddStr [15:21:54]wPrintStart [15:21:54]Write to MH i2c: 01 00 00 5E 05 63 [15:21:54]Write i2c OK [15:21:54]MH_I2C_Read... [15:21:54]Read from MH i2c: 01 [15:21:54]MH_I2C_Read... [15:21:54]Read from MH i2c: 01 07 00 [15:21:54]MH_I2C_Read... [15:21:54]Read from MH i2c: 01 07 00 5E 05 00 00 00 00 00 FF 0F 78 [15:21:54]RasterBufferAndPrint [15:21:54]line Счет N : (1)320324 [15:21:54]line ИНН: 02508201610067 [15:21:54]line Контрольно-Кассовый Чек [15:21:54]line ПРОДАЖА [15:21:54]line ТРК (МРК, ГНК) : 11 [15:21:54]line Товар: 2710124130 [15:21:54]line Аи-92-К-5 [15:21:54]line 15.070 * 66.40 [15:21:54]line = 1000.65 [15:21:54]line НДС 12% НСП 1% [15:21:54]line > о реализуемом товаре [15:21:54]line ОКРУГЛЕНИЕ: -0.65 [15:21:54]line ИТОГО: 1000.00 [15:21:54]line Внесено: 1000.00 [15:21:54]line СДАЧА: 0.00 [15:21:54]line НСП 1% : 8.85 [15:21:54]line НДС 12% : 106.26 [15:21:54]line Наличными: 1000.00 [15:21:54]line Безнал.: 0.00 [15:21:54]line Место: АЗС № 65 "Партнер Нефть" [15:21:54]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:21:54]line СНО: Общий режим [15:21:54]line Чек 156 20.06.2024 15:21 [15:21:54]line Смена: 389 ФФД: 1.0 [15:21:54]line ЗНМ: 0300000198 [15:21:54]line РНМ: 0000000000092771 [15:21:54]line Версия ККМ: 001 [15:21:54]line ФМ: 0000000000875083 [15:21:54]line ФД: 111706 [15:21:54]line ФПД: 191449453019018 [15:21:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T152154&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111706&fm=191449453019018&tin=02508201610067®Number=0000000000092771&sum=100000 [15:21:54]OFD Sender: Processing packet 111706 [packets to send 38, broken 37] [15:21:54]ProducePacketName [15:21:54]name=ofd_packets/00111706 [15:21:54]OFD Sender: To server: pG, [15:21:54]CommunicateWithHost lk.salyk.kg:30040 [15:21:54]ConnectInit lk.salyk.kg [15:21:54]written 0, free lines is 4095 [15:21:54]Connected sock=10 [15:21:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 8F 3F 07 01 A1 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 12 49 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5A B4 01 00 35 04 06 00 AE 1F 4C A3 BF 8A 31 CA 57 7C 22 CC 2E A8 [15:21:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 80 9F 47 00 63 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5A B4 01 00 F4 03 04 00 59 E0 73 66 B6 04 01 00 00 E4 3D BE 10 81 3B 91 48 [15:21:54]CommunicateWithHost err = 0 [15:21:54]CheckOFDResponse [15:21:54]1017 (14) - 77093643461234 [15:21:54]1041 (16) - 0000000000875083 [15:21:54]1040 (4) - 111706 [15:21:54]1012 (4) - 20.06.2024 07:55 [15:21:54]1206 (1) - 0 [15:21:54]OFD Sender: Remove packet 111706 [15:21:54]ProducePacketName [15:21:54]name=ofd_packets/00111706 [15:21:54]NVStorageDeleteData [15:21:55]Write to MH i2c: 01 00 00 89 05 8E [15:21:55]Write i2c OK [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: 01 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: 01 07 00 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: 01 07 00 89 05 00 00 00 00 00 E4 0C 85 [15:21:55]RasterBufferAndPrint [15:21:55]line [15:21:55]line [15:21:55]line [15:21:55]line [15:21:55]line [15:21:55]written 0, free lines is 3306 [15:21:55]MH_Cut [15:21:55]Write to MH i2c: D1 01 00 90 05 01 67 [15:21:55]Write i2c OK [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: D1 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: D1 01 00 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: D1 01 00 90 05 00 66 [15:21:55]Write to MH i2c: 01 00 00 91 05 96 [15:21:55]Write i2c OK [15:21:55]MH_I2C_Read... [15:21:55]OFD Sender: No OFD packet to send [15:21:55]*** Cut start [15:21:55]*** Partial cut [15:21:55]*** CUTSNS_PIN = 1 [15:21:55]*** CUTSNS_PIN = 0 [15:21:56]*** Brake cut motor [15:21:56]Read from MH i2c: 01 [15:21:56]MH_I2C_Read... [15:21:56]*** Stop cut motor [15:21:56]*** Cut end [15:21:56]Read from MH i2c: 01 07 00 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: 01 07 00 91 05 00 00 00 00 00 FF 0F AB [15:21:56]process_action close_receipt done [15:21:56]requested_data is exist [15:21:56]produce_requested_data [15:21:56]requested_item fm.sn is exist - process it [15:21:56]wFMCommunicate request_size=4 [15:21:56]MH_SAM_APDU [15:21:56]CAPDU: 80 11 00 00 [15:21:56]Write to MH i2c: E2 08 00 92 05 80 11 00 00 00 00 00 00 11 [15:21:56]Write i2c OK [15:21:56]MH_I2C_Read... [15:21:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:56]Read from MH i2c: E2 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: E2 17 00 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: E2 17 00 92 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 63 [15:21:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:21:56]wFMCommunicate OK [15:21:56]requested_item fd.num is exist - process it [15:21:56]SAM_PROTO_GetFieldsCounters [15:21:56]wFMCommunicate request_size=4 [15:21:56]MH_SAM_APDU [15:21:56]CAPDU: 80 13 00 00 [15:21:56]Write to MH i2c: E2 08 00 93 05 80 13 00 00 00 00 00 00 14 [15:21:56]Write i2c OK [15:21:56]MH_I2C_Read... [15:21:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:56]Read from MH i2c: E2 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: E2 62 00 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: E2 62 00 93 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5A B4 01 00 0E 04 04 00 85 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 9E [15:21:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5A B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:21:56]wFMCommunicate OK [15:21:56]SAM_PROTO_GetFieldsCounters done [15:21:56]requested_item shift.num is exist - process it [15:21:56]requested_item shift.opened is exist - process it [15:21:56]req_shift_opened [15:21:56]FM_GetShiftState [15:21:56]SAM_PROTO_GetShiftState [15:21:56]wFMCommunicate request_size=4 [15:21:56]MH_SAM_APDU [15:21:56]CAPDU: 80 13 01 00 [15:21:56]Write to MH i2c: E2 08 00 94 05 80 13 01 00 00 00 00 00 16 [15:21:56]Write i2c OK [15:21:56]MH_I2C_Read... [15:21:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:56]Read from MH i2c: E2 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: E2 0E 00 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: E2 0E 00 94 05 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 91 [15:21:56]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:21:56]wFMCommunicate OK [15:21:56]SAM_PROTO_GetShiftState done [15:21:56]FM_GetShiftState done [15:21:56]req_shift_opened done [15:21:56]requested_item shift.open_date is exist - process it [15:21:56]req_shift_open_date [15:21:56]req_shift_open_date done [15:21:56]produce_requested_data done [15:21:56]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111706,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [15:21:56]process_action_free close_receipt [15:21:56]json_value_free [15:21:56]json_value_free done [15:21:56]process_json_proto returns [15:21:56]Send response to host [15:21:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111706,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [15:21:56]free response buf [15:21:56]execute_script done [15:21:56]execute_script returns [15:21:56]free content buf [15:21:56]Sock 7.Close socket [15:21:56]Sock 7.Thread stoped [15:22:00]OFD Sender: No OFD packet to send [15:22:05]OFD Sender: No OFD packet to send [15:22:10]OFD Sender: No OFD packet to send [15:22:15]OFD Sender: No OFD packet to send [15:22:20]OFD Sender: No OFD packet to send [15:22:25]OFD Sender: No OFD packet to send [15:22:30]OFD Sender: No OFD packet to send [15:22:35]OFD Sender: No OFD packet to send [15:22:40]OFD Sender: No OFD packet to send [15:22:44]accept exits with 9 [15:22:44]New connection [15:22:44]New thread 3067178340 created [15:22:44]Thread 3067321700 joined [15:22:44]Waiting for new connection... [15:22:44] Sock 9.Parse request [15:22:44]Sock 9.Check first char [15:22:44]Sock 9.First char is OK [15:22:44]request: POST /json_proto HTTP/1.0 [15:22:44]Method: POST [15:22:44]URL: /json_proto [15:22:44]Method is POST - this is cgi request [15:22:44]url: /json_proto [15:22:44]query_string will be loaded in cgi processing [15:22:44]execute_cgi json_proto POST (null) [15:22:44]execute_cgi path=json_proto method=POST [15:22:44]POST find Content-Length [15:22:44]Host: 172.17.59.68:8080 [15:22:44]Content-Length: 677 [15:22:44]Content-Type: application/json [15:22:44] [15:22:44]POST finish read [15:22:44]Found Content-Length = 677 [15:22:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 2.020, "sum" : 149.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 149.00, "total" : 149.00, "payments": [ { "type": 0, "sum" : 149.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:44]execute_script... [15:22: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)320326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 2.020, "sum" : 149.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 149.00, "total" : 149.00, "payments": [ { "type": 0, "sum" : 149.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:44]POST & json_proto [15:22:44]process_json_proto [15:22:44]json parsed OK: [15:22:44]protocol is kg_v1.0 [15:22:44]action value=close_receipt [15:22:44]process_action close_receipt [15:22:44]cmd_close_receipt [15:22:44]MH_GetDate [15:22:44]Write to MH i2c: F0 00 00 95 05 89 [15:22:44]Write i2c OK [15:22:44]MH_I2C_Read... [15:22:44]Read from MH i2c: F0 [15:22:44]MH_I2C_Read... [15:22:44]Read from MH i2c: F0 09 00 [15:22:44]MH_I2C_Read... [15:22:44]Read from MH i2c: F0 09 00 95 05 00 46 49 74 66 BC EC 60 65 68 [15:22:44]GetLastDocTimeStamp 1718896914 [15:22:44]current date 1718896966 [15:22:44]FM_GetShiftState [15:22:44]SAM_PROTO_GetShiftState [15:22:44]wFMCommunicate request_size=4 [15:22:44]MH_SAM_APDU [15:22:44]CAPDU: 80 13 01 00 [15:22:44]Write to MH i2c: E2 08 00 96 05 80 13 01 00 00 00 00 00 18 [15:22:44]Write i2c OK [15:22:44]MH_I2C_Read... [15:22:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:44]Read from MH i2c: E2 [15:22:44]MH_I2C_Read... [15:22:44]Read from MH i2c: E2 0E 00 [15:22:44]MH_I2C_Read... [15:22:44]Read from MH i2c: E2 0E 00 96 05 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 93 [15:22:44]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:22:44]wFMCommunicate OK [15:22:44]SAM_PROTO_GetShiftState done [15:22:44]FM_GetShiftState done [15:22:44]opened in 1718847247 [15:22:44]opened+sec_in_day 1718933647 [15:22:44]quantity*price = 14927 [15:22:44]sum+1 = 14929 [15:22:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 149.00 Внесено: 149.00 СДАЧА: 0.00 НСП 1% : 1.32 НДС 12% : 15.85 Наличными: 149.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 157 20.06.2024 15:22 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111707 ФПД: 201712127816268 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T152246&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111707&fm=201712127816268&tin=02508201610067®Number=0000000000092771&sum=14900 [15:22:45]StoreToDocumentArchive [15:22:45]shift 389 fd 111707 [15:22:45]save to /storage/0389/doc_00111707 [15:22:45]save last doc name /storage/0389/doc_00111707 to /storage/kkm_last_doc_name [15:22:45]save OK [15:22:45]Clear old archive folders... [15:22:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:22:45]tlvbuf is 016FEB80 [15:22:45]SAM_PROTO_ClearQueue [15:22:45]wFMCommunicate request_size=4 [15:22:45]MH_SAM_APDU [15:22:45]CAPDU: 80 09 00 00 [15:22:45]Write to MH i2c: E2 08 00 A3 05 80 09 00 00 00 00 00 00 1A [15:22:45]Write i2c OK [15:22:45]MH_I2C_Read... [15:22:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:22:45]OFD Sender: No OFD packet to send [15:22:45]Read from MH i2c: E2 [15:22:45]MH_I2C_Read... [15:22:45]Read from MH i2c: E2 03 00 [15:22:45]MH_I2C_Read... [15:22:45]Read from MH i2c: E2 03 00 A3 05 00 90 00 1C [15:22:45]RAPDU: 90 00 [15:22:45]wFMCommunicate OK [15:22:45]SAM_PROTO_ClearQueue done [15:22:45]KKMCreateOFDPacket [15:22:45]OFDProtocolAddRootSTLVToBuf [15:22:45]FM_MakeSignedData [15:22:45]FM_MakeSignedData [15:22:45]SAM_PROTO_SignData [15:22:45]wFMCommunicate request_size=4 [15:22:45]MH_SAM_APDU [15:22:45]CAPDU: 80 0D 01 02 [15:22:45]Write to MH i2c: E2 08 00 A4 05 80 0D 01 02 00 00 00 00 22 [15:22:45]Write i2c OK [15:22:45]MH_I2C_Read... [15:22:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:22:45]Read from MH i2c: E2 [15:22:45]MH_I2C_Read... [15:22:45]Read from MH i2c: E2 03 00 [15:22:45]MH_I2C_Read... [15:22:45]Read from MH i2c: E2 03 00 A4 05 00 90 00 1D [15:22:45]RAPDU: 90 00 [15:22:45]wFMCommunicate OK [15:22:45]wFMCommunicate request_size=255 [15:22:45]MH_SAM_APDU [15:22:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 07 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 50 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 06 00 00 00 00 07 04 06 00 34 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 9D 00 00 00 F4 03 04 00 46 49 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5B B4 01 00 35 04 06 00 B7 [15:22:45]Write to MH i2c: E2 02 01 A5 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 07 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 50 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 06 00 00 00 00 07 04 06 00 34 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 9D 00 00 00 F4 03 04 00 46 49 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5B B4 01 00 35 04 06 00 B7 00 00 89 [15:22:45]Write i2c OK [15:22:45]MH_I2C_Read... [15:22:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:45]Read from MH i2c: E2 [15:22:45]MH_I2C_Read... [15:22:45]Read from MH i2c: E2 03 00 [15:22:45]MH_I2C_Read... [15:22:45]Read from MH i2c: E2 03 00 A5 05 00 90 00 1E [15:22:45]RAPDU: 90 00 [15:22:45]wFMCommunicate OK [15:22:45]wFMCommunicate request_size=10 [15:22:45]MH_SAM_APDU [15:22:45]CAPDU: 80 0D 02 02 05 74 C3 B9 B2 4C [15:22:45]Write to MH i2c: E2 0D 00 A6 05 80 0D 02 02 05 00 74 C3 B9 B2 4C 00 00 1D [15:22:45]Write i2c OK [15:22:45]MH_I2C_Read... [15:22:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:45]Read from MH i2c: E2 [15:22:45]MH_I2C_Read... [15:22:45]Read from MH i2c: E2 03 00 [15:22:45]MH_I2C_Read... [15:22:45]Read from MH i2c: E2 03 00 A6 05 00 90 00 1F [15:22:45]RAPDU: 90 00 [15:22:45]wFMCommunicate OK [15:22:45]wFMCommunicate request_size=4 [15:22:45]MH_SAM_APDU [15:22:45]CAPDU: 80 0D 03 02 [15:22:45]Write to MH i2c: E2 08 00 A7 05 80 0D 03 02 00 00 00 00 27 [15:22:45]Write i2c OK [15:22:45]MH_I2C_Read... [15:22:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:22:45]Read from MH i2c: E2 [15:22:45]MH_I2C_Read... [15:22:45]Read from MH i2c: E2 0B 00 [15:22:45]MH_I2C_Read... [15:22:45]Read from MH i2c: E2 0B 00 A7 05 00 5B 1C 0A B8 BF 67 27 19 90 00 C7 [15:22:45]RAPDU: 5B 1C 0A B8 BF 67 27 19 90 00 [15:22:45]wFMCommunicate OK [15:22:45]SAM_PROTO_SignData done [15:22:45]FM_MakeSignedData done [15:22:45]CreateOFDProtocolMessage [15:22:45]wFMCommunicate request_size=4 [15:22:45]MH_SAM_APDU [15:22:45]CAPDU: 80 11 00 00 [15:22:45]Write to MH i2c: E2 08 00 A8 05 80 11 00 00 00 00 00 00 27 [15:22:45]Write i2c OK [15:22:45]MH_I2C_Read... [15:22:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:45]Read from MH i2c: E2 [15:22:45]MH_I2C_Read... [15:22:45]Read from MH i2c: E2 17 00 [15:22:45]MH_I2C_Read... [15:22:45]Read from MH i2c: E2 17 00 A8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 79 [15:22:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:22:45]wFMCommunicate OK [15:22:45]CreateOFDProtocolMessage done [15:22:45]OFDSenderStorePacket 111707 [15:22:45]StoreOFDPacket docnum=111707 [15:22:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 37 90 07 01 9F 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 07 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 50 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 06 00 00 00 00 07 04 06 00 34 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 9D 00 00 00 F4 03 04 00 46 49 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5B B4 01 00 35 04 06 00 B7 74 C3 B9 B2 4C 5B 1C 0A B8 BF 67 27 19 [15:22:45]CheckFolder [15:22:45]dirname=/storage/ofd_packets [15:22:45]CheckFolder done [15:22:45]ProducePacketName [15:22:45]name=ofd_packets/00111707 [15:22:45]NVStorageSaveData ofd_packets/00111707 [15:22:45]File name is /storage/ofd_packets/00111707 [15:22:45]Write 301 bytes [15:22:45]NVStorageSaveData done [15:22:45]OFDSenderStorePacket done [15:22:45]KKMCreateOFDPacket done [15:22:45]NVStorageSaveData kkm_last_timestamp [15:22:45]File name is /storage/kkm_last_timestamp [15:22:45]Write 4 bytes [15:22:45]NVStorageSaveData done [15:22:45]ExternCall_PrintAddStr [15:22:45]wPrintStart [15:22:45]Write to MH i2c: 01 00 00 A9 05 AE [15:22:45]Write i2c OK [15:22:45]MH_I2C_Read... [15:22:45]Read from MH i2c: 01 [15:22:45]MH_I2C_Read... [15:22:45]Read from MH i2c: 01 07 00 [15:22:45]MH_I2C_Read... [15:22:45]Read from MH i2c: 01 07 00 A9 05 00 00 00 00 00 FF 0F C3 [15:22:45]RasterBufferAndPrint [15:22:45]line Счет N : (1)320326 [15:22:45]line ИНН: 02508201610067 [15:22:45]line Контрольно-Кассовый Чек [15:22:45]line ПРОДАЖА [15:22:45]line ТРК (МРК, ГНК) : 12 [15:22:45]line Товар: 2710124500 [15:22:45]line Аи-95-К-5 [15:22:45]line 2.020 * 73.90 [15:22:45]line = 149.28 [15:22:45]line НДС 12% НСП 1% [15:22:45]line > о реализуемом товаре [15:22:45]line ОКРУГЛЕНИЕ: -0.28 [15:22:45]line ИТОГО: 149.00 [15:22:45]line Внесено: 149.00 [15:22:45]line СДАЧА: 0.00 [15:22:45]line НСП 1% : 1.32 [15:22:45]line НДС 12% : 15.85 [15:22:45]line Наличными: 149.00 [15:22:45]line Безнал.: 0.00 [15:22:45]line Место: АЗС № 65 "Партнер Нефть" [15:22:45]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:22:45]line СНО: Общий режим [15:22:45]line Чек 157 20.06.2024 15:22 [15:22:45]line Смена: 389 ФФД: 1.0 [15:22:45]line ЗНМ: 0300000198 [15:22:45]line РНМ: 0000000000092771 [15:22:45]line Версия ККМ: 001 [15:22:45]line ФМ: 0000000000875083 [15:22:45]line ФД: 111707 [15:22:45]line ФПД: 201712127816268 [15:22:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T152246&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111707&fm=201712127816268&tin=02508201610067®Number=0000000000092771&sum=14900 [15:22:46]OFD Sender: Processing packet 111707 [packets to send 38, broken 37] [15:22:46]ProducePacketName [15:22:46]name=ofd_packets/00111707 [15:22:46]OFD Sender: To server: pG, [15:22:46]CommunicateWithHost lk.salyk.kg:30040 [15:22:46]ConnectInit lk.salyk.kg [15:22:46]written 0, free lines is 4095 [15:22:46]Connected sock=10 [15:22:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 37 90 07 01 9F 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 07 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 50 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 06 00 00 00 00 07 04 06 00 34 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 9D 00 00 00 F4 03 04 00 46 49 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5B B4 01 00 35 04 06 00 B7 74 C3 B9 B2 4C 5B 1C 0A B8 BF 67 27 19 [15:22:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D6 6F 47 00 71 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5B B4 01 00 F4 03 04 00 8D E0 73 66 B6 04 01 00 00 FE 6D 39 38 9D 25 C1 00 [15:22:46]CommunicateWithHost err = 0 [15:22:46]CheckOFDResponse [15:22:46]1017 (14) - 77093643461234 [15:22:46]1041 (16) - 0000000000875083 [15:22:46]1040 (4) - 111707 [15:22:46]1012 (4) - 20.06.2024 07:55 [15:22:46]1206 (1) - 0 [15:22:46]OFD Sender: Remove packet 111707 [15:22:46]ProducePacketName [15:22:46]name=ofd_packets/00111707 [15:22:46]NVStorageDeleteData [15:22:46]Write to MH i2c: 01 00 00 D4 05 D9 [15:22:46]Write i2c OK [15:22:46]MH_I2C_Read... [15:22:46]Read from MH i2c: 01 [15:22:46]MH_I2C_Read... [15:22:46]Read from MH i2c: 01 07 00 [15:22:46]MH_I2C_Read... [15:22:46]Read from MH i2c: 01 07 00 D4 05 00 00 00 00 00 E4 0C D0 [15:22:46]RasterBufferAndPrint [15:22:46]line [15:22:46]line [15:22:46]line [15:22:46]line [15:22:46]line [15:22:46]written 0, free lines is 3306 [15:22:46]MH_Cut [15:22:46]Write to MH i2c: D1 01 00 DB 05 01 B2 [15:22:46]Write i2c OK [15:22:46]MH_I2C_Read... [15:22:46]Read from MH i2c: D1 [15:22:46]MH_I2C_Read... [15:22:46]Read from MH i2c: D1 01 00 [15:22:46]MH_I2C_Read... [15:22:46]Read from MH i2c: D1 01 00 DB 05 00 B1 [15:22:46]Write to MH i2c: 01 00 00 DC 05 E1 [15:22:46]Write i2c OK [15:22:46]MH_I2C_Read... [15:22:47]OFD Sender: No OFD packet to send [15:22:47]*** Cut start [15:22:47]*** Partial cut [15:22:47]*** CUTSNS_PIN = 1 [15:22:47]*** CUTSNS_PIN = 0 [15:22:47]*** Brake cut motor [15:22:48]Read from MH i2c: 01 [15:22:48]MH_I2C_Read... [15:22:48]*** Stop cut motor [15:22:48]*** Cut end [15:22:48]Read from MH i2c: 01 07 00 [15:22:48]MH_I2C_Read... [15:22:48]Read from MH i2c: 01 07 00 DC 05 00 00 00 00 00 FF 0F F6 [15:22:48]process_action close_receipt done [15:22:48]requested_data is exist [15:22:48]produce_requested_data [15:22:48]requested_item fm.sn is exist - process it [15:22:48]wFMCommunicate request_size=4 [15:22:48]MH_SAM_APDU [15:22:48]CAPDU: 80 11 00 00 [15:22:48]Write to MH i2c: E2 08 00 DD 05 80 11 00 00 00 00 00 00 5C [15:22:48]Write i2c OK [15:22:48]MH_I2C_Read... [15:22:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:48]Read from MH i2c: E2 [15:22:48]MH_I2C_Read... [15:22:48]Read from MH i2c: E2 17 00 [15:22:48]MH_I2C_Read... [15:22:48]Read from MH i2c: E2 17 00 DD 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AE [15:22:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:22:48]wFMCommunicate OK [15:22:48]requested_item fd.num is exist - process it [15:22:48]SAM_PROTO_GetFieldsCounters [15:22:48]wFMCommunicate request_size=4 [15:22:48]MH_SAM_APDU [15:22:48]CAPDU: 80 13 00 00 [15:22:48]Write to MH i2c: E2 08 00 DE 05 80 13 00 00 00 00 00 00 5F [15:22:48]Write i2c OK [15:22:48]MH_I2C_Read... [15:22:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:22:48]Read from MH i2c: E2 [15:22:48]MH_I2C_Read... [15:22:48]Read from MH i2c: E2 62 00 [15:22:48]MH_I2C_Read... [15:22:48]Read from MH i2c: E2 62 00 DE 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5B B4 01 00 0E 04 04 00 85 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 ED [15:22:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5B B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:22:48]wFMCommunicate OK [15:22:48]SAM_PROTO_GetFieldsCounters done [15:22:48]requested_item shift.num is exist - process it [15:22:48]requested_item shift.opened is exist - process it [15:22:48]req_shift_opened [15:22:48]FM_GetShiftState [15:22:48]SAM_PROTO_GetShiftState [15:22:48]wFMCommunicate request_size=4 [15:22:48]MH_SAM_APDU [15:22:48]CAPDU: 80 13 01 00 [15:22:48]Write to MH i2c: E2 08 00 DF 05 80 13 01 00 00 00 00 00 61 [15:22:48]Write i2c OK [15:22:48]MH_I2C_Read... [15:22:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:48]Read from MH i2c: E2 [15:22:48]MH_I2C_Read... [15:22:48]Read from MH i2c: E2 0E 00 [15:22:48]MH_I2C_Read... [15:22:48]Read from MH i2c: E2 0E 00 DF 05 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 DC [15:22:48]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:22:48]wFMCommunicate OK [15:22:48]SAM_PROTO_GetShiftState done [15:22:48]FM_GetShiftState done [15:22:48]req_shift_opened done [15:22:48]requested_item shift.open_date is exist - process it [15:22:48]req_shift_open_date [15:22:48]req_shift_open_date done [15:22:48]produce_requested_data done [15:22:48]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111707,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [15:22:48]process_action_free close_receipt [15:22:48]json_value_free [15:22:48]json_value_free done [15:22:48]process_json_proto returns [15:22:48]Send response to host [15:22:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111707,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [15:22:48]free response buf [15:22:48]execute_script done [15:22:48]execute_script returns [15:22:48]free content buf [15:22:48]Sock 9.Close socket [15:22:48]Sock 9.Thread stoped [15:22:51]accept exits with 7 [15:22:51]New connection [15:22:51]New thread 3067321700 created [15:22:51]Thread 3067178340 joined [15:22:51]Waiting for new connection... [15:22:51] Sock 7.Parse request [15:22:51]Sock 7.Check first char [15:22:51]Sock 7.First char is OK [15:22:51]request: POST /json_proto HTTP/1.0 [15:22:51]Method: POST [15:22:51]URL: /json_proto [15:22:51]Method is POST - this is cgi request [15:22:51]url: /json_proto [15:22:51]query_string will be loaded in cgi processing [15:22:51]execute_cgi json_proto POST (null) [15:22:51]execute_cgi path=json_proto method=POST [15:22:51]POST find Content-Length [15:22:51]Host: 172.17.59.68:8080 [15:22:51]Content-Length: 677 [15:22:51]Content-Type: application/json [15:22:51] [15:22:51]POST finish read [15:22:51]Found Content-Length = 677 [15:22:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:51]execute_script... [15:22: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)320325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:51]POST & json_proto [15:22:51]process_json_proto [15:22:51]json parsed OK: [15:22:51]protocol is kg_v1.0 [15:22:51]action value=close_receipt [15:22:51]process_action close_receipt [15:22:51]cmd_close_receipt [15:22:51]MH_GetDate [15:22:51]Write to MH i2c: F0 00 00 E0 05 D4 [15:22:51]Write i2c OK [15:22:51]MH_I2C_Read... [15:22:51]Read from MH i2c: F0 [15:22:51]MH_I2C_Read... [15:22:51]Read from MH i2c: F0 09 00 [15:22:51]MH_I2C_Read... [15:22:51]Read from MH i2c: F0 09 00 E0 05 00 4D 49 74 66 BC EC 60 65 BA [15:22:51]GetLastDocTimeStamp 1718896966 [15:22:51]current date 1718896973 [15:22:51]FM_GetShiftState [15:22:51]SAM_PROTO_GetShiftState [15:22:51]wFMCommunicate request_size=4 [15:22:51]MH_SAM_APDU [15:22:51]CAPDU: 80 13 01 00 [15:22:51]Write to MH i2c: E2 08 00 E1 05 80 13 01 00 00 00 00 00 63 [15:22:51]Write i2c OK [15:22:51]MH_I2C_Read... [15:22:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:51]Read from MH i2c: E2 [15:22:51]MH_I2C_Read... [15:22:51]Read from MH i2c: E2 0E 00 [15:22:51]MH_I2C_Read... [15:22:51]Read from MH i2c: E2 0E 00 E1 05 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 DE [15:22:51]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:22:51]wFMCommunicate OK [15:22:51]SAM_PROTO_GetShiftState done [15:22:51]FM_GetShiftState done [15:22:51]opened in 1718847247 [15:22:51]opened+sec_in_day 1718933647 [15:22:51]quantity*price = 50065 [15:22:51]sum+1 = 50067 [15:22:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 158 20.06.2024 15:22 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111708 ФПД: 218756044540977 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T152253&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111708&fm=218756044540977&tin=02508201610067®Number=0000000000092771&sum=50000 [15:22:52]StoreToDocumentArchive [15:22:52]shift 389 fd 111708 [15:22:52]save to /storage/0389/doc_00111708 [15:22:52]save last doc name /storage/0389/doc_00111708 to /storage/kkm_last_doc_name [15:22:52]save OK [15:22:52]Clear old archive folders... [15:22:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:22:52]tlvbuf is 0174B030 [15:22:52]SAM_PROTO_ClearQueue [15:22:52]wFMCommunicate request_size=4 [15:22:52]MH_SAM_APDU [15:22:52]CAPDU: 80 09 00 00 [15:22:52]Write to MH i2c: E2 08 00 EE 05 80 09 00 00 00 00 00 00 65 [15:22:52]Write i2c OK [15:22:52]MH_I2C_Read... [15:22:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:22:52]Read from MH i2c: E2 [15:22:52]MH_I2C_Read... [15:22:52]Read from MH i2c: E2 03 00 [15:22:52]MH_I2C_Read... [15:22:52]Read from MH i2c: E2 03 00 EE 05 00 90 00 67 [15:22:52]RAPDU: 90 00 [15:22:52]wFMCommunicate OK [15:22:52]SAM_PROTO_ClearQueue done [15:22:52]KKMCreateOFDPacket [15:22:52]OFDProtocolAddRootSTLVToBuf [15:22:52]FM_MakeSignedData [15:22:52]FM_MakeSignedData [15:22:52]SAM_PROTO_SignData [15:22:52]wFMCommunicate request_size=4 [15:22:52]MH_SAM_APDU [15:22:52]CAPDU: 80 0D 01 02 [15:22:52]Write to MH i2c: E2 08 00 EF 05 80 0D 01 02 00 00 00 00 6D [15:22:52]Write i2c OK [15:22:52]MH_I2C_Read... [15:22:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:22:52]Read from MH i2c: E2 [15:22:52]MH_I2C_Read... [15:22:52]Read from MH i2c: E2 03 00 [15:22:52]MH_I2C_Read... [15:22:52]Read from MH i2c: E2 03 00 EF 05 00 90 00 68 [15:22:52]RAPDU: 90 00 [15:22:52]wFMCommunicate OK [15:22:52]wFMCommunicate request_size=255 [15:22:52]MH_SAM_APDU [15:22:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 4D 49 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5C B4 01 00 35 04 06 00 C6 [15:22:52]Write to MH i2c: E2 02 01 F0 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 4D 49 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5C B4 01 00 35 04 06 00 C6 00 00 8C [15:22:52]Write i2c OK [15:22:52]MH_I2C_Read... [15:22:53]Read from MH i2c: E2 [15:22:53]MH_I2C_Read... [15:22:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:53]Read from MH i2c: E2 03 00 [15:22:53]MH_I2C_Read... [15:22:53]Read from MH i2c: E2 03 00 F0 05 00 90 00 69 [15:22:53]RAPDU: 90 00 [15:22:53]wFMCommunicate OK [15:22:53]wFMCommunicate request_size=10 [15:22:53]MH_SAM_APDU [15:22:53]CAPDU: 80 0D 02 02 05 F5 1C 53 CC 31 [15:22:53]Write to MH i2c: E2 0D 00 F1 05 80 0D 02 02 05 00 F5 1C 53 CC 31 00 00 DB [15:22:53]Write i2c OK [15:22:53]MH_I2C_Read... [15:22:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:53]Read from MH i2c: E2 [15:22:53]MH_I2C_Read... [15:22:53]Read from MH i2c: E2 03 00 [15:22:53]MH_I2C_Read... [15:22:53]Read from MH i2c: E2 03 00 F1 05 00 90 00 6A [15:22:53]RAPDU: 90 00 [15:22:53]wFMCommunicate OK [15:22:53]wFMCommunicate request_size=4 [15:22:53]MH_SAM_APDU [15:22:53]CAPDU: 80 0D 03 02 [15:22:53]Write to MH i2c: E2 08 00 F2 05 80 0D 03 02 00 00 00 00 72 [15:22:53]Write i2c OK [15:22:53]MH_I2C_Read... [15:22:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:22:53]Read from MH i2c: E2 [15:22:53]MH_I2C_Read... [15:22:53]Read from MH i2c: E2 0B 00 [15:22:53]MH_I2C_Read... [15:22:53]Read from MH i2c: E2 0B 00 F2 05 00 7F 0B 0A 15 9F EC 23 E4 90 00 AE [15:22:53]RAPDU: 7F 0B 0A 15 9F EC 23 E4 90 00 [15:22:53]wFMCommunicate OK [15:22:53]SAM_PROTO_SignData done [15:22:53]FM_MakeSignedData done [15:22:53]CreateOFDProtocolMessage [15:22:53]wFMCommunicate request_size=4 [15:22:53]MH_SAM_APDU [15:22:53]CAPDU: 80 11 00 00 [15:22:53]Write to MH i2c: E2 08 00 F3 05 80 11 00 00 00 00 00 00 72 [15:22:53]Write i2c OK [15:22:53]MH_I2C_Read... [15:22:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:53]Read from MH i2c: E2 [15:22:53]MH_I2C_Read... [15:22:53]Read from MH i2c: E2 17 00 [15:22:53]MH_I2C_Read... [15:22:53]Read from MH i2c: E2 17 00 F3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C4 [15:22:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:22:53]wFMCommunicate OK [15:22:53]CreateOFDProtocolMessage done [15:22:53]OFDSenderStorePacket 111708 [15:22:53]StoreOFDPacket docnum=111708 [15:22:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FE 9C 07 01 64 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 4D 49 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5C B4 01 00 35 04 06 00 C6 F5 1C 53 CC 31 7F 0B 0A 15 9F EC 23 E4 [15:22:53]CheckFolder [15:22:53]dirname=/storage/ofd_packets [15:22:53]CheckFolder done [15:22:53]ProducePacketName [15:22:53]name=ofd_packets/00111708 [15:22:53]NVStorageSaveData ofd_packets/00111708 [15:22:53]File name is /storage/ofd_packets/00111708 [15:22:53]Write 301 bytes [15:22:53]NVStorageSaveData done [15:22:53]OFDSenderStorePacket done [15:22:53]KKMCreateOFDPacket done [15:22:53]NVStorageSaveData kkm_last_timestamp [15:22:53]File name is /storage/kkm_last_timestamp [15:22:53]Write 4 bytes [15:22:53]NVStorageSaveData done [15:22:53]ExternCall_PrintAddStr [15:22:53]wPrintStart [15:22:53]Write to MH i2c: 01 00 00 F4 05 F9 [15:22:53]Write i2c OK [15:22:53]MH_I2C_Read... [15:22:53]Read from MH i2c: 01 [15:22:53]MH_I2C_Read... [15:22:53]Read from MH i2c: 01 07 00 [15:22:53]MH_I2C_Read... [15:22:53]Read from MH i2c: 01 07 00 F4 05 00 00 00 00 00 FF 0F 0E [15:22:53]RasterBufferAndPrint [15:22:53]line Счет N : (1)320325 [15:22:53]line ИНН: 02508201610067 [15:22:53]line Контрольно-Кассовый Чек [15:22:53]line ПРОДАЖА [15:22:53]line ТРК (МРК, ГНК) : 11 [15:22:53]line Товар: 2710124130 [15:22:53]line Аи-92-К-5 [15:22:53]line 7.540 * 66.40 [15:22:53]line = 500.66 [15:22:53]line НДС 12% НСП 1% [15:22:53]line > о реализуемом товаре [15:22:53]line ОКРУГЛЕНИЕ: -0.66 [15:22:53]line ИТОГО: 500.00 [15:22:53]line Внесено: 500.00 [15:22:53]line СДАЧА: 0.00 [15:22:53]line НСП 1% : 4.43 [15:22:53]line НДС 12% : 53.17 [15:22:53]line Наличными: 500.00 [15:22:53]line Безнал.: 0.00 [15:22:53]line Место: АЗС № 65 "Партнер Нефть" [15:22:53]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:22:53]line СНО: Общий режим [15:22:53]line Чек 158 20.06.2024 15:22 [15:22:53]line Смена: 389 ФФД: 1.0 [15:22:53]line ЗНМ: 0300000198 [15:22:53]line РНМ: 0000000000092771 [15:22:53]line Версия ККМ: 001 [15:22:53]line ФМ: 0000000000875083 [15:22:53]line ФД: 111708 [15:22:53]line ФПД: 218756044540977 [15:22:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T152253&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111708&fm=218756044540977&tin=02508201610067®Number=0000000000092771&sum=50000 [15:22:53]written 0, free lines is 4095 [15:22:53]OFD Sender: Processing packet 111708 [packets to send 38, broken 37] [15:22:53]ProducePacketName [15:22:53]name=ofd_packets/00111708 [15:22:53]OFD Sender: To server: pG, [15:22:53]CommunicateWithHost lk.salyk.kg:30040 [15:22:53]ConnectInit lk.salyk.kg [15:22:53]Connected sock=10 [15:22:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FE 9C 07 01 64 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 4D 49 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5C B4 01 00 35 04 06 00 C6 F5 1C 53 CC 31 7F 0B 0A 15 9F EC 23 E4 [15:22:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 DC 7B 47 00 C3 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5C B4 01 00 F4 03 04 00 94 E0 73 66 B6 04 01 00 00 26 C4 39 8E FC 2A 7C 85 [15:22:53]CommunicateWithHost err = 0 [15:22:53]CheckOFDResponse [15:22:53]1017 (14) - 77093643461234 [15:22:53]1041 (16) - 0000000000875083 [15:22:53]1040 (4) - 111708 [15:22:53]1012 (4) - 20.06.2024 07:56 [15:22:53]1206 (1) - 0 [15:22:53]OFD Sender: Remove packet 111708 [15:22:53]ProducePacketName [15:22:53]name=ofd_packets/00111708 [15:22:53]NVStorageDeleteData [15:22:53]Write to MH i2c: 01 00 00 1F 06 25 [15:22:53]Write i2c OK [15:22:53]MH_I2C_Read... [15:22:53]Read from MH i2c: 01 [15:22:53]MH_I2C_Read... [15:22:53]Read from MH i2c: 01 07 00 [15:22:53]MH_I2C_Read... [15:22:53]Read from MH i2c: 01 07 00 1F 06 00 00 00 00 00 EE 0C 26 [15:22:53]RasterBufferAndPrint [15:22:53]line [15:22:53]line [15:22:53]line [15:22:53]line [15:22:53]line [15:22:53]written 0, free lines is 3319 [15:22:53]MH_Cut [15:22:53]Write to MH i2c: D1 01 00 26 06 01 FE [15:22:53]Write i2c OK [15:22:53]MH_I2C_Read... [15:22:53]Read from MH i2c: D1 [15:22:53]MH_I2C_Read... [15:22:53]Read from MH i2c: D1 01 00 [15:22:53]MH_I2C_Read... [15:22:53]Read from MH i2c: D1 01 00 26 06 00 FD [15:22:53]Write to MH i2c: 01 00 00 27 06 2D [15:22:53]Write i2c OK [15:22:53]MH_I2C_Read... [15:22:54]OFD Sender: No OFD packet to send [15:22:54]*** Cut start [15:22:54]*** Partial cut [15:22:54]*** CUTSNS_PIN = 1 [15:22:54]*** CUTSNS_PIN = 0 [15:22:54]*** Brake cut motor [15:22:55]Read from MH i2c: 01 [15:22:55]MH_I2C_Read... [15:22:55]*** Stop cut motor [15:22:55]*** Cut end [15:22:55]Read from MH i2c: 01 07 00 [15:22:55]MH_I2C_Read... [15:22:55]Read from MH i2c: 01 07 00 27 06 00 00 00 00 00 FF 0F 42 [15:22:55]process_action close_receipt done [15:22:55]requested_data is exist [15:22:55]produce_requested_data [15:22:55]requested_item fm.sn is exist - process it [15:22:55]wFMCommunicate request_size=4 [15:22:55]MH_SAM_APDU [15:22:55]CAPDU: 80 11 00 00 [15:22:55]Write to MH i2c: E2 08 00 28 06 80 11 00 00 00 00 00 00 A8 [15:22:55]Write i2c OK [15:22:55]MH_I2C_Read... [15:22:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:55]Read from MH i2c: E2 [15:22:55]MH_I2C_Read... [15:22:55]Read from MH i2c: E2 17 00 [15:22:55]MH_I2C_Read... [15:22:55]Read from MH i2c: E2 17 00 28 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FA [15:22:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:22:55]wFMCommunicate OK [15:22:55]requested_item fd.num is exist - process it [15:22:55]SAM_PROTO_GetFieldsCounters [15:22:55]wFMCommunicate request_size=4 [15:22:55]MH_SAM_APDU [15:22:55]CAPDU: 80 13 00 00 [15:22:55]Write to MH i2c: E2 08 00 29 06 80 13 00 00 00 00 00 00 AB [15:22:55]Write i2c OK [15:22:55]MH_I2C_Read... [15:22:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:22:55]Read from MH i2c: E2 [15:22:55]MH_I2C_Read... [15:22:55]Read from MH i2c: E2 62 00 [15:22:55]MH_I2C_Read... [15:22:55]Read from MH i2c: E2 62 00 29 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5C B4 01 00 0E 04 04 00 85 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 3D [15:22:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5C B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:22:55]wFMCommunicate OK [15:22:55]SAM_PROTO_GetFieldsCounters done [15:22:55]requested_item shift.num is exist - process it [15:22:55]requested_item shift.opened is exist - process it [15:22:55]req_shift_opened [15:22:55]FM_GetShiftState [15:22:55]SAM_PROTO_GetShiftState [15:22:55]wFMCommunicate request_size=4 [15:22:55]MH_SAM_APDU [15:22:55]CAPDU: 80 13 01 00 [15:22:55]Write to MH i2c: E2 08 00 2A 06 80 13 01 00 00 00 00 00 AD [15:22:55]Write i2c OK [15:22:55]MH_I2C_Read... [15:22:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:55]Read from MH i2c: E2 [15:22:55]MH_I2C_Read... [15:22:55]Read from MH i2c: E2 0E 00 [15:22:55]MH_I2C_Read... [15:22:55]Read from MH i2c: E2 0E 00 2A 06 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 28 [15:22:55]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:22:55]wFMCommunicate OK [15:22:55]SAM_PROTO_GetShiftState done [15:22:55]FM_GetShiftState done [15:22:55]req_shift_opened done [15:22:55]requested_item shift.open_date is exist - process it [15:22:55]req_shift_open_date [15:22:55]req_shift_open_date done [15:22:55]produce_requested_data done [15:22:55]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111708,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [15:22:55]process_action_free close_receipt [15:22:55]json_value_free [15:22:55]json_value_free done [15:22:55]process_json_proto returns [15:22:55]Send response to host [15:22:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111708,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [15:22:55]free response buf [15:22:55]execute_script done [15:22:55]execute_script returns [15:22:55]free content buf [15:22:55]Sock 7.Close socket [15:22:55]Sock 7.Thread stoped [15:22:59]OFD Sender: No OFD packet to send [15:23:04]OFD Sender: No OFD packet to send [15:23:09]OFD Sender: No OFD packet to send [15:23:14]OFD Sender: No OFD packet to send [15:23:19]OFD Sender: No OFD packet to send [15:23:24]OFD Sender: No OFD packet to send [15:23:29]OFD Sender: No OFD packet to send [15:23:34]OFD Sender: No OFD packet to send [15:23:39]OFD Sender: No OFD packet to send [15:23:44]OFD Sender: No OFD packet to send [15:23:49]OFD Sender: No OFD packet to send [15:23:54]OFD Sender: No OFD packet to send [15:23:59]OFD Sender: No OFD packet to send [15:24:04]OFD Sender: No OFD packet to send [15:24:09]OFD Sender: No OFD packet to send [15:24:14]OFD Sender: No OFD packet to send [15:24:19]OFD Sender: No OFD packet to send [15:24:24]OFD Sender: No OFD packet to send [15:24:29]OFD Sender: No OFD packet to send [15:24:34]OFD Sender: No OFD packet to send [15:24:39]OFD Sender: No OFD packet to send [15:24:44]OFD Sender: No OFD packet to send [15:24:49]OFD Sender: No OFD packet to send [15:24:54]OFD Sender: No OFD packet to send [15:24:59]OFD Sender: No OFD packet to send [15:25:04]OFD Sender: No OFD packet to send [15:25:09]OFD Sender: No OFD packet to send [15:25:14]OFD Sender: No OFD packet to send [15:25:19]OFD Sender: No OFD packet to send [15:25:24]OFD Sender: No OFD packet to send [15:25:29]OFD Sender: No OFD packet to send [15:25:34]OFD Sender: No OFD packet to send [15:25:39]OFD Sender: No OFD packet to send [15:25:44]OFD Sender: No OFD packet to send [15:25:49]OFD Sender: No OFD packet to send [15:25:54]OFD Sender: No OFD packet to send [15:25:59]OFD Sender: No OFD packet to send [15:26:04]OFD Sender: No OFD packet to send [15:26:09]OFD Sender: No OFD packet to send [15:26:14]OFD Sender: No OFD packet to send [15:26:19]OFD Sender: No OFD packet to send [15:26:24]OFD Sender: No OFD packet to send [15:26:29]OFD Sender: No OFD packet to send [15:26:34]OFD Sender: No OFD packet to send [15:26:39]OFD Sender: No OFD packet to send [15:26:44]OFD Sender: No OFD packet to send [15:26:49]OFD Sender: No OFD packet to send [15:26:54]OFD Sender: No OFD packet to send [15:26:59]OFD Sender: No OFD packet to send [15:27:04]OFD Sender: No OFD packet to send [15:27:09]OFD Sender: No OFD packet to send [15:27:14]OFD Sender: No OFD packet to send [15:27:19]OFD Sender: No OFD packet to send [15:27:24]OFD Sender: No OFD packet to send [15:27:29]OFD Sender: No OFD packet to send [15:27:34]OFD Sender: No OFD packet to send [15:27:39]OFD Sender: No OFD packet to send [15:27:44]OFD Sender: No OFD packet to send [15:27:49]OFD Sender: No OFD packet to send [15:27:54]OFD Sender: No OFD packet to send [15:27:59]OFD Sender: No OFD packet to send [15:28:04]OFD Sender: No OFD packet to send [15:28:09]OFD Sender: No OFD packet to send [15:28:14]OFD Sender: No OFD packet to send [15:28:19]OFD Sender: No OFD packet to send [15:28:24]OFD Sender: No OFD packet to send [15:28:29]OFD Sender: No OFD packet to send [15:28:34]OFD Sender: No OFD packet to send [15:28:39]OFD Sender: No OFD packet to send [15:28:44]OFD Sender: No OFD packet to send [15:28:49]OFD Sender: No OFD packet to send [15:28:54]OFD Sender: No OFD packet to send [15:28:59]OFD Sender: No OFD packet to send [15:29:04]OFD Sender: No OFD packet to send [15:29:09]OFD Sender: No OFD packet to send [15:29:14]OFD Sender: No OFD packet to send [15:29:19]OFD Sender: No OFD packet to send [15:29:24]OFD Sender: No OFD packet to send [15:29:29]OFD Sender: No OFD packet to send [15:29:34]OFD Sender: No OFD packet to send [15:29:39]OFD Sender: No OFD packet to send [15:29:44]OFD Sender: No OFD packet to send [15:29:49]OFD Sender: No OFD packet to send [15:29:54]OFD Sender: No OFD packet to send [15:29:59]OFD Sender: No OFD packet to send [15:30:04]OFD Sender: No OFD packet to send [15:30:09]OFD Sender: No OFD packet to send [15:30:14]OFD Sender: No OFD packet to send [15:30:19]OFD Sender: No OFD packet to send [15:30:24]OFD Sender: No OFD packet to send [15:30:29]OFD Sender: No OFD packet to send [15:30:34]OFD Sender: No OFD packet to send [15:30:39]OFD Sender: No OFD packet to send [15:30:44]OFD Sender: No OFD packet to send [15:30:49]OFD Sender: No OFD packet to send [15:30:54]OFD Sender: No OFD packet to send [15:30:59]OFD Sender: No OFD packet to send [15:31:04]OFD Sender: No OFD packet to send [15:31:09]OFD Sender: No OFD packet to send [15:31:14]OFD Sender: No OFD packet to send [15:31:19]OFD Sender: No OFD packet to send [15:31:24]OFD Sender: No OFD packet to send [15:31:29]OFD Sender: No OFD packet to send [15:31:34]OFD Sender: No OFD packet to send [15:31:39]OFD Sender: No OFD packet to send [15:31:44]OFD Sender: No OFD packet to send [15:31:49]OFD Sender: No OFD packet to send [15:31:54]OFD Sender: No OFD packet to send [15:31:59]OFD Sender: No OFD packet to send [15:32:04]OFD Sender: No OFD packet to send [15:32:09]OFD Sender: No OFD packet to send [15:32:14]OFD Sender: No OFD packet to send [15:32:19]OFD Sender: No OFD packet to send [15:32:24]OFD Sender: No OFD packet to send [15:32:29]OFD Sender: No OFD packet to send [15:32:34]OFD Sender: No OFD packet to send [15:32:39]OFD Sender: No OFD packet to send [15:32:44]OFD Sender: No OFD packet to send [15:32:49]OFD Sender: No OFD packet to send [15:32:54]OFD Sender: No OFD packet to send [15:32:59]OFD Sender: No OFD packet to send [15:33:04]OFD Sender: No OFD packet to send [15:33:09]OFD Sender: No OFD packet to send [15:33:14]OFD Sender: No OFD packet to send [15:33:19]OFD Sender: No OFD packet to send [15:33:24]OFD Sender: No OFD packet to send [15:33:29]OFD Sender: No OFD packet to send [15:33:34]OFD Sender: No OFD packet to send [15:33:39]OFD Sender: No OFD packet to send [15:33:44]OFD Sender: No OFD packet to send [15:33:49]OFD Sender: No OFD packet to send [15:33:54]OFD Sender: No OFD packet to send [15:33:59]OFD Sender: No OFD packet to send [15:34:04]OFD Sender: No OFD packet to send [15:34:09]OFD Sender: No OFD packet to send [15:34:12]accept exits with 9 [15:34:12]New connection [15:34:12]New thread 3067178340 created [15:34:12]Thread 3067321700 joined [15:34:12]Waiting for new connection... [15:34:12] Sock 9.Parse request [15:34:12]Sock 9.Check first char [15:34:12]Sock 9.First char is OK [15:34:12]request: POST /json_proto HTTP/1.0 [15:34:12]Method: POST [15:34:12]URL: /json_proto [15:34:12]Method is POST - this is cgi request [15:34:12]url: /json_proto [15:34:12]query_string will be loaded in cgi processing [15:34:12]execute_cgi json_proto POST (null) [15:34:12]execute_cgi path=json_proto method=POST [15:34:12]POST find Content-Length [15:34:12]Host: 172.17.59.68:8080 [15:34:12]Content-Length: 679 [15:34:12]Content-Type: application/json [15:34:12] [15:34:12]POST finish read [15:34:12]Found Content-Length = 679 [15:34:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:12]execute_script... [15:34: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)320327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:12]POST & json_proto [15:34:12]process_json_proto [15:34:12]json parsed OK: [15:34:12]protocol is kg_v1.0 [15:34:12]action value=close_receipt [15:34:12]process_action close_receipt [15:34:12]cmd_close_receipt [15:34:12]MH_GetDate [15:34:12]Write to MH i2c: F0 00 00 2B 06 20 [15:34:12]Write i2c OK [15:34:12]MH_I2C_Read... [15:34:12]Read from MH i2c: F0 [15:34:12]MH_I2C_Read... [15:34:12]Read from MH i2c: F0 09 00 [15:34:12]MH_I2C_Read... [15:34:12]Read from MH i2c: F0 09 00 2B 06 00 F7 4B 74 66 BC EC 60 65 B2 [15:34:12]GetLastDocTimeStamp 1718896973 [15:34:12]current date 1718897655 [15:34:12]FM_GetShiftState [15:34:12]SAM_PROTO_GetShiftState [15:34:12]wFMCommunicate request_size=4 [15:34:12]MH_SAM_APDU [15:34:12]CAPDU: 80 13 01 00 [15:34:12]Write to MH i2c: E2 08 00 2C 06 80 13 01 00 00 00 00 00 AF [15:34:12]Write i2c OK [15:34:12]MH_I2C_Read... [15:34:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:12]Read from MH i2c: E2 [15:34:12]MH_I2C_Read... [15:34:12]Read from MH i2c: E2 0E 00 [15:34:12]MH_I2C_Read... [15:34:12]Read from MH i2c: E2 0E 00 2C 06 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 2A [15:34:12]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:34:12]wFMCommunicate OK [15:34:12]SAM_PROTO_GetShiftState done [15:34:12]FM_GetShiftState done [15:34:12]opened in 1718847247 [15:34:12]opened+sec_in_day 1718933647 [15:34:12]quantity*price = 200037 [15:34:12]sum+1 = 200039 [15:34:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 159 20.06.2024 15:34 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111709 ФПД: 236830000400506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T153415&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111709&fm=236830000400506&tin=02508201610067®Number=0000000000092771&sum=200000 [15:34:13]StoreToDocumentArchive [15:34:13]shift 389 fd 111709 [15:34:13]save to /storage/0389/doc_00111709 [15:34:13]save last doc name /storage/0389/doc_00111709 to /storage/kkm_last_doc_name [15:34:13]save OK [15:34:13]Clear old archive folders... [15:34:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:34:13]tlvbuf is 01742560 [15:34:13]SAM_PROTO_ClearQueue [15:34:13]wFMCommunicate request_size=4 [15:34:13]MH_SAM_APDU [15:34:13]CAPDU: 80 09 00 00 [15:34:13]Write to MH i2c: E2 08 00 39 06 80 09 00 00 00 00 00 00 B1 [15:34:13]Write i2c OK [15:34:13]MH_I2C_Read... [15:34:13]Read from MH i2c: E2 [15:34:13]MH_I2C_Read... [15:34:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:13]Read from MH i2c: E2 03 00 [15:34:13]MH_I2C_Read... [15:34:13]Read from MH i2c: E2 03 00 39 06 00 90 00 B3 [15:34:13]RAPDU: 90 00 [15:34:13]wFMCommunicate OK [15:34:13]SAM_PROTO_ClearQueue done [15:34:13]KKMCreateOFDPacket [15:34:13]OFDProtocolAddRootSTLVToBuf [15:34:13]FM_MakeSignedData [15:34:13]FM_MakeSignedData [15:34:13]SAM_PROTO_SignData [15:34:13]wFMCommunicate request_size=4 [15:34:13]MH_SAM_APDU [15:34:13]CAPDU: 80 0D 01 02 [15:34:13]Write to MH i2c: E2 08 00 3A 06 80 0D 01 02 00 00 00 00 B9 [15:34:13]Write i2c OK [15:34:13]MH_I2C_Read... [15:34:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:13]Read from MH i2c: E2 [15:34:13]MH_I2C_Read... [15:34:13]Read from MH i2c: E2 03 00 [15:34:13]MH_I2C_Read... [15:34:13]Read from MH i2c: E2 03 00 3A 06 00 90 00 B4 [15:34:13]RAPDU: 90 00 [15:34:13]wFMCommunicate OK [15:34:13]wFMCommunicate request_size=255 [15:34:13]MH_SAM_APDU [15:34:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 F7 4B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5D B4 01 00 35 04 06 00 D7 65 48 0B [15:34:13]Write to MH i2c: E2 02 01 3B 06 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 F7 4B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5D B4 01 00 35 04 06 00 D7 65 48 0B 00 00 7C [15:34:13]Write i2c OK [15:34:13]MH_I2C_Read... [15:34:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:14]Read from MH i2c: E2 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: E2 03 00 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: E2 03 00 3B 06 00 90 00 B5 [15:34:14]RAPDU: 90 00 [15:34:14]wFMCommunicate OK [15:34:14]wFMCommunicate request_size=7 [15:34:14]MH_SAM_APDU [15:34:14]CAPDU: 80 0D 02 02 02 C8 7A [15:34:14]Write to MH i2c: E2 0A 00 3C 06 80 0D 02 02 02 00 C8 7A 00 00 02 [15:34:14]Write i2c OK [15:34:14]MH_I2C_Read... [15:34:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:14]Read from MH i2c: E2 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: E2 03 00 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: E2 03 00 3C 06 00 90 00 B6 [15:34:14]RAPDU: 90 00 [15:34:14]wFMCommunicate OK [15:34:14]wFMCommunicate request_size=4 [15:34:14]MH_SAM_APDU [15:34:14]CAPDU: 80 0D 03 02 [15:34:14]Write to MH i2c: E2 08 00 3D 06 80 0D 03 02 00 00 00 00 BE [15:34:14]Write i2c OK [15:34:14]MH_I2C_Read... [15:34:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:14]Read from MH i2c: E2 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: E2 0B 00 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: E2 0B 00 3D 06 00 E3 EA 4D 7E BD C0 3C 2B 90 00 3B [15:34:14]RAPDU: E3 EA 4D 7E BD C0 3C 2B 90 00 [15:34:14]wFMCommunicate OK [15:34:14]SAM_PROTO_SignData done [15:34:14]FM_MakeSignedData done [15:34:14]CreateOFDProtocolMessage [15:34:14]wFMCommunicate request_size=4 [15:34:14]MH_SAM_APDU [15:34:14]CAPDU: 80 11 00 00 [15:34:14]Write to MH i2c: E2 08 00 3E 06 80 11 00 00 00 00 00 00 BE [15:34:14]Write i2c OK [15:34:14]MH_I2C_Read... [15:34:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:14]Read from MH i2c: E2 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: E2 17 00 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: E2 17 00 3E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 10 [15:34:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:34:14]wFMCommunicate OK [15:34:14]CreateOFDProtocolMessage done [15:34:14]OFDSenderStorePacket 111709 [15:34:14]StoreOFDPacket docnum=111709 [15:34:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 03 31 04 01 D9 4F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 F7 4B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5D B4 01 00 35 04 06 00 D7 65 48 0B C8 7A E3 EA 4D 7E BD C0 3C 2B [15:34:14]CheckFolder [15:34:14]dirname=/storage/ofd_packets [15:34:14]CheckFolder done [15:34:14]ProducePacketName [15:34:14]name=ofd_packets/00111709 [15:34:14]NVStorageSaveData ofd_packets/00111709 [15:34:14]File name is /storage/ofd_packets/00111709 [15:34:14]Write 298 bytes [15:34:14]NVStorageSaveData done [15:34:14]OFDSenderStorePacket done [15:34:14]KKMCreateOFDPacket done [15:34:14]NVStorageSaveData kkm_last_timestamp [15:34:14]File name is /storage/kkm_last_timestamp [15:34:14]Write 4 bytes [15:34:14]NVStorageSaveData done [15:34:14]ExternCall_PrintAddStr [15:34:14]wPrintStart [15:34:14]Write to MH i2c: 01 00 00 3F 06 45 [15:34:14]Write i2c OK [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: 01 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: 01 07 00 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: 01 07 00 3F 06 00 00 00 00 00 FF 0F 5A [15:34:14]RasterBufferAndPrint [15:34:14]line Счет N : (1)320327 [15:34:14]line ИНН: 02508201610067 [15:34:14]line Контрольно-Кассовый Чек [15:34:14]line ПРОДАЖА [15:34:14]line ТРК (МРК, ГНК) : 22 [15:34:14]line Товар: 2710194210 [15:34:14]line ДТ-К-5 [15:34:14]line 27.440 * 72.90 [15:34:14]line = 2000.38 [15:34:14]line НДС 12% НСП 1% [15:34:14]line > о реализуемом товаре [15:34:14]line ОКРУГЛЕНИЕ: -0.38 [15:34:14]line ИТОГО: 2000.00 [15:34:14]line Внесено: 2000.00 [15:34:14]line СДАЧА: 0.00 [15:34:14]line НСП 1% : 17.70 [15:34:14]line НДС 12% : 212.43 [15:34:14]line Наличными: 2000.00 [15:34:14]line Безнал.: 0.00 [15:34:14]line Место: АЗС № 65 "Партнер Нефть" [15:34:14]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:34:14]line СНО: Общий режим [15:34:14]line Чек 159 20.06.2024 15:34 [15:34:14]line Смена: 389 ФФД: 1.0 [15:34:14]line ЗНМ: 0300000198 [15:34:14]line РНМ: 0000000000092771 [15:34:14]line Версия ККМ: 001 [15:34:14]line ФМ: 0000000000875083 [15:34:14]line ФД: 111709 [15:34:14]line ФПД: 236830000400506 [15:34:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T153415&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111709&fm=236830000400506&tin=02508201610067®Number=0000000000092771&sum=200000 [15:34:14]OFD Sender: Processing packet 111709 [packets to send 38, broken 37] [15:34:14]ProducePacketName [15:34:14]name=ofd_packets/00111709 [15:34:14]OFD Sender: To server: pG, [15:34:14]CommunicateWithHost lk.salyk.kg:30040 [15:34:14]ConnectInit lk.salyk.kg [15:34:14]written 0, free lines is 4095 [15:34:14]Connected sock=10 [15:34:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 03 31 04 01 D9 4F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 F7 4B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5D B4 01 00 35 04 06 00 D7 65 48 0B C8 7A E3 EA 4D 7E BD C0 3C 2B [15:34:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 8B 70 47 00 CE 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5D B4 01 00 F4 03 04 00 3D E3 73 66 B6 04 01 00 00 F2 45 BD D5 46 7C B8 D4 [15:34:15]CommunicateWithHost err = 0 [15:34:15]CheckOFDResponse [15:34:15]1017 (14) - 77093643461234 [15:34:15]1041 (16) - 0000000000875083 [15:34:15]1040 (4) - 111709 [15:34:15]1012 (4) - 20.06.2024 08:07 [15:34:15]1206 (1) - 0 [15:34:15]OFD Sender: Remove packet 111709 [15:34:15]ProducePacketName [15:34:15]name=ofd_packets/00111709 [15:34:15]NVStorageDeleteData [15:34:15]Write to MH i2c: 01 00 00 6A 06 70 [15:34:15]Write i2c OK [15:34:15]MH_I2C_Read... [15:34:15]Read from MH i2c: 01 [15:34:15]MH_I2C_Read... [15:34:15]Read from MH i2c: 01 07 00 [15:34:15]MH_I2C_Read... [15:34:15]Read from MH i2c: 01 07 00 6A 06 00 00 00 00 00 EC 0C 6F [15:34:15]RasterBufferAndPrint [15:34:15]line [15:34:15]line [15:34:15]line [15:34:15]line [15:34:15]line [15:34:15]written 0, free lines is 3314 [15:34:15]MH_Cut [15:34:15]Write to MH i2c: D1 01 00 71 06 01 49 [15:34:15]Write i2c OK [15:34:15]MH_I2C_Read... [15:34:15]Read from MH i2c: D1 [15:34:15]MH_I2C_Read... [15:34:15]Read from MH i2c: D1 01 00 [15:34:15]MH_I2C_Read... [15:34:15]Read from MH i2c: D1 01 00 71 06 00 48 [15:34:15]Write to MH i2c: 01 00 00 72 06 78 [15:34:15]Write i2c OK [15:34:15]MH_I2C_Read... [15:34:15]OFD Sender: No OFD packet to send [15:34:15]*** Cut start [15:34:15]*** Partial cut [15:34:15]*** CUTSNS_PIN = 1 [15:34:15]*** CUTSNS_PIN = 0 [15:34:16]*** Brake cut motor [15:34:16]Read from MH i2c: 01 [15:34:16]MH_I2C_Read... [15:34:16]*** Stop cut motor [15:34:16]*** Cut end [15:34:16]Read from MH i2c: 01 07 00 [15:34:16]MH_I2C_Read... [15:34:16]Read from MH i2c: 01 07 00 72 06 00 00 00 00 00 FF 0F 8D [15:34:16]process_action close_receipt done [15:34:16]requested_data is exist [15:34:16]produce_requested_data [15:34:16]requested_item fm.sn is exist - process it [15:34:16]wFMCommunicate request_size=4 [15:34:16]MH_SAM_APDU [15:34:16]CAPDU: 80 11 00 00 [15:34:16]Write to MH i2c: E2 08 00 73 06 80 11 00 00 00 00 00 00 F3 [15:34:16]Write i2c OK [15:34:16]MH_I2C_Read... [15:34:16]Read from MH i2c: E2 [15:34:16]MH_I2C_Read... [15:34:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:16]Read from MH i2c: E2 17 00 [15:34:16]MH_I2C_Read... [15:34:16]Read from MH i2c: E2 17 00 73 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 45 [15:34:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:34:16]wFMCommunicate OK [15:34:16]requested_item fd.num is exist - process it [15:34:16]SAM_PROTO_GetFieldsCounters [15:34:16]wFMCommunicate request_size=4 [15:34:16]MH_SAM_APDU [15:34:16]CAPDU: 80 13 00 00 [15:34:16]Write to MH i2c: E2 08 00 74 06 80 13 00 00 00 00 00 00 F6 [15:34:16]Write i2c OK [15:34:16]MH_I2C_Read... [15:34:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:16]Read from MH i2c: E2 [15:34:16]MH_I2C_Read... [15:34:16]Read from MH i2c: E2 62 00 [15:34:16]MH_I2C_Read... [15:34:16]Read from MH i2c: E2 62 00 74 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5D B4 01 00 0E 04 04 00 85 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 8C [15:34:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5D B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:34:16]wFMCommunicate OK [15:34:16]SAM_PROTO_GetFieldsCounters done [15:34:16]requested_item shift.num is exist - process it [15:34:16]requested_item shift.opened is exist - process it [15:34:16]req_shift_opened [15:34:16]FM_GetShiftState [15:34:16]SAM_PROTO_GetShiftState [15:34:16]wFMCommunicate request_size=4 [15:34:16]MH_SAM_APDU [15:34:16]CAPDU: 80 13 01 00 [15:34:16]Write to MH i2c: E2 08 00 75 06 80 13 01 00 00 00 00 00 F8 [15:34:16]Write i2c OK [15:34:16]MH_I2C_Read... [15:34:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:16]Read from MH i2c: E2 [15:34:16]MH_I2C_Read... [15:34:16]Read from MH i2c: E2 0E 00 [15:34:16]MH_I2C_Read... [15:34:16]Read from MH i2c: E2 0E 00 75 06 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 73 [15:34:16]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:34:16]wFMCommunicate OK [15:34:16]SAM_PROTO_GetShiftState done [15:34:16]FM_GetShiftState done [15:34:16]req_shift_opened done [15:34:16]requested_item shift.open_date is exist - process it [15:34:16]req_shift_open_date [15:34:16]req_shift_open_date done [15:34:16]produce_requested_data done [15:34:16]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111709,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [15:34:16]process_action_free close_receipt [15:34:16]json_value_free [15:34:16]json_value_free done [15:34:16]process_json_proto returns [15:34:16]Send response to host [15:34:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111709,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [15:34:16]free response buf [15:34:16]execute_script done [15:34:16]execute_script returns [15:34:16]free content buf [15:34:16]Sock 9.Close socket [15:34:16]Sock 9.Thread stoped [15:34:20]OFD Sender: No OFD packet to send [15:34:25]OFD Sender: No OFD packet to send [15:34:30]OFD Sender: No OFD packet to send [15:34:35]OFD Sender: No OFD packet to send [15:34:40]OFD Sender: No OFD packet to send [15:34:45]OFD Sender: No OFD packet to send [15:34:50]OFD Sender: No OFD packet to send [15:34:55]OFD Sender: No OFD packet to send [15:35:00]OFD Sender: No OFD packet to send [15:35:05]OFD Sender: No OFD packet to send [15:35:05]accept exits with 7 [15:35:05]New connection [15:35:05]New thread 3067321700 created [15:35:05]Thread 3067178340 joined [15:35:05]Waiting for new connection... [15:35:05] Sock 7.Parse request [15:35:05]Sock 7.Check first char [15:35:05]Sock 7.First char is OK [15:35:05]request: POST /json_proto HTTP/1.0 [15:35:05]Method: POST [15:35:05]URL: /json_proto [15:35:05]Method is POST - this is cgi request [15:35:05]url: /json_proto [15:35:05]query_string will be loaded in cgi processing [15:35:05]execute_cgi json_proto POST (null) [15:35:05]execute_cgi path=json_proto method=POST [15:35:05]POST find Content-Length [15:35:05]Host: 172.17.59.68:8080 [15:35:05]Content-Length: 677 [15:35:05]Content-Type: application/json [15:35:05] [15:35:05]POST finish read [15:35:05]Found Content-Length = 677 [15:35:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:05]execute_script... [15:35:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:05]POST & json_proto [15:35:05]process_json_proto [15:35:05]json parsed OK: [15:35:05]protocol is kg_v1.0 [15:35:05]action value=close_receipt [15:35:05]process_action close_receipt [15:35:05]cmd_close_receipt [15:35:05]MH_GetDate [15:35:05]Write to MH i2c: F0 00 00 76 06 6B [15:35:05]Write i2c OK [15:35:05]MH_I2C_Read... [15:35:05]Read from MH i2c: F0 [15:35:05]MH_I2C_Read... [15:35:05]Read from MH i2c: F0 09 00 [15:35:05]MH_I2C_Read... [15:35:05]Read from MH i2c: F0 09 00 76 06 00 2C 4C 74 66 BC EC 60 65 33 [15:35:05]GetLastDocTimeStamp 1718897655 [15:35:05]current date 1718897708 [15:35:05]FM_GetShiftState [15:35:05]SAM_PROTO_GetShiftState [15:35:05]wFMCommunicate request_size=4 [15:35:05]MH_SAM_APDU [15:35:05]CAPDU: 80 13 01 00 [15:35:05]Write to MH i2c: E2 08 00 77 06 80 13 01 00 00 00 00 00 FA [15:35:05]Write i2c OK [15:35:05]MH_I2C_Read... [15:35:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:05]Read from MH i2c: E2 [15:35:05]MH_I2C_Read... [15:35:05]Read from MH i2c: E2 0E 00 [15:35:05]MH_I2C_Read... [15:35:05]Read from MH i2c: E2 0E 00 77 06 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 75 [15:35:05]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:35:05]wFMCommunicate OK [15:35:05]SAM_PROTO_GetShiftState done [15:35:05]FM_GetShiftState done [15:35:05]opened in 1718847247 [15:35:05]opened+sec_in_day 1718933647 [15:35:05]quantity*price = 30012 [15:35:05]sum+1 = 30014 [15:35:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 160 20.06.2024 15:35 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111710 ФПД: 100805475726273 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T153508&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111710&fm=100805475726273&tin=02508201610067®Number=0000000000092771&sum=30000 [15:35:07]StoreToDocumentArchive [15:35:07]shift 389 fd 111710 [15:35:07]save to /storage/0389/doc_00111710 [15:35:07]save last doc name /storage/0389/doc_00111710 to /storage/kkm_last_doc_name [15:35:07]save OK [15:35:07]Clear old archive folders... [15:35:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:35:07]tlvbuf is 016ECCA0 [15:35:07]SAM_PROTO_ClearQueue [15:35:07]wFMCommunicate request_size=4 [15:35:07]MH_SAM_APDU [15:35:07]CAPDU: 80 09 00 00 [15:35:07]Write to MH i2c: E2 08 00 84 06 80 09 00 00 00 00 00 00 FC [15:35:07]Write i2c OK [15:35:07]MH_I2C_Read... [15:35:07]Read from MH i2c: E2 [15:35:07]MH_I2C_Read... [15:35:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:35:07]Read from MH i2c: E2 03 00 [15:35:07]MH_I2C_Read... [15:35:07]Read from MH i2c: E2 03 00 84 06 00 90 00 FE [15:35:07]RAPDU: 90 00 [15:35:07]wFMCommunicate OK [15:35:07]SAM_PROTO_ClearQueue done [15:35:07]KKMCreateOFDPacket [15:35:07]OFDProtocolAddRootSTLVToBuf [15:35:07]FM_MakeSignedData [15:35:07]FM_MakeSignedData [15:35:07]SAM_PROTO_SignData [15:35:07]wFMCommunicate request_size=4 [15:35:07]MH_SAM_APDU [15:35:07]CAPDU: 80 0D 01 02 [15:35:07]Write to MH i2c: E2 08 00 85 06 80 0D 01 02 00 00 00 00 04 [15:35:07]Write i2c OK [15:35:07]MH_I2C_Read... [15:35:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:35:07]Read from MH i2c: E2 [15:35:07]MH_I2C_Read... [15:35:07]Read from MH i2c: E2 03 00 [15:35:07]MH_I2C_Read... [15:35:07]Read from MH i2c: E2 03 00 85 06 00 90 00 FF [15:35:07]RAPDU: 90 00 [15:35:07]wFMCommunicate OK [15:35:07]wFMCommunicate request_size=255 [15:35:07]MH_SAM_APDU [15: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 2C 4C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5E B4 01 00 35 04 06 00 5B [15:35:07]Write to MH i2c: E2 02 01 86 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 2C 4C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5E B4 01 00 35 04 06 00 5B 00 00 3C [15:35:07]Write i2c OK [15:35:07]MH_I2C_Read... [15:35:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:07]Read from MH i2c: E2 [15:35:07]MH_I2C_Read... [15:35:07]Read from MH i2c: E2 03 00 [15:35:07]MH_I2C_Read... [15:35:07]Read from MH i2c: E2 03 00 86 06 00 90 00 00 [15:35:07]RAPDU: 90 00 [15:35:07]wFMCommunicate OK [15:35:07]wFMCommunicate request_size=10 [15:35:07]MH_SAM_APDU [15:35:07]CAPDU: 80 0D 02 02 05 AE 9A 92 73 C1 [15:35:07]Write to MH i2c: E2 0D 00 87 06 80 0D 02 02 05 00 AE 9A 92 73 C1 00 00 1F [15:35:07]Write i2c OK [15:35:07]MH_I2C_Read... [15:35:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:07]Read from MH i2c: E2 [15:35:07]MH_I2C_Read... [15:35:07]Read from MH i2c: E2 03 00 [15:35:07]MH_I2C_Read... [15:35:07]Read from MH i2c: E2 03 00 87 06 00 90 00 01 [15:35:07]RAPDU: 90 00 [15:35:07]wFMCommunicate OK [15:35:07]wFMCommunicate request_size=4 [15:35:07]MH_SAM_APDU [15:35:07]CAPDU: 80 0D 03 02 [15:35:07]Write to MH i2c: E2 08 00 88 06 80 0D 03 02 00 00 00 00 09 [15:35:07]Write i2c OK [15:35:07]MH_I2C_Read... [15:35:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:35:07]Read from MH i2c: E2 [15:35:07]MH_I2C_Read... [15:35:07]Read from MH i2c: E2 0B 00 [15:35:07]MH_I2C_Read... [15:35:07]Read from MH i2c: E2 0B 00 88 06 00 FD 45 2C EB 98 52 04 5F 90 00 B0 [15:35:07]RAPDU: FD 45 2C EB 98 52 04 5F 90 00 [15:35:07]wFMCommunicate OK [15:35:07]SAM_PROTO_SignData done [15:35:07]FM_MakeSignedData done [15:35:07]CreateOFDProtocolMessage [15:35:07]wFMCommunicate request_size=4 [15:35:07]MH_SAM_APDU [15:35:07]CAPDU: 80 11 00 00 [15:35:07]Write to MH i2c: E2 08 00 89 06 80 11 00 00 00 00 00 00 09 [15:35:07]Write i2c OK [15:35:07]MH_I2C_Read... [15:35:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:07]Read from MH i2c: E2 [15:35:07]MH_I2C_Read... [15:35:07]Read from MH i2c: E2 17 00 [15:35:07]MH_I2C_Read... [15:35:07]Read from MH i2c: E2 17 00 89 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5B [15:35:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:35:07]wFMCommunicate OK [15:35:07]CreateOFDProtocolMessage done [15:35:07]OFDSenderStorePacket 111710 [15:35:07]StoreOFDPacket docnum=111710 [15:35:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 4A 5F 07 01 38 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 2C 4C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5E B4 01 00 35 04 06 00 5B AE 9A 92 73 C1 FD 45 2C EB 98 52 04 5F [15:35:07]CheckFolder [15:35:07]dirname=/storage/ofd_packets [15:35:07]CheckFolder done [15:35:07]ProducePacketName [15:35:07]name=ofd_packets/00111710 [15:35:07]NVStorageSaveData ofd_packets/00111710 [15:35:07]File name is /storage/ofd_packets/00111710 [15:35:07]Write 301 bytes [15:35:07]NVStorageSaveData done [15:35:07]OFDSenderStorePacket done [15:35:07]KKMCreateOFDPacket done [15:35:07]NVStorageSaveData kkm_last_timestamp [15:35:07]File name is /storage/kkm_last_timestamp [15:35:07]Write 4 bytes [15:35:07]NVStorageSaveData done [15:35:07]ExternCall_PrintAddStr [15:35:07]wPrintStart [15:35:07]Write to MH i2c: 01 00 00 8A 06 90 [15:35:07]Write i2c OK [15:35:07]MH_I2C_Read... [15:35:07]Read from MH i2c: 01 [15:35:07]MH_I2C_Read... [15:35:07]Read from MH i2c: 01 07 00 [15:35:07]MH_I2C_Read... [15:35:07]Read from MH i2c: 01 07 00 8A 06 00 00 00 00 00 FF 0F A5 [15:35:07]RasterBufferAndPrint [15:35:07]line Счет N : (1)320328 [15:35:07]line ИНН: 02508201610067 [15:35:07]line Контрольно-Кассовый Чек [15:35:07]line ПРОДАЖА [15:35:07]line ТРК (МРК, ГНК) : 11 [15:35:07]line Товар: 2710124130 [15:35:07]line Аи-92-К-5 [15:35:07]line 4.520 * 66.40 [15:35:07]line = 300.13 [15:35:07]line НДС 12% НСП 1% [15:35:07]line > о реализуемом товаре [15:35:07]line ОКРУГЛЕНИЕ: -0.13 [15:35:07]line ИТОГО: 300.00 [15:35:07]line Внесено: 300.00 [15:35:07]line СДАЧА: 0.00 [15:35:07]line НСП 1% : 2.66 [15:35:07]line НДС 12% : 31.87 [15:35:07]line Наличными: 300.00 [15:35:07]line Безнал.: 0.00 [15:35:07]line Место: АЗС № 65 "Партнер Нефть" [15:35:07]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:35:07]line СНО: Общий режим [15:35:07]line Чек 160 20.06.2024 15:35 [15:35:07]line Смена: 389 ФФД: 1.0 [15:35:07]line ЗНМ: 0300000198 [15:35:07]line РНМ: 0000000000092771 [15:35:07]line Версия ККМ: 001 [15:35:07]line ФМ: 0000000000875083 [15:35:07]line ФД: 111710 [15:35:07]line ФПД: 100805475726273 [15:35:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T153508&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111710&fm=100805475726273&tin=02508201610067®Number=0000000000092771&sum=30000 [15:35:07]OFD Sender: Processing packet 111710 [packets to send 38, broken 37] [15:35:07]ProducePacketName [15:35:07]name=ofd_packets/00111710 [15:35:07]OFD Sender: To server: pG, [15:35:07]CommunicateWithHost lk.salyk.kg:30040 [15:35:07]ConnectInit lk.salyk.kg [15:35:07]written 0, free lines is 4095 [15:35:07]Connected sock=10 [15:35:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 4A 5F 07 01 38 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 2C 4C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5E B4 01 00 35 04 06 00 5B AE 9A 92 73 C1 FD 45 2C EB 98 52 04 5F [15:35:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 4A A0 47 00 27 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5E B4 01 00 F4 03 04 00 73 E3 73 66 B6 04 01 00 00 D3 88 7F 40 27 F8 94 A0 [15:35:08]CommunicateWithHost err = 0 [15:35:08]CheckOFDResponse [15:35:08]1017 (14) - 77093643461234 [15:35:08]1041 (16) - 0000000000875083 [15:35:08]1040 (4) - 111710 [15:35:08]1012 (4) - 20.06.2024 08:08 [15:35:08]1206 (1) - 0 [15:35:08]OFD Sender: Remove packet 111710 [15:35:08]ProducePacketName [15:35:08]name=ofd_packets/00111710 [15:35:08]NVStorageDeleteData [15:35:08]Write to MH i2c: 01 00 00 B5 06 BB [15:35:08]Write i2c OK [15:35:08]MH_I2C_Read... [15:35:08]Read from MH i2c: 01 [15:35:08]MH_I2C_Read... [15:35:08]Read from MH i2c: 01 07 00 [15:35:08]MH_I2C_Read... [15:35:08]Read from MH i2c: 01 07 00 B5 06 00 00 00 00 00 E7 0C B5 [15:35:08]RasterBufferAndPrint [15:35:08]line [15:35:08]line [15:35:08]line [15:35:08]line [15:35:08]line [15:35:08]written 0, free lines is 3310 [15:35:08]MH_Cut [15:35:08]Write to MH i2c: D1 01 00 BC 06 01 94 [15:35:08]Write i2c OK [15:35:08]MH_I2C_Read... [15:35:08]Read from MH i2c: D1 [15:35:08]MH_I2C_Read... [15:35:08]Read from MH i2c: D1 01 00 [15:35:08]MH_I2C_Read... [15:35:08]Read from MH i2c: D1 01 00 BC 06 00 93 [15:35:08]Write to MH i2c: 01 00 00 BD 06 C3 [15:35:08]Write i2c OK [15:35:08]MH_I2C_Read... [15:35:08]OFD Sender: No OFD packet to send [15:35:09]*** Cut start [15:35:09]*** Partial cut [15:35:09]*** CUTSNS_PIN = 1 [15:35:09]*** CUTSNS_PIN = 0 [15:35:09]*** Brake cut motor [15:35:09]Read from MH i2c: 01 [15:35:09]MH_I2C_Read... [15:35:09]*** Stop cut motor [15:35:09]*** Cut end [15:35:09]Read from MH i2c: 01 07 00 [15:35:09]MH_I2C_Read... [15:35:09]Read from MH i2c: 01 07 00 BD 06 00 00 00 00 00 FF 0F D8 [15:35:09]process_action close_receipt done [15:35:09]requested_data is exist [15:35:09]produce_requested_data [15:35:09]requested_item fm.sn is exist - process it [15:35:09]wFMCommunicate request_size=4 [15:35:09]MH_SAM_APDU [15:35:09]CAPDU: 80 11 00 00 [15:35:09]Write to MH i2c: E2 08 00 BE 06 80 11 00 00 00 00 00 00 3E [15:35:09]Write i2c OK [15:35:09]MH_I2C_Read... [15:35:09]Read from MH i2c: E2 [15:35:09]MH_I2C_Read... [15:35:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:09]Read from MH i2c: E2 17 00 [15:35:09]MH_I2C_Read... [15:35:09]Read from MH i2c: E2 17 00 BE 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 90 [15:35:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:35:09]wFMCommunicate OK [15:35:09]requested_item fd.num is exist - process it [15:35:09]SAM_PROTO_GetFieldsCounters [15:35:09]wFMCommunicate request_size=4 [15:35:09]MH_SAM_APDU [15:35:09]CAPDU: 80 13 00 00 [15:35:09]Write to MH i2c: E2 08 00 BF 06 80 13 00 00 00 00 00 00 41 [15:35:09]Write i2c OK [15:35:09]MH_I2C_Read... [15:35:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:35:09]Read from MH i2c: E2 [15:35:09]MH_I2C_Read... [15:35:09]Read from MH i2c: E2 62 00 [15:35:09]MH_I2C_Read... [15:35:09]Read from MH i2c: E2 62 00 BF 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5E B4 01 00 0E 04 04 00 85 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 DB [15:35:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5E B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:35:09]wFMCommunicate OK [15:35:09]SAM_PROTO_GetFieldsCounters done [15:35:09]requested_item shift.num is exist - process it [15:35:09]requested_item shift.opened is exist - process it [15:35:09]req_shift_opened [15:35:09]FM_GetShiftState [15:35:09]SAM_PROTO_GetShiftState [15:35:09]wFMCommunicate request_size=4 [15:35:09]MH_SAM_APDU [15:35:09]CAPDU: 80 13 01 00 [15:35:09]Write to MH i2c: E2 08 00 C0 06 80 13 01 00 00 00 00 00 43 [15:35:09]Write i2c OK [15:35:09]MH_I2C_Read... [15:35:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:09]Read from MH i2c: E2 [15:35:09]MH_I2C_Read... [15:35:09]Read from MH i2c: E2 0E 00 [15:35:09]MH_I2C_Read... [15:35:09]Read from MH i2c: E2 0E 00 C0 06 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 BE [15:35:09]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:35:09]wFMCommunicate OK [15:35:09]SAM_PROTO_GetShiftState done [15:35:09]FM_GetShiftState done [15:35:09]req_shift_opened done [15:35:09]requested_item shift.open_date is exist - process it [15:35:09]req_shift_open_date [15:35:09]req_shift_open_date done [15:35:09]produce_requested_data done [15:35:09]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111710,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [15:35:09]process_action_free close_receipt [15:35:09]json_value_free [15:35:09]json_value_free done [15:35:09]process_json_proto returns [15:35:09]Send response to host [15:35:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111710,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [15:35:09]free response buf [15:35:09]execute_script done [15:35:09]execute_script returns [15:35:09]free content buf [15:35:09]Sock 7.Close socket [15:35:09]Sock 7.Thread stoped [15:35:13]OFD Sender: No OFD packet to send [15:35:18]OFD Sender: No OFD packet to send [15:35:23]OFD Sender: No OFD packet to send [15:35:28]OFD Sender: No OFD packet to send [15:35:33]OFD Sender: No OFD packet to send [15:35:38]OFD Sender: No OFD packet to send [15:35:43]OFD Sender: No OFD packet to send [15:35:48]OFD Sender: No OFD packet to send [15:35:53]OFD Sender: No OFD packet to send [15:35:58]OFD Sender: No OFD packet to send [15:36:03]OFD Sender: No OFD packet to send [15:36:08]OFD Sender: No OFD packet to send [15:36:13]OFD Sender: No OFD packet to send [15:36:18]OFD Sender: No OFD packet to send [15:36:23]OFD Sender: No OFD packet to send [15:36:28]OFD Sender: No OFD packet to send [15:36:33]OFD Sender: No OFD packet to send [15:36:38]OFD Sender: No OFD packet to send [15:36:43]OFD Sender: No OFD packet to send [15:36:48]OFD Sender: No OFD packet to send [15:36:53]OFD Sender: No OFD packet to send [15:36:58]OFD Sender: No OFD packet to send [15:37:03]OFD Sender: No OFD packet to send [15:37:08]OFD Sender: No OFD packet to send [15:37:13]OFD Sender: No OFD packet to send [15:37:18]OFD Sender: No OFD packet to send [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:42]accept exits with 9 [15:37:42]New connection [15:37:42]New thread 3067178340 created [15:37:42]Thread 3067321700 joined [15:37:42]Waiting for new connection... [15:37:42] Sock 9.Parse request [15:37:42]Sock 9.Check first char [15:37:42]Sock 9.First char is OK [15:37:42]request: POST /json_proto HTTP/1.0 [15:37:42]Method: POST [15:37:42]URL: /json_proto [15:37:42]Method is POST - this is cgi request [15:37:42]url: /json_proto [15:37:42]query_string will be loaded in cgi processing [15:37:42]execute_cgi json_proto POST (null) [15:37:42]execute_cgi path=json_proto method=POST [15:37:42]POST find Content-Length [15:37:42]Host: 172.17.59.68:8080 [15:37:42]Content-Length: 682 [15:37:42]Content-Type: application/json [15:37:42] [15:37:42]POST finish read [15:37:42]Found Content-Length = 682 [15:37:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:42]execute_script... [15:37: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)320329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:42]POST & json_proto [15:37:42]process_json_proto [15:37:42]json parsed OK: [15:37:42]protocol is kg_v1.0 [15:37:42]action value=close_receipt [15:37:42]process_action close_receipt [15:37:42]cmd_close_receipt [15:37:42]MH_GetDate [15:37:42]Write to MH i2c: F0 00 00 C1 06 B6 [15:37:42]Write i2c OK [15:37:42]MH_I2C_Read... [15:37:42]Read from MH i2c: F0 [15:37:42]MH_I2C_Read... [15:37:42]Read from MH i2c: F0 09 00 [15:37:42]MH_I2C_Read... [15:37:42]Read from MH i2c: F0 09 00 C1 06 00 C8 4C 74 66 BC EC 60 65 1A [15:37:42]GetLastDocTimeStamp 1718897708 [15:37:42]current date 1718897864 [15:37:42]FM_GetShiftState [15:37:42]SAM_PROTO_GetShiftState [15:37:42]wFMCommunicate request_size=4 [15:37:42]MH_SAM_APDU [15:37:42]CAPDU: 80 13 01 00 [15:37:42]Write to MH i2c: E2 08 00 C2 06 80 13 01 00 00 00 00 00 45 [15:37:42]Write i2c OK [15:37:42]MH_I2C_Read... [15:37:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:42]Read from MH i2c: E2 [15:37:42]MH_I2C_Read... [15:37:42]Read from MH i2c: E2 0E 00 [15:37:42]MH_I2C_Read... [15:37:42]Read from MH i2c: E2 0E 00 C2 06 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 C0 [15:37:42]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:37:42]wFMCommunicate OK [15:37:42]SAM_PROTO_GetShiftState done [15:37:42]FM_GetShiftState done [15:37:42]opened in 1718847247 [15:37:42]opened+sec_in_day 1718933647 [15:37:42]quantity*price = 100064 [15:37:42]sum+1 = 100066 [15:37:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 161 20.06.2024 15:37 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111711 ФПД: 205297521256986 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T153744&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111711&fm=205297521256986&tin=02508201610067®Number=0000000000092771&sum=100000 [15:37:43]StoreToDocumentArchive [15:37:43]shift 389 fd 111711 [15:37:43]save to /storage/0389/doc_00111711 [15:37:43]save last doc name /storage/0389/doc_00111711 to /storage/kkm_last_doc_name [15:37:43]save OK [15:37:43]Clear old archive folders... [15:37:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:37:43]tlvbuf is 01743A30 [15:37:43]SAM_PROTO_ClearQueue [15:37:43]wFMCommunicate request_size=4 [15:37:43]MH_SAM_APDU [15:37:43]CAPDU: 80 09 00 00 [15:37:43]Write to MH i2c: E2 08 00 CF 06 80 09 00 00 00 00 00 00 47 [15:37:43]Write i2c OK [15:37:43]MH_I2C_Read... [15:37:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:43]Read from MH i2c: E2 [15:37:43]MH_I2C_Read... [15:37:43]Read from MH i2c: E2 03 00 [15:37:43]MH_I2C_Read... [15:37:43]Read from MH i2c: E2 03 00 CF 06 00 90 00 49 [15:37:43]RAPDU: 90 00 [15:37:43]wFMCommunicate OK [15:37:43]SAM_PROTO_ClearQueue done [15:37:43]KKMCreateOFDPacket [15:37:43]OFDProtocolAddRootSTLVToBuf [15:37:43]FM_MakeSignedData [15:37:43]FM_MakeSignedData [15:37:43]SAM_PROTO_SignData [15:37:43]wFMCommunicate request_size=4 [15:37:43]MH_SAM_APDU [15:37:43]CAPDU: 80 0D 01 02 [15:37:43]Write to MH i2c: E2 08 00 D0 06 80 0D 01 02 00 00 00 00 4F [15:37:43]Write i2c OK [15:37:43]MH_I2C_Read... [15:37:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:43]Read from MH i2c: E2 [15:37:43]MH_I2C_Read... [15:37:43]Read from MH i2c: E2 03 00 [15:37:43]MH_I2C_Read... [15:37:43]Read from MH i2c: E2 03 00 D0 06 00 90 00 4A [15:37:43]RAPDU: 90 00 [15:37:43]wFMCommunicate OK [15:37:43]wFMCommunicate request_size=255 [15:37:43]MH_SAM_APDU [15:37: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 C8 4C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5F B4 01 00 35 04 06 00 BA [15:37:43]Write to MH i2c: E2 02 01 D1 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 C8 4C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5F B4 01 00 35 04 06 00 BA 00 00 36 [15:37:43]Write i2c OK [15:37:43]MH_I2C_Read... [15:37:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:43]Read from MH i2c: E2 [15:37:43]MH_I2C_Read... [15:37:43]Read from MH i2c: E2 03 00 [15:37:43]MH_I2C_Read... [15:37:43]Read from MH i2c: E2 03 00 D1 06 00 90 00 4B [15:37:43]RAPDU: 90 00 [15:37:43]wFMCommunicate OK [15:37:43]wFMCommunicate request_size=10 [15:37:43]MH_SAM_APDU [15:37:43]CAPDU: 80 0D 02 02 05 B7 8D D3 EA 1A [15:37:43]Write to MH i2c: E2 0D 00 D2 06 80 0D 02 02 05 00 B7 8D D3 EA 1A 00 00 77 [15:37:43]Write i2c OK [15:37:43]MH_I2C_Read... [15:37:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:43]Read from MH i2c: E2 [15:37:43]MH_I2C_Read... [15:37:43]Read from MH i2c: E2 03 00 [15:37:43]MH_I2C_Read... [15:37:43]Read from MH i2c: E2 03 00 D2 06 00 90 00 4C [15:37:43]RAPDU: 90 00 [15:37:43]wFMCommunicate OK [15:37:43]wFMCommunicate request_size=4 [15:37:43]MH_SAM_APDU [15:37:43]CAPDU: 80 0D 03 02 [15:37:43]Write to MH i2c: E2 08 00 D3 06 80 0D 03 02 00 00 00 00 54 [15:37:43]Write i2c OK [15:37:43]MH_I2C_Read... [15:37:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:43]Read from MH i2c: E2 [15:37:43]MH_I2C_Read... [15:37:43]Read from MH i2c: E2 0B 00 [15:37:43]MH_I2C_Read... [15:37:43]Read from MH i2c: E2 0B 00 D3 06 00 59 CD 54 77 33 7D 5A BB 90 00 0B [15:37:43]RAPDU: 59 CD 54 77 33 7D 5A BB 90 00 [15:37:43]wFMCommunicate OK [15:37:43]SAM_PROTO_SignData done [15:37:43]FM_MakeSignedData done [15:37:43]CreateOFDProtocolMessage [15:37:43]wFMCommunicate request_size=4 [15:37:43]MH_SAM_APDU [15:37:43]CAPDU: 80 11 00 00 [15:37:43]Write to MH i2c: E2 08 00 D4 06 80 11 00 00 00 00 00 00 54 [15:37:43]Write i2c OK [15:37:43]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 D4 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A6 [15:37:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:37:43]wFMCommunicate OK [15:37:43]CreateOFDProtocolMessage done [15:37:43]OFDSenderStorePacket 111711 [15:37:43]StoreOFDPacket docnum=111711 [15:37:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 99 70 07 01 42 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 C8 4C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5F B4 01 00 35 04 06 00 BA B7 8D D3 EA 1A 59 CD 54 77 33 7D 5A BB [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/00111711 [15:37:43]NVStorageSaveData ofd_packets/00111711 [15:37:43]File name is /storage/ofd_packets/00111711 [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 D5 06 DB [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 D5 06 00 00 00 00 00 FF 0F F0 [15:37:43]RasterBufferAndPrint [15:37:43]line Счет N : (1)320329 [15:37:43]line ИНН: 02508201610067 [15:37:43]line Контрольно-Кассовый Чек [15:37:43]line ПРОДАЖА [15:37:43]line ТРК (МРК, ГНК) : 11 [15:37:43]line Товар: 2710124130 [15:37:43]line Аи-92-К-5 [15:37:43]line 15.070 * 66.40 [15:37:43]line = 1000.65 [15:37:43]line НДС 12% НСП 1% [15:37:43]line > о реализуемом товаре [15:37:43]line ОКРУГЛЕНИЕ: -0.65 [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.26 [15:37:43]line Наличными: 1000.00 [15:37:43]line Безнал.: 0.00 [15:37:43]line Место: АЗС № 65 "Партнер Нефть" [15:37:43]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:37:43]line СНО: Общий режим [15:37:43]line Чек 161 20.06.2024 15:37 [15:37:43]line Смена: 389 ФФД: 1.0 [15:37:43]line ЗНМ: 0300000198 [15:37:43]line РНМ: 0000000000092771 [15:37:43]line Версия ККМ: 001 [15:37:43]line ФМ: 0000000000875083 [15:37:43]line ФД: 111711 [15:37:43]line ФПД: 205297521256986 [15:37:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T153744&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111711&fm=205297521256986&tin=02508201610067®Number=0000000000092771&sum=100000 [15:37:44]OFD Sender: Processing packet 111711 [packets to send 38, broken 37] [15:37:44]ProducePacketName [15:37:44]name=ofd_packets/00111711 [15:37:44]OFD Sender: To server: pG, [15:37:44]CommunicateWithHost lk.salyk.kg:30040 [15:37:44]ConnectInit lk.salyk.kg [15:37:44]written 0, free lines is 4095 [15:37:44]Connected sock=10 [15:37:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 99 70 07 01 42 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 C8 4C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5F B4 01 00 35 04 06 00 BA B7 8D D3 EA 1A 59 CD 54 77 33 7D 5A BB [15:37:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 9B 8B 47 00 45 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 35 30 38 33 10 04 04 00 5F B4 01 00 F4 03 04 00 0F E4 73 66 B6 04 01 00 00 18 BE 50 DE 83 44 C7 71 [15:37:44]CommunicateWithHost err = 0 [15:37:44]CheckOFDResponse [15:37:44]1017 (14) - 77093643461234 [15:37:44]1041 (16) - 0000000000875083 [15:37:44]1040 (4) - 111711 [15:37:44]1012 (4) - 20.06.2024 08:10 [15:37:44]1206 (1) - 0 [15:37:44]OFD Sender: Remove packet 111711 [15:37:44]ProducePacketName [15:37:44]name=ofd_packets/00111711 [15:37:44]NVStorageDeleteData [15:37:44]Write to MH i2c: 01 00 00 00 07 07 [15:37:44]Write i2c OK [15:37:44]MH_I2C_Read... [15:37:44]Read from MH i2c: 01 [15:37:44]MH_I2C_Read... [15:37:44]Read from MH i2c: 01 07 00 [15:37:44]MH_I2C_Read... [15:37:44]Read from MH i2c: 01 07 00 00 07 00 00 00 00 00 DE 0C F8 [15:37:44]RasterBufferAndPrint [15:37:44]line [15:37:44]line [15:37:44]line [15:37:44]line [15:37:44]line [15:37:44]written 0, free lines is 3302 [15:37:44]MH_Cut [15:37:44]Write to MH i2c: D1 01 00 07 07 01 E0 [15:37:44]Write i2c OK [15:37:44]MH_I2C_Read... [15:37:44]Read from MH i2c: D1 [15:37:44]MH_I2C_Read... [15:37:44]Read from MH i2c: D1 01 00 [15:37:44]MH_I2C_Read... [15:37:44]Read from MH i2c: D1 01 00 07 07 00 DF [15:37:44]Write to MH i2c: 01 00 00 08 07 0F [15:37:44]Write i2c OK [15:37:44]MH_I2C_Read... [15:37:44]OFD Sender: No OFD packet to send [15:37:45]*** Cut start [15:37:45]*** Partial cut [15:37:45]*** CUTSNS_PIN = 1 [15:37:45]*** CUTSNS_PIN = 0 [15:37:45]*** 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 08 07 00 00 00 00 00 FF 0F 24 [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 09 07 80 11 00 00 00 00 00 00 8A [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 09 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DC [15:37:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 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 0A 07 80 13 00 00 00 00 00 00 8D [15:37:45]Write i2c OK [15:37:45]MH_I2C_Read... [15:37:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:46]Read from MH i2c: E2 [15:37:46]MH_I2C_Read... [15:37:46]Read from MH i2c: E2 62 00 [15:37:46]MH_I2C_Read... [15:37:46]Read from MH i2c: E2 62 00 0A 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5F B4 01 00 0E 04 04 00 85 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 2B [15:37:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5F B4 01 00 0E 04 04 00 85 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 [15:37:46]wFMCommunicate OK [15:37:46]SAM_PROTO_GetFieldsCounters done [15:37:46]requested_item shift.num is exist - process it [15:37:46]requested_item shift.opened is exist - process it [15:37:46]req_shift_opened [15:37:46]FM_GetShiftState [15:37:46]SAM_PROTO_GetShiftState [15:37:46]wFMCommunicate request_size=4 [15:37:46]MH_SAM_APDU [15:37:46]CAPDU: 80 13 01 00 [15:37:46]Write to MH i2c: E2 08 00 0B 07 80 13 01 00 00 00 00 00 8F [15:37:46]Write i2c OK [15:37:46]MH_I2C_Read... [15:37:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:46]Read from MH i2c: E2 [15:37:46]MH_I2C_Read... [15:37:46]Read from MH i2c: E2 0E 00 [15:37:46]MH_I2C_Read... [15:37:46]Read from MH i2c: E2 0E 00 0B 07 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 0A [15:37:46]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:37:46]wFMCommunicate OK [15:37:46]SAM_PROTO_GetShiftState done [15:37:46]FM_GetShiftState done [15:37:46]req_shift_opened done [15:37:46]requested_item shift.open_date is exist - process it [15:37:46]req_shift_open_date [15:37:46]req_shift_open_date done [15:37:46]produce_requested_data done [15:37:46]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111711,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [15:37:46]process_action_free close_receipt [15:37:46]json_value_free [15:37:46]json_value_free done [15:37:46]process_json_proto returns [15:37:46]Send response to host [15:37:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111711,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [15:37:46]free response buf [15:37:46]execute_script done [15:37:46]execute_script returns [15:37:46]free content buf [15:37:46]Sock 9.Close socket [15:37:46]Sock 9.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:20]OFD Sender: No OFD packet to send [15:38:25]OFD Sender: No OFD packet to send [15:38:30]OFD Sender: No OFD packet to send [15:38:35]OFD Sender: No OFD packet to send [15:38:40]OFD Sender: No OFD packet to send [15:38:45]OFD Sender: No OFD packet to send [15:38:50]OFD Sender: No OFD packet to send [15:38:55]OFD Sender: No OFD packet to send [15:39:00]OFD Sender: No OFD packet to send [15:39:05]OFD Sender: No OFD packet to send [15:39:10]OFD Sender: No OFD packet to send [15:39:15]OFD Sender: No OFD packet to send [15:39:20]OFD Sender: No OFD packet to send [15:39:25]OFD Sender: No OFD packet to send [15:39:30]OFD Sender: No OFD packet to send [15:39:35]OFD Sender: No OFD packet to send [15:39:40]OFD Sender: No OFD packet to send [15:39:45]OFD Sender: No OFD packet to send [15:39:50]OFD Sender: No OFD packet to send [15:39:55]OFD Sender: No OFD packet to send [15:40:00]OFD Sender: No OFD packet to send [15:40:05]OFD Sender: No OFD packet to send [15:40:10]OFD Sender: No OFD packet to send [15:40:15]OFD Sender: No OFD packet to send [15:40:20]OFD Sender: No OFD packet to send [15:40:25]OFD Sender: No OFD packet to send [15:40:30]OFD Sender: No OFD packet to send [15:40:35]OFD Sender: No OFD packet to send [15:40:40]OFD Sender: No OFD packet to send [15:40:45]OFD Sender: No OFD packet to send [15:40:50]OFD Sender: No OFD packet to send [15:40:55]OFD Sender: No OFD packet to send [15:41:00]OFD Sender: No OFD packet to send [15:41:05]OFD Sender: No OFD packet to send [15:41:10]OFD Sender: No OFD packet to send [15:41:15]OFD Sender: No OFD packet to send [15:41:20]OFD Sender: No OFD packet to send [15:41:25]OFD Sender: No OFD packet to send [15:41:30]OFD Sender: No OFD packet to send [15:41:35]OFD Sender: No OFD packet to send [15:41:40]OFD Sender: No OFD packet to send [15:41:45]OFD Sender: No OFD packet to send [15:41:50]OFD Sender: No OFD packet to send [15:41:55]OFD Sender: No OFD packet to send [15:41:58]accept exits with 7 [15:41:58]New connection [15:41:58]New thread 3067321700 created [15:41:58]Thread 3067178340 joined [15:41:58]Waiting for new connection... [15:41:58] Sock 7.Parse request [15:41:58]Sock 7.Check first char [15:41:58]Sock 7.First char is OK [15:41:58]request: POST /json_proto HTTP/1.0 [15:41:58]Method: POST [15:41:58]URL: /json_proto [15:41:58]Method is POST - this is cgi request [15:41:58]url: /json_proto [15:41:58]query_string will be loaded in cgi processing [15:41:58]execute_cgi json_proto POST (null) [15:41:58]execute_cgi path=json_proto method=POST [15:41:58]POST find Content-Length [15:41:58]Host: 172.17.59.68:8080 [15:41:58]Content-Length: 682 [15:41:58]Content-Type: application/json [15:41:58] [15:41:58]POST finish read [15:41:58]Found Content-Length = 682 [15:41:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:58]execute_script... [15:41:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:58]POST & json_proto [15:41:58]process_json_proto [15:41:58]json parsed OK: [15:41:58]protocol is kg_v1.0 [15:41:58]action value=close_receipt [15:41:58]process_action close_receipt [15:41:58]cmd_close_receipt [15:41:58]MH_GetDate [15:41:58]Write to MH i2c: F0 00 00 0C 07 02 [15:41:58]Write i2c OK [15:41:58]MH_I2C_Read... [15:41:58]Read from MH i2c: F0 [15:41:58]MH_I2C_Read... [15:41:58]Read from MH i2c: F0 09 00 [15:41:58]MH_I2C_Read... [15:41:58]Read from MH i2c: F0 09 00 0C 07 00 C9 4D 74 66 BC EC 60 65 68 [15:41:58]GetLastDocTimeStamp 1718897864 [15:41:58]current date 1718898121 [15:41:58]FM_GetShiftState [15:41:58]SAM_PROTO_GetShiftState [15:41:58]wFMCommunicate request_size=4 [15:41:58]MH_SAM_APDU [15:41:58]CAPDU: 80 13 01 00 [15:41:58]Write to MH i2c: E2 08 00 0D 07 80 13 01 00 00 00 00 00 91 [15:41:58]Write i2c OK [15:41:58]MH_I2C_Read... [15:41:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:58]Read from MH i2c: E2 [15:41:58]MH_I2C_Read... [15:41:58]Read from MH i2c: E2 0E 00 [15:41:58]MH_I2C_Read... [15:41:58]Read from MH i2c: E2 0E 00 0D 07 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 0C [15:41:58]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:41:58]wFMCommunicate OK [15:41:58]SAM_PROTO_GetShiftState done [15:41:58]FM_GetShiftState done [15:41:58]opened in 1718847247 [15:41:58]opened+sec_in_day 1718933647 [15:41:58]quantity*price = 100060 [15:41:58]sum+1 = 100062 [15:41:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 162 20.06.2024 15:42 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111712 ФПД: 259339564788712 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T154201&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111712&fm=259339564788712&tin=02508201610067®Number=0000000000092771&sum=100000 [15:41:59]StoreToDocumentArchive [15:41:59]shift 389 fd 111712 [15:41:59]save to /storage/0389/doc_00111712 [15:41:59]save last doc name /storage/0389/doc_00111712 to /storage/kkm_last_doc_name [15:41:59]save OK [15:41:59]Clear old archive folders... [15:41:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:41:59]tlvbuf is 01765410 [15:41:59]SAM_PROTO_ClearQueue [15:41:59]wFMCommunicate request_size=4 [15:41:59]MH_SAM_APDU [15:41:59]CAPDU: 80 09 00 00 [15:41:59]Write to MH i2c: E2 08 00 1A 07 80 09 00 00 00 00 00 00 93 [15:41:59]Write i2c OK [15:41:59]MH_I2C_Read... [15:41:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:59]Read from MH i2c: E2 [15:41:59]MH_I2C_Read... [15:41:59]Read from MH i2c: E2 03 00 [15:41:59]MH_I2C_Read... [15:41:59]Read from MH i2c: E2 03 00 1A 07 00 90 00 95 [15:41:59]RAPDU: 90 00 [15:41:59]wFMCommunicate OK [15:41:59]SAM_PROTO_ClearQueue done [15:41:59]KKMCreateOFDPacket [15:41:59]OFDProtocolAddRootSTLVToBuf [15:41:59]FM_MakeSignedData [15:41:59]FM_MakeSignedData [15:41:59]SAM_PROTO_SignData [15:41:59]wFMCommunicate request_size=4 [15:41:59]MH_SAM_APDU [15:41:59]CAPDU: 80 0D 01 02 [15:41:59]Write to MH i2c: E2 08 00 1B 07 80 0D 01 02 00 00 00 00 9B [15:41:59]Write i2c OK [15:41:59]MH_I2C_Read... [15:41:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:59]Read from MH i2c: E2 [15:41:59]MH_I2C_Read... [15:41:59]Read from MH i2c: E2 03 00 [15:41:59]MH_I2C_Read... [15:41:59]Read from MH i2c: E2 03 00 1B 07 00 90 00 96 [15:41:59]RAPDU: 90 00 [15:41:59]wFMCommunicate OK [15:41:59]wFMCommunicate request_size=255 [15:41:59]MH_SAM_APDU [15:41:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 C9 4D 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 60 B4 01 00 35 04 06 00 EB [15:41:59]Write to MH i2c: E2 02 01 1C 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 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 C9 4D 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 60 B4 01 00 35 04 06 00 EB 00 00 A8 [15:41:59]Write i2c OK [15:41:59]MH_I2C_Read... [15:42:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:00]OFD Sender: No OFD packet to send [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 1C 07 00 90 00 97 [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 DE 32 A2 AB E8 [15:42:00]Write to MH i2c: E2 0D 00 1D 07 80 0D 02 02 05 00 DE 32 A2 AB E8 00 00 ED [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 1D 07 00 90 00 98 [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 1E 07 80 0D 03 02 00 00 00 00 A0 [15:42:00]Write i2c OK [15:42:00]MH_I2C_Read... [15:42:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:00]Read from MH i2c: E2 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: E2 0B 00 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: E2 0B 00 1E 07 00 81 92 17 5F 64 50 A5 D9 90 00 5C [15:42:00]RAPDU: 81 92 17 5F 64 50 A5 D9 90 00 [15:42:00]wFMCommunicate OK [15:42:00]SAM_PROTO_SignData done [15:42:00]FM_MakeSignedData done [15:42:00]CreateOFDProtocolMessage [15:42:00]wFMCommunicate request_size=4 [15:42:00]MH_SAM_APDU [15:42:00]CAPDU: 80 11 00 00 [15:42:00]Write to MH i2c: E2 08 00 1F 07 80 11 00 00 00 00 00 00 A0 [15:42:00]Write i2c OK [15:42:00]MH_I2C_Read... [15:42:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:00]Read from MH i2c: E2 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: E2 17 00 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: E2 17 00 1F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F2 [15:42:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:42:00]wFMCommunicate OK [15:42:00]CreateOFDProtocolMessage done [15:42:00]OFDSenderStorePacket 111712 [15:42:00]StoreOFDPacket docnum=111712 [15:42:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CF 80 07 01 12 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 C9 4D 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 60 B4 01 00 35 04 06 00 EB DE 32 A2 AB E8 81 92 17 5F 64 50 A5 D9 [15:42:00]CheckFolder [15:42:00]dirname=/storage/ofd_packets [15:42:00]CheckFolder done [15:42:00]ProducePacketName [15:42:00]name=ofd_packets/00111712 [15:42:00]NVStorageSaveData ofd_packets/00111712 [15:42:00]File name is /storage/ofd_packets/00111712 [15:42:00]Write 301 bytes [15:42:00]NVStorageSaveData done [15:42:00]OFDSenderStorePacket done [15:42:00]KKMCreateOFDPacket done [15:42:00]NVStorageSaveData kkm_last_timestamp [15:42:00]File name is /storage/kkm_last_timestamp [15:42:00]Write 4 bytes [15:42:00]NVStorageSaveData done [15:42:00]ExternCall_PrintAddStr [15:42:00]wPrintStart [15:42:00]Write to MH i2c: 01 00 00 20 07 27 [15:42:00]Write i2c OK [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: 01 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: 01 07 00 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: 01 07 00 20 07 00 00 00 00 00 FF 0F 3C [15:42:00]RasterBufferAndPrint [15:42:00]line Счет N : (1)320330 [15:42:00]line ИНН: 02508201610067 [15:42:00]line Контрольно-Кассовый Чек [15:42:00]line ПРОДАЖА [15:42:00]line ТРК (МРК, ГНК) : 12 [15:42:00]line Товар: 2710124500 [15:42:00]line Аи-95-К-5 [15:42:00]line 13.540 * 73.90 [15:42:00]line = 1000.61 [15:42:00]line НДС 12% НСП 1% [15:42:00]line > о реализуемом товаре [15:42:00]line ОКРУГЛЕНИЕ: -0.61 [15:42:00]line ИТОГО: 1000.00 [15:42:00]line Внесено: 1000.00 [15:42:00]line СДАЧА: 0.00 [15:42:00]line НСП 1% : 8.85 [15:42:00]line НДС 12% : 106.26 [15:42:00]line Наличными: 1000.00 [15:42:00]line Безнал.: 0.00 [15:42:00]line Место: АЗС № 65 "Партнер Нефть" [15:42:00]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:42:00]line СНО: Общий режим [15:42:00]line Чек 162 20.06.2024 15:42 [15:42:00]line Смена: 389 ФФД: 1.0 [15:42:00]line ЗНМ: 0300000198 [15:42:00]line РНМ: 0000000000092771 [15:42:00]line Версия ККМ: 001 [15:42:00]line ФМ: 0000000000875083 [15:42:00]line ФД: 111712 [15:42:00]line ФПД: 259339564788712 [15:42:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T154201&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111712&fm=259339564788712&tin=02508201610067®Number=0000000000092771&sum=100000 [15:42:00]OFD Sender: Processing packet 111712 [packets to send 38, broken 37] [15:42:00]ProducePacketName [15:42:00]name=ofd_packets/00111712 [15:42:00]OFD Sender: To server: pG, [15:42:00]CommunicateWithHost lk.salyk.kg:30040 [15:42:00]ConnectInit lk.salyk.kg [15:42:00]written 0, free lines is 4095 [15:42:00]Connected sock=10 [15:42:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CF 80 07 01 12 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 C9 4D 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 60 B4 01 00 35 04 06 00 EB DE 32 A2 AB E8 81 92 17 5F 64 50 A5 D9 [15:42:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 04 E2 47 00 14 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 60 B4 01 00 F4 03 04 00 0F E5 73 66 B6 04 01 00 00 51 8F 2E E9 75 84 66 95 [15:42:00]CommunicateWithHost err = 0 [15:42:00]CheckOFDResponse [15:42:00]1017 (14) - 77093643461234 [15:42:00]1041 (16) - 0000000000875083 [15:42:00]1040 (4) - 111712 [15:42:00]1012 (4) - 20.06.2024 08:15 [15:42:00]1206 (1) - 0 [15:42:00]OFD Sender: Remove packet 111712 [15:42:00]ProducePacketName [15:42:00]name=ofd_packets/00111712 [15:42:00]NVStorageDeleteData [15:42:01]Write to MH i2c: 01 00 00 4B 07 52 [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 4B 07 00 00 00 00 00 D4 0C 39 [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 3290 [15:42:01]MH_Cut [15:42:01]Write to MH i2c: D1 01 00 52 07 01 2B [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 52 07 00 2A [15:42:01]Write to MH i2c: 01 00 00 53 07 5A [15:42:01]Write i2c OK [15:42:01]MH_I2C_Read... [15:42:01]OFD Sender: No OFD packet to send [15:42:01]*** Cut start [15:42:01]*** Partial cut [15:42:01]*** CUTSNS_PIN = 1 [15:42:01]*** CUTSNS_PIN = 0 [15:42:02]*** Brake cut motor [15:42:02]Read from MH i2c: 01 [15:42:02]*** Stop cut motor [15:42:02]*** Cut end [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: 01 07 00 [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: 01 07 00 53 07 00 00 00 00 00 FF 0F 6F [15:42:02]process_action close_receipt done [15:42:02]requested_data is exist [15:42:02]produce_requested_data [15:42:02]requested_item fm.sn is exist - process it [15:42:02]wFMCommunicate request_size=4 [15:42:02]MH_SAM_APDU [15:42:02]CAPDU: 80 11 00 00 [15:42:02]Write to MH i2c: E2 08 00 54 07 80 11 00 00 00 00 00 00 D5 [15:42:02]Write i2c OK [15:42:02]MH_I2C_Read... [15:42:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:02]Read from MH i2c: E2 [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: E2 17 00 [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: E2 17 00 54 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 27 [15:42:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:42:02]wFMCommunicate OK [15:42:02]requested_item fd.num is exist - process it [15:42:02]SAM_PROTO_GetFieldsCounters [15:42:02]wFMCommunicate request_size=4 [15:42:02]MH_SAM_APDU [15:42:02]CAPDU: 80 13 00 00 [15:42:02]Write to MH i2c: E2 08 00 55 07 80 13 00 00 00 00 00 00 D8 [15:42:02]Write i2c OK [15:42:02]MH_I2C_Read... [15:42:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:02]Read from MH i2c: E2 [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: E2 62 00 [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: E2 62 00 55 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 60 B4 01 00 0E 04 04 00 85 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 7A [15:42:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 60 B4 01 00 0E 04 04 00 85 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 [15:42:02]wFMCommunicate OK [15:42:02]SAM_PROTO_GetFieldsCounters done [15:42:02]requested_item shift.num is exist - process it [15:42:02]requested_item shift.opened is exist - process it [15:42:02]req_shift_opened [15:42:02]FM_GetShiftState [15:42:02]SAM_PROTO_GetShiftState [15:42:02]wFMCommunicate request_size=4 [15:42:02]MH_SAM_APDU [15:42:02]CAPDU: 80 13 01 00 [15:42:02]Write to MH i2c: E2 08 00 56 07 80 13 01 00 00 00 00 00 DA [15:42:02]Write i2c OK [15:42:02]MH_I2C_Read... [15:42:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:02]Read from MH i2c: E2 [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: E2 0E 00 [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: E2 0E 00 56 07 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 55 [15:42:02]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:42:02]wFMCommunicate OK [15:42:02]SAM_PROTO_GetShiftState done [15:42:02]FM_GetShiftState done [15:42:02]req_shift_opened done [15:42:02]requested_item shift.open_date is exist - process it [15:42:02]req_shift_open_date [15:42:02]req_shift_open_date done [15:42:02]produce_requested_data done [15:42:02]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111712,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [15:42:02]process_action_free close_receipt [15:42:02]json_value_free [15:42:02]json_value_free done [15:42:02]process_json_proto returns [15:42:02]Send response to host [15:42:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111712,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [15:42:02]free response buf [15:42:02]execute_script done [15:42:02]execute_script returns [15:42:02]free content buf [15:42:02]Sock 7.Close socket [15:42:02]Sock 7.Thread stoped [15:42:06]OFD Sender: No OFD packet to send [15:42:11]OFD Sender: No OFD packet to send [15:42:13]accept exits with 9 [15:42:13]New connection [15:42:13]New thread 3067178340 created [15:42:13]Thread 3067321700 joined [15:42:13]Waiting for new connection... [15:42:13] Sock 9.Parse request [15:42:13]Sock 9.Check first char [15:42:13]Sock 9.First char is OK [15:42:13]request: POST /json_proto HTTP/1.0 [15:42:13]Method: POST [15:42:13]URL: /json_proto [15:42:13]Method is POST - this is cgi request [15:42:13]url: /json_proto [15:42:13]query_string will be loaded in cgi processing [15:42:13]execute_cgi json_proto POST (null) [15:42:13]execute_cgi path=json_proto method=POST [15:42:13]POST find Content-Length [15:42:13]Host: 172.17.59.68:8080 [15:42:13]Content-Length: 805 [15:42:13]Content-Type: application/json [15:42:13] [15:42:13]POST finish read [15:42:13]Found Content-Length = 805 [15:42:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:13]execute_script... [15:42:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:13]POST & json_proto [15:42:13]process_json_proto [15:42:13]json parsed OK: [15:42:13]protocol is kg_v1.0 [15:42:13]action value=close_receipt [15:42:13]process_action close_receipt [15:42:13]cmd_close_receipt [15:42:13]MH_GetDate [15:42:13]Write to MH i2c: F0 00 00 57 07 4D [15:42:13]Write i2c OK [15:42:13]MH_I2C_Read... [15:42:13]Read from MH i2c: F0 [15:42:13]MH_I2C_Read... [15:42:13]Read from MH i2c: F0 09 00 [15:42:13]MH_I2C_Read... [15:42:13]Read from MH i2c: F0 09 00 57 07 00 D8 4D 74 66 BC EC 60 65 C2 [15:42:13]GetLastDocTimeStamp 1718898121 [15:42:13]current date 1718898136 [15:42:13]FM_GetShiftState [15:42:13]SAM_PROTO_GetShiftState [15:42:13]wFMCommunicate request_size=4 [15:42:13]MH_SAM_APDU [15:42:13]CAPDU: 80 13 01 00 [15:42:13]Write to MH i2c: E2 08 00 58 07 80 13 01 00 00 00 00 00 DC [15:42:13]Write i2c OK [15:42:13]MH_I2C_Read... [15:42:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:13]Read from MH i2c: E2 [15:42:13]MH_I2C_Read... [15:42:13]Read from MH i2c: E2 0E 00 [15:42:13]MH_I2C_Read... [15:42:13]Read from MH i2c: E2 0E 00 58 07 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 57 [15:42:13]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:42:13]wFMCommunicate OK [15:42:13]SAM_PROTO_GetShiftState done [15:42:13]FM_GetShiftState done [15:42:13]opened in 1718847247 [15:42:13]opened+sec_in_day 1718933647 [15:42:13]quantity*price = 40039 [15:42:13]sum+1 = 40040 [15:42:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.39 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 0.00 Безнал.: 400.39 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 163 20.06.2024 15:42 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111713 ФПД: 146407924926941 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T154216&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111713&fm=146407924926941&tin=02508201610067®Number=0000000000092771&sum=40039 [15:42:14]StoreToDocumentArchive [15:42:14]shift 389 fd 111713 [15:42:14]save to /storage/0389/doc_00111713 [15:42:14]save last doc name /storage/0389/doc_00111713 to /storage/kkm_last_doc_name [15:42:14]save OK [15:42:14]Clear old archive folders... [15:42:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:42:14]tlvbuf is B6F345F0 [15:42:14]SAM_PROTO_ClearQueue [15:42:14]wFMCommunicate request_size=4 [15:42:14]MH_SAM_APDU [15:42:14]CAPDU: 80 09 00 00 [15:42:14]Write to MH i2c: E2 08 00 65 07 80 09 00 00 00 00 00 00 DE [15:42:14]Write i2c OK [15:42:14]MH_I2C_Read... [15:42:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:15]Read from MH i2c: E2 [15:42:15]MH_I2C_Read... [15:42:15]Read from MH i2c: E2 03 00 [15:42:15]MH_I2C_Read... [15:42:15]Read from MH i2c: E2 03 00 65 07 00 90 00 E0 [15:42:15]RAPDU: 90 00 [15:42:15]wFMCommunicate OK [15:42:15]SAM_PROTO_ClearQueue done [15:42:15]KKMCreateOFDPacket [15:42:15]OFDProtocolAddRootSTLVToBuf [15:42:15]FM_MakeSignedData [15:42:15]FM_MakeSignedData [15:42:15]SAM_PROTO_SignData [15:42:15]wFMCommunicate request_size=4 [15:42:15]MH_SAM_APDU [15:42:15]CAPDU: 80 0D 01 02 [15:42:15]Write to MH i2c: E2 08 00 66 07 80 0D 01 02 00 00 00 00 E6 [15:42:15]Write i2c OK [15:42:15]MH_I2C_Read... [15:42:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:15]Read from MH i2c: E2 [15:42:15]MH_I2C_Read... [15:42:15]Read from MH i2c: E2 03 00 [15:42:15]MH_I2C_Read... [15:42:15]Read from MH i2c: E2 03 00 66 07 00 90 00 E1 [15:42:15]RAPDU: 90 00 [15:42:15]wFMCommunicate OK [15:42:15]wFMCommunicate request_size=255 [15:42:15]MH_SAM_APDU [15:42:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 D8 4D 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 61 B4 01 00 35 04 06 00 85 [15:42:15]Write to MH i2c: E2 02 01 67 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 D8 4D 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 61 B4 01 00 35 04 06 00 85 00 00 79 [15:42:15]Write i2c OK [15:42:15]MH_I2C_Read... [15:42:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:15]Read from MH i2c: E2 [15:42:15]MH_I2C_Read... [15:42:15]Read from MH i2c: E2 03 00 [15:42:15]MH_I2C_Read... [15:42:15]Read from MH i2c: E2 03 00 67 07 00 90 00 E2 [15:42:15]RAPDU: 90 00 [15:42:15]wFMCommunicate OK [15:42:15]wFMCommunicate request_size=10 [15:42:15]MH_SAM_APDU [15:42:15]CAPDU: 80 0D 02 02 05 28 40 5B 89 DD [15:42:15]Write to MH i2c: E2 0D 00 68 07 80 0D 02 02 05 00 28 40 5B 89 DD 00 00 1C [15:42:15]Write i2c OK [15:42:15]MH_I2C_Read... [15:42:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:15]Read from MH i2c: E2 [15:42:15]MH_I2C_Read... [15:42:15]Read from MH i2c: E2 03 00 [15:42:15]MH_I2C_Read... [15:42:15]Read from MH i2c: E2 03 00 68 07 00 90 00 E3 [15:42:15]RAPDU: 90 00 [15:42:15]wFMCommunicate OK [15:42:15]wFMCommunicate request_size=4 [15:42:15]MH_SAM_APDU [15:42:15]CAPDU: 80 0D 03 02 [15:42:15]Write to MH i2c: E2 08 00 69 07 80 0D 03 02 00 00 00 00 EB [15:42:15]Write i2c OK [15:42:15]MH_I2C_Read... [15:42:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:15]Read from MH i2c: E2 [15:42:15]MH_I2C_Read... [15:42:15]Read from MH i2c: E2 0B 00 [15:42:15]MH_I2C_Read... [15:42:15]Read from MH i2c: E2 0B 00 69 07 00 04 EF 02 05 9E ED AD 0A 90 00 28 [15:42:15]RAPDU: 04 EF 02 05 9E ED AD 0A 90 00 [15:42:15]wFMCommunicate OK [15:42:15]SAM_PROTO_SignData done [15:42:15]FM_MakeSignedData done [15:42:15]CreateOFDProtocolMessage [15:42:15]wFMCommunicate request_size=4 [15:42:15]MH_SAM_APDU [15:42:15]CAPDU: 80 11 00 00 [15:42:15]Write to MH i2c: E2 08 00 6A 07 80 11 00 00 00 00 00 00 EB [15:42:15]Write i2c OK [15:42:15]MH_I2C_Read... [15:42:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:15]Read from MH i2c: E2 [15:42:15]MH_I2C_Read... [15:42:15]Read from MH i2c: E2 17 00 [15:42:15]MH_I2C_Read... [15:42:15]Read from MH i2c: E2 17 00 6A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3D [15:42:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:42:15]wFMCommunicate OK [15:42:15]CreateOFDProtocolMessage done [15:42:15]OFDSenderStorePacket 111713 [15:42:15]StoreOFDPacket docnum=111713 [15:42:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7F B7 07 01 95 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 D8 4D 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 61 B4 01 00 35 04 06 00 85 28 40 5B 89 DD 04 EF 02 05 9E ED AD 0A [15:42:15]CheckFolder [15:42:15]dirname=/storage/ofd_packets [15:42:15]CheckFolder done [15:42:15]ProducePacketName [15:42:15]name=ofd_packets/00111713 [15:42:15]NVStorageSaveData ofd_packets/00111713 [15:42:15]File name is /storage/ofd_packets/00111713 [15:42:15]Write 301 bytes [15:42:15]NVStorageSaveData done [15:42:15]OFDSenderStorePacket done [15:42:15]KKMCreateOFDPacket done [15:42:15]NVStorageSaveData kkm_last_timestamp [15:42:15]File name is /storage/kkm_last_timestamp [15:42:15]Write 4 bytes [15:42:15]NVStorageSaveData done [15:42:15]ExternCall_PrintAddStr [15:42:15]wPrintStart [15:42:15]Write to MH i2c: 01 00 00 6B 07 72 [15:42:15]Write i2c OK [15:42:15]MH_I2C_Read... [15:42:15]Read from MH i2c: 01 [15:42:15]MH_I2C_Read... [15:42:15]Read from MH i2c: 01 07 00 [15:42:15]MH_I2C_Read... [15:42:15]Read from MH i2c: 01 07 00 6B 07 00 00 00 00 00 FF 0F 87 [15:42:15]RasterBufferAndPrint [15:42:15]line Счет N : (1)320331 [15:42:15]line ИНН: 02508201610067 [15:42:15]line Контрольно-Кассовый Чек [15:42:15]line ПРОДАЖА [15:42:15]line ТРК (МРК, ГНК) : 11 [15:42:15]line Товар: 2710124130 [15:42:15]line Аи-92-К-5 [15:42:15]line 6.030 * 66.40 [15:42:15]line = 400.39 [15:42:15]line НДС 12% НСП 1% [15:42:15]line > о реализуемом товаре [15:42:15]line ИТОГО: 400.39 [15:42:15]line НСП 1% : 3.54 [15:42:15]line НДС 12% : 42.52 [15:42:15]line Наличными: 0.00 [15:42:15]line Безнал.: 400.39 [15:42:15]line Место: АЗС № 65 "Партнер Нефть" [15:42:15]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:42:15]line СНО: Общий режим [15:42:15]line Чек 163 20.06.2024 15:42 [15:42:15]line Смена: 389 ФФД: 1.0 [15:42:15]line ЗНМ: 0300000198 [15:42:15]line РНМ: 0000000000092771 [15:42:15]line Версия ККМ: 001 [15:42:15]line Платежная система: О! деньги [15:42:15]line ФМ: 0000000000875083 [15:42:15]line ФД: 111713 [15:42:15]line ФПД: 146407924926941 [15:42:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T154216&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111713&fm=146407924926941&tin=02508201610067®Number=0000000000092771&sum=40039 [15:42:15]OFD Sender: Processing packet 111713 [packets to send 38, broken 37] [15:42:15]ProducePacketName [15:42:15]name=ofd_packets/00111713 [15:42:15]OFD Sender: To server: pG, [15:42:15]CommunicateWithHost lk.salyk.kg:30040 [15:42:15]ConnectInit lk.salyk.kg [15:42:15]written 0, free lines is 4095 [15:42:15]Connected sock=10 [15:42:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7F B7 07 01 95 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 D8 4D 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 61 B4 01 00 35 04 06 00 85 28 40 5B 89 DD 04 EF 02 05 9E ED AD 0A [15:42:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 13 EB 47 00 CF 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 35 30 38 33 10 04 04 00 61 B4 01 00 F4 03 04 00 1E E5 73 66 B6 04 01 00 00 40 83 27 B4 CC FB 53 E7 [15:42:16]CommunicateWithHost err = 0 [15:42:16]CheckOFDResponse [15:42:16]1017 (14) - 77093643461234 [15:42:16]1041 (16) - 0000000000875083 [15:42:16]1040 (4) - 111713 [15:42:16]1012 (4) - 20.06.2024 08:15 [15:42:16]1206 (1) - 0 [15:42:16]OFD Sender: Remove packet 111713 [15:42:16]ProducePacketName [15:42:16]name=ofd_packets/00111713 [15:42:16]NVStorageDeleteData [15:42:16]Write to MH i2c: 01 00 00 95 07 9C [15:42:16]Write i2c OK [15:42:16]MH_I2C_Read... [15:42:16]Read from MH i2c: 01 [15:42:16]MH_I2C_Read... [15:42:16]Read from MH i2c: 01 07 00 [15:42:16]MH_I2C_Read... [15:42:16]Read from MH i2c: 01 07 00 95 07 00 00 00 00 00 F1 0C A0 [15:42:16]RasterBufferAndPrint [15:42:16]line [15:42:16]line [15:42:16]line [15:42:16]line [15:42:16]line [15:42:16]written 0, free lines is 3319 [15:42:16]MH_Cut [15:42:16]Write to MH i2c: D1 01 00 9C 07 01 75 [15:42:16]Write i2c OK [15:42:16]MH_I2C_Read... [15:42:16]Read from MH i2c: D1 [15:42:16]MH_I2C_Read... [15:42:16]Read from MH i2c: D1 01 00 [15:42:16]MH_I2C_Read... [15:42:16]Read from MH i2c: D1 01 00 9C 07 00 74 [15:42:16]Write to MH i2c: 01 00 00 9D 07 A4 [15:42:16]Write i2c OK [15:42:16]MH_I2C_Read... [15:42:16]OFD Sender: No OFD packet to send [15:42:17]*** Cut start [15:42:17]*** Partial cut [15:42:17]*** CUTSNS_PIN = 1 [15:42:17]*** CUTSNS_PIN = 0 [15:42:17]*** Brake cut motor [15:42:17]Read from MH i2c: 01 [15:42:17]MH_I2C_Read... [15:42:17]*** Stop cut motor [15:42:17]*** Cut end [15:42:17]Read from MH i2c: 01 07 00 [15:42:17]MH_I2C_Read... [15:42:17]Read from MH i2c: 01 07 00 9D 07 00 00 00 00 00 FF 0F B9 [15:42:17]process_action close_receipt done [15:42:17]requested_data is exist [15:42:17]produce_requested_data [15:42:17]requested_item fm.sn is exist - process it [15:42:17]wFMCommunicate request_size=4 [15:42:17]MH_SAM_APDU [15:42:17]CAPDU: 80 11 00 00 [15:42:17]Write to MH i2c: E2 08 00 9E 07 80 11 00 00 00 00 00 00 1F [15:42:17]Write i2c OK [15:42:17]MH_I2C_Read... [15:42:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:17]Read from MH i2c: E2 [15:42:17]MH_I2C_Read... [15:42:17]Read from MH i2c: E2 17 00 [15:42:17]MH_I2C_Read... [15:42:17]Read from MH i2c: E2 17 00 9E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 71 [15:42:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:42:17]wFMCommunicate OK [15:42:17]requested_item fd.num is exist - process it [15:42:17]SAM_PROTO_GetFieldsCounters [15:42:17]wFMCommunicate request_size=4 [15:42:17]MH_SAM_APDU [15:42:17]CAPDU: 80 13 00 00 [15:42:17]Write to MH i2c: E2 08 00 9F 07 80 13 00 00 00 00 00 00 22 [15:42:17]Write i2c OK [15:42:17]MH_I2C_Read... [15:42:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:17]Read from MH i2c: E2 [15:42:17]MH_I2C_Read... [15:42:17]Read from MH i2c: E2 62 00 [15:42:17]MH_I2C_Read... [15:42:17]Read from MH i2c: E2 62 00 9F 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 61 B4 01 00 0E 04 04 00 85 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 C8 [15:42:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 61 B4 01 00 0E 04 04 00 85 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 [15:42:17]wFMCommunicate OK [15:42:17]SAM_PROTO_GetFieldsCounters done [15:42:17]requested_item shift.num is exist - process it [15:42:17]requested_item shift.opened is exist - process it [15:42:17]req_shift_opened [15:42:17]FM_GetShiftState [15:42:17]SAM_PROTO_GetShiftState [15:42:17]wFMCommunicate request_size=4 [15:42:17]MH_SAM_APDU [15:42:17]CAPDU: 80 13 01 00 [15:42:17]Write to MH i2c: E2 08 00 A0 07 80 13 01 00 00 00 00 00 24 [15:42:17]Write i2c OK [15:42:17]MH_I2C_Read... [15:42:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:17]Read from MH i2c: E2 [15:42:17]MH_I2C_Read... [15:42:17]Read from MH i2c: E2 0E 00 [15:42:17]MH_I2C_Read... [15:42:17]Read from MH i2c: E2 0E 00 A0 07 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 9F [15:42:17]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:42:17]wFMCommunicate OK [15:42:17]SAM_PROTO_GetShiftState done [15:42:17]FM_GetShiftState done [15:42:17]req_shift_opened done [15:42:17]requested_item shift.open_date is exist - process it [15:42:17]req_shift_open_date [15:42:17]req_shift_open_date done [15:42:17]produce_requested_data done [15:42:17]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111713,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [15:42:17]process_action_free close_receipt [15:42:17]json_value_free [15:42:17]json_value_free done [15:42:17]process_json_proto returns [15:42:17]Send response to host [15:42:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111713,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [15:42:17]free response buf [15:42:17]execute_script done [15:42:17]execute_script returns [15:42:17]free content buf [15:42:17]Sock 9.Close socket [15:42:17]Sock 9.Thread stoped [15:42:21]OFD Sender: No OFD packet to send [15:42:26]OFD Sender: No OFD packet to send [15:42:31]OFD Sender: No OFD packet to send [15:42:36]OFD Sender: No OFD packet to send [15:42:41]OFD Sender: No OFD packet to send [15:42:46]OFD Sender: No OFD packet to send [15:42:51]OFD Sender: No OFD packet to send [15:42:54]accept exits with 7 [15:42:54]New connection [15:42:54]New thread 3067321700 created [15:42:54]Thread 3067178340 joined [15:42:54]Waiting for new connection... [15:42:54] Sock 7.Parse request [15:42:54]Sock 7.Check first char [15:42:54]Sock 7.First char is OK [15:42:54]request: POST /json_proto HTTP/1.0 [15:42:54]Method: POST [15:42:54]URL: /json_proto [15:42:54]Method is POST - this is cgi request [15:42:54]url: /json_proto [15:42:54]query_string will be loaded in cgi processing [15:42:54]execute_cgi json_proto POST (null) [15:42:54]execute_cgi path=json_proto method=POST [15:42:54]POST find Content-Length [15:42:54]Host: 172.17.59.68:8080 [15:42:54]Content-Length: 677 [15:42:54]Content-Type: application/json [15:42:54] [15:42:54]POST finish read [15:42:54]Found Content-Length = 677 [15:42:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 1.510, "sum" : 100.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:54]execute_script... [15:42: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)320332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 1.510, "sum" : 100.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:54]POST & json_proto [15:42:54]process_json_proto [15:42:54]json parsed OK: [15:42:54]protocol is kg_v1.0 [15:42:54]action value=close_receipt [15:42:54]process_action close_receipt [15:42:54]cmd_close_receipt [15:42:54]MH_GetDate [15:42:54]Write to MH i2c: F0 00 00 A1 07 97 [15:42:54]Write i2c OK [15:42:54]MH_I2C_Read... [15:42:54]Read from MH i2c: F0 [15:42:54]MH_I2C_Read... [15:42:54]Read from MH i2c: F0 09 00 [15:42:54]MH_I2C_Read... [15:42:54]Read from MH i2c: F0 09 00 A1 07 00 00 4E 74 66 BC EC 60 65 35 [15:42:54]GetLastDocTimeStamp 1718898136 [15:42:54]current date 1718898176 [15:42:54]FM_GetShiftState [15:42:54]SAM_PROTO_GetShiftState [15:42:54]wFMCommunicate request_size=4 [15:42:54]MH_SAM_APDU [15:42:54]CAPDU: 80 13 01 00 [15:42:54]Write to MH i2c: E2 08 00 A2 07 80 13 01 00 00 00 00 00 26 [15:42:54]Write i2c OK [15:42:54]MH_I2C_Read... [15:42:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:54]Read from MH i2c: E2 [15:42:54]MH_I2C_Read... [15:42:54]Read from MH i2c: E2 0E 00 [15:42:54]MH_I2C_Read... [15:42:54]Read from MH i2c: E2 0E 00 A2 07 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 A1 [15:42:54]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:42:54]wFMCommunicate OK [15:42:54]SAM_PROTO_GetShiftState done [15:42:54]FM_GetShiftState done [15:42:54]opened in 1718847247 [15:42:54]opened+sec_in_day 1718933647 [15:42:54]quantity*price = 10026 [15:42:54]sum+1 = 10027 [15:42:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.65 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 164 20.06.2024 15:42 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111714 ФПД: 9271715525156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T154256&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111714&fm=9271715525156&tin=02508201610067®Number=0000000000092771&sum=10000 [15:42:55]StoreToDocumentArchive [15:42:55]shift 389 fd 111714 [15:42:55]save to /storage/0389/doc_00111714 [15:42:55]save last doc name /storage/0389/doc_00111714 to /storage/kkm_last_doc_name [15:42:55]save OK [15:42:55]Clear old archive folders... [15:42:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:42:55]tlvbuf is 01757C50 [15:42:55]SAM_PROTO_ClearQueue [15:42:55]wFMCommunicate request_size=4 [15:42:55]MH_SAM_APDU [15:42:55]CAPDU: 80 09 00 00 [15:42:55]Write to MH i2c: E2 08 00 AF 07 80 09 00 00 00 00 00 00 28 [15:42:55]Write i2c OK [15:42:55]MH_I2C_Read... [15:42:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:55]Read from MH i2c: E2 [15:42:55]MH_I2C_Read... [15:42:55]Read from MH i2c: E2 03 00 [15:42:55]MH_I2C_Read... [15:42:55]Read from MH i2c: E2 03 00 AF 07 00 90 00 2A [15:42:55]RAPDU: 90 00 [15:42:55]wFMCommunicate OK [15:42:55]SAM_PROTO_ClearQueue done [15:42:55]KKMCreateOFDPacket [15:42:55]OFDProtocolAddRootSTLVToBuf [15:42:55]FM_MakeSignedData [15:42:55]FM_MakeSignedData [15:42:55]SAM_PROTO_SignData [15:42:55]wFMCommunicate request_size=4 [15:42:55]MH_SAM_APDU [15:42:55]CAPDU: 80 0D 01 02 [15:42:55]Write to MH i2c: E2 08 00 B0 07 80 0D 01 02 00 00 00 00 30 [15:42:55]Write i2c OK [15:42:55]MH_I2C_Read... [15:42:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:55]Read from MH i2c: E2 [15:42:55]MH_I2C_Read... [15:42:55]Read from MH i2c: E2 03 00 [15:42:55]MH_I2C_Read... [15:42:55]Read from MH i2c: E2 03 00 B0 07 00 90 00 2B [15:42:55]RAPDU: 90 00 [15:42:55]wFMCommunicate OK [15:42:55]wFMCommunicate request_size=255 [15:42:55]MH_SAM_APDU [15:42:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 00 4E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 62 B4 01 00 35 04 06 00 08 [15:42:55]Write to MH i2c: E2 02 01 B1 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 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 00 4E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 62 B4 01 00 35 04 06 00 08 00 00 E4 [15:42:55]Write i2c OK [15:42:55]MH_I2C_Read... [15:42:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:55]Read from MH i2c: E2 [15:42:55]MH_I2C_Read... [15:42:55]Read from MH i2c: E2 03 00 [15:42:55]MH_I2C_Read... [15:42:55]Read from MH i2c: E2 03 00 B1 07 00 90 00 2C [15:42:55]RAPDU: 90 00 [15:42:55]wFMCommunicate OK [15:42:55]wFMCommunicate request_size=10 [15:42:55]MH_SAM_APDU [15:42:55]CAPDU: 80 0D 02 02 05 6E BD 4F 72 24 [15:42:55]Write to MH i2c: E2 0D 00 B2 07 80 0D 02 02 05 00 6E BD 4F 72 24 00 00 4D [15:42:55]Write i2c OK [15:42:55]MH_I2C_Read... [15:42:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:55]Read from MH i2c: E2 [15:42:55]MH_I2C_Read... [15:42:55]Read from MH i2c: E2 03 00 [15:42:55]MH_I2C_Read... [15:42:55]Read from MH i2c: E2 03 00 B2 07 00 90 00 2D [15:42:55]RAPDU: 90 00 [15:42:55]wFMCommunicate OK [15:42:55]wFMCommunicate request_size=4 [15:42:55]MH_SAM_APDU [15:42:55]CAPDU: 80 0D 03 02 [15:42:55]Write to MH i2c: E2 08 00 B3 07 80 0D 03 02 00 00 00 00 35 [15:42:55]Write i2c OK [15:42:55]MH_I2C_Read... [15:42:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:55]Read from MH i2c: E2 [15:42:55]MH_I2C_Read... [15:42:55]Read from MH i2c: E2 0B 00 [15:42:55]MH_I2C_Read... [15:42:55]Read from MH i2c: E2 0B 00 B3 07 00 B4 03 79 78 D1 FB A6 3A 90 00 8A [15:42:55]RAPDU: B4 03 79 78 D1 FB A6 3A 90 00 [15:42:55]wFMCommunicate OK [15:42:55]SAM_PROTO_SignData done [15:42:55]FM_MakeSignedData done [15:42:55]CreateOFDProtocolMessage [15:42:55]wFMCommunicate request_size=4 [15:42:55]MH_SAM_APDU [15:42:55]CAPDU: 80 11 00 00 [15:42:55]Write to MH i2c: E2 08 00 B4 07 80 11 00 00 00 00 00 00 35 [15:42:55]Write i2c OK [15:42:55]MH_I2C_Read... [15:42:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:55]Read from MH i2c: E2 [15:42:55]MH_I2C_Read... [15:42:55]Read from MH i2c: E2 17 00 [15:42:55]MH_I2C_Read... [15:42:55]Read from MH i2c: E2 17 00 B4 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 87 [15:42:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:42:55]wFMCommunicate OK [15:42:55]CreateOFDProtocolMessage done [15:42:55]OFDSenderStorePacket 111714 [15:42:55]StoreOFDPacket docnum=111714 [15:42:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5A A7 07 01 BB A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 00 4E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 62 B4 01 00 35 04 06 00 08 6E BD 4F 72 24 B4 03 79 78 D1 FB A6 3A [15:42:55]CheckFolder [15:42:55]dirname=/storage/ofd_packets [15:42:55]CheckFolder done [15:42:55]ProducePacketName [15:42:55]name=ofd_packets/00111714 [15:42:55]NVStorageSaveData ofd_packets/00111714 [15:42:55]File name is /storage/ofd_packets/00111714 [15:42:55]Write 301 bytes [15:42:55]NVStorageSaveData done [15:42:55]OFDSenderStorePacket done [15:42:55]KKMCreateOFDPacket done [15:42:55]NVStorageSaveData kkm_last_timestamp [15:42:55]File name is /storage/kkm_last_timestamp [15:42:55]Write 4 bytes [15:42:55]NVStorageSaveData done [15:42:55]ExternCall_PrintAddStr [15:42:55]wPrintStart [15:42:55]Write to MH i2c: 01 00 00 B5 07 BC [15:42:55]Write i2c OK [15:42:55]MH_I2C_Read... [15:42:55]Read from MH i2c: 01 [15:42:55]MH_I2C_Read... [15:42:55]Read from MH i2c: 01 07 00 [15:42:55]MH_I2C_Read... [15:42:55]Read from MH i2c: 01 07 00 B5 07 00 00 00 00 00 FF 0F D1 [15:42:55]RasterBufferAndPrint [15:42:55]line Счет N : (1)320332 [15:42:55]line ИНН: 02508201610067 [15:42:55]line Контрольно-Кассовый Чек [15:42:55]line ПРОДАЖА [15:42:55]line ТРК (МРК, ГНК) : 11 [15:42:55]line Товар: 2710124130 [15:42:55]line Аи-92-К-5 [15:42:55]line 1.510 * 66.40 [15:42:55]line = 100.26 [15:42:55]line НДС 12% НСП 1% [15:42:55]line > о реализуемом товаре [15:42:55]line ОКРУГЛЕНИЕ: -0.26 [15:42:55]line ИТОГО: 100.00 [15:42:55]line Внесено: 100.00 [15:42:55]line СДАЧА: 0.00 [15:42:55]line НСП 1% : 0.89 [15:42:55]line НДС 12% : 10.65 [15:42:55]line Наличными: 100.00 [15:42:55]line Безнал.: 0.00 [15:42:55]line Место: АЗС № 65 "Партнер Нефть" [15:42:55]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:42:55]line СНО: Общий режим [15:42:55]line Чек 164 20.06.2024 15:42 [15:42:55]line Смена: 389 ФФД: 1.0 [15:42:55]line ЗНМ: 0300000198 [15:42:55]line РНМ: 0000000000092771 [15:42:55]line Версия ККМ: 001 [15:42:55]line ФМ: 0000000000875083 [15:42:55]line ФД: 111714 [15:42:55]line ФПД: 9271715525156 [15:42:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T154256&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111714&fm=9271715525156&tin=02508201610067®Number=0000000000092771&sum=10000 [15:42:56]OFD Sender: Processing packet 111714 [packets to send 38, broken 37] [15:42:56]ProducePacketName [15:42:56]name=ofd_packets/00111714 [15:42:56]OFD Sender: To server: pG, [15:42:56]CommunicateWithHost lk.salyk.kg:30040 [15:42:56]ConnectInit lk.salyk.kg [15:42:56]written 0, free lines is 4095 [15:42:56]Connected sock=10 [15:42:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5A A7 07 01 BB A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 00 4E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 62 B4 01 00 35 04 06 00 08 6E BD 4F 72 24 B4 03 79 78 D1 FB A6 3A [15:42:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 8D CB 47 00 6A 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 62 B4 01 00 F4 03 04 00 47 E5 73 66 B6 04 01 00 00 FD E3 8E 02 E5 3E D2 CE [15:42:56]CommunicateWithHost err = 0 [15:42:56]CheckOFDResponse [15:42:56]1017 (14) - 77093643461234 [15:42:56]1041 (16) - 0000000000875083 [15:42:56]1040 (4) - 111714 [15:42:56]1012 (4) - 20.06.2024 08:16 [15:42:56]1206 (1) - 0 [15:42:56]OFD Sender: Remove packet 111714 [15:42:56]ProducePacketName [15:42:56]name=ofd_packets/00111714 [15:42:56]NVStorageDeleteData [15:42:56]Write to MH i2c: 01 00 00 E0 07 E7 [15:42:56]Write i2c OK [15:42:56]MH_I2C_Read... [15:42:56]Read from MH i2c: 01 [15:42:56]MH_I2C_Read... [15:42:56]Read from MH i2c: 01 07 00 [15:42:56]MH_I2C_Read... [15:42:56]Read from MH i2c: 01 07 00 E0 07 00 00 00 00 00 DC 0C D6 [15:42:56]RasterBufferAndPrint [15:42:56]line [15:42:56]line [15:42:56]line [15:42:56]line [15:42:56]line [15:42:56]written 0, free lines is 3298 [15:42:56]MH_Cut [15:42:56]Write to MH i2c: D1 01 00 E7 07 01 C0 [15:42:56]Write i2c OK [15:42:56]MH_I2C_Read... [15:42:56]Read from MH i2c: D1 [15:42:56]MH_I2C_Read... [15:42:56]Read from MH i2c: D1 01 00 [15:42:56]MH_I2C_Read... [15:42:56]Read from MH i2c: D1 01 00 E7 07 00 BF [15:42:56]Write to MH i2c: 01 00 00 E8 07 EF [15:42:56]Write i2c OK [15:42:56]MH_I2C_Read... [15:42:56]OFD Sender: No OFD packet to send [15:42:57]*** Cut start [15:42:57]*** Partial cut [15:42:57]*** CUTSNS_PIN = 1 [15:42:57]*** CUTSNS_PIN = 0 [15:42:57]*** Brake cut motor [15:42:57]Read from MH i2c: 01 [15:42:57]MH_I2C_Read... [15:42:57]*** Stop cut motor [15:42:57]*** Cut end [15:42:57]Read from MH i2c: 01 07 00 [15:42:57]MH_I2C_Read... [15:42:57]Read from MH i2c: 01 07 00 E8 07 00 00 00 00 00 FF 0F 04 [15:42:57]process_action close_receipt done [15:42:57]requested_data is exist [15:42:57]produce_requested_data [15:42:57]requested_item fm.sn is exist - process it [15:42:57]wFMCommunicate request_size=4 [15:42:57]MH_SAM_APDU [15:42:57]CAPDU: 80 11 00 00 [15:42:57]Write to MH i2c: E2 08 00 E9 07 80 11 00 00 00 00 00 00 6A [15:42:57]Write i2c OK [15:42:57]MH_I2C_Read... [15:42:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:58]Read from MH i2c: E2 [15:42:58]MH_I2C_Read... [15:42:58]Read from MH i2c: E2 17 00 [15:42:58]MH_I2C_Read... [15:42:58]Read from MH i2c: E2 17 00 E9 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BC [15:42:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:42:58]wFMCommunicate OK [15:42:58]requested_item fd.num is exist - process it [15:42:58]SAM_PROTO_GetFieldsCounters [15:42:58]wFMCommunicate request_size=4 [15:42:58]MH_SAM_APDU [15:42:58]CAPDU: 80 13 00 00 [15:42:58]Write to MH i2c: E2 08 00 EA 07 80 13 00 00 00 00 00 00 6D [15:42:58]Write i2c OK [15:42:58]MH_I2C_Read... [15:42:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:58]Read from MH i2c: E2 [15:42:58]MH_I2C_Read... [15:42:58]Read from MH i2c: E2 62 00 [15:42:58]MH_I2C_Read... [15:42:58]Read from MH i2c: E2 62 00 EA 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 62 B4 01 00 0E 04 04 00 85 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 17 [15:42:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 62 B4 01 00 0E 04 04 00 85 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 [15:42:58]wFMCommunicate OK [15:42:58]SAM_PROTO_GetFieldsCounters done [15:42:58]requested_item shift.num is exist - process it [15:42:58]requested_item shift.opened is exist - process it [15:42:58]req_shift_opened [15:42:58]FM_GetShiftState [15:42:58]SAM_PROTO_GetShiftState [15:42:58]wFMCommunicate request_size=4 [15:42:58]MH_SAM_APDU [15:42:58]CAPDU: 80 13 01 00 [15:42:58]Write to MH i2c: E2 08 00 EB 07 80 13 01 00 00 00 00 00 6F [15:42:58]Write i2c OK [15:42:58]MH_I2C_Read... [15:42:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:58]Read from MH i2c: E2 [15:42:58]MH_I2C_Read... [15:42:58]Read from MH i2c: E2 0E 00 [15:42:58]MH_I2C_Read... [15:42:58]Read from MH i2c: E2 0E 00 EB 07 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 EA [15:42:58]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:42:58]wFMCommunicate OK [15:42:58]SAM_PROTO_GetShiftState done [15:42:58]FM_GetShiftState done [15:42:58]req_shift_opened done [15:42:58]requested_item shift.open_date is exist - process it [15:42:58]req_shift_open_date [15:42:58]req_shift_open_date done [15:42:58]produce_requested_data done [15:42:58]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111714,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [15:42:58]process_action_free close_receipt [15:42:58]json_value_free [15:42:58]json_value_free done [15:42:58]process_json_proto returns [15:42:58]Send response to host [15:42:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111714,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [15:42:58]free response buf [15:42:58]execute_script done [15:42:58]execute_script returns [15:42:58]free content buf [15:42:58]Sock 7.Close socket [15:42:58]Sock 7.Thread stoped [15:43:01]OFD Sender: No OFD packet to send [15:43:06]OFD Sender: No OFD packet to send [15:43:12]OFD Sender: No OFD packet to send [15:43:17]OFD Sender: No OFD packet to send [15:43:22]OFD Sender: No OFD packet to send [15:43:27]OFD Sender: No OFD packet to send [15:43:32]OFD Sender: No OFD packet to send [15:43:37]OFD Sender: No OFD packet to send [15:43:42]OFD Sender: No OFD packet to send [15:43:47]OFD Sender: No OFD packet to send [15:43:52]OFD Sender: No OFD packet to send [15:43:57]OFD Sender: No OFD packet to send [15:44:02]OFD Sender: No OFD packet to send [15:44:07]OFD Sender: No OFD packet to send [15:44:12]OFD Sender: No OFD packet to send [15:44:17]OFD Sender: No OFD packet to send [15:44:22]OFD Sender: No OFD packet to send [15:44:27]OFD Sender: No OFD packet to send [15:44:32]OFD Sender: No OFD packet to send [15:44:37]OFD Sender: No OFD packet to send [15:44:42]OFD Sender: No OFD packet to send [15:44:45]accept exits with 9 [15:44:45]New connection [15:44:45]New thread 3067178340 created [15:44:45]Thread 3067321700 joined [15:44:45]Waiting for new connection... [15:44:45] Sock 9.Parse request [15:44:45]Sock 9.Check first char [15:44:45]Sock 9.First char is OK [15:44:45]request: POST /json_proto HTTP/1.0 [15:44:45]Method: POST [15:44:45]URL: /json_proto [15:44:45]Method is POST - this is cgi request [15:44:45]url: /json_proto [15:44:45]query_string will be loaded in cgi processing [15:44:45]execute_cgi json_proto POST (null) [15:44:45]execute_cgi path=json_proto method=POST [15:44:45]POST find Content-Length [15:44:45]Host: 172.17.59.68:8080 [15:44:45]Content-Length: 678 [15:44:45]Content-Type: application/json [15:44:45] [15:44:45]POST finish read [15:44:45]Found Content-Length = 678 [15:44:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 13.560, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:45]execute_script... [15:44: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)320333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 13.560, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:45]POST & json_proto [15:44:45]process_json_proto [15:44:45]json parsed OK: [15:44:45]protocol is kg_v1.0 [15:44:45]action value=close_receipt [15:44:45]process_action close_receipt [15:44:45]cmd_close_receipt [15:44:45]MH_GetDate [15:44:45]Write to MH i2c: F0 00 00 EC 07 E2 [15:44:45]Write i2c OK [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: F0 [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: F0 09 00 [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: F0 09 00 EC 07 00 6F 4E 74 66 BC EC 60 65 EF [15:44:45]GetLastDocTimeStamp 1718898176 [15:44:45]current date 1718898287 [15:44:45]FM_GetShiftState [15:44:45]SAM_PROTO_GetShiftState [15:44:45]wFMCommunicate request_size=4 [15:44:45]MH_SAM_APDU [15:44:45]CAPDU: 80 13 01 00 [15:44:45]Write to MH i2c: E2 08 00 ED 07 80 13 01 00 00 00 00 00 71 [15:44:45]Write i2c OK [15:44:45]MH_I2C_Read... [15:44:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:45]Read from MH i2c: E2 [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: E2 0E 00 [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: E2 0E 00 ED 07 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 EC [15:44:45]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:44:45]wFMCommunicate OK [15:44:45]SAM_PROTO_GetShiftState done [15:44:45]FM_GetShiftState done [15:44:45]opened in 1718847247 [15:44:45]opened+sec_in_day 1718933647 [15:44:45]quantity*price = 90038 [15:44:45]sum+1 = 90039 [15:44:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 165 20.06.2024 15:44 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111715 ФПД: 261832177133224 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T154447&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111715&fm=261832177133224&tin=02508201610067®Number=0000000000092771&sum=90000 [15:44:46]StoreToDocumentArchive [15:44:46]shift 389 fd 111715 [15:44:46]save to /storage/0389/doc_00111715 [15:44:46]save last doc name /storage/0389/doc_00111715 to /storage/kkm_last_doc_name [15:44:46]save OK [15:44:46]Clear old archive folders... [15:44:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:44:46]tlvbuf is 01756D80 [15:44:46]SAM_PROTO_ClearQueue [15:44:46]wFMCommunicate request_size=4 [15:44:46]MH_SAM_APDU [15:44:46]CAPDU: 80 09 00 00 [15:44:46]Write to MH i2c: E2 08 00 FA 07 80 09 00 00 00 00 00 00 73 [15:44:46]Write i2c OK [15:44:46]MH_I2C_Read... [15:44:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:44:46]Read from MH i2c: E2 [15:44:46]MH_I2C_Read... [15:44:46]Read from MH i2c: E2 03 00 [15:44:46]MH_I2C_Read... [15:44:46]Read from MH i2c: E2 03 00 FA 07 00 90 00 75 [15:44:46]RAPDU: 90 00 [15:44:46]wFMCommunicate OK [15:44:46]SAM_PROTO_ClearQueue done [15:44:46]KKMCreateOFDPacket [15:44:46]OFDProtocolAddRootSTLVToBuf [15:44:46]FM_MakeSignedData [15:44:46]FM_MakeSignedData [15:44:46]SAM_PROTO_SignData [15:44:46]wFMCommunicate request_size=4 [15:44:46]MH_SAM_APDU [15:44:46]CAPDU: 80 0D 01 02 [15:44:46]Write to MH i2c: E2 08 00 FB 07 80 0D 01 02 00 00 00 00 7B [15:44:46]Write i2c OK [15:44:46]MH_I2C_Read... [15:44:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:44:46]Read from MH i2c: E2 [15:44:46]MH_I2C_Read... [15:44:46]Read from MH i2c: E2 03 00 [15:44:46]MH_I2C_Read... [15:44:46]Read from MH i2c: E2 03 00 FB 07 00 90 00 76 [15:44:46]RAPDU: 90 00 [15:44:46]wFMCommunicate OK [15:44:46]wFMCommunicate request_size=255 [15:44:46]MH_SAM_APDU [15:44: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 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 6F 4E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 63 B4 01 00 35 04 06 00 EE [15:44:46]Write to MH i2c: E2 02 01 FC 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 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 6F 4E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 63 B4 01 00 35 04 06 00 EE 00 00 17 [15:44:46]Write i2c OK [15:44:46]MH_I2C_Read... [15:44:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:46]Read from MH i2c: E2 [15:44:46]MH_I2C_Read... [15:44:46]Read from MH i2c: E2 03 00 [15:44:46]MH_I2C_Read... [15:44:46]Read from MH i2c: E2 03 00 FC 07 00 90 00 77 [15:44:46]RAPDU: 90 00 [15:44:46]wFMCommunicate OK [15:44:46]wFMCommunicate request_size=10 [15:44:46]MH_SAM_APDU [15:44:46]CAPDU: 80 0D 02 02 05 22 8D E8 A6 A8 [15:44:46]Write to MH i2c: E2 0D 00 FD 07 80 0D 02 02 05 00 22 8D E8 A6 A8 00 00 6D [15:44:46]Write i2c OK [15:44:46]MH_I2C_Read... [15:44:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:46]Read from MH i2c: E2 [15:44:46]MH_I2C_Read... [15:44:46]Read from MH i2c: E2 03 00 [15:44:46]MH_I2C_Read... [15:44:46]Read from MH i2c: E2 03 00 FD 07 00 90 00 78 [15:44:46]RAPDU: 90 00 [15:44:46]wFMCommunicate OK [15:44:46]wFMCommunicate request_size=4 [15:44:46]MH_SAM_APDU [15:44:46]CAPDU: 80 0D 03 02 [15:44:46]Write to MH i2c: E2 08 00 FE 07 80 0D 03 02 00 00 00 00 80 [15:44:46]Write i2c OK [15:44:46]MH_I2C_Read... [15:44:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:44:46]Read from MH i2c: E2 [15:44:46]MH_I2C_Read... [15:44:46]Read from MH i2c: E2 0B 00 [15:44:46]MH_I2C_Read... [15:44:46]Read from MH i2c: E2 0B 00 FE 07 00 E1 74 8A 94 A7 B5 96 79 90 00 5F [15:44:46]RAPDU: E1 74 8A 94 A7 B5 96 79 90 00 [15:44:46]wFMCommunicate OK [15:44:46]SAM_PROTO_SignData done [15:44:46]FM_MakeSignedData done [15:44:46]CreateOFDProtocolMessage [15:44:46]wFMCommunicate request_size=4 [15:44:46]MH_SAM_APDU [15:44:46]CAPDU: 80 11 00 00 [15:44:46]Write to MH i2c: E2 08 00 FF 07 80 11 00 00 00 00 00 00 80 [15:44:46]Write i2c OK [15:44:46]MH_I2C_Read... [15:44:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:46]Read from MH i2c: E2 [15:44:46]MH_I2C_Read... [15:44:46]Read from MH i2c: E2 17 00 [15:44:46]MH_I2C_Read... [15:44:46]Read from MH i2c: E2 17 00 FF 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D2 [15:44:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:44:46]wFMCommunicate OK [15:44:46]CreateOFDProtocolMessage done [15:44:46]OFDSenderStorePacket 111715 [15:44:46]StoreOFDPacket docnum=111715 [15:44:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A4 63 07 01 07 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 6F 4E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 63 B4 01 00 35 04 06 00 EE 22 8D E8 A6 A8 E1 74 8A 94 A7 B5 96 79 [15:44:46]CheckFolder [15:44:46]dirname=/storage/ofd_packets [15:44:46]CheckFolder done [15:44:46]ProducePacketName [15:44:46]name=ofd_packets/00111715 [15:44:46]NVStorageSaveData ofd_packets/00111715 [15:44:46]File name is /storage/ofd_packets/00111715 [15:44:46]Write 301 bytes [15:44:46]NVStorageSaveData done [15:44:46]OFDSenderStorePacket done [15:44:46]KKMCreateOFDPacket done [15:44:46]NVStorageSaveData kkm_last_timestamp [15:44:46]File name is /storage/kkm_last_timestamp [15:44:46]Write 4 bytes [15:44:46]NVStorageSaveData done [15:44:46]ExternCall_PrintAddStr [15:44:46]wPrintStart [15:44:46]Write to MH i2c: 01 00 00 00 08 08 [15:44:46]Write i2c OK [15:44:46]MH_I2C_Read... [15:44:46]Read from MH i2c: 01 [15:44:46]MH_I2C_Read... [15:44:46]Read from MH i2c: 01 07 00 [15:44:46]MH_I2C_Read... [15:44:46]Read from MH i2c: 01 07 00 00 08 00 00 00 00 00 FF 0F 1D [15:44:46]RasterBufferAndPrint [15:44:46]line Счет N : (1)320333 [15:44:46]line ИНН: 02508201610067 [15:44:46]line Контрольно-Кассовый Чек [15:44:46]line ПРОДАЖА [15:44:46]line ТРК (МРК, ГНК) : 11 [15:44:46]line Товар: 2710124130 [15:44:46]line Аи-92-К-5 [15:44:46]line 13.560 * 66.40 [15:44:46]line = 900.38 [15:44:46]line НДС 12% НСП 1% [15:44:46]line > о реализуемом товаре [15:44:46]line ОКРУГЛЕНИЕ: -0.38 [15:44:46]line ИТОГО: 900.00 [15:44:46]line Внесено: 900.00 [15:44:46]line СДАЧА: 0.00 [15:44:46]line НСП 1% : 7.97 [15:44:46]line НДС 12% : 95.62 [15:44:46]line Наличными: 900.00 [15:44:46]line Безнал.: 0.00 [15:44:46]line Место: АЗС № 65 "Партнер Нефть" [15:44:46]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:44:46]line СНО: Общий режим [15:44:46]line Чек 165 20.06.2024 15:44 [15:44:46]line Смена: 389 ФФД: 1.0 [15:44:46]line ЗНМ: 0300000198 [15:44:46]line РНМ: 0000000000092771 [15:44:46]line Версия ККМ: 001 [15:44:46]line ФМ: 0000000000875083 [15:44:46]line ФД: 111715 [15:44:46]line ФПД: 261832177133224 [15:44:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T154447&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111715&fm=261832177133224&tin=02508201610067®Number=0000000000092771&sum=90000 [15:44:47]OFD Sender: Processing packet 111715 [packets to send 38, broken 37] [15:44:47]ProducePacketName [15:44:47]name=ofd_packets/00111715 [15:44:47]OFD Sender: To server: pG, [15:44:47]CommunicateWithHost lk.salyk.kg:30040 [15:44:47]ConnectInit lk.salyk.kg [15:44:47]written 0, free lines is 4095 [15:44:47]Connected sock=10 [15:44:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A4 63 07 01 07 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 6F 4E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 63 B4 01 00 35 04 06 00 EE 22 8D E8 A6 A8 E1 74 8A 94 A7 B5 96 79 [15:44:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C1 72 47 00 87 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 35 30 38 33 10 04 04 00 63 B4 01 00 F4 03 04 00 B6 E5 73 66 B6 04 01 00 00 7B 13 D8 94 D0 E0 E9 C4 [15:44:47]CommunicateWithHost err = 0 [15:44:47]CheckOFDResponse [15:44:47]1017 (14) - 77093643461234 [15:44:47]1041 (16) - 0000000000875083 [15:44:47]1040 (4) - 111715 [15:44:47]1012 (4) - 20.06.2024 08:17 [15:44:47]1206 (1) - 0 [15:44:47]OFD Sender: Remove packet 111715 [15:44:47]ProducePacketName [15:44:47]name=ofd_packets/00111715 [15:44:47]NVStorageDeleteData [15:44:47]Write to MH i2c: 01 00 00 2B 08 33 [15:44:47]Write i2c OK [15:44:47]MH_I2C_Read... [15:44:47]Read from MH i2c: 01 [15:44:47]MH_I2C_Read... [15:44:47]Read from MH i2c: 01 07 00 [15:44:47]MH_I2C_Read... [15:44:47]Read from MH i2c: 01 07 00 2B 08 00 00 00 00 00 DC 0C 22 [15:44:47]RasterBufferAndPrint [15:44:47]line [15:44:47]line [15:44:47]line [15:44:47]line [15:44:47]line [15:44:47]written 0, free lines is 3299 [15:44:47]MH_Cut [15:44:47]Write to MH i2c: D1 01 00 32 08 01 0C [15:44:47]Write i2c OK [15:44:47]MH_I2C_Read... [15:44:47]Read from MH i2c: D1 [15:44:47]MH_I2C_Read... [15:44:47]Read from MH i2c: D1 01 00 [15:44:47]MH_I2C_Read... [15:44:47]Read from MH i2c: D1 01 00 32 08 00 0B [15:44:47]Write to MH i2c: 01 00 00 33 08 3B [15:44:47]Write i2c OK [15:44:47]MH_I2C_Read... [15:44:48]OFD Sender: No OFD packet to send [15:44:48]*** Cut start [15:44:48]*** Partial cut [15:44:48]*** CUTSNS_PIN = 1 [15:44:48]*** CUTSNS_PIN = 0 [15:44:48]*** Brake cut motor [15:44:49]Read from MH i2c: 01 [15:44:49]MH_I2C_Read... [15:44:49]*** Stop cut motor [15:44:49]*** Cut end [15:44:49]Read from MH i2c: 01 07 00 [15:44:49]MH_I2C_Read... [15:44:49]Read from MH i2c: 01 07 00 33 08 00 00 00 00 00 FF 0F 50 [15:44:49]process_action close_receipt done [15:44:49]requested_data is exist [15:44:49]produce_requested_data [15:44:49]requested_item fm.sn is exist - process it [15:44:49]wFMCommunicate request_size=4 [15:44:49]MH_SAM_APDU [15:44:49]CAPDU: 80 11 00 00 [15:44:49]Write to MH i2c: E2 08 00 34 08 80 11 00 00 00 00 00 00 B6 [15:44:49]Write i2c OK [15:44:49]MH_I2C_Read... [15:44:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:49]Read from MH i2c: E2 [15:44:49]MH_I2C_Read... [15:44:49]Read from MH i2c: E2 17 00 [15:44:49]MH_I2C_Read... [15:44:49]Read from MH i2c: E2 17 00 34 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 08 [15:44:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:44:49]wFMCommunicate OK [15:44:49]requested_item fd.num is exist - process it [15:44:49]SAM_PROTO_GetFieldsCounters [15:44:49]wFMCommunicate request_size=4 [15:44:49]MH_SAM_APDU [15:44:49]CAPDU: 80 13 00 00 [15:44:49]Write to MH i2c: E2 08 00 35 08 80 13 00 00 00 00 00 00 B9 [15:44:49]Write i2c OK [15:44:49]MH_I2C_Read... [15:44:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:49]Read from MH i2c: E2 [15:44:49]MH_I2C_Read... [15:44:49]Read from MH i2c: E2 62 00 [15:44:49]MH_I2C_Read... [15:44:49]Read from MH i2c: E2 62 00 35 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 63 B4 01 00 0E 04 04 00 85 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 67 [15:44:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 63 B4 01 00 0E 04 04 00 85 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 [15:44:49]wFMCommunicate OK [15:44:49]SAM_PROTO_GetFieldsCounters done [15:44:49]requested_item shift.num is exist - process it [15:44:49]requested_item shift.opened is exist - process it [15:44:49]req_shift_opened [15:44:49]FM_GetShiftState [15:44:49]SAM_PROTO_GetShiftState [15:44:49]wFMCommunicate request_size=4 [15:44:49]MH_SAM_APDU [15:44:49]CAPDU: 80 13 01 00 [15:44:49]Write to MH i2c: E2 08 00 36 08 80 13 01 00 00 00 00 00 BB [15:44:49]Write i2c OK [15:44:49]MH_I2C_Read... [15:44:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:49]Read from MH i2c: E2 [15:44:49]MH_I2C_Read... [15:44:49]Read from MH i2c: E2 0E 00 [15:44:49]MH_I2C_Read... [15:44:49]Read from MH i2c: E2 0E 00 36 08 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 36 [15:44:49]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:44:49]wFMCommunicate OK [15:44:49]SAM_PROTO_GetShiftState done [15:44:49]FM_GetShiftState done [15:44:49]req_shift_opened done [15:44:49]requested_item shift.open_date is exist - process it [15:44:49]req_shift_open_date [15:44:49]req_shift_open_date done [15:44:49]produce_requested_data done [15:44:49]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111715,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [15:44:49]process_action_free close_receipt [15:44:49]json_value_free [15:44:49]json_value_free done [15:44:49]process_json_proto returns [15:44:49]Send response to host [15:44:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111715,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [15:44:49]free response buf [15:44:49]execute_script done [15:44:49]execute_script returns [15:44:49]free content buf [15:44:49]Sock 9.Close socket [15:44:49]Sock 9.Thread stoped [15:44:53]OFD Sender: No OFD packet to send [15:44:58]OFD Sender: No OFD packet to send [15:45:03]OFD Sender: No OFD packet to send [15:45:08]OFD Sender: No OFD packet to send [15:45:13]OFD Sender: No OFD packet to send [15:45:18]OFD Sender: No OFD packet to send [15:45:23]OFD Sender: No OFD packet to send [15:45:28]OFD Sender: No OFD packet to send [15:45:33]OFD Sender: No OFD packet to send [15:45:38]OFD Sender: No OFD packet to send [15:45:43]OFD Sender: No OFD packet to send [15:45:48]OFD Sender: No OFD packet to send [15:45:53]OFD Sender: No OFD packet to send [15:45:58]OFD Sender: No OFD packet to send [15:46:03]OFD Sender: No OFD packet to send [15:46:08]OFD Sender: No OFD packet to send [15:46:13]OFD Sender: No OFD packet to send [15:46:18]OFD Sender: No OFD packet to send [15:46:23]OFD Sender: No OFD packet to send [15:46:28]OFD Sender: No OFD packet to send [15:46:30]accept exits with 7 [15:46:30]New connection [15:46:30]New thread 3067321700 created [15:46:30]Thread 3067178340 joined [15:46:30]Waiting for new connection... [15:46:30] Sock 7.Parse request [15:46:30]Sock 7.Check first char [15:46:30]Sock 7.First char is OK [15:46:30]request: POST /json_proto HTTP/1.0 [15:46:30]Method: POST [15:46:30]URL: /json_proto [15:46:30]Method is POST - this is cgi request [15:46:30]url: /json_proto [15:46:30]query_string will be loaded in cgi processing [15:46:30]execute_cgi json_proto POST (null) [15:46:30]execute_cgi path=json_proto method=POST [15:46:30]POST find Content-Length [15:46:30]Host: 172.17.59.68:8080 [15:46:30]Content-Length: 682 [15:46:30]Content-Type: application/json [15:46:30] [15:46:30]POST finish read [15:46:30]Found Content-Length = 682 [15:46:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:30]execute_script... [15:46:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:30]POST & json_proto [15:46:30]process_json_proto [15:46:30]json parsed OK: [15:46:30]protocol is kg_v1.0 [15:46:30]action value=close_receipt [15:46:30]process_action close_receipt [15:46:30]cmd_close_receipt [15:46:30]MH_GetDate [15:46:30]Write to MH i2c: F0 00 00 37 08 2E [15:46:30]Write i2c OK [15:46:30]MH_I2C_Read... [15:46:30]Read from MH i2c: F0 [15:46:30]MH_I2C_Read... [15:46:30]Read from MH i2c: F0 09 00 [15:46:30]MH_I2C_Read... [15:46:30]Read from MH i2c: F0 09 00 37 08 00 D8 4E 74 66 BC EC 60 65 A4 [15:46:30]GetLastDocTimeStamp 1718898287 [15:46:30]current date 1718898392 [15:46:30]FM_GetShiftState [15:46:30]SAM_PROTO_GetShiftState [15:46:30]wFMCommunicate request_size=4 [15:46:30]MH_SAM_APDU [15:46:30]CAPDU: 80 13 01 00 [15:46:30]Write to MH i2c: E2 08 00 38 08 80 13 01 00 00 00 00 00 BD [15:46:30]Write i2c OK [15:46:30]MH_I2C_Read... [15:46:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:30]Read from MH i2c: E2 [15:46:30]MH_I2C_Read... [15:46:30]Read from MH i2c: E2 0E 00 [15:46:30]MH_I2C_Read... [15:46:30]Read from MH i2c: E2 0E 00 38 08 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 38 [15:46:30]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:46:30]wFMCommunicate OK [15:46:30]SAM_PROTO_GetShiftState done [15:46:30]FM_GetShiftState done [15:46:30]opened in 1718847247 [15:46:30]opened+sec_in_day 1718933647 [15:46:30]quantity*price = 150064 [15:46:30]sum+1 = 150065 [15:46:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 166 20.06.2024 15:46 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111716 ФПД: 88248758327350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T154633&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111716&fm=88248758327350&tin=02508201610067®Number=0000000000092771&sum=150000 [15:46:31]StoreToDocumentArchive [15:46:31]shift 389 fd 111716 [15:46:31]save to /storage/0389/doc_00111716 [15:46:31]save last doc name /storage/0389/doc_00111716 to /storage/kkm_last_doc_name [15:46:31]save OK [15:46:31]Clear old archive folders... [15:46:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:46:31]tlvbuf is 016FD4C0 [15:46:31]SAM_PROTO_ClearQueue [15:46:31]wFMCommunicate request_size=4 [15:46:31]MH_SAM_APDU [15:46:31]CAPDU: 80 09 00 00 [15:46:31]Write to MH i2c: E2 08 00 45 08 80 09 00 00 00 00 00 00 BF [15:46:31]Write i2c OK [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: E2 [15:46:31]MH_I2C_Read... [15:46:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:46:31]Read from MH i2c: E2 03 00 [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: E2 03 00 45 08 00 90 00 C1 [15:46:31]RAPDU: 90 00 [15:46:31]wFMCommunicate OK [15:46:31]SAM_PROTO_ClearQueue done [15:46:31]KKMCreateOFDPacket [15:46:31]OFDProtocolAddRootSTLVToBuf [15:46:31]FM_MakeSignedData [15:46:31]FM_MakeSignedData [15:46:31]SAM_PROTO_SignData [15:46:31]wFMCommunicate request_size=4 [15:46:31]MH_SAM_APDU [15:46:31]CAPDU: 80 0D 01 02 [15:46:31]Write to MH i2c: E2 08 00 46 08 80 0D 01 02 00 00 00 00 C7 [15:46:31]Write i2c OK [15:46:31]MH_I2C_Read... [15:46:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:46:31]Read from MH i2c: E2 [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: E2 03 00 [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: E2 03 00 46 08 00 90 00 C2 [15:46:31]RAPDU: 90 00 [15:46:31]wFMCommunicate OK [15:46:31]wFMCommunicate request_size=255 [15:46:31]MH_SAM_APDU [15:46:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 D9 4E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 64 B4 01 00 35 04 06 00 50 [15:46:31]Write to MH i2c: E2 02 01 47 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 D9 4E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 64 B4 01 00 35 04 06 00 50 00 00 B5 [15:46:31]Write i2c OK [15:46:31]MH_I2C_Read... [15:46:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:31]Read from MH i2c: E2 [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: E2 03 00 [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: E2 03 00 47 08 00 90 00 C3 [15:46:31]RAPDU: 90 00 [15:46:31]wFMCommunicate OK [15:46:31]wFMCommunicate request_size=10 [15:46:31]MH_SAM_APDU [15:46:31]CAPDU: 80 0D 02 02 05 43 03 E4 58 36 [15:46:31]Write to MH i2c: E2 0D 00 48 08 80 0D 02 02 05 00 43 03 E4 58 36 00 00 8C [15:46:31]Write i2c OK [15:46:31]MH_I2C_Read... [15:46:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:31]Read from MH i2c: E2 [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: E2 03 00 [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: E2 03 00 48 08 00 90 00 C4 [15:46:31]RAPDU: 90 00 [15:46:31]wFMCommunicate OK [15:46:31]wFMCommunicate request_size=4 [15:46:31]MH_SAM_APDU [15:46:31]CAPDU: 80 0D 03 02 [15:46:31]Write to MH i2c: E2 08 00 49 08 80 0D 03 02 00 00 00 00 CC [15:46:31]Write i2c OK [15:46:31]MH_I2C_Read... [15:46:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:46:31]Read from MH i2c: E2 [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: E2 0B 00 [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: E2 0B 00 49 08 00 17 5F D8 4A A3 B6 87 C4 90 00 09 [15:46:31]RAPDU: 17 5F D8 4A A3 B6 87 C4 90 00 [15:46:31]wFMCommunicate OK [15:46:31]SAM_PROTO_SignData done [15:46:31]FM_MakeSignedData done [15:46:31]CreateOFDProtocolMessage [15:46:31]wFMCommunicate request_size=4 [15:46:31]MH_SAM_APDU [15:46:31]CAPDU: 80 11 00 00 [15:46:31]Write to MH i2c: E2 08 00 4A 08 80 11 00 00 00 00 00 00 CC [15:46:31]Write i2c OK [15:46:31]MH_I2C_Read... [15:46:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:31]Read from MH i2c: E2 [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: E2 17 00 [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: E2 17 00 4A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1E [15:46:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:46:31]wFMCommunicate OK [15:46:31]CreateOFDProtocolMessage done [15:46:31]OFDSenderStorePacket 111716 [15:46:31]StoreOFDPacket docnum=111716 [15:46:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5D 3C 07 01 9E 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 D9 4E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 64 B4 01 00 35 04 06 00 50 43 03 E4 58 36 17 5F D8 4A A3 B6 87 C4 [15:46:31]CheckFolder [15:46:31]dirname=/storage/ofd_packets [15:46:31]CheckFolder done [15:46:31]ProducePacketName [15:46:31]name=ofd_packets/00111716 [15:46:31]NVStorageSaveData ofd_packets/00111716 [15:46:31]File name is /storage/ofd_packets/00111716 [15:46:31]Write 301 bytes [15:46:31]NVStorageSaveData done [15:46:31]OFDSenderStorePacket done [15:46:31]KKMCreateOFDPacket done [15:46:31]NVStorageSaveData kkm_last_timestamp [15:46:31]File name is /storage/kkm_last_timestamp [15:46:31]Write 4 bytes [15:46:31]NVStorageSaveData done [15:46:31]ExternCall_PrintAddStr [15:46:31]wPrintStart [15:46:31]Write to MH i2c: 01 00 00 4B 08 53 [15:46:31]Write i2c OK [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: 01 [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: 01 07 00 [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: 01 07 00 4B 08 00 00 00 00 00 FF 0F 68 [15:46:31]RasterBufferAndPrint [15:46:31]line Счет N : (1)320334 [15:46:31]line ИНН: 02508201610067 [15:46:31]line Контрольно-Кассовый Чек [15:46:31]line ПРОДАЖА [15:46:31]line ТРК (МРК, ГНК) : 11 [15:46:31]line Товар: 2710124130 [15:46:31]line Аи-92-К-5 [15:46:31]line 22.600 * 66.40 [15:46:31]line = 1500.64 [15:46:31]line НДС 12% НСП 1% [15:46:31]line > о реализуемом товаре [15:46:31]line ОКРУГЛЕНИЕ: -0.64 [15:46:31]line ИТОГО: 1500.00 [15:46:31]line Внесено: 1500.00 [15:46:31]line СДАЧА: 0.00 [15:46:31]line НСП 1% : 13.28 [15:46:31]line НДС 12% : 159.36 [15:46:31]line Наличными: 1500.00 [15:46:31]line Безнал.: 0.00 [15:46:31]line Место: АЗС № 65 "Партнер Нефть" [15:46:31]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:46:31]line СНО: Общий режим [15:46:31]line Чек 166 20.06.2024 15:46 [15:46:31]line Смена: 389 ФФД: 1.0 [15:46:31]line ЗНМ: 0300000198 [15:46:31]line РНМ: 0000000000092771 [15:46:31]line Версия ККМ: 001 [15:46:31]line ФМ: 0000000000875083 [15:46:31]line ФД: 111716 [15:46:31]line ФПД: 88248758327350 [15:46:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T154633&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111716&fm=88248758327350&tin=02508201610067®Number=0000000000092771&sum=150000 [15:46:32]OFD Sender: Processing packet 111716 [packets to send 38, broken 37] [15:46:32]ProducePacketName [15:46:32]name=ofd_packets/00111716 [15:46:32]OFD Sender: To server: pG, [15:46:32]CommunicateWithHost lk.salyk.kg:30040 [15:46:32]ConnectInit lk.salyk.kg [15:46:32]written 0, free lines is 4095 [15:46:32]Connected sock=10 [15:46:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5D 3C 07 01 9E 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 D9 4E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 64 B4 01 00 35 04 06 00 50 43 03 E4 58 36 17 5F D8 4A A3 B6 87 C4 [15:46:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 85 BE 47 00 B7 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 64 B4 01 00 F4 03 04 00 1F E6 73 66 B6 04 01 00 00 C2 4B 0A 30 68 B8 27 79 [15:46:32]CommunicateWithHost err = 0 [15:46:32]CheckOFDResponse [15:46:32]1017 (14) - 77093643461234 [15:46:32]1041 (16) - 0000000000875083 [15:46:32]1040 (4) - 111716 [15:46:32]1012 (4) - 20.06.2024 08:19 [15:46:32]1206 (1) - 0 [15:46:32]OFD Sender: Remove packet 111716 [15:46:32]ProducePacketName [15:46:32]name=ofd_packets/00111716 [15:46:32]NVStorageDeleteData [15:46:32]Write to MH i2c: 01 00 00 76 08 7E [15:46:32]Write i2c OK [15:46:32]MH_I2C_Read... [15:46:32]Read from MH i2c: 01 [15:46:32]MH_I2C_Read... [15:46:32]Read from MH i2c: 01 07 00 [15:46:32]MH_I2C_Read... [15:46:32]Read from MH i2c: 01 07 00 76 08 00 00 00 00 00 DC 0C 6D [15:46:32]RasterBufferAndPrint [15:46:32]line [15:46:32]line [15:46:32]line [15:46:32]line [15:46:32]line [15:46:32]written 0, free lines is 3298 [15:46:32]MH_Cut [15:46:32]Write to MH i2c: D1 01 00 7D 08 01 57 [15:46:32]Write i2c OK [15:46:32]MH_I2C_Read... [15:46:32]Read from MH i2c: D1 [15:46:32]MH_I2C_Read... [15:46:32]Read from MH i2c: D1 01 00 [15:46:32]MH_I2C_Read... [15:46:32]Read from MH i2c: D1 01 00 7D 08 00 56 [15:46:32]Write to MH i2c: 01 00 00 7E 08 86 [15:46:32]Write i2c OK [15:46:32]MH_I2C_Read... [15:46:33]OFD Sender: No OFD packet to send [15:46:33]*** Cut start [15:46:33]*** Partial cut [15:46:33]*** CUTSNS_PIN = 1 [15:46:33]*** CUTSNS_PIN = 0 [15:46:33]*** Brake cut motor [15:46:33]Read from MH i2c: 01 [15:46:33]MH_I2C_Read... [15:46:34]*** Stop cut motor [15:46:34]*** Cut end [15:46:34]Read from MH i2c: 01 07 00 [15:46:34]MH_I2C_Read... [15:46:34]Read from MH i2c: 01 07 00 7E 08 00 00 00 00 00 FF 0F 9B [15:46:34]process_action close_receipt done [15:46:34]requested_data is exist [15:46:34]produce_requested_data [15:46:34]requested_item fm.sn is exist - process it [15:46:34]wFMCommunicate request_size=4 [15:46:34]MH_SAM_APDU [15:46:34]CAPDU: 80 11 00 00 [15:46:34]Write to MH i2c: E2 08 00 7F 08 80 11 00 00 00 00 00 00 01 [15:46:34]Write i2c OK [15:46:34]MH_I2C_Read... [15:46:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:34]Read from MH i2c: E2 [15:46:34]MH_I2C_Read... [15:46:34]Read from MH i2c: E2 17 00 [15:46:34]MH_I2C_Read... [15:46:34]Read from MH i2c: E2 17 00 7F 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 53 [15:46:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:46:34]wFMCommunicate OK [15:46:34]requested_item fd.num is exist - process it [15:46:34]SAM_PROTO_GetFieldsCounters [15:46:34]wFMCommunicate request_size=4 [15:46:34]MH_SAM_APDU [15:46:34]CAPDU: 80 13 00 00 [15:46:34]Write to MH i2c: E2 08 00 80 08 80 13 00 00 00 00 00 00 04 [15:46:34]Write i2c OK [15:46:34]MH_I2C_Read... [15:46:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:46:34]Read from MH i2c: E2 [15:46:34]MH_I2C_Read... [15:46:34]Read from MH i2c: E2 62 00 [15:46:34]MH_I2C_Read... [15:46:34]Read from MH i2c: E2 62 00 80 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 64 B4 01 00 0E 04 04 00 85 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 B6 [15:46:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 64 B4 01 00 0E 04 04 00 85 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 [15:46:34]wFMCommunicate OK [15:46:34]SAM_PROTO_GetFieldsCounters done [15:46:34]requested_item shift.num is exist - process it [15:46:34]requested_item shift.opened is exist - process it [15:46:34]req_shift_opened [15:46:34]FM_GetShiftState [15:46:34]SAM_PROTO_GetShiftState [15:46:34]wFMCommunicate request_size=4 [15:46:34]MH_SAM_APDU [15:46:34]CAPDU: 80 13 01 00 [15:46:34]Write to MH i2c: E2 08 00 81 08 80 13 01 00 00 00 00 00 06 [15:46:34]Write i2c OK [15:46:34]MH_I2C_Read... [15:46:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:34]Read from MH i2c: E2 [15:46:34]MH_I2C_Read... [15:46:34]Read from MH i2c: E2 0E 00 [15:46:34]MH_I2C_Read... [15:46:34]Read from MH i2c: E2 0E 00 81 08 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 81 [15:46:34]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:46:34]wFMCommunicate OK [15:46:34]SAM_PROTO_GetShiftState done [15:46:34]FM_GetShiftState done [15:46:34]req_shift_opened done [15:46:34]requested_item shift.open_date is exist - process it [15:46:34]req_shift_open_date [15:46:34]req_shift_open_date done [15:46:34]produce_requested_data done [15:46:34]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111716,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [15:46:34]process_action_free close_receipt [15:46:34]json_value_free [15:46:34]json_value_free done [15:46:34]process_json_proto returns [15:46:34]Send response to host [15:46:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111716,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [15:46:34]free response buf [15:46:34]execute_script done [15:46:34]execute_script returns [15:46:34]free content buf [15:46:34]Sock 7.Close socket [15:46:34]Sock 7.Thread stoped [15:46:38]OFD Sender: No OFD packet to send [15:46:43]OFD Sender: No OFD packet to send [15:46:48]OFD Sender: No OFD packet to send [15:46:53]OFD Sender: No OFD packet to send [15:46:58]OFD Sender: No OFD packet to send [15:47:03]OFD Sender: No OFD packet to send [15:47:08]OFD Sender: No OFD packet to send [15:47:13]OFD Sender: No OFD packet to send [15:47:18]OFD Sender: No OFD packet to send [15:47:23]OFD Sender: No OFD packet to send [15:47:28]OFD Sender: No OFD packet to send [15:47:33]OFD Sender: No OFD packet to send [15:47:38]OFD Sender: No OFD packet to send [15:47:43]OFD Sender: No OFD packet to send [15:47:48]OFD Sender: No OFD packet to send [15:47:53]OFD Sender: No OFD packet to send [15:47:54]accept exits with 9 [15:47:54]New connection [15:47:54]New thread 3067178340 created [15:47:54]Thread 3067321700 joined [15:47:54]Waiting for new connection... [15:47:54] Sock 9.Parse request [15:47:54]Sock 9.Check first char [15:47:54]Sock 9.First char is OK [15:47:54]request: POST /json_proto HTTP/1.0 [15:47:54]Method: POST [15:47:54]URL: /json_proto [15:47:54]Method is POST - this is cgi request [15:47:54]url: /json_proto [15:47:54]query_string will be loaded in cgi processing [15:47:54]execute_cgi json_proto POST (null) [15:47:54]execute_cgi path=json_proto method=POST [15:47:54]POST find Content-Length [15:47:54]Host: 172.17.59.68:8080 [15:47:54]Content-Length: 640 [15:47:54]Content-Type: application/json [15:47:54] [15:47:54]POST finish read [15:47:54]Found Content-Length = 640 [15:47:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:54]execute_script... [15:47: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)320335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:54]POST & json_proto [15:47:54]process_json_proto [15:47:54]json parsed OK: [15:47:54]protocol is kg_v1.0 [15:47:54]action value=close_receipt [15:47:54]process_action close_receipt [15:47:54]cmd_close_receipt [15:47:54]MH_GetDate [15:47:54]Write to MH i2c: F0 00 00 82 08 79 [15:47:54]Write i2c OK [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: F0 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: F0 09 00 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: F0 09 00 82 08 00 2D 4F 74 66 BC EC 60 65 45 [15:47:54]GetLastDocTimeStamp 1718898393 [15:47:54]current date 1718898477 [15:47:54]FM_GetShiftState [15:47:54]SAM_PROTO_GetShiftState [15:47:54]wFMCommunicate request_size=4 [15:47:54]MH_SAM_APDU [15:47:54]CAPDU: 80 13 01 00 [15:47:54]Write to MH i2c: E2 08 00 83 08 80 13 01 00 00 00 00 00 08 [15:47:54]Write i2c OK [15:47:54]MH_I2C_Read... [15:47:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:54]Read from MH i2c: E2 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: E2 0E 00 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: E2 0E 00 83 08 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 83 [15:47:54]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:47:54]wFMCommunicate OK [15:47:54]SAM_PROTO_GetShiftState done [15:47:54]FM_GetShiftState done [15:47:54]opened in 1718847247 [15:47:54]opened+sec_in_day 1718933647 [15:47:54]quantity*price = 66400 [15:47:54]sum+1 = 66401 [15:47:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 664.00 НСП 1% : 5.88 НДС 12% : 70.51 Наличными: 664.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 167 20.06.2024 15:47 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111717 ФПД: 152602246517042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T154757&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111717&fm=152602246517042&tin=02508201610067®Number=0000000000092771&sum=66400 [15:47:55]StoreToDocumentArchive [15:47:55]shift 389 fd 111717 [15:47:55]save to /storage/0389/doc_00111717 [15:47:55]save last doc name /storage/0389/doc_00111717 to /storage/kkm_last_doc_name [15:47:55]save OK [15:47:55]Clear old archive folders... [15:47:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:47:55]tlvbuf is 016FDAC0 [15:47:55]SAM_PROTO_ClearQueue [15:47:55]wFMCommunicate request_size=4 [15:47:55]MH_SAM_APDU [15:47:55]CAPDU: 80 09 00 00 [15:47:55]Write to MH i2c: E2 08 00 90 08 80 09 00 00 00 00 00 00 0A [15:47:55]Write i2c OK [15:47:55]MH_I2C_Read... [15:47:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:55]Read from MH i2c: E2 [15:47:55]MH_I2C_Read... [15:47:55]Read from MH i2c: E2 03 00 [15:47:55]MH_I2C_Read... [15:47:55]Read from MH i2c: E2 03 00 90 08 00 90 00 0C [15:47:55]RAPDU: 90 00 [15:47:55]wFMCommunicate OK [15:47:55]SAM_PROTO_ClearQueue done [15:47:55]KKMCreateOFDPacket [15:47:55]OFDProtocolAddRootSTLVToBuf [15:47:55]FM_MakeSignedData [15:47:55]FM_MakeSignedData [15:47:55]SAM_PROTO_SignData [15:47:55]wFMCommunicate request_size=4 [15:47:55]MH_SAM_APDU [15:47:55]CAPDU: 80 0D 01 02 [15:47:55]Write to MH i2c: E2 08 00 91 08 80 0D 01 02 00 00 00 00 12 [15:47:55]Write i2c OK [15:47:55]MH_I2C_Read... [15:47:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:55]Read from MH i2c: E2 [15:47:55]MH_I2C_Read... [15:47:55]Read from MH i2c: E2 03 00 [15:47:55]MH_I2C_Read... [15:47:55]Read from MH i2c: E2 03 00 91 08 00 90 00 0D [15:47:55]RAPDU: 90 00 [15:47:55]wFMCommunicate OK [15:47:55]wFMCommunicate request_size=255 [15:47:55]MH_SAM_APDU [15:47: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 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 2D 4F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 65 B4 01 00 35 04 06 00 8A [15:47:55]Write to MH i2c: E2 02 01 92 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 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 2D 4F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 65 B4 01 00 35 04 06 00 8A 00 00 A3 [15:47:55]Write i2c OK [15:47:55]MH_I2C_Read... [15:47:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:55]Read from MH i2c: E2 [15:47:55]MH_I2C_Read... [15:47:55]Read from MH i2c: E2 03 00 [15:47:55]MH_I2C_Read... [15:47:55]Read from MH i2c: E2 03 00 92 08 00 90 00 0E [15:47:55]RAPDU: 90 00 [15:47:55]wFMCommunicate OK [15:47:55]wFMCommunicate request_size=10 [15:47:55]MH_SAM_APDU [15:47:55]CAPDU: 80 0D 02 02 05 CA 7A B2 11 32 [15:47:55]Write to MH i2c: E2 0D 00 93 08 80 0D 02 02 05 00 CA 7A B2 11 32 00 00 58 [15:47:55]Write i2c OK [15:47:55]MH_I2C_Read... [15:47:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:56]Read from MH i2c: E2 [15:47:56]MH_I2C_Read... [15:47:56]Read from MH i2c: E2 03 00 [15:47:56]MH_I2C_Read... [15:47:56]Read from MH i2c: E2 03 00 93 08 00 90 00 0F [15:47:56]RAPDU: 90 00 [15:47:56]wFMCommunicate OK [15:47:56]wFMCommunicate request_size=4 [15:47:56]MH_SAM_APDU [15:47:56]CAPDU: 80 0D 03 02 [15:47:56]Write to MH i2c: E2 08 00 94 08 80 0D 03 02 00 00 00 00 17 [15:47:56]Write i2c OK [15:47:56]MH_I2C_Read... [15:47:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:56]Read from MH i2c: E2 [15:47:56]MH_I2C_Read... [15:47:56]Read from MH i2c: E2 0B 00 [15:47:56]MH_I2C_Read... [15:47:56]Read from MH i2c: E2 0B 00 94 08 00 E2 BA F4 9A ED F6 E7 59 90 00 65 [15:47:56]RAPDU: E2 BA F4 9A ED F6 E7 59 90 00 [15:47:56]wFMCommunicate OK [15:47:56]SAM_PROTO_SignData done [15:47:56]FM_MakeSignedData done [15:47:56]CreateOFDProtocolMessage [15:47:56]wFMCommunicate request_size=4 [15:47:56]MH_SAM_APDU [15:47:56]CAPDU: 80 11 00 00 [15:47:56]Write to MH i2c: E2 08 00 95 08 80 11 00 00 00 00 00 00 17 [15:47:56]Write i2c OK [15:47:56]MH_I2C_Read... [15:47:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:56]Read from MH i2c: E2 [15:47:56]MH_I2C_Read... [15:47:56]Read from MH i2c: E2 17 00 [15:47:56]MH_I2C_Read... [15:47:56]Read from MH i2c: E2 17 00 95 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 69 [15:47:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:47:56]wFMCommunicate OK [15:47:56]CreateOFDProtocolMessage done [15:47:56]OFDSenderStorePacket 111717 [15:47:56]StoreOFDPacket docnum=111717 [15:47:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E0 22 07 01 07 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 2D 4F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 65 B4 01 00 35 04 06 00 8A CA 7A B2 11 32 E2 BA F4 9A ED F6 E7 59 [15:47:56]CheckFolder [15:47:56]dirname=/storage/ofd_packets [15:47:56]CheckFolder done [15:47:56]ProducePacketName [15:47:56]name=ofd_packets/00111717 [15:47:56]NVStorageSaveData ofd_packets/00111717 [15:47:56]File name is /storage/ofd_packets/00111717 [15:47:56]Write 301 bytes [15:47:56]NVStorageSaveData done [15:47:56]OFDSenderStorePacket done [15:47:56]KKMCreateOFDPacket done [15:47:56]NVStorageSaveData kkm_last_timestamp [15:47:56]File name is /storage/kkm_last_timestamp [15:47:56]Write 4 bytes [15:47:56]NVStorageSaveData done [15:47:56]ExternCall_PrintAddStr [15:47:56]wPrintStart [15:47:56]Write to MH i2c: 01 00 00 96 08 9E [15:47:56]Write i2c OK [15:47:56]MH_I2C_Read... [15:47:56]Read from MH i2c: 01 [15:47:56]MH_I2C_Read... [15:47:56]Read from MH i2c: 01 07 00 [15:47:56]MH_I2C_Read... [15:47:56]Read from MH i2c: 01 07 00 96 08 00 00 00 00 00 FF 0F B3 [15:47:56]RasterBufferAndPrint [15:47:56]line Счет N : (1)320335 [15:47:56]line ИНН: 02508201610067 [15:47:56]line Контрольно-Кассовый Чек [15:47:56]line ПРОДАЖА [15:47:56]line ТРК (МРК, ГНК) : 11 [15:47:56]line Товар: 2710124130 [15:47:56]line Аи-92-К-5 [15:47:56]line 10.000 * 66.40 [15:47:56]line = 664.00 [15:47:56]line НДС 12% НСП 1% [15:47:56]line > о реализуемом товаре [15:47:56]line ИТОГО: 664.00 [15:47:56]line НСП 1% : 5.88 [15:47:56]line НДС 12% : 70.51 [15:47:56]line Наличными: 664.00 [15:47:56]line Безнал.: 0.00 [15:47:56]line Место: АЗС № 65 "Партнер Нефть" [15:47:56]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:47:56]line СНО: Общий режим [15:47:56]line Чек 167 20.06.2024 15:47 [15:47:56]line Смена: 389 ФФД: 1.0 [15:47:56]line ЗНМ: 0300000198 [15:47:56]line РНМ: 0000000000092771 [15:47:56]line Версия ККМ: 001 [15:47:56]line ФМ: 0000000000875083 [15:47:56]line ФД: 111717 [15:47:56]line ФПД: 152602246517042 [15:47:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T154757&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111717&fm=152602246517042&tin=02508201610067®Number=0000000000092771&sum=66400 [15:47:56]OFD Sender: Processing packet 111717 [packets to send 38, broken 37] [15:47:56]ProducePacketName [15:47:56]name=ofd_packets/00111717 [15:47:56]OFD Sender: To server: pG, [15:47:56]CommunicateWithHost lk.salyk.kg:30040 [15:47:56]ConnectInit lk.salyk.kg [15:47:56]written 0, free lines is 4095 [15:47:56]Connected sock=10 [15:47:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E0 22 07 01 07 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 2D 4F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 65 B4 01 00 35 04 06 00 8A CA 7A B2 11 32 E2 BA F4 9A ED F6 E7 59 [15:47:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 BC 39 47 00 6A 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 65 B4 01 00 F4 03 04 00 73 E6 73 66 B6 04 01 00 00 B9 CA DA 1D CF 67 E3 AC [15:47:56]CommunicateWithHost err = 0 [15:47:56]CheckOFDResponse [15:47:56]1017 (14) - 77093643461234 [15:47:56]1041 (16) - 0000000000875083 [15:47:56]1040 (4) - 111717 [15:47:56]1012 (4) - 20.06.2024 08:21 [15:47:56]1206 (1) - 0 [15:47:56]OFD Sender: Remove packet 111717 [15:47:56]ProducePacketName [15:47:56]name=ofd_packets/00111717 [15:47:56]NVStorageDeleteData [15:47:56]Write to MH i2c: 01 00 00 BE 08 C6 [15:47:56]Write i2c OK [15:47:56]MH_I2C_Read... [15:47:56]Read from MH i2c: 01 [15:47:56]MH_I2C_Read... [15:47:56]Read from MH i2c: 01 07 00 [15:47:56]MH_I2C_Read... [15:47:56]Read from MH i2c: 01 07 00 BE 08 00 00 00 00 00 04 0D DE [15:47:56]RasterBufferAndPrint [15:47:56]line [15:47:56]line [15:47:56]line [15:47:56]line [15:47:56]line [15:47:56]written 0, free lines is 3340 [15:47:56]MH_Cut [15:47:56]Write to MH i2c: D1 01 00 C5 08 01 9F [15:47:56]Write i2c OK [15:47:56]MH_I2C_Read... [15:47:56]Read from MH i2c: D1 [15:47:56]MH_I2C_Read... [15:47:56]Read from MH i2c: D1 01 00 [15:47:56]MH_I2C_Read... [15:47:56]Read from MH i2c: D1 01 00 C5 08 00 9E [15:47:56]Write to MH i2c: 01 00 00 C6 08 CE [15:47:56]Write i2c OK [15:47:56]MH_I2C_Read... [15:47:57]OFD Sender: No OFD packet to send [15:47:57]*** Cut start [15:47:57]*** Partial cut [15:47:57]*** CUTSNS_PIN = 1 [15:47:57]*** CUTSNS_PIN = 0 [15:47:57]*** Brake cut motor [15:47:58]Read from MH i2c: 01 [15:47:58]MH_I2C_Read... [15:47:58]*** Stop cut motor [15:47:58]*** Cut end [15:47:58]Read from MH i2c: 01 07 00 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: 01 07 00 C6 08 00 00 00 00 00 FF 0F E3 [15:47:58]process_action close_receipt done [15:47:58]requested_data is exist [15:47:58]produce_requested_data [15:47:58]requested_item fm.sn is exist - process it [15:47:58]wFMCommunicate request_size=4 [15:47:58]MH_SAM_APDU [15:47:58]CAPDU: 80 11 00 00 [15:47:58]Write to MH i2c: E2 08 00 C7 08 80 11 00 00 00 00 00 00 49 [15:47:58]Write i2c OK [15:47:58]MH_I2C_Read... [15:47:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:58]Read from MH i2c: E2 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: E2 17 00 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: E2 17 00 C7 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9B [15:47:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:47:58]wFMCommunicate OK [15:47:58]requested_item fd.num is exist - process it [15:47:58]SAM_PROTO_GetFieldsCounters [15:47:58]wFMCommunicate request_size=4 [15:47:58]MH_SAM_APDU [15:47:58]CAPDU: 80 13 00 00 [15:47:58]Write to MH i2c: E2 08 00 C8 08 80 13 00 00 00 00 00 00 4C [15:47:58]Write i2c OK [15:47:58]MH_I2C_Read... [15:47:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:58]Read from MH i2c: E2 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: E2 62 00 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: E2 62 00 C8 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 65 B4 01 00 0E 04 04 00 85 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 02 [15:47:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 65 B4 01 00 0E 04 04 00 85 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 [15:47:58]wFMCommunicate OK [15:47:58]SAM_PROTO_GetFieldsCounters done [15:47:58]requested_item shift.num is exist - process it [15:47:58]requested_item shift.opened is exist - process it [15:47:58]req_shift_opened [15:47:58]FM_GetShiftState [15:47:58]SAM_PROTO_GetShiftState [15:47:58]wFMCommunicate request_size=4 [15:47:58]MH_SAM_APDU [15:47:58]CAPDU: 80 13 01 00 [15:47:58]Write to MH i2c: E2 08 00 C9 08 80 13 01 00 00 00 00 00 4E [15:47:58]Write i2c OK [15:47:58]MH_I2C_Read... [15:47:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:58]Read from MH i2c: E2 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: E2 0E 00 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: E2 0E 00 C9 08 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 C9 [15:47:58]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:47:58]wFMCommunicate OK [15:47:58]SAM_PROTO_GetShiftState done [15:47:58]FM_GetShiftState done [15:47:58]req_shift_opened done [15:47:58]requested_item shift.open_date is exist - process it [15:47:58]req_shift_open_date [15:47:58]req_shift_open_date done [15:47:58]produce_requested_data done [15:47:58]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111717,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [15:47:58]process_action_free close_receipt [15:47:58]json_value_free [15:47:58]json_value_free done [15:47:58]process_json_proto returns [15:47:58]Send response to host [15:47:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111717,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [15:47:58]free response buf [15:47:58]execute_script done [15:47:58]execute_script returns [15:47:58]free content buf [15:47:58]Sock 9.Close socket [15:47:58]Sock 9.Thread stoped [15:48:02]OFD Sender: No OFD packet to send [15:48:07]OFD Sender: No OFD packet to send [15:48:12]OFD Sender: No OFD packet to send [15:48:17]OFD Sender: No OFD packet to send [15:48:22]OFD Sender: No OFD packet to send [15:48:27]OFD Sender: No OFD packet to send [15:48:32]OFD Sender: No OFD packet to send [15:48:37]OFD Sender: No OFD packet to send [15:48:37]accept exits with 7 [15:48:37]New connection [15:48:37]New thread 3067321700 created [15:48:37]Thread 3067178340 joined [15:48:37]Waiting for new connection... [15:48:37] Sock 7.Parse request [15:48:37]Sock 7.Check first char [15:48:37]Sock 7.First char is OK [15:48:37]request: POST /json_proto HTTP/1.0 [15:48:37]Method: POST [15:48:37]URL: /json_proto [15:48:37]Method is POST - this is cgi request [15:48:37]url: /json_proto [15:48:37]query_string will be loaded in cgi processing [15:48:37]execute_cgi json_proto POST (null) [15:48:37]execute_cgi path=json_proto method=POST [15:48:37]POST find Content-Length [15:48:37]Host: 172.17.59.68:8080 [15:48:37]Content-Length: 677 [15:48:37]Content-Type: application/json [15:48:37] [15:48:37]POST finish read [15:48:37]Found Content-Length = 677 [15:48:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:37]execute_script... [15:48: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)320336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:37]POST & json_proto [15:48:37]process_json_proto [15:48:37]json parsed OK: [15:48:37]protocol is kg_v1.0 [15:48:37]action value=close_receipt [15:48:37]process_action close_receipt [15:48:37]cmd_close_receipt [15:48:37]MH_GetDate [15:48:37]Write to MH i2c: F0 00 00 CA 08 C1 [15:48:37]Write i2c OK [15:48:37]MH_I2C_Read... [15:48:37]Read from MH i2c: F0 [15:48:37]MH_I2C_Read... [15:48:37]Read from MH i2c: F0 09 00 [15:48:37]MH_I2C_Read... [15:48:37]Read from MH i2c: F0 09 00 CA 08 00 58 4F 74 66 BC EC 60 65 B8 [15:48:37]GetLastDocTimeStamp 1718898477 [15:48:37]current date 1718898520 [15:48:37]FM_GetShiftState [15:48:37]SAM_PROTO_GetShiftState [15:48:37]wFMCommunicate request_size=4 [15:48:37]MH_SAM_APDU [15:48:37]CAPDU: 80 13 01 00 [15:48:37]Write to MH i2c: E2 08 00 CB 08 80 13 01 00 00 00 00 00 50 [15:48:37]Write i2c OK [15:48:37]MH_I2C_Read... [15:48:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:37]Read from MH i2c: E2 [15:48:37]MH_I2C_Read... [15:48:37]Read from MH i2c: E2 0E 00 [15:48:37]MH_I2C_Read... [15:48:37]Read from MH i2c: E2 0E 00 CB 08 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 CB [15:48:37]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:48:37]wFMCommunicate OK [15:48:37]SAM_PROTO_GetShiftState done [15:48:37]FM_GetShiftState done [15:48:37]opened in 1718847247 [15:48:37]opened+sec_in_day 1718933647 [15:48:37]quantity*price = 30012 [15:48:37]sum+1 = 30014 [15:48:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 168 20.06.2024 15:48 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111718 ФПД: 191431824563527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T154840&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111718&fm=191431824563527&tin=02508201610067®Number=0000000000092771&sum=30000 [15:48:38]StoreToDocumentArchive [15:48:38]shift 389 fd 111718 [15:48:38]save to /storage/0389/doc_00111718 [15:48:38]save last doc name /storage/0389/doc_00111718 to /storage/kkm_last_doc_name [15:48:38]save OK [15:48:38]Clear old archive folders... [15:48:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:48:38]tlvbuf is 016E8BE0 [15:48:38]SAM_PROTO_ClearQueue [15:48:38]wFMCommunicate request_size=4 [15:48:38]MH_SAM_APDU [15:48:38]CAPDU: 80 09 00 00 [15:48:38]Write to MH i2c: E2 08 00 D8 08 80 09 00 00 00 00 00 00 52 [15:48:38]Write i2c OK [15:48:38]MH_I2C_Read... [15:48:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:48:38]Read from MH i2c: E2 [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: E2 03 00 [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: E2 03 00 D8 08 00 90 00 54 [15:48:38]RAPDU: 90 00 [15:48:38]wFMCommunicate OK [15:48:38]SAM_PROTO_ClearQueue done [15:48:38]KKMCreateOFDPacket [15:48:38]OFDProtocolAddRootSTLVToBuf [15:48:38]FM_MakeSignedData [15:48:38]FM_MakeSignedData [15:48:38]SAM_PROTO_SignData [15:48:38]wFMCommunicate request_size=4 [15:48:38]MH_SAM_APDU [15:48:38]CAPDU: 80 0D 01 02 [15:48:38]Write to MH i2c: E2 08 00 D9 08 80 0D 01 02 00 00 00 00 5A [15:48:38]Write i2c OK [15:48:38]MH_I2C_Read... [15:48:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:48:38]Read from MH i2c: E2 [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: E2 03 00 [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: E2 03 00 D9 08 00 90 00 55 [15:48:38]RAPDU: 90 00 [15:48:38]wFMCommunicate OK [15:48:38]wFMCommunicate request_size=255 [15:48:38]MH_SAM_APDU [15:48: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 58 4F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 66 B4 01 00 35 04 06 00 AE [15:48:38]Write to MH i2c: E2 02 01 DA 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 58 4F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 66 B4 01 00 35 04 06 00 AE 00 00 24 [15:48:38]Write i2c OK [15:48:38]MH_I2C_Read... [15:48:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:39]Read from MH i2c: E2 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 03 00 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 03 00 DA 08 00 90 00 56 [15:48:39]RAPDU: 90 00 [15:48:39]wFMCommunicate OK [15:48:39]wFMCommunicate request_size=10 [15:48:39]MH_SAM_APDU [15:48:39]CAPDU: 80 0D 02 02 05 1B 31 E6 DD 47 [15:48:39]Write to MH i2c: E2 0D 00 DB 08 80 0D 02 02 05 00 1B 31 E6 DD 47 00 00 BD [15:48:39]Write i2c OK [15:48:39]MH_I2C_Read... [15:48:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:39]Read from MH i2c: E2 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 03 00 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 03 00 DB 08 00 90 00 57 [15:48:39]RAPDU: 90 00 [15:48:39]wFMCommunicate OK [15:48:39]wFMCommunicate request_size=4 [15:48:39]MH_SAM_APDU [15:48:39]CAPDU: 80 0D 03 02 [15:48:39]Write to MH i2c: E2 08 00 DC 08 80 0D 03 02 00 00 00 00 5F [15:48:39]Write i2c OK [15:48:39]MH_I2C_Read... [15:48:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:48:39]Read from MH i2c: E2 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 0B 00 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 0B 00 DC 08 00 80 B2 59 98 76 44 A6 52 90 00 35 [15:48:39]RAPDU: 80 B2 59 98 76 44 A6 52 90 00 [15:48:39]wFMCommunicate OK [15:48:39]SAM_PROTO_SignData done [15:48:39]FM_MakeSignedData done [15:48:39]CreateOFDProtocolMessage [15:48:39]wFMCommunicate request_size=4 [15:48:39]MH_SAM_APDU [15:48:39]CAPDU: 80 11 00 00 [15:48:39]Write to MH i2c: E2 08 00 DD 08 80 11 00 00 00 00 00 00 5F [15:48:39]Write i2c OK [15:48:39]MH_I2C_Read... [15:48:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:39]Read from MH i2c: E2 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 17 00 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 17 00 DD 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B1 [15:48:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:48:39]wFMCommunicate OK [15:48:39]CreateOFDProtocolMessage done [15:48:39]OFDSenderStorePacket 111718 [15:48:39]StoreOFDPacket docnum=111718 [15:48:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 09 F2 07 01 37 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 58 4F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 66 B4 01 00 35 04 06 00 AE 1B 31 E6 DD 47 80 B2 59 98 76 44 A6 52 [15:48:39]CheckFolder [15:48:39]dirname=/storage/ofd_packets [15:48:39]CheckFolder done [15:48:39]ProducePacketName [15:48:39]name=ofd_packets/00111718 [15:48:39]NVStorageSaveData ofd_packets/00111718 [15:48:39]File name is /storage/ofd_packets/00111718 [15:48:39]Write 301 bytes [15:48:39]NVStorageSaveData done [15:48:39]OFDSenderStorePacket done [15:48:39]KKMCreateOFDPacket done [15:48:39]NVStorageSaveData kkm_last_timestamp [15:48:39]File name is /storage/kkm_last_timestamp [15:48:39]Write 4 bytes [15:48:39]NVStorageSaveData done [15:48:39]ExternCall_PrintAddStr [15:48:39]wPrintStart [15:48:39]Write to MH i2c: 01 00 00 DE 08 E6 [15:48:39]Write i2c OK [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: 01 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: 01 07 00 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: 01 07 00 DE 08 00 00 00 00 00 FF 0F FB [15:48:39]RasterBufferAndPrint [15:48:39]line Счет N : (1)320336 [15:48:39]line ИНН: 02508201610067 [15:48:39]line Контрольно-Кассовый Чек [15:48:39]line ПРОДАЖА [15:48:39]line ТРК (МРК, ГНК) : 11 [15:48:39]line Товар: 2710124130 [15:48:39]line Аи-92-К-5 [15:48:39]line 4.520 * 66.40 [15:48:39]line = 300.13 [15:48:39]line НДС 12% НСП 1% [15:48:39]line > о реализуемом товаре [15:48:39]line ОКРУГЛЕНИЕ: -0.13 [15:48:39]line ИТОГО: 300.00 [15:48:39]line Внесено: 300.00 [15:48:39]line СДАЧА: 0.00 [15:48:39]OFD Sender: Processing packet 111718 [packets to send 38, broken 37] [15:48:39]ProducePacketName [15:48:39]name=ofd_packets/00111718 [15:48:39]OFD Sender: To server: pG, [15:48:39]CommunicateWithHost lk.salyk.kg:30040 [15:48:39]ConnectInit lk.salyk.kg [15:48:39]line НСП 1% : 2.66 [15:48:39]line НДС 12% : 31.87 [15:48:39]line Наличными: 300.00 [15:48:39]line Безнал.: 0.00 [15:48:39]line Место: АЗС № 65 "Партнер Нефть" [15:48:39]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:48:39]line СНО: Общий режим [15:48:39]line Чек 168 20.06.2024 15:48 [15:48:39]line Смена: 389 ФФД: 1.0 [15:48:39]line ЗНМ: 0300000198 [15:48:39]line РНМ: 0000000000092771 [15:48:39]line Версия ККМ: 001 [15:48:39]line ФМ: 0000000000875083 [15:48:39]line ФД: 111718 [15:48:39]line ФПД: 191431824563527 [15:48:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T154840&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111718&fm=191431824563527&tin=02508201610067®Number=0000000000092771&sum=30000 [15:48:39]written 0, free lines is 4095 [15:48:39]Connected sock=11 [15:48:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 09 F2 07 01 37 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 58 4F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 66 B4 01 00 35 04 06 00 AE 1B 31 E6 DD 47 80 B2 59 98 76 44 A6 52 [15:48:39]Write to MH i2c: 01 00 00 09 09 12 [15:48:39]Write i2c OK [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: 01 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: 01 07 00 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: 01 07 00 09 09 00 00 00 00 00 D4 0C F9 [15:48:39]RasterBufferAndPrint [15:48:39]line [15:48:39]line [15:48:39]line [15:48:39]line [15:48:39]line [15:48:39]written 0, free lines is 3288 [15:48:39]MH_Cut [15:48:39]Write to MH i2c: D1 01 00 10 09 01 EB [15:48:39]Write i2c OK [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: D1 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: D1 01 00 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: D1 01 00 10 09 00 EA [15:48:39]Write to MH i2c: 01 00 00 11 09 1A [15:48:39]Write i2c OK [15:48:39]MH_I2C_Read... [15:48:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3E 65 47 00 08 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 66 B4 01 00 F4 03 04 00 9E E6 73 66 B6 04 01 00 00 43 A0 9F 46 16 9A 13 03 [15:48:39]CommunicateWithHost err = 0 [15:48:39]CheckOFDResponse [15:48:39]1017 (14) - 77093643461234 [15:48:39]1041 (16) - 0000000000875083 [15:48:39]1040 (4) - 111718 [15:48:39]1012 (4) - 20.06.2024 08:21 [15:48:39]1206 (1) - 0 [15:48:39]OFD Sender: Remove packet 111718 [15:48:39]ProducePacketName [15:48:39]name=ofd_packets/00111718 [15:48:39]NVStorageDeleteData [15:48:40]OFD Sender: No OFD packet to send [15:48:40]*** Cut start [15:48:40]*** Partial cut [15:48:40]*** CUTSNS_PIN = 1 [15:48:40]*** CUTSNS_PIN = 0 [15:48:40]*** Brake cut motor [15:48:40]Read from MH i2c: 01 [15:48:40]MH_I2C_Read... [15:48:40]*** Stop cut motor [15:48:40]*** Cut end [15:48:40]Read from MH i2c: 01 07 00 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: 01 07 00 11 09 00 00 00 00 00 FF 0F 2F [15:48:40]process_action close_receipt done [15:48:40]requested_data is exist [15:48:40]produce_requested_data [15:48:40]requested_item fm.sn is exist - process it [15:48:40]wFMCommunicate request_size=4 [15:48:40]MH_SAM_APDU [15:48:40]CAPDU: 80 11 00 00 [15:48:40]Write to MH i2c: E2 08 00 12 09 80 11 00 00 00 00 00 00 95 [15:48:40]Write i2c OK [15:48:40]MH_I2C_Read... [15:48:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:41]Read from MH i2c: E2 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: E2 17 00 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: E2 17 00 12 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E7 [15:48:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:48:41]wFMCommunicate OK [15:48:41]requested_item fd.num is exist - process it [15:48:41]SAM_PROTO_GetFieldsCounters [15:48:41]wFMCommunicate request_size=4 [15:48:41]MH_SAM_APDU [15:48:41]CAPDU: 80 13 00 00 [15:48:41]Write to MH i2c: E2 08 00 13 09 80 13 00 00 00 00 00 00 98 [15:48:41]Write i2c OK [15:48:41]MH_I2C_Read... [15:48:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:41]Read from MH i2c: E2 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: E2 62 00 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: E2 62 00 13 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 66 B4 01 00 0E 04 04 00 85 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 52 [15:48:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 66 B4 01 00 0E 04 04 00 85 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 [15:48:41]wFMCommunicate OK [15:48:41]SAM_PROTO_GetFieldsCounters done [15:48:41]requested_item shift.num is exist - process it [15:48:41]requested_item shift.opened is exist - process it [15:48:41]req_shift_opened [15:48:41]FM_GetShiftState [15:48:41]SAM_PROTO_GetShiftState [15:48:41]wFMCommunicate request_size=4 [15:48:41]MH_SAM_APDU [15:48:41]CAPDU: 80 13 01 00 [15:48:41]Write to MH i2c: E2 08 00 14 09 80 13 01 00 00 00 00 00 9A [15:48:41]Write i2c OK [15:48:41]MH_I2C_Read... [15:48:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:41]Read from MH i2c: E2 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: E2 0E 00 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: E2 0E 00 14 09 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 15 [15:48:41]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:48:41]wFMCommunicate OK [15:48:41]SAM_PROTO_GetShiftState done [15:48:41]FM_GetShiftState done [15:48:41]req_shift_opened done [15:48:41]requested_item shift.open_date is exist - process it [15:48:41]req_shift_open_date [15:48:41]req_shift_open_date done [15:48:41]produce_requested_data done [15:48:41]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111718,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [15:48:41]process_action_free close_receipt [15:48:41]json_value_free [15:48:41]json_value_free done [15:48:41]process_json_proto returns [15:48:41]Send response to host [15:48:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111718,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [15:48:41]free response buf [15:48:41]execute_script done [15:48:41]execute_script returns [15:48:41]free content buf [15:48:41]Sock 7.Close socket [15:48:41]Sock 7.Thread stoped [15:48:45]OFD Sender: No OFD packet to send [15:48:50]OFD Sender: No OFD packet to send [15:48:55]OFD Sender: No OFD packet to send [15:49:00]OFD Sender: No OFD packet to send [15:49:05]OFD Sender: No OFD packet to send [15:49:10]OFD Sender: No OFD packet to send [15:49:15]OFD Sender: No OFD packet to send [15:49:20]OFD Sender: No OFD packet to send [15:49:25]OFD Sender: No OFD packet to send [15:49:30]OFD Sender: No OFD packet to send [15:49:35]OFD Sender: No OFD packet to send [15:49:40]OFD Sender: No OFD packet to send [15:49:45]OFD Sender: No OFD packet to send [15:49:50]OFD Sender: No OFD packet to send [15:49:55]OFD Sender: No OFD packet to send [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:51:57]accept exits with 9 [15:51:57]New connection [15:51:57]New thread 3067178340 created [15:51:57]Thread 3067321700 joined [15:51:57]Waiting for new connection... [15:51:57] Sock 9.Parse request [15:51:57]Sock 9.Check first char [15:51:57]Sock 9.First char is OK [15:51:57]request: POST /json_proto HTTP/1.0 [15:51:57]Method: POST [15:51:57]URL: /json_proto [15:51:57]Method is POST - this is cgi request [15:51:57]url: /json_proto [15:51:57]query_string will be loaded in cgi processing [15:51:57]execute_cgi json_proto POST (null) [15:51:57]execute_cgi path=json_proto method=POST [15:51:57]POST find Content-Length [15:51:57]Host: 172.17.59.68:8080 [15:51:57]Content-Length: 677 [15:51:57]Content-Type: application/json [15:51:57] [15:51:57]POST finish read [15:51:57]Found Content-Length = 677 [15:51:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:57]execute_script... [15:51:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:57]POST & json_proto [15:51:57]process_json_proto [15:51:57]json parsed OK: [15:51:57]protocol is kg_v1.0 [15:51:57]action value=close_receipt [15:51:57]process_action close_receipt [15:51:57]cmd_close_receipt [15:51:57]MH_GetDate [15:51:57]Write to MH i2c: F0 00 00 15 09 0D [15:51:57]Write i2c OK [15:51:57]MH_I2C_Read... [15:51:57]Read from MH i2c: F0 [15:51:57]MH_I2C_Read... [15:51:57]Read from MH i2c: F0 09 00 [15:51:57]MH_I2C_Read... [15:51:57]Read from MH i2c: F0 09 00 15 09 00 20 50 74 66 BC EC 60 65 CD [15:51:57]GetLastDocTimeStamp 1718898520 [15:51:57]current date 1718898720 [15:51:57]FM_GetShiftState [15:51:57]SAM_PROTO_GetShiftState [15:51:57]wFMCommunicate request_size=4 [15:51:57]MH_SAM_APDU [15:51:57]CAPDU: 80 13 01 00 [15:51:57]Write to MH i2c: E2 08 00 16 09 80 13 01 00 00 00 00 00 9C [15:51:57]Write i2c OK [15:51:57]MH_I2C_Read... [15:51:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:57]Read from MH i2c: E2 [15:51:57]MH_I2C_Read... [15:51:57]Read from MH i2c: E2 0E 00 [15:51:57]MH_I2C_Read... [15:51:57]Read from MH i2c: E2 0E 00 16 09 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 17 [15:51:57]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:51:57]wFMCommunicate OK [15:51:57]SAM_PROTO_GetShiftState done [15:51:57]FM_GetShiftState done [15:51:57]opened in 1718847247 [15:51:57]opened+sec_in_day 1718933647 [15:51:57]quantity*price = 50065 [15:51:57]sum+1 = 50067 [15:51:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 169 20.06.2024 15:52 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111719 ФПД: 152318255631653 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T155200&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111719&fm=152318255631653&tin=02508201610067®Number=0000000000092771&sum=50000 [15:51:58]StoreToDocumentArchive [15:51:58]shift 389 fd 111719 [15:51:58]save to /storage/0389/doc_00111719 [15:51:58]save last doc name /storage/0389/doc_00111719 to /storage/kkm_last_doc_name [15:51:58]save OK [15:51:58]Clear old archive folders... [15:51:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:51:58]tlvbuf is 0173D660 [15:51:58]SAM_PROTO_ClearQueue [15:51:58]wFMCommunicate request_size=4 [15:51:58]MH_SAM_APDU [15:51:58]CAPDU: 80 09 00 00 [15:51:58]Write to MH i2c: E2 08 00 23 09 80 09 00 00 00 00 00 00 9E [15:51:58]Write i2c OK [15:51:58]MH_I2C_Read... [15:51:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:51:58]Read from MH i2c: E2 [15:51:58]MH_I2C_Read... [15:51:58]Read from MH i2c: E2 03 00 [15:51:58]MH_I2C_Read... [15:51:58]Read from MH i2c: E2 03 00 23 09 00 90 00 A0 [15:51:58]RAPDU: 90 00 [15:51:58]wFMCommunicate OK [15:51:58]SAM_PROTO_ClearQueue done [15:51:58]KKMCreateOFDPacket [15:51:58]OFDProtocolAddRootSTLVToBuf [15:51:58]FM_MakeSignedData [15:51:58]FM_MakeSignedData [15:51:58]SAM_PROTO_SignData [15:51:58]wFMCommunicate request_size=4 [15:51:58]MH_SAM_APDU [15:51:58]CAPDU: 80 0D 01 02 [15:51:58]Write to MH i2c: E2 08 00 24 09 80 0D 01 02 00 00 00 00 A6 [15:51:58]Write i2c OK [15:51:58]MH_I2C_Read... [15:51:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:51:58]Read from MH i2c: E2 [15:51:58]MH_I2C_Read... [15:51:58]Read from MH i2c: E2 03 00 [15:51:58]MH_I2C_Read... [15:51:58]Read from MH i2c: E2 03 00 24 09 00 90 00 A1 [15:51:58]RAPDU: 90 00 [15:51:58]wFMCommunicate OK [15:51:58]wFMCommunicate request_size=255 [15:51:58]MH_SAM_APDU [15:51:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 20 50 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 67 B4 01 00 35 04 06 00 8A [15:51:58]Write to MH i2c: E2 02 01 25 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 20 50 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 67 B4 01 00 35 04 06 00 8A 00 00 79 [15:51:58]Write i2c OK [15:51:58]MH_I2C_Read... [15:51:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:58]Read from MH i2c: E2 [15:51:58]MH_I2C_Read... [15:51:58]Read from MH i2c: E2 03 00 [15:51:58]MH_I2C_Read... [15:51:58]Read from MH i2c: E2 03 00 25 09 00 90 00 A2 [15:51:58]RAPDU: 90 00 [15:51:58]wFMCommunicate OK [15:51:58]wFMCommunicate request_size=10 [15:51:58]MH_SAM_APDU [15:51:58]CAPDU: 80 0D 02 02 05 88 5B 85 0D 25 [15:51:58]Write to MH i2c: E2 0D 00 26 09 80 0D 02 02 05 00 88 5B 85 0D 25 00 00 4D [15:51:58]Write i2c OK [15:51:58]MH_I2C_Read... [15:51:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:58]Read from MH i2c: E2 [15:51:58]MH_I2C_Read... [15:51:58]Read from MH i2c: E2 03 00 [15:51:58]MH_I2C_Read... [15:51:58]Read from MH i2c: E2 03 00 26 09 00 90 00 A3 [15:51:58]RAPDU: 90 00 [15:51:58]wFMCommunicate OK [15:51:58]wFMCommunicate request_size=4 [15:51:58]MH_SAM_APDU [15:51:58]CAPDU: 80 0D 03 02 [15:51:58]Write to MH i2c: E2 08 00 27 09 80 0D 03 02 00 00 00 00 AB [15:51:58]Write i2c OK [15:51:58]MH_I2C_Read... [15:51:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:51:59]Read from MH i2c: E2 [15:51:59]MH_I2C_Read... [15:51:59]Read from MH i2c: E2 0B 00 [15:51:59]MH_I2C_Read... [15:51:59]Read from MH i2c: E2 0B 00 27 09 00 7E F0 8A 8E D9 79 4C 96 90 00 66 [15:51:59]RAPDU: 7E F0 8A 8E D9 79 4C 96 90 00 [15:51:59]wFMCommunicate OK [15:51:59]SAM_PROTO_SignData done [15:51:59]FM_MakeSignedData done [15:51:59]CreateOFDProtocolMessage [15:51:59]wFMCommunicate request_size=4 [15:51:59]MH_SAM_APDU [15:51:59]CAPDU: 80 11 00 00 [15:51:59]Write to MH i2c: E2 08 00 28 09 80 11 00 00 00 00 00 00 AB [15:51:59]Write i2c OK [15:51:59]MH_I2C_Read... [15:51:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:59]Read from MH i2c: E2 [15:51:59]MH_I2C_Read... [15:51:59]Read from MH i2c: E2 17 00 [15:51:59]MH_I2C_Read... [15:51:59]Read from MH i2c: E2 17 00 28 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FD [15:51:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:51:59]wFMCommunicate OK [15:51:59]CreateOFDProtocolMessage done [15:51:59]OFDSenderStorePacket 111719 [15:51:59]StoreOFDPacket docnum=111719 [15:51:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9A EF 07 01 7C 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 20 50 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 67 B4 01 00 35 04 06 00 8A 88 5B 85 0D 25 7E F0 8A 8E D9 79 4C 96 [15:51:59]CheckFolder [15:51:59]dirname=/storage/ofd_packets [15:51:59]CheckFolder done [15:51:59]ProducePacketName [15:51:59]name=ofd_packets/00111719 [15:51:59]NVStorageSaveData ofd_packets/00111719 [15:51:59]File name is /storage/ofd_packets/00111719 [15:51:59]Write 301 bytes [15:51:59]NVStorageSaveData done [15:51:59]OFDSenderStorePacket done [15:51:59]KKMCreateOFDPacket done [15:51:59]NVStorageSaveData kkm_last_timestamp [15:51:59]File name is /storage/kkm_last_timestamp [15:51:59]Write 4 bytes [15:51:59]NVStorageSaveData done [15:51:59]ExternCall_PrintAddStr [15:51:59]wPrintStart [15:51:59]Write to MH i2c: 01 00 00 29 09 32 [15:51:59]Write i2c OK [15:51:59]MH_I2C_Read... [15:51:59]Read from MH i2c: 01 [15:51:59]MH_I2C_Read... [15:51:59]Read from MH i2c: 01 07 00 [15:51:59]MH_I2C_Read... [15:51:59]Read from MH i2c: 01 07 00 29 09 00 00 00 00 00 FF 0F 47 [15:51:59]RasterBufferAndPrint [15:51:59]line Счет N : (1)320337 [15:51:59]line ИНН: 02508201610067 [15:51:59]line Контрольно-Кассовый Чек [15:51:59]line ПРОДАЖА [15:51:59]line ТРК (МРК, ГНК) : 11 [15:51:59]line Товар: 2710124130 [15:51:59]line Аи-92-К-5 [15:51:59]line 7.540 * 66.40 [15:51:59]line = 500.66 [15:51:59]line НДС 12% НСП 1% [15:51:59]line > о реализуемом товаре [15:51:59]line ОКРУГЛЕНИЕ: -0.66 [15:51:59]line ИТОГО: 500.00 [15:51:59]line Внесено: 500.00 [15:51:59]line СДАЧА: 0.00 [15:51:59]line НСП 1% : 4.43 [15:51:59]line НДС 12% : 53.17 [15:51:59]line Наличными: 500.00 [15:51:59]line Безнал.: 0.00 [15:51:59]line Место: АЗС № 65 "Партнер Нефть" [15:51:59]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:51:59]line СНО: Общий режим [15:51:59]line Чек 169 20.06.2024 15:52 [15:51:59]line Смена: 389 ФФД: 1.0 [15:51:59]line ЗНМ: 0300000198 [15:51:59]line РНМ: 0000000000092771 [15:51:59]line Версия ККМ: 001 [15:51:59]line ФМ: 0000000000875083 [15:51:59]line ФД: 111719 [15:51:59]line ФПД: 152318255631653 [15:51:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T155200&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111719&fm=152318255631653&tin=02508201610067®Number=0000000000092771&sum=50000 [15:51:59]OFD Sender: Processing packet 111719 [packets to send 38, broken 37] [15:51:59]ProducePacketName [15:51:59]name=ofd_packets/00111719 [15:51:59]OFD Sender: To server: pG, [15:51:59]CommunicateWithHost lk.salyk.kg:30040 [15:51:59]ConnectInit lk.salyk.kg [15:51:59]written 0, free lines is 4095 [15:51:59]Connected sock=10 [15:51:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9A EF 07 01 7C 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 20 50 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 67 B4 01 00 35 04 06 00 8A 88 5B 85 0D 25 7E F0 8A 8E D9 79 4C 96 [15:51:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 80 55 47 00 03 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 67 B4 01 00 F4 03 04 00 66 E7 73 66 B6 04 01 00 00 30 FA 0C E9 C3 BC D8 11 [15:51:59]CommunicateWithHost err = 0 [15:51:59]CheckOFDResponse [15:51:59]1017 (14) - 77093643461234 [15:51:59]1041 (16) - 0000000000875083 [15:51:59]1040 (4) - 111719 [15:51:59]1012 (4) - 20.06.2024 08:25 [15:51:59]1206 (1) - 0 [15:51:59]OFD Sender: Remove packet 111719 [15:51:59]ProducePacketName [15:51:59]name=ofd_packets/00111719 [15:51:59]NVStorageDeleteData [15:51:59]Write to MH i2c: 01 00 00 54 09 5D [15:51:59]Write i2c OK [15:51:59]MH_I2C_Read... [15:51:59]Read from MH i2c: 01 [15:51:59]MH_I2C_Read... [15:51:59]Read from MH i2c: 01 07 00 [15:51:59]MH_I2C_Read... [15:51:59]Read from MH i2c: 01 07 00 54 09 00 00 00 00 00 DC 0C 4C [15:51:59]RasterBufferAndPrint [15:51:59]line [15:51:59]line [15:51:59]line [15:51:59]line [15:51:59]line [15:51:59]written 0, free lines is 3298 [15:51:59]MH_Cut [15:51:59]Write to MH i2c: D1 01 00 5B 09 01 36 [15:51:59]Write i2c OK [15:51:59]MH_I2C_Read... [15:51:59]Read from MH i2c: D1 [15:51:59]MH_I2C_Read... [15:51:59]Read from MH i2c: D1 01 00 [15:51:59]MH_I2C_Read... [15:51:59]Read from MH i2c: D1 01 00 5B 09 00 35 [15:51:59]Write to MH i2c: 01 00 00 5C 09 65 [15:51:59]Write i2c OK [15:51:59]MH_I2C_Read... [15:52:00]OFD Sender: No OFD packet to send [15:52:00]*** Cut start [15:52:00]*** Partial cut [15:52:00]*** CUTSNS_PIN = 1 [15:52:00]*** CUTSNS_PIN = 0 [15:52:00]*** Brake cut motor [15:52:01]Read from MH i2c: 01 [15:52:01]MH_I2C_Read... [15:52:01]*** Stop cut motor [15:52:01]*** Cut end [15:52:01]Read from MH i2c: 01 07 00 [15:52:01]MH_I2C_Read... [15:52:01]Read from MH i2c: 01 07 00 5C 09 00 00 00 00 00 FF 0F 7A [15:52:01]process_action close_receipt done [15:52:01]requested_data is exist [15:52:01]produce_requested_data [15:52:01]requested_item fm.sn is exist - process it [15:52:01]wFMCommunicate request_size=4 [15:52:01]MH_SAM_APDU [15:52:01]CAPDU: 80 11 00 00 [15:52:01]Write to MH i2c: E2 08 00 5D 09 80 11 00 00 00 00 00 00 E0 [15:52:01]Write i2c OK [15:52:01]MH_I2C_Read... [15:52:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:01]Read from MH i2c: E2 [15:52:01]MH_I2C_Read... [15:52:01]Read from MH i2c: E2 17 00 [15:52:01]MH_I2C_Read... [15:52:01]Read from MH i2c: E2 17 00 5D 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 32 [15:52:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:52:01]wFMCommunicate OK [15:52:01]requested_item fd.num is exist - process it [15:52:01]SAM_PROTO_GetFieldsCounters [15:52:01]wFMCommunicate request_size=4 [15:52:01]MH_SAM_APDU [15:52:01]CAPDU: 80 13 00 00 [15:52:01]Write to MH i2c: E2 08 00 5E 09 80 13 00 00 00 00 00 00 E3 [15:52:01]Write i2c OK [15:52:01]MH_I2C_Read... [15:52:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:52:01]Read from MH i2c: E2 [15:52:01]MH_I2C_Read... [15:52:01]Read from MH i2c: E2 62 00 [15:52:01]MH_I2C_Read... [15:52:01]Read from MH i2c: E2 62 00 5E 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 67 B4 01 00 0E 04 04 00 85 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 A1 [15:52:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 67 B4 01 00 0E 04 04 00 85 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 [15:52:01]wFMCommunicate OK [15:52:01]SAM_PROTO_GetFieldsCounters done [15:52:01]requested_item shift.num is exist - process it [15:52:01]requested_item shift.opened is exist - process it [15:52:01]req_shift_opened [15:52:01]FM_GetShiftState [15:52:01]SAM_PROTO_GetShiftState [15:52:01]wFMCommunicate request_size=4 [15:52:01]MH_SAM_APDU [15:52:01]CAPDU: 80 13 01 00 [15:52:01]Write to MH i2c: E2 08 00 5F 09 80 13 01 00 00 00 00 00 E5 [15:52:01]Write i2c OK [15:52:01]MH_I2C_Read... [15:52:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:01]Read from MH i2c: E2 [15:52:01]MH_I2C_Read... [15:52:01]Read from MH i2c: E2 0E 00 [15:52:01]MH_I2C_Read... [15:52:01]Read from MH i2c: E2 0E 00 5F 09 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 60 [15:52:01]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:52:01]wFMCommunicate OK [15:52:01]SAM_PROTO_GetShiftState done [15:52:01]FM_GetShiftState done [15:52:01]req_shift_opened done [15:52:01]requested_item shift.open_date is exist - process it [15:52:01]req_shift_open_date [15:52:01]req_shift_open_date done [15:52:01]produce_requested_data done [15:52:01]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111719,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [15:52:01]process_action_free close_receipt [15:52:01]json_value_free [15:52:01]json_value_free done [15:52:01]process_json_proto returns [15:52:01]Send response to host [15:52:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111719,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [15:52:01]free response buf [15:52:01]execute_script done [15:52:01]execute_script returns [15:52:01]free content buf [15:52:01]Sock 9.Close socket [15:52:01]Sock 9.Thread stoped [15:52:05]OFD Sender: No OFD packet to send [15:52:10]OFD Sender: No OFD packet to send [15:52:15]OFD Sender: No OFD packet to send [15:52:20]OFD Sender: No OFD packet to send [15:52:25]OFD Sender: No OFD packet to send [15:52:30]OFD Sender: No OFD packet to send [15:52:35]OFD Sender: No OFD packet to send [15:52:40]OFD Sender: No OFD packet to send [15:52:45]OFD Sender: No OFD packet to send [15:52:50]OFD Sender: No OFD packet to send [15:52:55]OFD Sender: No OFD packet to send [15:53:00]OFD Sender: No OFD packet to send [15:53:05]OFD Sender: No OFD packet to send [15:53:10]OFD Sender: No OFD packet to send [15:53:15]OFD Sender: No OFD packet to send [15:53:20]OFD Sender: No OFD packet to send [15:53:25]OFD Sender: No OFD packet to send [15:53:30]OFD Sender: No OFD packet to send [15:53:35]OFD Sender: No OFD packet to send [15:53:40]OFD Sender: No OFD packet to send [15:53:45]OFD Sender: No OFD packet to send [15:53:50]OFD Sender: No OFD packet to send [15:53:55]OFD Sender: No OFD packet to send [15:54:00]OFD Sender: No OFD packet to send [15:54:05]OFD Sender: No OFD packet to send [15:54:10]OFD Sender: No OFD packet to send [15:54:15]OFD Sender: No OFD packet to send [15:54:20]OFD Sender: No OFD packet to send [15:54:25]OFD Sender: No OFD packet to send [15:54:30]OFD Sender: No OFD packet to send [15:54:35]OFD Sender: No OFD packet to send [15:54:40]OFD Sender: No OFD packet to send [15:54:45]OFD Sender: No OFD packet to send [15:54:50]OFD Sender: No OFD packet to send [15:54:55]OFD Sender: No OFD packet to send [15:55:00]OFD Sender: No OFD packet to send [15:55:05]OFD Sender: No OFD packet to send [15:55:10]OFD Sender: No OFD packet to send [15:55:15]OFD Sender: No OFD packet to send [15:55:20]OFD Sender: No OFD packet to send [15:55:25]OFD Sender: No OFD packet to send [15:55:30]OFD Sender: No OFD packet to send [15:55:35]OFD Sender: No OFD packet to send [15:55:40]OFD Sender: No OFD packet to send [15:55:45]OFD Sender: No OFD packet to send [15:55:50]OFD Sender: No OFD packet to send [15:55:55]OFD Sender: No OFD packet to send [15:56:00]OFD Sender: No OFD packet to send [15:56:05]OFD Sender: No OFD packet to send [15:56:10]OFD Sender: No OFD packet to send [15:56:15]OFD Sender: No OFD packet to send [15:56:20]OFD Sender: No OFD packet to send [15:56:22]accept exits with 7 [15:56:22]New connection [15:56:22]New thread 3067321700 created [15:56:22]Thread 3067178340 joined [15:56:22]Waiting for new connection... [15:56:22] Sock 7.Parse request [15:56:22]Sock 7.Check first char [15:56:22]Sock 7.First char is OK [15:56:22]request: POST /json_proto HTTP/1.0 [15:56:22]Method: POST [15:56:22]URL: /json_proto [15:56:22]Method is POST - this is cgi request [15:56:22]url: /json_proto [15:56:22]query_string will be loaded in cgi processing [15:56:22]execute_cgi json_proto POST (null) [15:56:22]execute_cgi path=json_proto method=POST [15:56:22]POST find Content-Length [15:56:22]Host: 172.17.59.68:8080 [15:56:22]Content-Length: 678 [15:56:22]Content-Type: application/json [15:56:22] [15:56:22]POST finish read [15:56:22]Found Content-Length = 678 [15:56:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:22]execute_script... [15:56: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)320338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:22]POST & json_proto [15:56:22]process_json_proto [15:56:22]json parsed OK: [15:56:22]protocol is kg_v1.0 [15:56:22]action value=close_receipt [15:56:22]process_action close_receipt [15:56:22]cmd_close_receipt [15:56:22]MH_GetDate [15:56:22]Write to MH i2c: F0 00 00 60 09 58 [15:56:22]Write i2c OK [15:56:22]MH_I2C_Read... [15:56:22]Read from MH i2c: F0 [15:56:22]MH_I2C_Read... [15:56:22]Read from MH i2c: F0 09 00 [15:56:22]MH_I2C_Read... [15:56:22]Read from MH i2c: F0 09 00 60 09 00 29 51 74 66 BC EC 60 65 22 [15:56:22]GetLastDocTimeStamp 1718898720 [15:56:22]current date 1718898985 [15:56:22]FM_GetShiftState [15:56:22]SAM_PROTO_GetShiftState [15:56:22]wFMCommunicate request_size=4 [15:56:22]MH_SAM_APDU [15:56:22]CAPDU: 80 13 01 00 [15:56:22]Write to MH i2c: E2 08 00 61 09 80 13 01 00 00 00 00 00 E7 [15:56:22]Write i2c OK [15:56:22]MH_I2C_Read... [15:56:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:22]Read from MH i2c: E2 [15:56:22]MH_I2C_Read... [15:56:22]Read from MH i2c: E2 0E 00 [15:56:22]MH_I2C_Read... [15:56:22]Read from MH i2c: E2 0E 00 61 09 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 62 [15:56:22]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:56:22]wFMCommunicate OK [15:56:22]SAM_PROTO_GetShiftState done [15:56:22]FM_GetShiftState done [15:56:22]opened in 1718847247 [15:56:22]opened+sec_in_day 1718933647 [15:56:22]quantity*price = 70052 [15:56:22]sum+1 = 70053 [15:56:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 170 20.06.2024 15:56 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111720 ФПД: 128269598320789 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T155625&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111720&fm=128269598320789&tin=02508201610067®Number=0000000000092771&sum=70000 [15:56:23]StoreToDocumentArchive [15:56:23]shift 389 fd 111720 [15:56:23]save to /storage/0389/doc_00111720 [15:56:23]save last doc name /storage/0389/doc_00111720 to /storage/kkm_last_doc_name [15:56:23]save OK [15:56:23]Clear old archive folders... [15:56:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:56:23]tlvbuf is 01748050 [15:56:23]SAM_PROTO_ClearQueue [15:56:23]wFMCommunicate request_size=4 [15:56:23]MH_SAM_APDU [15:56:23]CAPDU: 80 09 00 00 [15:56:23]Write to MH i2c: E2 08 00 6E 09 80 09 00 00 00 00 00 00 E9 [15:56:23]Write i2c OK [15:56:23]MH_I2C_Read... [15:56:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:23]Read from MH i2c: E2 [15:56:23]MH_I2C_Read... [15:56:23]Read from MH i2c: E2 03 00 [15:56:23]MH_I2C_Read... [15:56:23]Read from MH i2c: E2 03 00 6E 09 00 90 00 EB [15:56:23]RAPDU: 90 00 [15:56:23]wFMCommunicate OK [15:56:23]SAM_PROTO_ClearQueue done [15:56:23]KKMCreateOFDPacket [15:56:23]OFDProtocolAddRootSTLVToBuf [15:56:23]FM_MakeSignedData [15:56:23]FM_MakeSignedData [15:56:23]SAM_PROTO_SignData [15:56:23]wFMCommunicate request_size=4 [15:56:23]MH_SAM_APDU [15:56:23]CAPDU: 80 0D 01 02 [15:56:23]Write to MH i2c: E2 08 00 6F 09 80 0D 01 02 00 00 00 00 F1 [15:56:23]Write i2c OK [15:56:23]MH_I2C_Read... [15:56:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:23]Read from MH i2c: E2 [15:56:23]MH_I2C_Read... [15:56:23]Read from MH i2c: E2 03 00 [15:56:23]MH_I2C_Read... [15:56:23]Read from MH i2c: E2 03 00 6F 09 00 90 00 EC [15:56:23]RAPDU: 90 00 [15:56:23]wFMCommunicate OK [15:56:23]wFMCommunicate request_size=255 [15:56:23]MH_SAM_APDU [15:56: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 29 51 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 68 B4 01 00 35 04 06 00 74 [15:56:23]Write to MH i2c: E2 02 01 70 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 29 51 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 68 B4 01 00 35 04 06 00 74 00 00 CC [15:56:23]Write i2c OK [15:56:23]MH_I2C_Read... [15:56:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:23]Read from MH i2c: E2 [15:56:23]MH_I2C_Read... [15:56:23]Read from MH i2c: E2 03 00 [15:56:23]MH_I2C_Read... [15:56:23]Read from MH i2c: E2 03 00 70 09 00 90 00 ED [15:56:23]RAPDU: 90 00 [15:56:23]wFMCommunicate OK [15:56:23]wFMCommunicate request_size=10 [15:56:23]MH_SAM_APDU [15:56:23]CAPDU: 80 0D 02 02 05 A9 17 D7 E8 95 [15:56:23]Write to MH i2c: E2 0D 00 71 09 80 0D 02 02 05 00 A9 17 D7 E8 95 00 00 12 [15:56:23]Write i2c OK [15:56:23]MH_I2C_Read... [15:56:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:23]Read from MH i2c: E2 [15:56:23]MH_I2C_Read... [15:56:23]Read from MH i2c: E2 03 00 [15:56:23]MH_I2C_Read... [15:56:23]Read from MH i2c: E2 03 00 71 09 00 90 00 EE [15:56:23]RAPDU: 90 00 [15:56:23]wFMCommunicate OK [15:56:23]wFMCommunicate request_size=4 [15:56:23]MH_SAM_APDU [15:56:23]CAPDU: 80 0D 03 02 [15:56:23]Write to MH i2c: E2 08 00 72 09 80 0D 03 02 00 00 00 00 F6 [15:56:23]Write i2c OK [15:56:23]MH_I2C_Read... [15:56:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:23]Read from MH i2c: E2 [15:56:23]MH_I2C_Read... [15:56:23]Read from MH i2c: E2 0B 00 [15:56:23]MH_I2C_Read... [15:56:23]Read from MH i2c: E2 0B 00 72 09 00 23 6A 7A DE 67 9B 6E 7F 90 00 CB [15:56:23]RAPDU: 23 6A 7A DE 67 9B 6E 7F 90 00 [15:56:23]wFMCommunicate OK [15:56:23]SAM_PROTO_SignData done [15:56:23]FM_MakeSignedData done [15:56:23]CreateOFDProtocolMessage [15:56:23]wFMCommunicate request_size=4 [15:56:23]MH_SAM_APDU [15:56:23]CAPDU: 80 11 00 00 [15:56:23]Write to MH i2c: E2 08 00 73 09 80 11 00 00 00 00 00 00 F6 [15:56:23]Write i2c OK [15:56:23]MH_I2C_Read... [15:56:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:23]Read from MH i2c: E2 [15:56:23]MH_I2C_Read... [15:56:23]Read from MH i2c: E2 17 00 [15:56:23]MH_I2C_Read... [15:56:23]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 35 30 38 33 90 00 48 [15:56:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:56:23]wFMCommunicate OK [15:56:23]CreateOFDProtocolMessage done [15:56:23]OFDSenderStorePacket 111720 [15:56:23]StoreOFDPacket docnum=111720 [15:56:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 19 5F 07 01 2C 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 29 51 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 68 B4 01 00 35 04 06 00 74 A9 17 D7 E8 95 23 6A 7A DE 67 9B 6E 7F [15:56:23]CheckFolder [15:56:23]dirname=/storage/ofd_packets [15:56:23]CheckFolder done [15:56:23]ProducePacketName [15:56:23]name=ofd_packets/00111720 [15:56:23]NVStorageSaveData ofd_packets/00111720 [15:56:23]File name is /storage/ofd_packets/00111720 [15:56:23]Write 301 bytes [15:56:23]NVStorageSaveData done [15:56:23]OFDSenderStorePacket done [15:56:23]KKMCreateOFDPacket done [15:56:23]NVStorageSaveData kkm_last_timestamp [15:56:23]File name is /storage/kkm_last_timestamp [15:56:23]Write 4 bytes [15:56:23]NVStorageSaveData done [15:56:23]ExternCall_PrintAddStr [15:56:23]wPrintStart [15:56:23]Write to MH i2c: 01 00 00 74 09 7D [15:56:23]Write i2c OK [15:56:23]MH_I2C_Read... [15:56:23]Read from MH i2c: 01 [15:56:23]MH_I2C_Read... [15:56:23]Read from MH i2c: 01 07 00 [15:56:23]MH_I2C_Read... [15:56:23]Read from MH i2c: 01 07 00 74 09 00 00 00 00 00 FF 0F 92 [15:56:23]RasterBufferAndPrint [15:56:23]line Счет N : (1)320338 [15:56:23]line ИНН: 02508201610067 [15:56:23]line Контрольно-Кассовый Чек [15:56:23]line ПРОДАЖА [15:56:23]line ТРК (МРК, ГНК) : 11 [15:56:23]line Товар: 2710124130 [15:56:23]line Аи-92-К-5 [15:56:23]line 10.550 * 66.40 [15:56:23]line = 700.52 [15:56:23]line НДС 12% НСП 1% [15:56:23]line > о реализуемом товаре [15:56:23]line ОКРУГЛЕНИЕ: -0.52 [15:56:23]line ИТОГО: 700.00 [15:56:23]line Внесено: 700.00 [15:56:23]line СДАЧА: 0.00 [15:56:23]line НСП 1% : 6.20 [15:56:23]line НДС 12% : 74.39 [15:56:23]line Наличными: 700.00 [15:56:23]line Безнал.: 0.00 [15:56:23]line Место: АЗС № 65 "Партнер Нефть" [15:56:23]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:56:23]line СНО: Общий режим [15:56:23]line Чек 170 20.06.2024 15:56 [15:56:23]line Смена: 389 ФФД: 1.0 [15:56:23]line ЗНМ: 0300000198 [15:56:23]line РНМ: 0000000000092771 [15:56:23]line Версия ККМ: 001 [15:56:23]line ФМ: 0000000000875083 [15:56:23]line ФД: 111720 [15:56:23]line ФПД: 128269598320789 [15:56:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T155625&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111720&fm=128269598320789&tin=02508201610067®Number=0000000000092771&sum=70000 [15:56:24]OFD Sender: Processing packet 111720 [packets to send 38, broken 37] [15:56:24]ProducePacketName [15:56:24]name=ofd_packets/00111720 [15:56:24]OFD Sender: To server: pG, [15:56:24]CommunicateWithHost lk.salyk.kg:30040 [15:56:24]ConnectInit lk.salyk.kg [15:56:24]written 0, free lines is 4095 [15:56:24]Connected sock=10 [15: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 35 30 38 33 0F 01 00 00 19 5F 07 01 2C 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 29 51 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 68 B4 01 00 35 04 06 00 74 A9 17 D7 E8 95 23 6A 7A DE 67 9B 6E 7F [15:56:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 42 F2 47 00 4F 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 68 B4 01 00 F4 03 04 00 6F E8 73 66 B6 04 01 00 00 30 0C 2E 7F 0C 06 97 E9 [15:56:24]CommunicateWithHost err = 0 [15:56:24]CheckOFDResponse [15:56:24]1017 (14) - 77093643461234 [15:56:24]1041 (16) - 0000000000875083 [15:56:24]1040 (4) - 111720 [15:56:24]1012 (4) - 20.06.2024 08:29 [15:56:24]1206 (1) - 0 [15:56:24]OFD Sender: Remove packet 111720 [15:56:24]ProducePacketName [15:56:24]name=ofd_packets/00111720 [15:56:24]NVStorageDeleteData [15:56:24]Write to MH i2c: 01 00 00 9F 09 A8 [15:56:24]Write i2c OK [15:56:24]MH_I2C_Read... [15:56:24]Read from MH i2c: 01 [15:56:24]MH_I2C_Read... [15:56:24]Read from MH i2c: 01 07 00 [15:56:24]MH_I2C_Read... [15:56:24]Read from MH i2c: 01 07 00 9F 09 00 00 00 00 00 D4 0C 8F [15:56:24]RasterBufferAndPrint [15:56:24]line [15:56:24]line [15:56:24]line [15:56:24]line [15:56:24]line [15:56:24]written 0, free lines is 3292 [15:56:24]MH_Cut [15:56:24]Write to MH i2c: D1 01 00 A6 09 01 81 [15:56:24]Write i2c OK [15:56:24]MH_I2C_Read... [15:56:24]Read from MH i2c: D1 [15:56:24]MH_I2C_Read... [15:56:24]Read from MH i2c: D1 01 00 [15:56:24]MH_I2C_Read... [15:56:24]Read from MH i2c: D1 01 00 A6 09 00 80 [15:56:24]Write to MH i2c: 01 00 00 A7 09 B0 [15:56:24]Write i2c OK [15:56:24]MH_I2C_Read... [15:56:24]OFD Sender: No OFD packet to send [15:56:25]*** Cut start [15:56:25]*** Partial cut [15:56:25]*** CUTSNS_PIN = 1 [15:56:25]*** CUTSNS_PIN = 0 [15:56:25]*** Brake cut motor [15:56:25]Read from MH i2c: 01 [15:56:25]MH_I2C_Read... [15:56:25]*** Stop cut motor [15:56:25]*** Cut end [15:56:25]Read from MH i2c: 01 07 00 [15:56:25]MH_I2C_Read... [15:56:25]Read from MH i2c: 01 07 00 A7 09 00 00 00 00 00 FF 0F C5 [15:56:25]process_action close_receipt done [15:56:25]requested_data is exist [15:56:25]produce_requested_data [15:56:25]requested_item fm.sn is exist - process it [15:56:25]wFMCommunicate request_size=4 [15:56:25]MH_SAM_APDU [15:56:25]CAPDU: 80 11 00 00 [15:56:25]Write to MH i2c: E2 08 00 A8 09 80 11 00 00 00 00 00 00 2B [15:56:25]Write i2c OK [15:56:25]MH_I2C_Read... [15:56:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:26]Read from MH i2c: E2 [15:56:26]MH_I2C_Read... [15:56:26]Read from MH i2c: E2 17 00 [15:56:26]MH_I2C_Read... [15:56:26]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 35 30 38 33 90 00 7D [15:56:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:56:26]wFMCommunicate OK [15:56:26]requested_item fd.num is exist - process it [15:56:26]SAM_PROTO_GetFieldsCounters [15:56:26]wFMCommunicate request_size=4 [15:56:26]MH_SAM_APDU [15:56:26]CAPDU: 80 13 00 00 [15:56:26]Write to MH i2c: E2 08 00 A9 09 80 13 00 00 00 00 00 00 2E [15:56:26]Write i2c OK [15:56:26]MH_I2C_Read... [15:56:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:26]Read from MH i2c: E2 [15:56:26]MH_I2C_Read... [15:56:26]Read from MH i2c: E2 62 00 [15:56:26]MH_I2C_Read... [15:56:26]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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 68 B4 01 00 0E 04 04 00 85 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 F0 [15:56:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 68 B4 01 00 0E 04 04 00 85 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 [15:56:26]wFMCommunicate OK [15:56:26]SAM_PROTO_GetFieldsCounters done [15:56:26]requested_item shift.num is exist - process it [15:56:26]requested_item shift.opened is exist - process it [15:56:26]req_shift_opened [15:56:26]FM_GetShiftState [15:56:26]SAM_PROTO_GetShiftState [15:56:26]wFMCommunicate request_size=4 [15:56:26]MH_SAM_APDU [15:56:26]CAPDU: 80 13 01 00 [15:56:26]Write to MH i2c: E2 08 00 AA 09 80 13 01 00 00 00 00 00 30 [15:56:26]Write i2c OK [15:56:26]MH_I2C_Read... [15:56:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:26]Read from MH i2c: E2 [15:56:26]MH_I2C_Read... [15:56:26]Read from MH i2c: E2 0E 00 [15:56:26]MH_I2C_Read... [15:56:26]Read from MH i2c: E2 0E 00 AA 09 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 AB [15:56:26]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:56:26]wFMCommunicate OK [15:56:26]SAM_PROTO_GetShiftState done [15:56:26]FM_GetShiftState done [15:56:26]req_shift_opened done [15:56:26]requested_item shift.open_date is exist - process it [15:56:26]req_shift_open_date [15:56:26]req_shift_open_date done [15:56:26]produce_requested_data done [15:56:26]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111720,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [15:56:26]process_action_free close_receipt [15:56:26]json_value_free [15:56:26]json_value_free done [15:56:26]process_json_proto returns [15:56:26]Send response to host [15:56:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111720,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [15:56:26]free response buf [15:56:26]execute_script done [15:56:26]execute_script returns [15:56:26]free content buf [15:56:26]Sock 7.Close socket [15:56:26]Sock 7.Thread stoped [15:56:30]OFD Sender: No OFD packet to send [15:56:35]OFD Sender: No OFD packet to send [15:56:40]OFD Sender: No OFD packet to send [15:56:45]OFD Sender: No OFD packet to send [15:56:50]OFD Sender: No OFD packet to send [15:56:55]OFD Sender: No OFD packet to send [15:57:00]OFD Sender: No OFD packet to send [15:57:05]OFD Sender: No OFD packet to send [15:57:10]OFD Sender: No OFD packet to send [15:57:15]OFD Sender: No OFD packet to send [15:57:20]OFD Sender: No OFD packet to send [15:57:25]OFD Sender: No OFD packet to send [15:57:30]OFD Sender: No OFD packet to send [15:57:35]OFD Sender: No OFD packet to send [15:57:40]OFD Sender: No OFD packet to send [15:57:44]accept exits with 9 [15:57:44]New connection [15:57:44]New thread 3067178340 created [15:57:44]Thread 3067321700 joined [15:57:44]Waiting for new connection... [15:57:44] Sock 9.Parse request [15:57:44]Sock 9.Check first char [15:57:44]Sock 9.First char is OK [15:57:44]request: POST /json_proto HTTP/1.0 [15:57:44]Method: POST [15:57:44]URL: /json_proto [15:57:44]Method is POST - this is cgi request [15:57:44]url: /json_proto [15:57:44]query_string will be loaded in cgi processing [15:57:44]execute_cgi json_proto POST (null) [15:57:44]execute_cgi path=json_proto method=POST [15:57:44]POST find Content-Length [15:57:44]Host: 172.17.59.68:8080 [15:57:44]Content-Length: 677 [15:57:44]Content-Type: application/json [15:57:44] [15:57:44]POST finish read [15:57:44]Found Content-Length = 677 [15:57:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 8.290, "sum" : 550.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:44]execute_script... [15:57: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)320339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 8.290, "sum" : 550.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:44]POST & json_proto [15:57:44]process_json_proto [15:57:44]json parsed OK: [15:57:44]protocol is kg_v1.0 [15:57:44]action value=close_receipt [15:57:44]process_action close_receipt [15:57:44]cmd_close_receipt [15:57:44]MH_GetDate [15:57:44]Write to MH i2c: F0 00 00 AB 09 A3 [15:57:44]Write i2c OK [15:57:44]MH_I2C_Read... [15:57:44]Read from MH i2c: F0 [15:57:44]MH_I2C_Read... [15:57:44]Read from MH i2c: F0 09 00 [15:57:44]MH_I2C_Read... [15:57:44]Read from MH i2c: F0 09 00 AB 09 00 7B 51 74 66 BC EC 60 65 BF [15:57:44]GetLastDocTimeStamp 1718898985 [15:57:44]current date 1718899067 [15:57:44]FM_GetShiftState [15:57:44]SAM_PROTO_GetShiftState [15:57:44]wFMCommunicate request_size=4 [15:57:44]MH_SAM_APDU [15:57:44]CAPDU: 80 13 01 00 [15:57:44]Write to MH i2c: E2 08 00 AC 09 80 13 01 00 00 00 00 00 32 [15:57:44]Write i2c OK [15:57:44]MH_I2C_Read... [15:57:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:44]Read from MH i2c: E2 [15:57:44]MH_I2C_Read... [15:57:44]Read from MH i2c: E2 0E 00 [15:57:44]MH_I2C_Read... [15:57:44]Read from MH i2c: E2 0E 00 AC 09 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 AD [15:57:44]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:57:44]wFMCommunicate OK [15:57:44]SAM_PROTO_GetShiftState done [15:57:44]FM_GetShiftState done [15:57:44]opened in 1718847247 [15:57:44]opened+sec_in_day 1718933647 [15:57:44]quantity*price = 55045 [15:57:44]sum+1 = 55047 [15:57:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.46 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 171 20.06.2024 15:57 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111721 ФПД: 272987856705911 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T155747&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111721&fm=272987856705911&tin=02508201610067®Number=0000000000092771&sum=55000 [15:57:45]StoreToDocumentArchive [15:57:45]shift 389 fd 111721 [15:57:45]save to /storage/0389/doc_00111721 [15:57:45]save last doc name /storage/0389/doc_00111721 to /storage/kkm_last_doc_name [15:57:45]save OK [15:57:45]Clear old archive folders... [15:57:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:57:45]tlvbuf is 0175B310 [15:57:45]SAM_PROTO_ClearQueue [15:57:45]wFMCommunicate request_size=4 [15:57:45]MH_SAM_APDU [15:57:45]CAPDU: 80 09 00 00 [15:57:45]Write to MH i2c: E2 08 00 B9 09 80 09 00 00 00 00 00 00 34 [15:57:45]Write i2c OK [15:57:45]MH_I2C_Read... [15:57:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:45]Read from MH i2c: E2 [15:57:45]MH_I2C_Read... [15:57:45]Read from MH i2c: E2 03 00 [15:57:45]MH_I2C_Read... [15:57:45]Read from MH i2c: E2 03 00 B9 09 00 90 00 36 [15:57:45]RAPDU: 90 00 [15:57:45]wFMCommunicate OK [15:57:45]SAM_PROTO_ClearQueue done [15:57:45]KKMCreateOFDPacket [15:57:45]OFDProtocolAddRootSTLVToBuf [15:57:45]FM_MakeSignedData [15:57:45]FM_MakeSignedData [15:57:45]SAM_PROTO_SignData [15:57:45]wFMCommunicate request_size=4 [15:57:45]MH_SAM_APDU [15:57:45]CAPDU: 80 0D 01 02 [15:57:45]Write to MH i2c: E2 08 00 BA 09 80 0D 01 02 00 00 00 00 3C [15:57:45]Write i2c OK [15:57:45]MH_I2C_Read... [15:57:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:45]Read from MH i2c: E2 [15:57:45]MH_I2C_Read... [15:57:45]Read from MH i2c: E2 03 00 [15:57:45]MH_I2C_Read... [15:57:45]Read from MH i2c: E2 03 00 BA 09 00 90 00 37 [15:57:45]RAPDU: 90 00 [15:57:45]wFMCommunicate OK [15:57:45]wFMCommunicate request_size=255 [15:57:45]MH_SAM_APDU [15:57: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 62 20 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 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 D6 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 AB 00 00 00 F4 03 04 00 7B 51 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 69 B4 01 00 35 04 06 00 F8 [15:57:45]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 62 20 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 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 D6 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 AB 00 00 00 F4 03 04 00 7B 51 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 69 B4 01 00 35 04 06 00 F8 00 00 CB [15:57:45]Write i2c OK [15:57:45]MH_I2C_Read... [15:57:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:45]Read from MH i2c: E2 [15:57:45]MH_I2C_Read... [15:57:45]Read from MH i2c: E2 03 00 [15:57:45]MH_I2C_Read... [15:57:45]Read from MH i2c: E2 03 00 BB 09 00 90 00 38 [15:57:45]RAPDU: 90 00 [15:57:45]wFMCommunicate OK [15:57:45]wFMCommunicate request_size=10 [15:57:45]MH_SAM_APDU [15:57:45]CAPDU: 80 0D 02 02 05 47 F0 3A 19 77 [15:57:45]Write to MH i2c: E2 0D 00 BC 09 80 0D 02 02 05 00 47 F0 3A 19 77 00 00 4A [15:57:45]Write i2c OK [15:57:45]MH_I2C_Read... [15:57:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:46]Read from MH i2c: E2 [15:57:46]MH_I2C_Read... [15:57:46]Read from MH i2c: E2 03 00 [15:57:46]MH_I2C_Read... [15:57:46]Read from MH i2c: E2 03 00 BC 09 00 90 00 39 [15:57:46]RAPDU: 90 00 [15:57:46]wFMCommunicate OK [15:57:46]wFMCommunicate request_size=4 [15:57:46]MH_SAM_APDU [15:57:46]CAPDU: 80 0D 03 02 [15:57:46]Write to MH i2c: E2 08 00 BD 09 80 0D 03 02 00 00 00 00 41 [15:57:46]Write i2c OK [15:57:46]MH_I2C_Read... [15:57:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:57:46]Read from MH i2c: E2 [15:57:46]MH_I2C_Read... [15:57:46]Read from MH i2c: E2 0B 00 [15:57:46]MH_I2C_Read... [15:57:46]Read from MH i2c: E2 0B 00 BD 09 00 EB 81 CD 6E 9B 07 16 79 90 00 1A [15:57:46]RAPDU: EB 81 CD 6E 9B 07 16 79 90 00 [15:57:46]wFMCommunicate OK [15:57:46]SAM_PROTO_SignData done [15:57:46]FM_MakeSignedData done [15:57:46]CreateOFDProtocolMessage [15:57:46]wFMCommunicate request_size=4 [15:57:46]MH_SAM_APDU [15:57:46]CAPDU: 80 11 00 00 [15:57:46]Write to MH i2c: E2 08 00 BE 09 80 11 00 00 00 00 00 00 41 [15:57:46]Write i2c OK [15:57:46]MH_I2C_Read... [15:57:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:46]Read from MH i2c: E2 [15:57:46]MH_I2C_Read... [15:57:46]Read from MH i2c: E2 17 00 [15:57:46]MH_I2C_Read... [15:57:46]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 35 30 38 33 90 00 93 [15:57:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:57:46]wFMCommunicate OK [15:57:46]CreateOFDProtocolMessage done [15:57:46]OFDSenderStorePacket 111721 [15:57:46]StoreOFDPacket docnum=111721 [15:57:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 79 C6 07 01 7B 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 62 20 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 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 D6 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 AB 00 00 00 F4 03 04 00 7B 51 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 69 B4 01 00 35 04 06 00 F8 47 F0 3A 19 77 EB 81 CD 6E 9B 07 16 79 [15:57:46]CheckFolder [15:57:46]dirname=/storage/ofd_packets [15:57:46]CheckFolder done [15:57:46]ProducePacketName [15:57:46]name=ofd_packets/00111721 [15:57:46]NVStorageSaveData ofd_packets/00111721 [15:57:46]File name is /storage/ofd_packets/00111721 [15:57:46]Write 301 bytes [15:57:46]NVStorageSaveData done [15:57:46]OFDSenderStorePacket done [15:57:46]KKMCreateOFDPacket done [15:57:46]NVStorageSaveData kkm_last_timestamp [15:57:46]File name is /storage/kkm_last_timestamp [15:57:46]Write 4 bytes [15:57:46]NVStorageSaveData done [15:57:46]ExternCall_PrintAddStr [15:57:46]wPrintStart [15:57:46]Write to MH i2c: 01 00 00 BF 09 C8 [15:57:46]Write i2c OK [15:57:46]MH_I2C_Read... [15:57:46]Read from MH i2c: 01 [15:57:46]MH_I2C_Read... [15:57:46]Read from MH i2c: 01 07 00 [15:57:46]MH_I2C_Read... [15:57:46]Read from MH i2c: 01 07 00 BF 09 00 00 00 00 00 FF 0F DD [15:57:46]RasterBufferAndPrint [15:57:46]line Счет N : (1)320339 [15:57:46]line ИНН: 02508201610067 [15:57:46]line Контрольно-Кассовый Чек [15:57:46]line ПРОДАЖА [15:57:46]line ТРК (МРК, ГНК) : 11 [15:57:46]line Товар: 2710124130 [15:57:46]line Аи-92-К-5 [15:57:46]line 8.290 * 66.40 [15:57:46]line = 550.46 [15:57:46]line НДС 12% НСП 1% [15:57:46]line > о реализуемом товаре [15:57:46]line ОКРУГЛЕНИЕ: -0.46 [15:57:46]line ИТОГО: 550.00 [15:57:46]line Внесено: 550.00 [15:57:46]line СДАЧА: 0.00 [15:57:46]line НСП 1% : 4.87 [15:57:46]line НДС 12% : 58.46 [15:57:46]line Наличными: 550.00 [15:57:46]line Безнал.: 0.00 [15:57:46]line Место: АЗС № 65 "Партнер Нефть" [15:57:46]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:57:46]line СНО: Общий режим [15:57:46]line Чек 171 20.06.2024 15:57 [15:57:46]line Смена: 389 ФФД: 1.0 [15:57:46]line ЗНМ: 0300000198 [15:57:46]line РНМ: 0000000000092771 [15:57:46]line Версия ККМ: 001 [15:57:46]line ФМ: 0000000000875083 [15:57:46]line ФД: 111721 [15:57:46]line ФПД: 272987856705911 [15:57:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T155747&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111721&fm=272987856705911&tin=02508201610067®Number=0000000000092771&sum=55000 [15:57:46]OFD Sender: Processing packet 111721 [packets to send 38, broken 37] [15:57:46]ProducePacketName [15:57:46]name=ofd_packets/00111721 [15:57:46]OFD Sender: To server: pG, [15:57:46]CommunicateWithHost lk.salyk.kg:30040 [15:57:46]ConnectInit lk.salyk.kg [15:57:46]written 0, free lines is 4095 [15:57:46]Connected sock=10 [15:57:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 79 C6 07 01 7B 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 62 20 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 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 D6 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 AB 00 00 00 F4 03 04 00 7B 51 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 69 B4 01 00 35 04 06 00 F8 47 F0 3A 19 77 EB 81 CD 6E 9B 07 16 79 [15:57:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 38 F5 47 00 02 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 69 B4 01 00 F4 03 04 00 C1 E8 73 66 B6 04 01 00 00 B7 37 52 80 85 26 59 BA [15:57:46]CommunicateWithHost err = 0 [15:57:46]CheckOFDResponse [15:57:46]1017 (14) - 77093643461234 [15:57:46]1041 (16) - 0000000000875083 [15:57:46]1040 (4) - 111721 [15:57:46]1012 (4) - 20.06.2024 08:30 [15:57:46]1206 (1) - 0 [15:57:46]OFD Sender: Remove packet 111721 [15:57:46]ProducePacketName [15:57:46]name=ofd_packets/00111721 [15:57:46]NVStorageDeleteData [15:57:46]Write to MH i2c: 01 00 00 EA 09 F3 [15:57:46]Write i2c OK [15:57:46]MH_I2C_Read... [15:57:46]Read from MH i2c: 01 [15:57:46]MH_I2C_Read... [15:57:46]Read from MH i2c: 01 07 00 [15:57:46]MH_I2C_Read... [15:57:46]Read from MH i2c: 01 07 00 EA 09 00 00 00 00 00 D5 0C DB [15:57:46]RasterBufferAndPrint [15:57:46]line [15:57:46]line [15:57:46]line [15:57:46]line [15:57:46]line [15:57:46]written 0, free lines is 3289 [15:57:46]MH_Cut [15:57:46]Write to MH i2c: D1 01 00 F1 09 01 CC [15:57:46]Write i2c OK [15:57:46]MH_I2C_Read... [15:57:46]Read from MH i2c: D1 [15:57:46]MH_I2C_Read... [15:57:46]Read from MH i2c: D1 01 00 [15:57:46]MH_I2C_Read... [15:57:46]Read from MH i2c: D1 01 00 F1 09 00 CB [15:57:46]Write to MH i2c: 01 00 00 F2 09 FB [15:57:46]Write i2c OK [15:57:46]MH_I2C_Read... [15:57:47]OFD Sender: No OFD packet to send [15:57:47]*** Cut start [15:57:47]*** Partial cut [15:57:47]*** CUTSNS_PIN = 1 [15:57:47]*** CUTSNS_PIN = 0 [15:57:47]*** Brake cut motor [15:57:48]Read from MH i2c: 01 [15:57:48]MH_I2C_Read... [15:57:48]*** Stop cut motor [15:57:48]*** Cut end [15:57:48]Read from MH i2c: 01 07 00 [15:57:48]MH_I2C_Read... [15:57:48]Read from MH i2c: 01 07 00 F2 09 00 00 00 00 00 FF 0F 10 [15:57:48]process_action close_receipt done [15:57:48]requested_data is exist [15:57:48]produce_requested_data [15:57:48]requested_item fm.sn is exist - process it [15:57:48]wFMCommunicate request_size=4 [15:57:48]MH_SAM_APDU [15:57:48]CAPDU: 80 11 00 00 [15:57:48]Write to MH i2c: E2 08 00 F3 09 80 11 00 00 00 00 00 00 76 [15:57:48]Write i2c OK [15:57:48]MH_I2C_Read... [15:57:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:48]Read from MH i2c: E2 [15:57:48]MH_I2C_Read... [15:57:48]Read from MH i2c: E2 17 00 [15:57:48]MH_I2C_Read... [15:57:48]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 35 30 38 33 90 00 C8 [15:57:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:57:48]wFMCommunicate OK [15:57:48]requested_item fd.num is exist - process it [15:57:48]SAM_PROTO_GetFieldsCounters [15:57:48]wFMCommunicate request_size=4 [15:57:48]MH_SAM_APDU [15:57:48]CAPDU: 80 13 00 00 [15:57:48]Write to MH i2c: E2 08 00 F4 09 80 13 00 00 00 00 00 00 79 [15:57:48]Write i2c OK [15:57:48]MH_I2C_Read... [15:57:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:57:48]Read from MH i2c: E2 [15:57:48]MH_I2C_Read... [15:57:48]Read from MH i2c: E2 62 00 [15:57:48]MH_I2C_Read... [15:57:48]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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 69 B4 01 00 0E 04 04 00 85 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 3F [15:57:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 69 B4 01 00 0E 04 04 00 85 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 [15:57:48]wFMCommunicate OK [15:57:48]SAM_PROTO_GetFieldsCounters done [15:57:48]requested_item shift.num is exist - process it [15:57:48]requested_item shift.opened is exist - process it [15:57:48]req_shift_opened [15:57:48]FM_GetShiftState [15:57:48]SAM_PROTO_GetShiftState [15:57:48]wFMCommunicate request_size=4 [15:57:48]MH_SAM_APDU [15:57:48]CAPDU: 80 13 01 00 [15:57:48]Write to MH i2c: E2 08 00 F5 09 80 13 01 00 00 00 00 00 7B [15:57:48]Write i2c OK [15:57:48]MH_I2C_Read... [15:57:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:48]Read from MH i2c: E2 [15:57:48]MH_I2C_Read... [15:57:48]Read from MH i2c: E2 0E 00 [15:57:48]MH_I2C_Read... [15:57:48]Read from MH i2c: E2 0E 00 F5 09 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 F6 [15:57:48]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:57:48]wFMCommunicate OK [15:57:48]SAM_PROTO_GetShiftState done [15:57:48]FM_GetShiftState done [15:57:48]req_shift_opened done [15:57:48]requested_item shift.open_date is exist - process it [15:57:48]req_shift_open_date [15:57:48]req_shift_open_date done [15:57:48]produce_requested_data done [15:57:48]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111721,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [15:57:48]process_action_free close_receipt [15:57:48]json_value_free [15:57:48]json_value_free done [15:57:48]process_json_proto returns [15:57:48]Send response to host [15:57:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111721,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [15:57:48]free response buf [15:57:48]execute_script done [15:57:48]execute_script returns [15:57:48]free content buf [15:57:48]Sock 9.Close socket [15:57:48]Sock 9.Thread stoped [15:57:52]OFD Sender: No OFD packet to send [15:57:57]OFD Sender: No OFD packet to send [15:58:02]OFD Sender: No OFD packet to send [15:58:07]OFD Sender: No OFD packet to send [15:58:12]OFD Sender: No OFD packet to send [15:58:17]OFD Sender: No OFD packet to send [15:58:22]OFD Sender: No OFD packet to send [15:58:27]OFD Sender: No OFD packet to send [15:58:32]OFD Sender: No OFD packet to send [15:58:37]OFD Sender: No OFD packet to send [15:58:42]OFD Sender: No OFD packet to send [15:58:47]OFD Sender: No OFD packet to send [15:58:52]OFD Sender: No OFD packet to send [15:58:57]OFD Sender: No OFD packet to send [15:59:02]OFD Sender: No OFD packet to send [15:59:07]OFD Sender: No OFD packet to send [15:59:12]OFD Sender: No OFD packet to send [15:59:17]OFD Sender: No OFD packet to send [15:59:22]OFD Sender: No OFD packet to send [15:59:27]OFD Sender: No OFD packet to send [15:59:30]accept exits with 7 [15:59:30]New connection [15:59:30]New thread 3067321700 created [15:59:30]Thread 3067178340 joined [15:59:30]Waiting for new connection... [15:59:30] Sock 7.Parse request [15:59:30]Sock 7.Check first char [15:59:30]Sock 7.First char is OK [15:59:30]request: POST /json_proto HTTP/1.0 [15:59:30]Method: POST [15:59:30]URL: /json_proto [15:59:30]Method is POST - this is cgi request [15:59:30]url: /json_proto [15:59:30]query_string will be loaded in cgi processing [15:59:30]execute_cgi json_proto POST (null) [15:59:30]execute_cgi path=json_proto method=POST [15:59:30]POST find Content-Length [15:59:30]Host: 172.17.59.68:8080 [15:59:30]Content-Length: 677 [15:59:30]Content-Type: application/json [15:59:30] [15:59:30]POST finish read [15:59:30]Found Content-Length = 677 [15:59:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:30]execute_script... [15:59:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:30]POST & json_proto [15:59:30]process_json_proto [15:59:30]json parsed OK: [15:59:30]protocol is kg_v1.0 [15:59:30]action value=close_receipt [15:59:30]process_action close_receipt [15:59:30]cmd_close_receipt [15:59:30]MH_GetDate [15:59:30]Write to MH i2c: F0 00 00 F6 09 EE [15:59:30]Write i2c OK [15:59:30]MH_I2C_Read... [15:59:30]Read from MH i2c: F0 [15:59:30]MH_I2C_Read... [15:59:30]Read from MH i2c: F0 09 00 [15:59:30]MH_I2C_Read... [15:59:30]Read from MH i2c: F0 09 00 F6 09 00 E5 51 74 66 BC EC 60 65 74 [15:59:30]GetLastDocTimeStamp 1718899067 [15:59:30]current date 1718899173 [15:59:30]FM_GetShiftState [15:59:30]SAM_PROTO_GetShiftState [15:59:30]wFMCommunicate request_size=4 [15:59:30]MH_SAM_APDU [15:59:30]CAPDU: 80 13 01 00 [15:59:30]Write to MH i2c: E2 08 00 F7 09 80 13 01 00 00 00 00 00 7D [15:59:30]Write i2c OK [15:59:30]MH_I2C_Read... [15:59:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:30]Read from MH i2c: E2 [15:59:30]MH_I2C_Read... [15:59:30]Read from MH i2c: E2 0E 00 [15:59:30]MH_I2C_Read... [15:59:30]Read from MH i2c: E2 0E 00 F7 09 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 F8 [15:59:30]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:59:30]wFMCommunicate OK [15:59:30]SAM_PROTO_GetShiftState done [15:59:30]FM_GetShiftState done [15:59:30]opened in 1718847247 [15:59:30]opened+sec_in_day 1718933647 [15:59:30]quantity*price = 25032 [15:59:30]sum+1 = 25034 [15:59:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.58 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 172 20.06.2024 15:59 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111722 ФПД: 128050098167542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T155933&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111722&fm=128050098167542&tin=02508201610067®Number=0000000000092771&sum=25000 [15:59:31]StoreToDocumentArchive [15:59:31]shift 389 fd 111722 [15:59:31]save to /storage/0389/doc_00111722 [15:59:31]save last doc name /storage/0389/doc_00111722 to /storage/kkm_last_doc_name [15:59:31]save OK [15:59:31]Clear old archive folders... [15:59:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:59:31]tlvbuf is B6E02990 [15:59:31]SAM_PROTO_ClearQueue [15:59:31]wFMCommunicate request_size=4 [15:59:31]MH_SAM_APDU [15:59:31]CAPDU: 80 09 00 00 [15:59:31]Write to MH i2c: E2 08 00 04 0A 80 09 00 00 00 00 00 00 80 [15:59:31]Write i2c OK [15:59:31]MH_I2C_Read... [15:59:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:31]Read from MH i2c: E2 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: E2 03 00 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: E2 03 00 04 0A 00 90 00 82 [15:59:31]RAPDU: 90 00 [15:59:31]wFMCommunicate OK [15:59:31]SAM_PROTO_ClearQueue done [15:59:31]KKMCreateOFDPacket [15:59:31]OFDProtocolAddRootSTLVToBuf [15:59:31]FM_MakeSignedData [15:59:31]FM_MakeSignedData [15:59:31]SAM_PROTO_SignData [15:59:31]wFMCommunicate request_size=4 [15:59:31]MH_SAM_APDU [15:59:31]CAPDU: 80 0D 01 02 [15:59:31]Write to MH i2c: E2 08 00 05 0A 80 0D 01 02 00 00 00 00 88 [15:59:31]Write i2c OK [15:59:31]MH_I2C_Read... [15:59:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:31]Read from MH i2c: E2 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: E2 03 00 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: E2 03 00 05 0A 00 90 00 83 [15:59:31]RAPDU: 90 00 [15:59:31]wFMCommunicate OK [15:59:31]wFMCommunicate request_size=255 [15:59:31]MH_SAM_APDU [15:59: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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 E5 51 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6A B4 01 00 35 04 06 00 74 [15:59:31]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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 E5 51 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6A B4 01 00 35 04 06 00 74 00 00 BD [15:59:31]Write i2c OK [15:59:31]MH_I2C_Read... [15:59:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:32]Read from MH i2c: E2 [15:59:32]MH_I2C_Read... [15:59:32]Read from MH i2c: E2 03 00 [15:59:32]MH_I2C_Read... [15:59:32]Read from MH i2c: E2 03 00 06 0A 00 90 00 84 [15:59:32]RAPDU: 90 00 [15:59:32]wFMCommunicate OK [15:59:32]wFMCommunicate request_size=10 [15:59:32]MH_SAM_APDU [15:59:32]CAPDU: 80 0D 02 02 05 75 FC 9D 5E F6 [15:59:32]Write to MH i2c: E2 0D 00 07 0A 80 0D 02 02 05 00 75 FC 9D 5E F6 00 00 F7 [15:59:32]Write i2c OK [15:59:32]MH_I2C_Read... [15:59:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:32]Read from MH i2c: E2 [15:59:32]MH_I2C_Read... [15:59:32]Read from MH i2c: E2 03 00 [15:59:32]MH_I2C_Read... [15:59:32]Read from MH i2c: E2 03 00 07 0A 00 90 00 85 [15:59:32]RAPDU: 90 00 [15:59:32]wFMCommunicate OK [15:59:32]wFMCommunicate request_size=4 [15:59:32]MH_SAM_APDU [15:59:32]CAPDU: 80 0D 03 02 [15:59:32]Write to MH i2c: E2 08 00 08 0A 80 0D 03 02 00 00 00 00 8D [15:59:32]Write i2c OK [15:59:32]MH_I2C_Read... [15:59:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:32]Read from MH i2c: E2 [15:59:32]MH_I2C_Read... [15:59:32]Read from MH i2c: E2 0B 00 [15:59:32]MH_I2C_Read... [15:59:32]Read from MH i2c: E2 0B 00 08 0A 00 56 79 9D 81 79 CE 35 47 90 00 3E [15:59:32]RAPDU: 56 79 9D 81 79 CE 35 47 90 00 [15:59:32]wFMCommunicate OK [15:59:32]SAM_PROTO_SignData done [15:59:32]FM_MakeSignedData done [15:59:32]CreateOFDProtocolMessage [15:59:32]wFMCommunicate request_size=4 [15:59:32]MH_SAM_APDU [15:59:32]CAPDU: 80 11 00 00 [15:59:32]Write to MH i2c: E2 08 00 09 0A 80 11 00 00 00 00 00 00 8D [15:59:32]Write i2c OK [15:59:32]MH_I2C_Read... [15:59:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:32]Read from MH i2c: E2 [15:59:32]MH_I2C_Read... [15:59:32]Read from MH i2c: E2 17 00 [15:59:32]MH_I2C_Read... [15:59:32]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 35 30 38 33 90 00 DF [15:59:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:59:32]wFMCommunicate OK [15:59:32]CreateOFDProtocolMessage done [15:59:32]OFDSenderStorePacket 111722 [15:59:32]StoreOFDPacket docnum=111722 [15:59:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AC D3 07 01 64 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 E5 51 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6A B4 01 00 35 04 06 00 74 75 FC 9D 5E F6 56 79 9D 81 79 CE 35 47 [15:59:32]CheckFolder [15:59:32]dirname=/storage/ofd_packets [15:59:32]CheckFolder done [15:59:32]ProducePacketName [15:59:32]name=ofd_packets/00111722 [15:59:32]NVStorageSaveData ofd_packets/00111722 [15:59:32]File name is /storage/ofd_packets/00111722 [15:59:32]Write 301 bytes [15:59:32]NVStorageSaveData done [15:59:32]OFDSenderStorePacket done [15:59:32]KKMCreateOFDPacket done [15:59:32]NVStorageSaveData kkm_last_timestamp [15:59:32]File name is /storage/kkm_last_timestamp [15:59:32]Write 4 bytes [15:59:32]NVStorageSaveData done [15:59:32]ExternCall_PrintAddStr [15:59:32]wPrintStart [15:59:32]Write to MH i2c: 01 00 00 0A 0A 14 [15:59:32]Write i2c OK [15:59:32]MH_I2C_Read... [15:59:32]Read from MH i2c: 01 [15:59:32]MH_I2C_Read... [15:59:32]Read from MH i2c: 01 07 00 [15:59:32]MH_I2C_Read... [15:59:32]Read from MH i2c: 01 07 00 0A 0A 00 00 00 00 00 FF 0F 29 [15:59:32]RasterBufferAndPrint [15:59:32]line Счет N : (1)320340 [15:59:32]line ИНН: 02508201610067 [15:59:32]line Контрольно-Кассовый Чек [15:59:32]line ПРОДАЖА [15:59:32]line ТРК (МРК, ГНК) : 11 [15:59:32]line Товар: 2710124130 [15:59:32]line Аи-92-К-5 [15:59:32]line 3.770 * 66.40 [15:59:32]line = 250.33 [15:59:32]line НДС 12% НСП 1% [15:59:32]line > о реализуемом товаре [15:59:32]line ОКРУГЛЕНИЕ: -0.33 [15:59:32]line ИТОГО: 250.00 [15:59:32]line Внесено: 250.00 [15:59:32]line СДАЧА: 0.00 [15:59:32]line НСП 1% : 2.21 [15:59:32]line НДС 12% : 26.58 [15:59:32]line Наличными: 250.00 [15:59:32]line Безнал.: 0.00 [15:59:32]line Место: АЗС № 65 "Партнер Нефть" [15:59:32]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:59:32]line СНО: Общий режим [15:59:32]line Чек 172 20.06.2024 15:59 [15:59:32]line Смена: 389 ФФД: 1.0 [15:59:32]line ЗНМ: 0300000198 [15:59:32]line РНМ: 0000000000092771 [15:59:32]line Версия ККМ: 001 [15:59:32]line ФМ: 0000000000875083 [15:59:32]line ФД: 111722 [15:59:32]line ФПД: 128050098167542 [15:59:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T155933&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111722&fm=128050098167542&tin=02508201610067®Number=0000000000092771&sum=25000 [15:59:32]OFD Sender: Processing packet 111722 [packets to send 38, broken 37] [15:59:32]ProducePacketName [15:59:32]name=ofd_packets/00111722 [15:59:32]OFD Sender: To server: pG, [15:59:32]CommunicateWithHost lk.salyk.kg:30040 [15:59:32]ConnectInit lk.salyk.kg [15:59:32]written 0, free lines is 4095 [15:59:32]Connected sock=10 [15:59:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AC D3 07 01 64 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 E5 51 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6A B4 01 00 35 04 06 00 74 75 FC 9D 5E F6 56 79 9D 81 79 CE 35 47 [15:59:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 9E 6C 47 00 AC D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6A B4 01 00 F4 03 04 00 2B E9 73 66 B6 04 01 00 00 2A DB 5A 94 CF 6E E9 6A [15:59:32]CommunicateWithHost err = 0 [15:59:32]CheckOFDResponse [15:59:32]1017 (14) - 77093643461234 [15:59:32]1041 (16) - 0000000000875083 [15:59:32]1040 (4) - 111722 [15:59:32]1012 (4) - 20.06.2024 08:32 [15:59:32]1206 (1) - 0 [15:59:32]OFD Sender: Remove packet 111722 [15:59:32]ProducePacketName [15:59:32]name=ofd_packets/00111722 [15:59:32]NVStorageDeleteData [15:59:32]Write to MH i2c: 01 00 00 35 0A 3F [15:59:32]Write i2c OK [15:59:32]MH_I2C_Read... [15:59:32]Read from MH i2c: 01 [15:59:32]MH_I2C_Read... [15:59:32]Read from MH i2c: 01 07 00 [15:59:32]MH_I2C_Read... [15:59:32]Read from MH i2c: 01 07 00 35 0A 00 00 00 00 00 DC 0C 2E [15:59:32]RasterBufferAndPrint [15:59:32]line [15:59:32]line [15:59:32]line [15:59:32]line [15:59:32]line [15:59:32]written 0, free lines is 3299 [15:59:32]MH_Cut [15:59:32]Write to MH i2c: D1 01 00 3C 0A 01 18 [15:59:32]Write i2c OK [15:59:32]MH_I2C_Read... [15:59:32]Read from MH i2c: D1 [15:59:32]MH_I2C_Read... [15:59:32]Read from MH i2c: D1 01 00 [15:59:32]MH_I2C_Read... [15:59:32]Read from MH i2c: D1 01 00 3C 0A 00 17 [15:59:33]Write to MH i2c: 01 00 00 3D 0A 47 [15:59:33]Write i2c OK [15:59:33]MH_I2C_Read... [15:59:33]OFD Sender: No OFD packet to send [15:59:33]*** Cut start [15:59:33]*** Partial cut [15:59:33]*** CUTSNS_PIN = 1 [15:59:33]*** CUTSNS_PIN = 0 [15:59:33]*** Brake cut motor [15:59:34]Read from MH i2c: 01 [15:59:34]MH_I2C_Read... [15:59:34]*** Stop cut motor [15:59:34]*** Cut end [15:59:34]Read from MH i2c: 01 07 00 [15:59:34]MH_I2C_Read... [15:59:34]Read from MH i2c: 01 07 00 3D 0A 00 00 00 00 00 FF 0F 5C [15:59:34]process_action close_receipt done [15:59:34]requested_data is exist [15:59:34]produce_requested_data [15:59:34]requested_item fm.sn is exist - process it [15:59:34]wFMCommunicate request_size=4 [15:59:34]MH_SAM_APDU [15:59:34]CAPDU: 80 11 00 00 [15:59:34]Write to MH i2c: E2 08 00 3E 0A 80 11 00 00 00 00 00 00 C2 [15:59:34]Write i2c OK [15:59:34]MH_I2C_Read... [15:59:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:34]Read from MH i2c: E2 [15:59:34]MH_I2C_Read... [15:59:34]Read from MH i2c: E2 17 00 [15:59:34]MH_I2C_Read... [15:59:34]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 35 30 38 33 90 00 14 [15:59:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:59:34]wFMCommunicate OK [15:59:34]requested_item fd.num is exist - process it [15:59:34]SAM_PROTO_GetFieldsCounters [15:59:34]wFMCommunicate request_size=4 [15:59:34]MH_SAM_APDU [15:59:34]CAPDU: 80 13 00 00 [15:59:34]Write to MH i2c: E2 08 00 3F 0A 80 13 00 00 00 00 00 00 C5 [15:59:34]Write i2c OK [15:59:34]MH_I2C_Read... [15:59:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:34]Read from MH i2c: E2 [15:59:34]MH_I2C_Read... [15:59:34]Read from MH i2c: E2 62 00 [15:59:34]MH_I2C_Read... [15:59:34]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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6A B4 01 00 0E 04 04 00 85 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 8F [15:59:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6A B4 01 00 0E 04 04 00 85 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 [15:59:34]wFMCommunicate OK [15:59:34]SAM_PROTO_GetFieldsCounters done [15:59:34]requested_item shift.num is exist - process it [15:59:34]requested_item shift.opened is exist - process it [15:59:34]req_shift_opened [15:59:34]FM_GetShiftState [15:59:34]SAM_PROTO_GetShiftState [15:59:34]wFMCommunicate request_size=4 [15:59:34]MH_SAM_APDU [15:59:34]CAPDU: 80 13 01 00 [15:59:34]Write to MH i2c: E2 08 00 40 0A 80 13 01 00 00 00 00 00 C7 [15:59:34]Write i2c OK [15:59:34]MH_I2C_Read... [15:59:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:34]Read from MH i2c: E2 [15:59:34]MH_I2C_Read... [15:59:34]Read from MH i2c: E2 0E 00 [15:59:34]MH_I2C_Read... [15:59:34]Read from MH i2c: E2 0E 00 40 0A 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 42 [15:59:34]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [15:59:34]wFMCommunicate OK [15:59:34]SAM_PROTO_GetShiftState done [15:59:34]FM_GetShiftState done [15:59:34]req_shift_opened done [15:59:34]requested_item shift.open_date is exist - process it [15:59:34]req_shift_open_date [15:59:34]req_shift_open_date done [15:59:34]produce_requested_data done [15:59:34]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111722,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [15:59:34]process_action_free close_receipt [15:59:34]json_value_free [15:59:34]json_value_free done [15:59:34]process_json_proto returns [15:59:34]Send response to host [15:59:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111722,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [15:59:34]free response buf [15:59:34]execute_script done [15:59:34]execute_script returns [15:59:34]free content buf [15:59:34]Sock 7.Close socket [15:59:34]Sock 7.Thread stoped [15:59:38]OFD Sender: No OFD packet to send [15:59:43]OFD Sender: No OFD packet to send [15:59:48]OFD Sender: No OFD packet to send [15:59:53]OFD Sender: No OFD packet to send [15:59:58]OFD Sender: No OFD packet to send [16:00:03]OFD Sender: No OFD packet to send [16:00:08]OFD Sender: No OFD packet to send [16:00:13]OFD Sender: No OFD packet to send [16:00:18]OFD Sender: No OFD packet to send [16:00:23]OFD Sender: No OFD packet to send [16:00:28]OFD Sender: No OFD packet to send [16:00:33]OFD Sender: No OFD packet to send [16:00:38]OFD Sender: No OFD packet to send [16:00:43]OFD Sender: No OFD packet to send [16:00:48]OFD Sender: No OFD packet to send [16:00:53]OFD Sender: No OFD packet to send [16:00:58]OFD Sender: No OFD packet to send [16:01:03]OFD Sender: No OFD packet to send [16:01:08]OFD Sender: No OFD packet to send [16:01:13]OFD Sender: No OFD packet to send [16:01:18]OFD Sender: No OFD packet to send [16:01:21]accept exits with 9 [16:01:21]New connection [16:01:21]New thread 3067178340 created [16:01:21]Thread 3067321700 joined [16:01:21]Waiting for new connection... [16:01:21] Sock 9.Parse request [16:01:21]Sock 9.Check first char [16:01:21]Sock 9.First char is OK [16:01:21]request: POST /json_proto HTTP/1.0 [16:01:21]Method: POST [16:01:21]URL: /json_proto [16:01:21]Method is POST - this is cgi request [16:01:21]url: /json_proto [16:01:21]query_string will be loaded in cgi processing [16:01:21]execute_cgi json_proto POST (null) [16:01:21]execute_cgi path=json_proto method=POST [16:01:21]POST find Content-Length [16:01:21]Host: 172.17.59.68:8080 [16:01:21]Content-Length: 677 [16:01:21]Content-Type: application/json [16:01:21] [16:01:21]POST finish read [16:01:21]Found Content-Length = 677 [16:01:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:21]execute_script... [16:01: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)320341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:21]POST & json_proto [16:01:21]process_json_proto [16:01:21]json parsed OK: [16:01:21]protocol is kg_v1.0 [16:01:21]action value=close_receipt [16:01:21]process_action close_receipt [16:01:21]cmd_close_receipt [16:01:21]MH_GetDate [16:01:21]Write to MH i2c: F0 00 00 41 0A 3A [16:01:21]Write i2c OK [16:01:21]MH_I2C_Read... [16:01:21]Read from MH i2c: F0 [16:01:21]MH_I2C_Read... [16:01:21]Read from MH i2c: F0 09 00 [16:01:21]MH_I2C_Read... [16:01:21]Read from MH i2c: F0 09 00 41 0A 00 54 52 74 66 BC EC 60 65 30 [16:01:21]GetLastDocTimeStamp 1718899173 [16:01:21]current date 1718899284 [16:01:21]FM_GetShiftState [16:01:21]SAM_PROTO_GetShiftState [16:01:21]wFMCommunicate request_size=4 [16:01:21]MH_SAM_APDU [16:01:21]CAPDU: 80 13 01 00 [16:01:21]Write to MH i2c: E2 08 00 42 0A 80 13 01 00 00 00 00 00 C9 [16:01:21]Write i2c OK [16:01:21]MH_I2C_Read... [16:01:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:21]Read from MH i2c: E2 [16:01:21]MH_I2C_Read... [16:01:21]Read from MH i2c: E2 0E 00 [16:01:21]MH_I2C_Read... [16:01:21]Read from MH i2c: E2 0E 00 42 0A 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 44 [16:01:21]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [16:01:21]wFMCommunicate OK [16:01:21]SAM_PROTO_GetShiftState done [16:01:21]FM_GetShiftState done [16:01:21]opened in 1718847247 [16:01:21]opened+sec_in_day 1718933647 [16:01:21]quantity*price = 50065 [16:01:21]sum+1 = 50067 [16:01:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 173 20.06.2024 16:01 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111723 ФПД: 175871097778950 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T160124&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111723&fm=175871097778950&tin=02508201610067®Number=0000000000092771&sum=50000 [16:01:22]StoreToDocumentArchive [16:01:22]shift 389 fd 111723 [16:01:22]save to /storage/0389/doc_00111723 [16:01:22]save last doc name /storage/0389/doc_00111723 to /storage/kkm_last_doc_name [16:01:22]save OK [16:01:22]Clear old archive folders... [16:01:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:01:22]tlvbuf is B6F02AC0 [16:01:22]SAM_PROTO_ClearQueue [16:01:22]wFMCommunicate request_size=4 [16:01:22]MH_SAM_APDU [16:01:22]CAPDU: 80 09 00 00 [16:01:22]Write to MH i2c: E2 08 00 4F 0A 80 09 00 00 00 00 00 00 CB [16:01:22]Write i2c OK [16:01:22]MH_I2C_Read... [16:01:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:01:22]Read from MH i2c: E2 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: E2 03 00 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: E2 03 00 4F 0A 00 90 00 CD [16:01:22]RAPDU: 90 00 [16:01:22]wFMCommunicate OK [16:01:22]SAM_PROTO_ClearQueue done [16:01:22]KKMCreateOFDPacket [16:01:22]OFDProtocolAddRootSTLVToBuf [16:01:22]FM_MakeSignedData [16:01:22]FM_MakeSignedData [16:01:22]SAM_PROTO_SignData [16:01:22]wFMCommunicate request_size=4 [16:01:22]MH_SAM_APDU [16:01:22]CAPDU: 80 0D 01 02 [16:01:22]Write to MH i2c: E2 08 00 50 0A 80 0D 01 02 00 00 00 00 D3 [16:01:22]Write i2c OK [16:01:22]MH_I2C_Read... [16:01:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:01:22]Read from MH i2c: E2 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: E2 03 00 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: E2 03 00 50 0A 00 90 00 CE [16:01:22]RAPDU: 90 00 [16:01:22]wFMCommunicate OK [16:01:22]wFMCommunicate request_size=255 [16:01:22]MH_SAM_APDU [16:01:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 54 52 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6B B4 01 00 35 04 06 00 9F [16:01:22]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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 54 52 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6B B4 01 00 35 04 06 00 9F 00 00 F9 [16:01:22]Write i2c OK [16:01:22]MH_I2C_Read... [16:01:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:22]Read from MH i2c: E2 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: E2 03 00 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: E2 03 00 51 0A 00 90 00 CF [16:01:22]RAPDU: 90 00 [16:01:22]wFMCommunicate OK [16:01:22]wFMCommunicate request_size=10 [16:01:22]MH_SAM_APDU [16:01:22]CAPDU: 80 0D 02 02 05 F4 2E 4F 33 06 [16:01:22]Write to MH i2c: E2 0D 00 52 0A 80 0D 02 02 05 00 F4 2E 4F 33 06 00 00 8A [16:01:22]Write i2c OK [16:01:22]MH_I2C_Read... [16:01:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:22]Read from MH i2c: E2 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: E2 03 00 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: E2 03 00 52 0A 00 90 00 D0 [16:01:22]RAPDU: 90 00 [16:01:22]wFMCommunicate OK [16:01:22]wFMCommunicate request_size=4 [16:01:22]MH_SAM_APDU [16:01:22]CAPDU: 80 0D 03 02 [16:01:22]Write to MH i2c: E2 08 00 53 0A 80 0D 03 02 00 00 00 00 D8 [16:01:22]Write i2c OK [16:01:22]MH_I2C_Read... [16:01:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:01:22]Read from MH i2c: E2 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: E2 0B 00 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: E2 0B 00 53 0A 00 60 4B DE 9F 83 E1 4C 2A 90 00 DB [16:01:22]RAPDU: 60 4B DE 9F 83 E1 4C 2A 90 00 [16:01:22]wFMCommunicate OK [16:01:22]SAM_PROTO_SignData done [16:01:22]FM_MakeSignedData done [16:01:22]CreateOFDProtocolMessage [16:01:22]wFMCommunicate request_size=4 [16:01:22]MH_SAM_APDU [16:01:22]CAPDU: 80 11 00 00 [16:01:22]Write to MH i2c: E2 08 00 54 0A 80 11 00 00 00 00 00 00 D8 [16:01:23]Write i2c OK [16:01:23]MH_I2C_Read... [16:01:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:23]Read from MH i2c: E2 [16:01:23]MH_I2C_Read... [16:01:23]Read from MH i2c: E2 17 00 [16:01:23]MH_I2C_Read... [16:01:23]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 35 30 38 33 90 00 2A [16:01:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:01:23]wFMCommunicate OK [16:01:23]CreateOFDProtocolMessage done [16:01:23]OFDSenderStorePacket 111723 [16:01:23]StoreOFDPacket docnum=111723 [16:01:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 91 71 07 01 02 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 54 52 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6B B4 01 00 35 04 06 00 9F F4 2E 4F 33 06 60 4B DE 9F 83 E1 4C 2A [16:01:23]CheckFolder [16:01:23]dirname=/storage/ofd_packets [16:01:23]CheckFolder done [16:01:23]ProducePacketName [16:01:23]name=ofd_packets/00111723 [16:01:23]NVStorageSaveData ofd_packets/00111723 [16:01:23]File name is /storage/ofd_packets/00111723 [16:01:23]Write 301 bytes [16:01:23]NVStorageSaveData done [16:01:23]OFDSenderStorePacket done [16:01:23]KKMCreateOFDPacket done [16:01:23]NVStorageSaveData kkm_last_timestamp [16:01:23]File name is /storage/kkm_last_timestamp [16:01:23]Write 4 bytes [16:01:23]NVStorageSaveData done [16:01:23]ExternCall_PrintAddStr [16:01:23]wPrintStart [16:01:23]Write to MH i2c: 01 00 00 55 0A 5F [16:01:23]Write i2c OK [16:01:23]MH_I2C_Read... [16:01:23]Read from MH i2c: 01 [16:01:23]MH_I2C_Read... [16:01:23]Read from MH i2c: 01 07 00 [16:01:23]MH_I2C_Read... [16:01:23]Read from MH i2c: 01 07 00 55 0A 00 00 00 00 00 FF 0F 74 [16:01:23]RasterBufferAndPrint [16:01:23]line Счет N : (1)320341 [16:01:23]line ИНН: 02508201610067 [16:01:23]line Контрольно-Кассовый Чек [16:01:23]line ПРОДАЖА [16:01:23]line ТРК (МРК, ГНК) : 11 [16:01:23]line Товар: 2710124130 [16:01:23]line Аи-92-К-5 [16:01:23]line 7.540 * 66.40 [16:01:23]line = 500.66 [16:01:23]line НДС 12% НСП 1% [16:01:23]line > о реализуемом товаре [16:01:23]line ОКРУГЛЕНИЕ: -0.66 [16:01:23]line ИТОГО: 500.00 [16:01:23]line Внесено: 500.00 [16:01:23]line СДАЧА: 0.00 [16:01:23]line НСП 1% : 4.43 [16:01:23]line НДС 12% : 53.17 [16:01:23]line Наличными: 500.00 [16:01:23]line Безнал.: 0.00 [16:01:23]line Место: АЗС № 65 "Партнер Нефть" [16:01:23]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:01:23]line СНО: Общий режим [16:01:23]line Чек 173 20.06.2024 16:01 [16:01:23]line Смена: 389 ФФД: 1.0 [16:01:23]line ЗНМ: 0300000198 [16:01:23]line РНМ: 0000000000092771 [16:01:23]line Версия ККМ: 001 [16:01:23]line ФМ: 0000000000875083 [16:01:23]line ФД: 111723 [16:01:23]line ФПД: 175871097778950 [16:01:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T160124&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111723&fm=175871097778950&tin=02508201610067®Number=0000000000092771&sum=50000 [16:01:23]OFD Sender: Processing packet 111723 [packets to send 38, broken 37] [16:01:23]ProducePacketName [16:01:23]name=ofd_packets/00111723 [16:01:23]OFD Sender: To server: pG, [16:01:23]CommunicateWithHost lk.salyk.kg:30040 [16:01:23]ConnectInit lk.salyk.kg [16:01:23]written 0, free lines is 4095 [16:01:23]Connected sock=10 [16:01:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 91 71 07 01 02 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 54 52 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6B B4 01 00 35 04 06 00 9F F4 2E 4F 33 06 60 4B DE 9F 83 E1 4C 2A [16:01:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 6E 9C 47 00 30 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6B B4 01 00 F4 03 04 00 9A E9 73 66 B6 04 01 00 00 A8 66 80 07 B3 3D B1 FA [16:01:23]CommunicateWithHost err = 0 [16:01:23]CheckOFDResponse [16:01:23]1017 (14) - 77093643461234 [16:01:23]1041 (16) - 0000000000875083 [16:01:23]1040 (4) - 111723 [16:01:23]1012 (4) - 20.06.2024 08:34 [16:01:23]1206 (1) - 0 [16:01:23]OFD Sender: Remove packet 111723 [16:01:23]ProducePacketName [16:01:23]name=ofd_packets/00111723 [16:01:23]NVStorageDeleteData [16:01:23]Write to MH i2c: 01 00 00 80 0A 8A [16:01:23]Write i2c OK [16:01:23]MH_I2C_Read... [16:01:23]Read from MH i2c: 01 [16:01:23]MH_I2C_Read... [16:01:23]Read from MH i2c: 01 07 00 [16:01:23]MH_I2C_Read... [16:01:23]Read from MH i2c: 01 07 00 80 0A 00 00 00 00 00 CD 0C 6A [16:01:23]RasterBufferAndPrint [16:01:23]line [16:01:23]line [16:01:23]line [16:01:23]line [16:01:23]line [16:01:23]written 0, free lines is 3283 [16:01:23]MH_Cut [16:01:23]Write to MH i2c: D1 01 00 87 0A 01 63 [16:01:23]Write i2c OK [16:01:23]MH_I2C_Read... [16:01:23]Read from MH i2c: D1 [16:01:23]MH_I2C_Read... [16:01:23]Read from MH i2c: D1 01 00 [16:01:23]MH_I2C_Read... [16:01:23]Read from MH i2c: D1 01 00 87 0A 00 62 [16:01:23]Write to MH i2c: 01 00 00 88 0A 92 [16:01:23]Write i2c OK [16:01:23]MH_I2C_Read... [16:01:24]OFD Sender: No OFD packet to send [16:01:24]*** Cut start [16:01:24]*** Partial cut [16:01:24]*** CUTSNS_PIN = 1 [16:01:24]*** CUTSNS_PIN = 0 [16:01:24]*** Brake cut motor [16:01:25]Read from MH i2c: 01 [16:01:25]MH_I2C_Read... [16:01:25]*** Stop cut motor [16:01:25]*** Cut end [16:01:25]Read from MH i2c: 01 07 00 [16:01:25]MH_I2C_Read... [16:01:25]Read from MH i2c: 01 07 00 88 0A 00 00 00 00 00 FF 0F A7 [16:01:25]process_action close_receipt done [16:01:25]requested_data is exist [16:01:25]produce_requested_data [16:01:25]requested_item fm.sn is exist - process it [16:01:25]wFMCommunicate request_size=4 [16:01:25]MH_SAM_APDU [16:01:25]CAPDU: 80 11 00 00 [16:01:25]Write to MH i2c: E2 08 00 89 0A 80 11 00 00 00 00 00 00 0D [16:01:25]Write i2c OK [16:01:25]MH_I2C_Read... [16:01:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:25]Read from MH i2c: E2 [16:01:25]MH_I2C_Read... [16:01:25]Read from MH i2c: E2 17 00 [16:01:25]MH_I2C_Read... [16:01:25]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 35 30 38 33 90 00 5F [16:01:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:01:25]wFMCommunicate OK [16:01:25]requested_item fd.num is exist - process it [16:01:25]SAM_PROTO_GetFieldsCounters [16:01:25]wFMCommunicate request_size=4 [16:01:25]MH_SAM_APDU [16:01:25]CAPDU: 80 13 00 00 [16:01:25]Write to MH i2c: E2 08 00 8A 0A 80 13 00 00 00 00 00 00 10 [16:01:25]Write i2c OK [16:01:25]MH_I2C_Read... [16:01:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:25]Read from MH i2c: E2 [16:01:25]MH_I2C_Read... [16:01:25]Read from MH i2c: E2 62 00 [16:01:25]MH_I2C_Read... [16:01:25]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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6B B4 01 00 0E 04 04 00 85 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 DE [16:01:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6B B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:01:25]wFMCommunicate OK [16:01:25]SAM_PROTO_GetFieldsCounters done [16:01:25]requested_item shift.num is exist - process it [16:01:25]requested_item shift.opened is exist - process it [16:01:25]req_shift_opened [16:01:25]FM_GetShiftState [16:01:25]SAM_PROTO_GetShiftState [16:01:25]wFMCommunicate request_size=4 [16:01:25]MH_SAM_APDU [16:01:25]CAPDU: 80 13 01 00 [16:01:25]Write to MH i2c: E2 08 00 8B 0A 80 13 01 00 00 00 00 00 12 [16:01:25]Write i2c OK [16:01:25]MH_I2C_Read... [16:01:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:25]Read from MH i2c: E2 [16:01:25]MH_I2C_Read... [16:01:25]Read from MH i2c: E2 0E 00 [16:01:25]MH_I2C_Read... [16:01:25]Read from MH i2c: E2 0E 00 8B 0A 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 8D [16:01:25]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [16:01:25]wFMCommunicate OK [16:01:25]SAM_PROTO_GetShiftState done [16:01:25]FM_GetShiftState done [16:01:25]req_shift_opened done [16:01:25]requested_item shift.open_date is exist - process it [16:01:25]req_shift_open_date [16:01:25]req_shift_open_date done [16:01:25]produce_requested_data done [16:01:25]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111723,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [16:01:25]process_action_free close_receipt [16:01:25]json_value_free [16:01:25]json_value_free done [16:01:25]process_json_proto returns [16:01:25]Send response to host [16:01:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111723,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [16:01:25]free response buf [16:01:25]execute_script done [16:01:25]execute_script returns [16:01:25]free content buf [16:01:25]Sock 9.Close socket [16:01:25]Sock 9.Thread stoped [16:01:29]OFD Sender: No OFD packet to send [16:01:34]OFD Sender: No OFD packet to send [16:01:39]OFD Sender: No OFD packet to send [16:01:44]OFD Sender: No OFD packet to send [16:01:49]OFD Sender: No OFD packet to send [16:01:54]OFD Sender: No OFD packet to send [16:01:59]OFD Sender: No OFD packet to send [16:02:04]OFD Sender: No OFD packet to send [16:02:09]OFD Sender: No OFD packet to send [16:02:14]OFD Sender: No OFD packet to send [16:02:19]OFD Sender: No OFD packet to send [16:02:24]OFD Sender: No OFD packet to send [16:02:29]OFD Sender: No OFD packet to send [16:02:34]OFD Sender: No OFD packet to send [16:02:39]OFD Sender: No OFD packet to send [16:02:44]OFD Sender: No OFD packet to send [16:02:49]OFD Sender: No OFD packet to send [16:02:54]OFD Sender: No OFD packet to send [16:02:59]OFD Sender: No OFD packet to send [16:03:04]OFD Sender: No OFD packet to send [16:03:09]OFD Sender: No OFD packet to send [16:03:14]OFD Sender: No OFD packet to send [16:03:19]OFD Sender: No OFD packet to send [16:03:24]OFD Sender: No OFD packet to send [16:03:29]OFD Sender: No OFD packet to send [16:03:34]OFD Sender: No OFD packet to send [16:03:39]OFD Sender: No OFD packet to send [16:03:44]OFD Sender: No OFD packet to send [16:03:49]OFD Sender: No OFD packet to send [16:03:54]OFD Sender: No OFD packet to send [16:03:59]OFD Sender: No OFD packet to send [16:04:04]OFD Sender: No OFD packet to send [16:04:09]OFD Sender: No OFD packet to send [16:04:14]OFD Sender: No OFD packet to send [16:04:19]OFD Sender: No OFD packet to send [16:04:24]OFD Sender: No OFD packet to send [16:04:29]OFD Sender: No OFD packet to send [16:04:34]OFD Sender: No OFD packet to send [16:04:39]OFD Sender: No OFD packet to send [16:04:44]OFD Sender: No OFD packet to send [16:04:49]OFD Sender: No OFD packet to send [16:04:54]OFD Sender: No OFD packet to send [16:04:59]OFD Sender: No OFD packet to send [16:05:04]OFD Sender: No OFD packet to send [16:05:09]OFD Sender: No OFD packet to send [16:05:14]OFD Sender: No OFD packet to send [16:05:19]OFD Sender: No OFD packet to send [16:05:24]OFD Sender: No OFD packet to send [16:05:29]OFD Sender: No OFD packet to send [16:05:34]OFD Sender: No OFD packet to send [16:05:39]OFD Sender: No OFD packet to send [16:05:44]OFD Sender: No OFD packet to send [16:05:49]OFD Sender: No OFD packet to send [16:05:54]OFD Sender: No OFD packet to send [16:05:59]OFD Sender: No OFD packet to send [16:06:04]OFD Sender: No OFD packet to send [16:06:09]OFD Sender: No OFD packet to send [16:06:14]OFD Sender: No OFD packet to send [16:06:19]OFD Sender: No OFD packet to send [16:06:24]OFD Sender: No OFD packet to send [16:06:29]OFD Sender: No OFD packet to send [16:06:34]OFD Sender: No OFD packet to send [16:06:39]OFD Sender: No OFD packet to send [16:06:44]OFD Sender: No OFD packet to send [16:06:49]OFD Sender: No OFD packet to send [16:06:54]OFD Sender: No OFD packet to send [16:06:59]OFD Sender: No OFD packet to send [16:07:04]OFD Sender: No OFD packet to send [16:07:09]OFD Sender: No OFD packet to send [16:07:14]OFD Sender: No OFD packet to send [16:07:19]OFD Sender: No OFD packet to send [16:07:24]OFD Sender: No OFD packet to send [16:07:28]accept exits with 7 [16:07:28]New connection [16:07:28]New thread 3067321700 created [16:07:28]Thread 3067178340 joined [16:07:28]Waiting for new connection... [16:07:28] Sock 7.Parse request [16:07:28]Sock 7.Check first char [16:07:28]Sock 7.First char is OK [16:07:28]request: POST /json_proto HTTP/1.0 [16:07:28]Method: POST [16:07:28]URL: /json_proto [16:07:28]Method is POST - this is cgi request [16:07:28]url: /json_proto [16:07:28]query_string will be loaded in cgi processing [16:07:28]execute_cgi json_proto POST (null) [16:07:28]execute_cgi path=json_proto method=POST [16:07:28]POST find Content-Length [16:07:28]Host: 172.17.59.68:8080 [16:07:28]Content-Length: 678 [16:07:28]Content-Type: application/json [16:07:28] [16:07:28]POST finish read [16:07:28]Found Content-Length = 678 [16:07:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.250, "sum" : 680.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:28]execute_script... [16:07: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)320342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.250, "sum" : 680.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:28]POST & json_proto [16:07:28]process_json_proto [16:07:28]json parsed OK: [16:07:28]protocol is kg_v1.0 [16:07:28]action value=close_receipt [16:07:28]process_action close_receipt [16:07:28]cmd_close_receipt [16:07:28]MH_GetDate [16:07:28]Write to MH i2c: F0 00 00 8C 0A 85 [16:07:28]Write i2c OK [16:07:28]MH_I2C_Read... [16:07:28]Read from MH i2c: F0 [16:07:28]MH_I2C_Read... [16:07:28]Read from MH i2c: F0 09 00 [16:07:28]MH_I2C_Read... [16:07:28]Read from MH i2c: F0 09 00 8C 0A 00 C3 53 74 66 BC EC 60 65 EB [16:07:28]GetLastDocTimeStamp 1718899284 [16:07:28]current date 1718899651 [16:07:28]FM_GetShiftState [16:07:28]SAM_PROTO_GetShiftState [16:07:28]wFMCommunicate request_size=4 [16:07:28]MH_SAM_APDU [16:07:28]CAPDU: 80 13 01 00 [16:07:28]Write to MH i2c: E2 08 00 8D 0A 80 13 01 00 00 00 00 00 14 [16:07:28]Write i2c OK [16:07:28]MH_I2C_Read... [16:07:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:28]Read from MH i2c: E2 [16:07:28]MH_I2C_Read... [16:07:28]Read from MH i2c: E2 0E 00 [16:07:28]MH_I2C_Read... [16:07:28]Read from MH i2c: E2 0E 00 8D 0A 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 8F [16:07:28]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [16:07:28]wFMCommunicate OK [16:07:28]SAM_PROTO_GetShiftState done [16:07:28]FM_GetShiftState done [16:07:28]opened in 1718847247 [16:07:28]opened+sec_in_day 1718933647 [16:07:28]quantity*price = 68060 [16:07:28]sum+1 = 68061 [16:07:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 680.00 Внесено: 680.00 СДАЧА: 0.00 НСП 1% : 6.02 НДС 12% : 72.28 Наличными: 680.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 174 20.06.2024 16:07 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111724 ФПД: 147905330026049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T160731&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111724&fm=147905330026049&tin=02508201610067®Number=0000000000092771&sum=68000 [16:07:29]StoreToDocumentArchive [16:07:29]shift 389 fd 111724 [16:07:29]save to /storage/0389/doc_00111724 [16:07:29]save last doc name /storage/0389/doc_00111724 to /storage/kkm_last_doc_name [16:07:29]save OK [16:07:29]Clear old archive folders... [16:07:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:07:29]tlvbuf is 01773260 [16:07:29]SAM_PROTO_ClearQueue [16:07:29]wFMCommunicate request_size=4 [16:07:29]MH_SAM_APDU [16:07:29]CAPDU: 80 09 00 00 [16:07:29]Write to MH i2c: E2 08 00 9A 0A 80 09 00 00 00 00 00 00 16 [16:07:29]Write i2c OK [16:07:29]MH_I2C_Read... [16:07:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:07:29]Read from MH i2c: E2 [16:07:29]MH_I2C_Read... [16:07:29]Read from MH i2c: E2 03 00 [16:07:29]MH_I2C_Read... [16:07:29]Read from MH i2c: E2 03 00 9A 0A 00 90 00 18 [16:07:29]RAPDU: 90 00 [16:07:29]wFMCommunicate OK [16:07:29]SAM_PROTO_ClearQueue done [16:07:29]KKMCreateOFDPacket [16:07:29]OFDProtocolAddRootSTLVToBuf [16:07:29]FM_MakeSignedData [16:07:29]FM_MakeSignedData [16:07:29]SAM_PROTO_SignData [16:07:29]wFMCommunicate request_size=4 [16:07:29]MH_SAM_APDU [16:07:29]CAPDU: 80 0D 01 02 [16:07:29]Write to MH i2c: E2 08 00 9B 0A 80 0D 01 02 00 00 00 00 1E [16:07:29]Write i2c OK [16:07:29]MH_I2C_Read... [16:07:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:07:29]Read from MH i2c: E2 [16:07:29]MH_I2C_Read... [16:07:29]Read from MH i2c: E2 03 00 [16:07:29]MH_I2C_Read... [16:07:29]Read from MH i2c: E2 03 00 9B 0A 00 90 00 19 [16:07:29]RAPDU: 90 00 [16:07:29]wFMCommunicate OK [16:07:29]wFMCommunicate request_size=255 [16:07:29]MH_SAM_APDU [16:07: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 0A 28 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DC 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 C3 53 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6C B4 01 00 35 04 06 00 86 [16:07:29]Write to MH i2c: E2 02 01 9C 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 0A 28 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DC 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 C3 53 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6C B4 01 00 35 04 06 00 86 00 00 1C [16:07:29]Write i2c OK [16:07:29]MH_I2C_Read... [16:07:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:30]Read from MH i2c: E2 [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: E2 03 00 [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: E2 03 00 9C 0A 00 90 00 1A [16:07:30]RAPDU: 90 00 [16:07:30]wFMCommunicate OK [16:07:30]wFMCommunicate request_size=10 [16:07:30]MH_SAM_APDU [16:07:30]CAPDU: 80 0D 02 02 05 84 E4 A8 16 41 [16:07:30]Write to MH i2c: E2 0D 00 9D 0A 80 0D 02 02 05 00 84 E4 A8 16 41 00 00 92 [16:07:30]Write i2c OK [16:07:30]MH_I2C_Read... [16:07:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:30]Read from MH i2c: E2 [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: E2 03 00 [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: E2 03 00 9D 0A 00 90 00 1B [16:07:30]RAPDU: 90 00 [16:07:30]wFMCommunicate OK [16:07:30]wFMCommunicate request_size=4 [16:07:30]MH_SAM_APDU [16:07:30]CAPDU: 80 0D 03 02 [16:07:30]Write to MH i2c: E2 08 00 9E 0A 80 0D 03 02 00 00 00 00 23 [16:07:30]Write i2c OK [16:07:30]MH_I2C_Read... [16:07:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:07:30]Read from MH i2c: E2 [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: E2 0B 00 [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: E2 0B 00 9E 0A 00 35 0D 09 E8 10 8F 3C 87 90 00 B9 [16:07:30]RAPDU: 35 0D 09 E8 10 8F 3C 87 90 00 [16:07:30]wFMCommunicate OK [16:07:30]SAM_PROTO_SignData done [16:07:30]FM_MakeSignedData done [16:07:30]CreateOFDProtocolMessage [16:07:30]wFMCommunicate request_size=4 [16:07:30]MH_SAM_APDU [16:07:30]CAPDU: 80 11 00 00 [16:07:30]Write to MH i2c: E2 08 00 9F 0A 80 11 00 00 00 00 00 00 23 [16:07:30]Write i2c OK [16:07:30]MH_I2C_Read... [16:07:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:30]Read from MH i2c: E2 [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: E2 17 00 [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: E2 17 00 9F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 75 [16:07:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:07:30]wFMCommunicate OK [16:07:30]CreateOFDProtocolMessage done [16:07:30]OFDSenderStorePacket 111724 [16:07:30]StoreOFDPacket docnum=111724 [16:07:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 41 16 07 01 16 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 28 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DC 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 C3 53 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6C B4 01 00 35 04 06 00 86 84 E4 A8 16 41 35 0D 09 E8 10 8F 3C 87 [16:07:30]CheckFolder [16:07:30]dirname=/storage/ofd_packets [16:07:30]CheckFolder done [16:07:30]ProducePacketName [16:07:30]name=ofd_packets/00111724 [16:07:30]NVStorageSaveData ofd_packets/00111724 [16:07:30]File name is /storage/ofd_packets/00111724 [16:07:30]Write 301 bytes [16:07:30]NVStorageSaveData done [16:07:30]OFDSenderStorePacket done [16:07:30]KKMCreateOFDPacket done [16:07:30]NVStorageSaveData kkm_last_timestamp [16:07:30]File name is /storage/kkm_last_timestamp [16:07:30]Write 4 bytes [16:07:30]NVStorageSaveData done [16:07:30]ExternCall_PrintAddStr [16:07:30]wPrintStart [16:07:30]Write to MH i2c: 01 00 00 A0 0A AA [16:07:30]Write i2c OK [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: 01 [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: 01 07 00 [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: 01 07 00 A0 0A 00 00 00 00 00 FF 0F BF [16:07:30]RasterBufferAndPrint [16:07:30]line Счет N : (1)320342 [16:07:30]line ИНН: 02508201610067 [16:07:30]line Контрольно-Кассовый Чек [16:07:30]line ПРОДАЖА [16:07:30]line ТРК (МРК, ГНК) : 11 [16:07:30]line Товар: 2710124130 [16:07:30]line Аи-92-К-5 [16:07:30]line 10.250 * 66.40 [16:07:30]line = 680.60 [16:07:30]line НДС 12% НСП 1% [16:07:30]line > о реализуемом товаре [16:07:30]line ОКРУГЛЕНИЕ: -0.60 [16:07:30]line ИТОГО: 680.00 [16:07:30]line Внесено: 680.00 [16:07:30]line СДАЧА: 0.00 [16:07:30]line НСП 1% : 6.02 [16:07:30]line НДС 12% : 72.28 [16:07:30]line Наличными: 680.00 [16:07:30]line Безнал.: 0.00 [16:07:30]line Место: АЗС № 65 "Партнер Нефть" [16:07:30]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:07:30]line СНО: Общий режим [16:07:30]line Чек 174 20.06.2024 16:07 [16:07:30]line Смена: 389 ФФД: 1.0 [16:07:30]line ЗНМ: 0300000198 [16:07:30]line РНМ: 0000000000092771 [16:07:30]line Версия ККМ: 001 [16:07:30]line ФМ: 0000000000875083 [16:07:30]line ФД: 111724 [16:07:30]line ФПД: 147905330026049 [16:07:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T160731&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111724&fm=147905330026049&tin=02508201610067®Number=0000000000092771&sum=68000 [16:07:30]OFD Sender: Processing packet 111724 [packets to send 38, broken 37] [16:07:30]ProducePacketName [16:07:30]name=ofd_packets/00111724 [16:07:30]OFD Sender: To server: pG, [16:07:30]CommunicateWithHost lk.salyk.kg:30040 [16:07:30]ConnectInit lk.salyk.kg [16:07:30]written 0, free lines is 4095 [16:07:30]Connected sock=10 [16:07:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 41 16 07 01 16 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 28 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DC 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 C3 53 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6C B4 01 00 35 04 06 00 86 84 E4 A8 16 41 35 0D 09 E8 10 8F 3C 87 [16:07:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 0F 80 47 00 97 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6C B4 01 00 F4 03 04 00 09 EB 73 66 B6 04 01 00 00 6F DF 9F 6A 1D C2 AB 79 [16:07:30]CommunicateWithHost err = 0 [16:07:30]CheckOFDResponse [16:07:30]1017 (14) - 77093643461234 [16:07:30]1041 (16) - 0000000000875083 [16:07:30]1040 (4) - 111724 [16:07:30]1012 (4) - 20.06.2024 08:40 [16:07:30]1206 (1) - 0 [16:07:30]OFD Sender: Remove packet 111724 [16:07:30]ProducePacketName [16:07:30]name=ofd_packets/00111724 [16:07:30]NVStorageDeleteData [16:07:31]Write to MH i2c: 01 00 00 CB 0A D5 [16:07:31]Write i2c OK [16:07:31]MH_I2C_Read... [16:07:31]Read from MH i2c: 01 [16:07:31]MH_I2C_Read... [16:07:31]Read from MH i2c: 01 07 00 [16:07:31]MH_I2C_Read... [16:07:31]Read from MH i2c: 01 07 00 CB 0A 00 00 00 00 00 DA 0C C2 [16:07:31]RasterBufferAndPrint [16:07:31]line [16:07:31]line [16:07:31]line [16:07:31]line [16:07:31]line [16:07:31]written 0, free lines is 3298 [16:07:31]MH_Cut [16:07:31]Write to MH i2c: D1 01 00 D2 0A 01 AE [16:07:31]Write i2c OK [16:07:31]MH_I2C_Read... [16:07:31]Read from MH i2c: D1 [16:07:31]MH_I2C_Read... [16:07:31]Read from MH i2c: D1 01 00 [16:07:31]MH_I2C_Read... [16:07:31]Read from MH i2c: D1 01 00 D2 0A 00 AD [16:07:31]Write to MH i2c: 01 00 00 D3 0A DD [16:07:31]Write i2c OK [16:07:31]MH_I2C_Read... [16:07:31]OFD Sender: No OFD packet to send [16:07:31]*** Cut start [16:07:31]*** Partial cut [16:07:31]*** CUTSNS_PIN = 1 [16:07:31]*** CUTSNS_PIN = 0 [16:07:32]*** Brake cut motor [16:07:32]Read from MH i2c: 01 [16:07:32]MH_I2C_Read... [16:07:32]*** Stop cut motor [16:07:32]*** Cut end [16:07:32]Read from MH i2c: 01 07 00 [16:07:32]MH_I2C_Read... [16:07:32]Read from MH i2c: 01 07 00 D3 0A 00 00 00 00 00 FF 0F F2 [16:07:32]process_action close_receipt done [16:07:32]requested_data is exist [16:07:32]produce_requested_data [16:07:32]requested_item fm.sn is exist - process it [16:07:32]wFMCommunicate request_size=4 [16:07:32]MH_SAM_APDU [16:07:32]CAPDU: 80 11 00 00 [16:07:32]Write to MH i2c: E2 08 00 D4 0A 80 11 00 00 00 00 00 00 58 [16:07:32]Write i2c OK [16:07:32]MH_I2C_Read... [16:07:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:32]Read from MH i2c: E2 [16:07:32]MH_I2C_Read... [16:07:32]Read from MH i2c: E2 17 00 [16:07:32]MH_I2C_Read... [16:07:32]Read from MH i2c: E2 17 00 D4 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AA [16:07:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:07:32]wFMCommunicate OK [16:07:32]requested_item fd.num is exist - process it [16:07:32]SAM_PROTO_GetFieldsCounters [16:07:32]wFMCommunicate request_size=4 [16:07:32]MH_SAM_APDU [16:07:32]CAPDU: 80 13 00 00 [16:07:32]Write to MH i2c: E2 08 00 D5 0A 80 13 00 00 00 00 00 00 5B [16:07:32]Write i2c OK [16:07:32]MH_I2C_Read... [16:07:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:07:32]Read from MH i2c: E2 [16:07:32]MH_I2C_Read... [16:07:32]Read from MH i2c: E2 62 00 [16:07:32]MH_I2C_Read... [16:07:32]Read from MH i2c: E2 62 00 D5 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6C B4 01 00 0E 04 04 00 85 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 2D [16:07:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6C B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:07:32]wFMCommunicate OK [16:07:32]SAM_PROTO_GetFieldsCounters done [16:07:32]requested_item shift.num is exist - process it [16:07:32]requested_item shift.opened is exist - process it [16:07:32]req_shift_opened [16:07:32]FM_GetShiftState [16:07:32]SAM_PROTO_GetShiftState [16:07:32]wFMCommunicate request_size=4 [16:07:32]MH_SAM_APDU [16:07:32]CAPDU: 80 13 01 00 [16:07:32]Write to MH i2c: E2 08 00 D6 0A 80 13 01 00 00 00 00 00 5D [16:07:32]Write i2c OK [16:07:32]MH_I2C_Read... [16:07:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:32]Read from MH i2c: E2 [16:07:32]MH_I2C_Read... [16:07:32]Read from MH i2c: E2 0E 00 [16:07:32]MH_I2C_Read... [16:07:32]Read from MH i2c: E2 0E 00 D6 0A 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 D8 [16:07:32]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [16:07:32]wFMCommunicate OK [16:07:32]SAM_PROTO_GetShiftState done [16:07:32]FM_GetShiftState done [16:07:32]req_shift_opened done [16:07:32]requested_item shift.open_date is exist - process it [16:07:32]req_shift_open_date [16:07:32]req_shift_open_date done [16:07:32]produce_requested_data done [16:07:32]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111724,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [16:07:32]process_action_free close_receipt [16:07:32]json_value_free [16:07:32]json_value_free done [16:07:32]process_json_proto returns [16:07:32]Send response to host [16:07:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111724,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [16:07:32]free response buf [16:07:32]execute_script done [16:07:32]execute_script returns [16:07:32]free content buf [16:07:32]Sock 7.Close socket [16:07:32]Sock 7.Thread stoped [16:07:36]OFD Sender: No OFD packet to send [16:07:41]OFD Sender: No OFD packet to send [16:07:46]OFD Sender: No OFD packet to send [16:07:51]OFD Sender: No OFD packet to send [16:07:56]OFD Sender: No OFD packet to send [16:08:01]OFD Sender: No OFD packet to send [16:08:06]OFD Sender: No OFD packet to send [16:08:11]OFD Sender: No OFD packet to send [16:08:16]OFD Sender: No OFD packet to send [16:08:21]OFD Sender: No OFD packet to send [16:08:26]OFD Sender: No OFD packet to send [16:08:31]OFD Sender: No OFD packet to send [16:08:36]OFD Sender: No OFD packet to send [16:08:41]OFD Sender: No OFD packet to send [16:08:46]OFD Sender: No OFD packet to send [16:08:51]OFD Sender: No OFD packet to send [16:08:56]OFD Sender: No OFD packet to send [16:09:01]OFD Sender: No OFD packet to send [16:09:06]OFD Sender: No OFD packet to send [16:09:11]OFD Sender: No OFD packet to send [16:09:16]OFD Sender: No OFD packet to send [16:09:21]OFD Sender: No OFD packet to send [16:09:26]OFD Sender: No OFD packet to send [16:09:31]OFD Sender: No OFD packet to send [16:09:36]OFD Sender: No OFD packet to send [16:09:41]OFD Sender: No OFD packet to send [16:09:46]OFD Sender: No OFD packet to send [16:09:51]OFD Sender: No OFD packet to send [16:09:56]OFD Sender: No OFD packet to send [16:10:01]OFD Sender: No OFD packet to send [16:10:06]OFD Sender: No OFD packet to send [16:10:11]OFD Sender: No OFD packet to send [16:10:16]OFD Sender: No OFD packet to send [16:10:21]OFD Sender: No OFD packet to send [16:10:26]OFD Sender: No OFD packet to send [16:10:31]OFD Sender: No OFD packet to send [16:10:36]OFD Sender: No OFD packet to send [16:10:41]OFD Sender: No OFD packet to send [16:10:46]OFD Sender: No OFD packet to send [16:10:51]OFD Sender: No OFD packet to send [16:10:56]OFD Sender: No OFD packet to send [16:11:01]OFD Sender: No OFD packet to send [16:11:06]OFD Sender: No OFD packet to send [16:11:11]OFD Sender: No OFD packet to send [16:11:16]OFD Sender: No OFD packet to send [16:11:21]OFD Sender: No OFD packet to send [16:11:26]OFD Sender: No OFD packet to send [16:11:31]OFD Sender: No OFD packet to send [16:11:36]OFD Sender: No OFD packet to send [16:11:41]OFD Sender: No OFD packet to send [16:11:46]OFD Sender: No OFD packet to send [16:11:51]OFD Sender: No OFD packet to send [16:11:56]OFD Sender: No OFD packet to send [16:12:01]OFD Sender: No OFD packet to send [16:12:06]OFD Sender: No OFD packet to send [16:12:11]OFD Sender: No OFD packet to send [16:12:16]OFD Sender: No OFD packet to send [16:12:21]OFD Sender: No OFD packet to send [16:12:26]OFD Sender: No OFD packet to send [16:12:31]OFD Sender: No OFD packet to send [16:12:36]OFD Sender: No OFD packet to send [16:12:41]OFD Sender: No OFD packet to send [16:12:46]OFD Sender: No OFD packet to send [16:12:51]OFD Sender: No OFD packet to send [16:12:56]OFD Sender: No OFD packet to send [16:13:01]OFD Sender: No OFD packet to send [16:13:06]OFD Sender: No OFD packet to send [16:13:11]OFD Sender: No OFD packet to send [16:13:16]OFD Sender: No OFD packet to send [16:13:21]OFD Sender: No OFD packet to send [16:13:26]OFD Sender: No OFD packet to send [16:13:31]OFD Sender: No OFD packet to send [16:13:36]OFD Sender: No OFD packet to send [16:13:41]OFD Sender: No OFD packet to send [16:13:46]OFD Sender: No OFD packet to send [16:13:48]accept exits with 9 [16:13:48]New connection [16:13:48]New thread 3067178340 created [16:13:48]Thread 3067321700 joined [16:13:48]Waiting for new connection... [16:13:48] Sock 9.Parse request [16:13:48]Sock 9.Check first char [16:13:48]Sock 9.First char is OK [16:13:48]request: POST /json_proto HTTP/1.0 [16:13:48]Method: POST [16:13:48]URL: /json_proto [16:13:48]Method is POST - this is cgi request [16:13:48]url: /json_proto [16:13:48]query_string will be loaded in cgi processing [16:13:48]execute_cgi json_proto POST (null) [16:13:48]execute_cgi path=json_proto method=POST [16:13:48]POST find Content-Length [16:13:48]Host: 172.17.59.68:8080 [16:13:48]Content-Length: 674 [16:13:48]Content-Type: application/json [16:13:48] [16:13:48]POST finish read [16:13:48]Found Content-Length = 674 [16:13:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 9.610, "sum" : 700.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:48]execute_script... [16:13:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 9.610, "sum" : 700.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:48]POST & json_proto [16:13:48]process_json_proto [16:13:48]json parsed OK: [16:13:48]protocol is kg_v1.0 [16:13:48]action value=close_receipt [16:13:48]process_action close_receipt [16:13:48]cmd_close_receipt [16:13:48]MH_GetDate [16:13:48]Write to MH i2c: F0 00 00 D7 0A D0 [16:13:48]Write i2c OK [16:13:48]MH_I2C_Read... [16:13:48]Read from MH i2c: F0 [16:13:48]MH_I2C_Read... [16:13:48]Read from MH i2c: F0 09 00 [16:13:48]MH_I2C_Read... [16:13:48]Read from MH i2c: F0 09 00 D7 0A 00 40 55 74 66 BC EC 60 65 B5 [16:13:48]GetLastDocTimeStamp 1718899651 [16:13:48]current date 1718900032 [16:13:48]FM_GetShiftState [16:13:48]SAM_PROTO_GetShiftState [16:13:48]wFMCommunicate request_size=4 [16:13:48]MH_SAM_APDU [16:13:48]CAPDU: 80 13 01 00 [16:13:48]Write to MH i2c: E2 08 00 D8 0A 80 13 01 00 00 00 00 00 5F [16:13:48]Write i2c OK [16:13:48]MH_I2C_Read... [16:13:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:48]Read from MH i2c: E2 [16:13:48]MH_I2C_Read... [16:13:48]Read from MH i2c: E2 0E 00 [16:13:48]MH_I2C_Read... [16:13:48]Read from MH i2c: E2 0E 00 D8 0A 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 DA [16:13:48]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [16:13:48]wFMCommunicate OK [16:13:48]SAM_PROTO_GetShiftState done [16:13:48]FM_GetShiftState done [16:13:48]opened in 1718847247 [16:13:48]opened+sec_in_day 1718933647 [16:13:48]quantity*price = 70056 [16:13:48]sum+1 = 70058 [16:13:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 175 20.06.2024 16:13 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111725 ФПД: 12047728362778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T161352&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111725&fm=12047728362778&tin=02508201610067®Number=0000000000092771&sum=70000 [16:13:50]StoreToDocumentArchive [16:13:50]shift 389 fd 111725 [16:13:50]save to /storage/0389/doc_00111725 [16:13:50]save last doc name /storage/0389/doc_00111725 to /storage/kkm_last_doc_name [16:13:50]save OK [16:13:50]Clear old archive folders... [16:13:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:13:50]tlvbuf is 016F4C50 [16:13:50]SAM_PROTO_ClearQueue [16:13:50]wFMCommunicate request_size=4 [16:13:50]MH_SAM_APDU [16:13:50]CAPDU: 80 09 00 00 [16:13:50]Write to MH i2c: E2 08 00 E5 0A 80 09 00 00 00 00 00 00 61 [16:13:50]Write i2c OK [16:13:50]MH_I2C_Read... [16:13:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:50]Read from MH i2c: E2 [16:13:50]MH_I2C_Read... [16:13:50]Read from MH i2c: E2 03 00 [16:13:50]MH_I2C_Read... [16:13:50]Read from MH i2c: E2 03 00 E5 0A 00 90 00 63 [16:13:50]RAPDU: 90 00 [16:13:50]wFMCommunicate OK [16:13:50]SAM_PROTO_ClearQueue done [16:13:50]KKMCreateOFDPacket [16:13:50]OFDProtocolAddRootSTLVToBuf [16:13:50]FM_MakeSignedData [16:13:50]FM_MakeSignedData [16:13:50]SAM_PROTO_SignData [16:13:50]wFMCommunicate request_size=4 [16:13:50]MH_SAM_APDU [16:13:50]CAPDU: 80 0D 01 02 [16:13:50]Write to MH i2c: E2 08 00 E6 0A 80 0D 01 02 00 00 00 00 69 [16:13:50]Write i2c OK [16:13:50]MH_I2C_Read... [16:13:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:50]Read from MH i2c: E2 [16:13:50]MH_I2C_Read... [16:13:50]Read from MH i2c: E2 03 00 [16:13:50]MH_I2C_Read... [16:13:50]Read from MH i2c: E2 03 00 E6 0A 00 90 00 64 [16:13:50]RAPDU: 90 00 [16:13:50]wFMCommunicate OK [16:13:50]wFMCommunicate request_size=255 [16:13:50]MH_SAM_APDU [16:13:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 40 55 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6D B4 01 00 35 04 06 00 0A F5 14 91 [16:13:50]Write to MH i2c: E2 02 01 E7 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 40 55 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6D B4 01 00 35 04 06 00 0A F5 14 91 00 00 CF [16:13:50]Write i2c OK [16:13:50]MH_I2C_Read... [16:13:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:50]Read from MH i2c: E2 [16:13:50]MH_I2C_Read... [16:13:50]Read from MH i2c: E2 03 00 [16:13:50]MH_I2C_Read... [16:13:50]Read from MH i2c: E2 03 00 E7 0A 00 90 00 65 [16:13:50]RAPDU: 90 00 [16:13:50]wFMCommunicate OK [16:13:50]wFMCommunicate request_size=7 [16:13:50]MH_SAM_APDU [16:13:50]CAPDU: 80 0D 02 02 02 C5 1A [16:13:50]Write to MH i2c: E2 0A 00 E8 0A 80 0D 02 02 02 00 C5 1A 00 00 4F [16:13:50]Write i2c OK [16:13:50]MH_I2C_Read... [16:13:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:50]Read from MH i2c: E2 [16:13:50]MH_I2C_Read... [16:13:50]Read from MH i2c: E2 03 00 [16:13:50]MH_I2C_Read... [16:13:50]Read from MH i2c: E2 03 00 E8 0A 00 90 00 66 [16:13:50]RAPDU: 90 00 [16:13:50]wFMCommunicate OK [16:13:50]wFMCommunicate request_size=4 [16:13:50]MH_SAM_APDU [16:13:50]CAPDU: 80 0D 03 02 [16:13:50]Write to MH i2c: E2 08 00 E9 0A 80 0D 03 02 00 00 00 00 6E [16:13:50]Write i2c OK [16:13:50]MH_I2C_Read... [16:13:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:50]Read from MH i2c: E2 [16:13:50]MH_I2C_Read... [16:13:50]Read from MH i2c: E2 0B 00 [16:13:50]MH_I2C_Read... [16:13:50]Read from MH i2c: E2 0B 00 E9 0A 00 94 0E 1A 39 7D 80 E1 5E 90 00 A0 [16:13:50]RAPDU: 94 0E 1A 39 7D 80 E1 5E 90 00 [16:13:50]wFMCommunicate OK [16:13:50]SAM_PROTO_SignData done [16:13:50]FM_MakeSignedData done [16:13:50]CreateOFDProtocolMessage [16:13:50]wFMCommunicate request_size=4 [16:13:50]MH_SAM_APDU [16:13:50]CAPDU: 80 11 00 00 [16:13:50]Write to MH i2c: E2 08 00 EA 0A 80 11 00 00 00 00 00 00 6E [16:13:50]Write i2c OK [16:13:50]MH_I2C_Read... [16:13:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:50]Read from MH i2c: E2 [16:13:50]MH_I2C_Read... [16:13:50]Read from MH i2c: E2 17 00 [16:13:50]MH_I2C_Read... [16:13:50]Read from MH i2c: E2 17 00 EA 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C0 [16:13:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:13:50]wFMCommunicate OK [16:13:50]CreateOFDProtocolMessage done [16:13:50]OFDSenderStorePacket 111725 [16:13:50]StoreOFDPacket docnum=111725 [16:13:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 13 65 04 01 FB D6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 40 55 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6D B4 01 00 35 04 06 00 0A F5 14 91 C5 1A 94 0E 1A 39 7D 80 E1 5E [16:13:50]CheckFolder [16:13:50]dirname=/storage/ofd_packets [16:13:50]CheckFolder done [16:13:50]ProducePacketName [16:13:50]name=ofd_packets/00111725 [16:13:50]NVStorageSaveData ofd_packets/00111725 [16:13:50]File name is /storage/ofd_packets/00111725 [16:13:50]Write 298 bytes [16:13:50]NVStorageSaveData done [16:13:50]OFDSenderStorePacket done [16:13:50]KKMCreateOFDPacket done [16:13:50]NVStorageSaveData kkm_last_timestamp [16:13:50]File name is /storage/kkm_last_timestamp [16:13:50]Write 4 bytes [16:13:50]NVStorageSaveData done [16:13:50]ExternCall_PrintAddStr [16:13:50]wPrintStart [16:13:50]Write to MH i2c: 01 00 00 EB 0A F5 [16:13:50]Write i2c OK [16:13:50]MH_I2C_Read... [16:13:50]Read from MH i2c: 01 [16:13:50]MH_I2C_Read... [16:13:50]Read from MH i2c: 01 07 00 [16:13:50]MH_I2C_Read... [16:13:50]Read from MH i2c: 01 07 00 EB 0A 00 00 00 00 00 FF 0F 0A [16:13:50]RasterBufferAndPrint [16:13:50]line Счет N : (1)320343 [16:13:50]line ИНН: 02508201610067 [16:13:50]line Контрольно-Кассовый Чек [16:13:50]line ПРОДАЖА [16:13:50]line ТРК (МРК, ГНК) : 22 [16:13:50]line Товар: 2710194210 [16:13:50]line ДТ-К-5 [16:13:50]line 9.610 * 72.90 [16:13:50]line = 700.57 [16:13:50]line НДС 12% НСП 1% [16:13:50]line > о реализуемом товаре [16:13:50]line ОКРУГЛЕНИЕ: -0.57 [16:13:50]line ИТОГО: 700.00 [16:13:50]line Внесено: 700.00 [16:13:50]line СДАЧА: 0.00 [16:13:50]line НСП 1% : 6.20 [16:13:50]line НДС 12% : 74.40 [16:13:50]line Наличными: 700.00 [16:13:50]line Безнал.: 0.00 [16:13:50]line Место: АЗС № 65 "Партнер Нефть" [16:13:50]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:13:50]line СНО: Общий режим [16:13:50]line Чек 175 20.06.2024 16:13 [16:13:50]line Смена: 389 ФФД: 1.0 [16:13:50]line ЗНМ: 0300000198 [16:13:50]line РНМ: 0000000000092771 [16:13:50]line Версия ККМ: 001 [16:13:50]line ФМ: 0000000000875083 [16:13:50]line ФД: 111725 [16:13:50]line ФПД: 12047728362778 [16:13:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T161352&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111725&fm=12047728362778&tin=02508201610067®Number=0000000000092771&sum=70000 [16:13:50]OFD Sender: Processing packet 111725 [packets to send 38, broken 37] [16:13:50]ProducePacketName [16:13:50]name=ofd_packets/00111725 [16:13:50]OFD Sender: To server: pG, [16:13:50]CommunicateWithHost lk.salyk.kg:30040 [16:13:50]ConnectInit lk.salyk.kg [16:13:50]written 0, free lines is 4095 [16:13:50]Connected sock=10 [16:13:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 13 65 04 01 FB D6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 40 55 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6D B4 01 00 35 04 06 00 0A F5 14 91 C5 1A 94 0E 1A 39 7D 80 E1 5E [16:13:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E3 F9 47 00 0C E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6D B4 01 00 F4 03 04 00 86 EC 73 66 B6 04 01 00 00 A6 96 BB 3A C9 A1 E9 B7 [16:13:51]CommunicateWithHost err = 0 [16:13:51]CheckOFDResponse [16:13:51]1017 (14) - 77093643461234 [16:13:51]1041 (16) - 0000000000875083 [16:13:51]1040 (4) - 111725 [16:13:51]1012 (4) - 20.06.2024 08:47 [16:13:51]1206 (1) - 0 [16:13:51]OFD Sender: Remove packet 111725 [16:13:51]ProducePacketName [16:13:51]name=ofd_packets/00111725 [16:13:51]NVStorageDeleteData [16:13:51]Write to MH i2c: 01 00 00 16 0B 21 [16:13:51]Write i2c OK [16:13:51]MH_I2C_Read... [16:13:51]Read from MH i2c: 01 [16:13:51]MH_I2C_Read... [16:13:51]Read from MH i2c: 01 07 00 [16:13:51]MH_I2C_Read... [16:13:51]Read from MH i2c: 01 07 00 16 0B 00 00 00 00 00 D4 0C 08 [16:13:51]RasterBufferAndPrint [16:13:51]line [16:13:51]line [16:13:51]line [16:13:51]line [16:13:51]line [16:13:51]written 0, free lines is 3292 [16:13:51]MH_Cut [16:13:51]Write to MH i2c: D1 01 00 1D 0B 01 FA [16:13:51]Write i2c OK [16:13:51]MH_I2C_Read... [16:13:51]Read from MH i2c: D1 [16:13:51]MH_I2C_Read... [16:13:51]Read from MH i2c: D1 01 00 [16:13:51]MH_I2C_Read... [16:13:51]Read from MH i2c: D1 01 00 1D 0B 00 F9 [16:13:51]Write to MH i2c: 01 00 00 1E 0B 29 [16:13:51]Write i2c OK [16:13:51]MH_I2C_Read... [16:13:51]OFD Sender: No OFD packet to send [16:13:52]*** Cut start [16:13:52]*** Partial cut [16:13:52]*** CUTSNS_PIN = 1 [16:13:52]*** CUTSNS_PIN = 0 [16:13:52]*** Brake cut motor [16:13:52]Read from MH i2c: 01 [16:13:52]MH_I2C_Read... [16:13:52]*** Stop cut motor [16:13:52]*** Cut end [16:13:52]Read from MH i2c: 01 07 00 [16:13:52]MH_I2C_Read... [16:13:52]Read from MH i2c: 01 07 00 1E 0B 00 00 00 00 00 FF 0F 3E [16:13:52]process_action close_receipt done [16:13:52]requested_data is exist [16:13:52]produce_requested_data [16:13:52]requested_item fm.sn is exist - process it [16:13:52]wFMCommunicate request_size=4 [16:13:52]MH_SAM_APDU [16:13:52]CAPDU: 80 11 00 00 [16:13:52]Write to MH i2c: E2 08 00 1F 0B 80 11 00 00 00 00 00 00 A4 [16:13:52]Write i2c OK [16:13:52]MH_I2C_Read... [16:13:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:52]Read from MH i2c: E2 [16:13:52]MH_I2C_Read... [16:13:52]Read from MH i2c: E2 17 00 [16:13:52]MH_I2C_Read... [16:13:52]Read from MH i2c: E2 17 00 1F 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F6 [16:13:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:13:52]wFMCommunicate OK [16:13:52]requested_item fd.num is exist - process it [16:13:52]SAM_PROTO_GetFieldsCounters [16:13:52]wFMCommunicate request_size=4 [16:13:52]MH_SAM_APDU [16:13:52]CAPDU: 80 13 00 00 [16:13:52]Write to MH i2c: E2 08 00 20 0B 80 13 00 00 00 00 00 00 A7 [16:13:52]Write i2c OK [16:13:52]MH_I2C_Read... [16:13:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:52]Read from MH i2c: E2 [16:13:52]MH_I2C_Read... [16:13:52]Read from MH i2c: E2 62 00 [16:13:52]MH_I2C_Read... [16:13:52]Read from MH i2c: E2 62 00 20 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6D B4 01 00 0E 04 04 00 85 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 7D [16:13:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6D B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:13:52]wFMCommunicate OK [16:13:52]SAM_PROTO_GetFieldsCounters done [16:13:52]requested_item shift.num is exist - process it [16:13:52]requested_item shift.opened is exist - process it [16:13:52]req_shift_opened [16:13:52]FM_GetShiftState [16:13:52]SAM_PROTO_GetShiftState [16:13:52]wFMCommunicate request_size=4 [16:13:52]MH_SAM_APDU [16:13:52]CAPDU: 80 13 01 00 [16:13:52]Write to MH i2c: E2 08 00 21 0B 80 13 01 00 00 00 00 00 A9 [16:13:52]Write i2c OK [16:13:52]MH_I2C_Read... [16:13:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:52]Read from MH i2c: E2 [16:13:52]MH_I2C_Read... [16:13:52]Read from MH i2c: E2 0E 00 [16:13:52]MH_I2C_Read... [16:13:52]Read from MH i2c: E2 0E 00 21 0B 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 24 [16:13:52]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [16:13:52]wFMCommunicate OK [16:13:52]SAM_PROTO_GetShiftState done [16:13:52]FM_GetShiftState done [16:13:52]req_shift_opened done [16:13:52]requested_item shift.open_date is exist - process it [16:13:52]req_shift_open_date [16:13:52]req_shift_open_date done [16:13:52]produce_requested_data done [16:13:52]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111725,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [16:13:52]process_action_free close_receipt [16:13:52]json_value_free [16:13:52]json_value_free done [16:13:52]process_json_proto returns [16:13:52]Send response to host [16:13:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111725,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [16:13:52]free response buf [16:13:52]execute_script done [16:13:52]execute_script returns [16:13:52]free content buf [16:13:52]Sock 9.Close socket [16:13:52]Sock 9.Thread stoped [16:13:56]OFD Sender: No OFD packet to send [16:14:01]OFD Sender: No OFD packet to send [16:14:06]OFD Sender: No OFD packet to send [16:14:11]OFD Sender: No OFD packet to send [16:14:16]OFD Sender: No OFD packet to send [16:14:21]OFD Sender: No OFD packet to send [16:14:26]OFD Sender: No OFD packet to send [16:14:31]OFD Sender: No OFD packet to send [16:14:36]OFD Sender: No OFD packet to send [16:14:41]OFD Sender: No OFD packet to send [16:14:46]OFD Sender: No OFD packet to send [16:14:51]OFD Sender: No OFD packet to send [16:14:56]OFD Sender: No OFD packet to send [16:15:01]OFD Sender: No OFD packet to send [16:15:06]OFD Sender: No OFD packet to send [16:15:11]OFD Sender: No OFD packet to send [16:15:16]OFD Sender: No OFD packet to send [16:15:21]OFD Sender: No OFD packet to send [16:15:26]OFD Sender: No OFD packet to send [16:15:31]OFD Sender: No OFD packet to send [16:15:36]OFD Sender: No OFD packet to send [16:15:41]OFD Sender: No OFD packet to send [16:15:46]OFD Sender: No OFD packet to send [16:15:51]OFD Sender: No OFD packet to send [16:15:56]OFD Sender: No OFD packet to send [16:16:01]OFD Sender: No OFD packet to send [16:16:06]OFD Sender: No OFD packet to send [16:16:11]OFD Sender: No OFD packet to send [16:16:16]OFD Sender: No OFD packet to send [16:16:21]OFD Sender: No OFD packet to send [16:16:26]OFD Sender: No OFD packet to send [16:16:31]OFD Sender: No OFD packet to send [16:16:36]OFD Sender: No OFD packet to send [16:16:41]OFD Sender: No OFD packet to send [16:16:44]accept exits with 7 [16:16:44]New connection [16:16:44]New thread 3067321700 created [16:16:44]Thread 3067178340 joined [16:16:44]Waiting for new connection... [16:16:44] Sock 7.Parse request [16:16:44]Sock 7.Check first char [16:16:44]Sock 7.First char is OK [16:16:44]request: POST /json_proto HTTP/1.0 [16:16:44]Method: POST [16:16:44]URL: /json_proto [16:16:44]Method is POST - this is cgi request [16:16:44]url: /json_proto [16:16:44]query_string will be loaded in cgi processing [16:16:44]execute_cgi json_proto POST (null) [16:16:44]execute_cgi path=json_proto method=POST [16:16:44]POST find Content-Length [16:16:44]Host: 172.17.59.68:8080 [16:16:44]Content-Length: 679 [16:16:44]Content-Type: application/json [16:16:44] [16:16:44]POST finish read [16:16:44]Found Content-Length = 679 [16:16:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:44]execute_script... [16:16: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)320344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:44]POST & json_proto [16:16:44]process_json_proto [16:16:44]json parsed OK: [16:16:44]protocol is kg_v1.0 [16:16:44]action value=close_receipt [16:16:44]process_action close_receipt [16:16:44]cmd_close_receipt [16:16:44]MH_GetDate [16:16:44]Write to MH i2c: F0 00 00 22 0B 1C [16:16:44]Write i2c OK [16:16:44]MH_I2C_Read... [16:16:44]Read from MH i2c: F0 [16:16:44]MH_I2C_Read... [16:16:44]Read from MH i2c: F0 09 00 [16:16:44]MH_I2C_Read... [16:16:44]Read from MH i2c: F0 09 00 22 0B 00 F0 55 74 66 BC EC 60 65 B1 [16:16:44]GetLastDocTimeStamp 1718900032 [16:16:44]current date 1718900208 [16:16:44]FM_GetShiftState [16:16:44]SAM_PROTO_GetShiftState [16:16:44]wFMCommunicate request_size=4 [16:16:44]MH_SAM_APDU [16:16:44]CAPDU: 80 13 01 00 [16:16:44]Write to MH i2c: E2 08 00 23 0B 80 13 01 00 00 00 00 00 AB [16:16:44]Write i2c OK [16:16:44]MH_I2C_Read... [16:16:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:44]Read from MH i2c: E2 [16:16:44]MH_I2C_Read... [16:16:44]Read from MH i2c: E2 0E 00 [16:16:44]MH_I2C_Read... [16:16:44]Read from MH i2c: E2 0E 00 23 0B 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 26 [16:16:44]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [16:16:44]wFMCommunicate OK [16:16:44]SAM_PROTO_GetShiftState done [16:16:44]FM_GetShiftState done [16:16:44]opened in 1718847247 [16:16:44]opened+sec_in_day 1718933647 [16:16:44]quantity*price = 100018 [16:16:44]sum+1 = 100020 [16:16:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 176 20.06.2024 16:16 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111726 ФПД: 187185053357438 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T161648&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111726&fm=187185053357438&tin=02508201610067®Number=0000000000092771&sum=100000 [16:16:45]StoreToDocumentArchive [16:16:45]shift 389 fd 111726 [16:16:45]save to /storage/0389/doc_00111726 [16:16:45]save last doc name /storage/0389/doc_00111726 to /storage/kkm_last_doc_name [16:16:45]save OK [16:16:45]Clear old archive folders... [16:16:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:16:45]tlvbuf is B6F1BA50 [16:16:45]SAM_PROTO_ClearQueue [16:16:45]wFMCommunicate request_size=4 [16:16:45]MH_SAM_APDU [16:16:45]CAPDU: 80 09 00 00 [16:16:45]Write to MH i2c: E2 08 00 30 0B 80 09 00 00 00 00 00 00 AD [16:16:45]Write i2c OK [16:16:45]MH_I2C_Read... [16:16:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:16:45]Read from MH i2c: E2 [16:16:45]MH_I2C_Read... [16:16:45]Read from MH i2c: E2 03 00 [16:16:45]MH_I2C_Read... [16:16:45]Read from MH i2c: E2 03 00 30 0B 00 90 00 AF [16:16:45]RAPDU: 90 00 [16:16:45]wFMCommunicate OK [16:16:45]SAM_PROTO_ClearQueue done [16:16:45]KKMCreateOFDPacket [16:16:45]OFDProtocolAddRootSTLVToBuf [16:16:45]FM_MakeSignedData [16:16:45]FM_MakeSignedData [16:16:45]SAM_PROTO_SignData [16:16:45]wFMCommunicate request_size=4 [16:16:45]MH_SAM_APDU [16:16:45]CAPDU: 80 0D 01 02 [16:16:45]Write to MH i2c: E2 08 00 31 0B 80 0D 01 02 00 00 00 00 B5 [16:16:45]Write i2c OK [16:16:45]MH_I2C_Read... [16:16:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:16:45]Read from MH i2c: E2 [16:16:45]MH_I2C_Read... [16:16:45]Read from MH i2c: E2 03 00 [16:16:45]MH_I2C_Read... [16:16:45]Read from MH i2c: E2 03 00 31 0B 00 90 00 B0 [16:16:45]RAPDU: 90 00 [16:16:45]wFMCommunicate OK [16:16:45]wFMCommunicate request_size=255 [16:16:45]MH_SAM_APDU [16:16:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 F0 55 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6E B4 01 00 35 04 06 00 AA 3E 6A 9C [16:16:45]Write to MH i2c: E2 02 01 32 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 F0 55 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6E B4 01 00 35 04 06 00 AA 3E 6A 9C 00 00 81 [16:16:45]Write i2c OK [16:16:45]MH_I2C_Read... [16:16:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:46]Read from MH i2c: E2 [16:16:46]MH_I2C_Read... [16:16:46]Read from MH i2c: E2 03 00 [16:16:46]MH_I2C_Read... [16:16:46]Read from MH i2c: E2 03 00 32 0B 00 90 00 B1 [16:16:46]RAPDU: 90 00 [16:16:46]wFMCommunicate OK [16:16:46]wFMCommunicate request_size=7 [16:16:46]MH_SAM_APDU [16:16:46]CAPDU: 80 0D 02 02 02 D5 7E [16:16:46]Write to MH i2c: E2 0A 00 33 0B 80 0D 02 02 02 00 D5 7E 00 00 0F [16:16:46]Write i2c OK [16:16:46]MH_I2C_Read... [16:16:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:46]Read from MH i2c: E2 [16:16:46]MH_I2C_Read... [16:16:46]Read from MH i2c: E2 03 00 [16:16:46]MH_I2C_Read... [16:16:46]Read from MH i2c: E2 03 00 33 0B 00 90 00 B2 [16:16:46]RAPDU: 90 00 [16:16:46]wFMCommunicate OK [16:16:46]wFMCommunicate request_size=4 [16:16:46]MH_SAM_APDU [16:16:46]CAPDU: 80 0D 03 02 [16:16:46]Write to MH i2c: E2 08 00 34 0B 80 0D 03 02 00 00 00 00 BA [16:16:46]Write i2c OK [16:16:46]MH_I2C_Read... [16:16:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:16:46]Read from MH i2c: E2 [16:16:46]MH_I2C_Read... [16:16:46]Read from MH i2c: E2 0B 00 [16:16:46]MH_I2C_Read... [16:16:46]Read from MH i2c: E2 0B 00 34 0B 00 6C B1 31 FF DC F5 C0 5C 90 00 F5 [16:16:46]RAPDU: 6C B1 31 FF DC F5 C0 5C 90 00 [16:16:46]wFMCommunicate OK [16:16:46]SAM_PROTO_SignData done [16:16:46]FM_MakeSignedData done [16:16:46]CreateOFDProtocolMessage [16:16:46]wFMCommunicate request_size=4 [16:16:46]MH_SAM_APDU [16:16:46]CAPDU: 80 11 00 00 [16:16:46]Write to MH i2c: E2 08 00 35 0B 80 11 00 00 00 00 00 00 BA [16:16:46]Write i2c OK [16:16:46]MH_I2C_Read... [16:16:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:46]Read from MH i2c: E2 [16:16:46]MH_I2C_Read... [16:16:46]Read from MH i2c: E2 17 00 [16:16:46]MH_I2C_Read... [16:16:46]Read from MH i2c: E2 17 00 35 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0C [16:16:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:16:46]wFMCommunicate OK [16:16:46]CreateOFDProtocolMessage done [16:16:46]OFDSenderStorePacket 111726 [16:16:46]StoreOFDPacket docnum=111726 [16:16:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 F2 78 04 01 C2 26 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 F0 55 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6E B4 01 00 35 04 06 00 AA 3E 6A 9C D5 7E 6C B1 31 FF DC F5 C0 5C [16:16:46]CheckFolder [16:16:46]dirname=/storage/ofd_packets [16:16:46]CheckFolder done [16:16:46]ProducePacketName [16:16:46]name=ofd_packets/00111726 [16:16:46]NVStorageSaveData ofd_packets/00111726 [16:16:46]File name is /storage/ofd_packets/00111726 [16:16:46]Write 298 bytes [16:16:46]NVStorageSaveData done [16:16:46]OFDSenderStorePacket done [16:16:46]KKMCreateOFDPacket done [16:16:46]NVStorageSaveData kkm_last_timestamp [16:16:46]File name is /storage/kkm_last_timestamp [16:16:46]Write 4 bytes [16:16:46]NVStorageSaveData done [16:16:46]ExternCall_PrintAddStr [16:16:46]wPrintStart [16:16:46]Write to MH i2c: 01 00 00 36 0B 41 [16:16:46]Write i2c OK [16:16:46]MH_I2C_Read... [16:16:46]Read from MH i2c: 01 [16:16:46]MH_I2C_Read... [16:16:46]Read from MH i2c: 01 07 00 [16:16:46]MH_I2C_Read... [16:16:46]Read from MH i2c: 01 07 00 36 0B 00 00 00 00 00 FF 0F 56 [16:16:46]RasterBufferAndPrint [16:16:46]line Счет N : (1)320344 [16:16:46]line ИНН: 02508201610067 [16:16:46]line Контрольно-Кассовый Чек [16:16:46]line ПРОДАЖА [16:16:46]line ТРК (МРК, ГНК) : 22 [16:16:46]line Товар: 2710194210 [16:16:46]line ДТ-К-5 [16:16:46]line 13.720 * 72.90 [16:16:46]line = 1000.19 [16:16:46]line НДС 12% НСП 1% [16:16:46]line > о реализуемом товаре [16:16:46]line ОКРУГЛЕНИЕ: -0.19 [16:16:46]line ИТОГО: 1000.00 [16:16:46]line Внесено: 1000.00 [16:16:46]line СДАЧА: 0.00 [16:16:46]line НСП 1% : 8.85 [16:16:46]line НДС 12% : 106.21 [16:16:46]line Наличными: 1000.00 [16:16:46]line Безнал.: 0.00 [16:16:46]line Место: АЗС № 65 "Партнер Нефть" [16:16:46]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:16:46]line СНО: Общий режим [16:16:46]line Чек 176 20.06.2024 16:16 [16:16:46]line Смена: 389 ФФД: 1.0 [16:16:46]line ЗНМ: 0300000198 [16:16:46]line РНМ: 0000000000092771 [16:16:46]line Версия ККМ: 001 [16:16:46]line ФМ: 0000000000875083 [16:16:46]line ФД: 111726 [16:16:46]line ФПД: 187185053357438 [16:16:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T161648&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111726&fm=187185053357438&tin=02508201610067®Number=0000000000092771&sum=100000 [16:16:46]OFD Sender: Processing packet 111726 [packets to send 38, broken 37] [16:16:46]ProducePacketName [16:16:46]name=ofd_packets/00111726 [16:16:46]OFD Sender: To server: pG, [16:16:46]CommunicateWithHost lk.salyk.kg:30040 [16:16:46]ConnectInit lk.salyk.kg [16:16:46]written 0, free lines is 4095 [16:16:46]Connected sock=10 [16:16:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 F2 78 04 01 C2 26 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 F0 55 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6E B4 01 00 35 04 06 00 AA 3E 6A 9C D5 7E 6C B1 31 FF DC F5 C0 5C [16:16:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 EC B8 47 00 BC 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6E B4 01 00 F4 03 04 00 35 ED 73 66 B6 04 01 00 00 2C D2 D7 61 19 12 84 20 [16:16:46]CommunicateWithHost err = 0 [16:16:46]CheckOFDResponse [16:16:46]1017 (14) - 77093643461234 [16:16:46]1041 (16) - 0000000000875083 [16:16:46]1040 (4) - 111726 [16:16:46]1012 (4) - 20.06.2024 08:49 [16:16:46]1206 (1) - 0 [16:16:46]OFD Sender: Remove packet 111726 [16:16:46]ProducePacketName [16:16:46]name=ofd_packets/00111726 [16:16:46]NVStorageDeleteData [16:16:47]Write to MH i2c: 01 00 00 61 0B 6C [16:16:47]Write i2c OK [16:16:47]MH_I2C_Read... [16:16:47]Read from MH i2c: 01 [16:16:47]MH_I2C_Read... [16:16:47]Read from MH i2c: 01 07 00 [16:16:47]MH_I2C_Read... [16:16:47]Read from MH i2c: 01 07 00 61 0B 00 00 00 00 00 D4 0C 53 [16:16:47]RasterBufferAndPrint [16:16:47]line [16:16:47]line [16:16:47]line [16:16:47]line [16:16:47]line [16:16:47]written 0, free lines is 3293 [16:16:47]MH_Cut [16:16:47]Write to MH i2c: D1 01 00 68 0B 01 45 [16:16:47]Write i2c OK [16:16:47]MH_I2C_Read... [16:16:47]Read from MH i2c: D1 [16:16:47]MH_I2C_Read... [16:16:47]Read from MH i2c: D1 01 00 [16:16:47]MH_I2C_Read... [16:16:47]Read from MH i2c: D1 01 00 68 0B 00 44 [16:16:47]Write to MH i2c: 01 00 00 69 0B 74 [16:16:47]Write i2c OK [16:16:47]MH_I2C_Read... [16:16:47]OFD Sender: No OFD packet to send [16:16:47]*** Cut start [16:16:47]*** Partial cut [16:16:47]*** CUTSNS_PIN = 1 [16:16:47]*** CUTSNS_PIN = 0 [16:16:48]*** Brake cut motor [16:16:48]Read from MH i2c: 01 [16:16:48]MH_I2C_Read... [16:16:48]*** Stop cut motor [16:16:48]*** Cut end [16:16:48]Read from MH i2c: 01 07 00 [16:16:48]MH_I2C_Read... [16:16:48]Read from MH i2c: 01 07 00 69 0B 00 00 00 00 00 FF 0F 89 [16:16:48]process_action close_receipt done [16:16:48]requested_data is exist [16:16:48]produce_requested_data [16:16:48]requested_item fm.sn is exist - process it [16:16:48]wFMCommunicate request_size=4 [16:16:48]MH_SAM_APDU [16:16:48]CAPDU: 80 11 00 00 [16:16:48]Write to MH i2c: E2 08 00 6A 0B 80 11 00 00 00 00 00 00 EF [16:16:48]Write i2c OK [16:16:48]MH_I2C_Read... [16:16:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:48]Read from MH i2c: E2 [16:16:48]MH_I2C_Read... [16:16:48]Read from MH i2c: E2 17 00 [16:16:48]MH_I2C_Read... [16:16:48]Read from MH i2c: E2 17 00 6A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 41 [16:16:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:16:48]wFMCommunicate OK [16:16:48]requested_item fd.num is exist - process it [16:16:48]SAM_PROTO_GetFieldsCounters [16:16:48]wFMCommunicate request_size=4 [16:16:48]MH_SAM_APDU [16:16:48]CAPDU: 80 13 00 00 [16:16:48]Write to MH i2c: E2 08 00 6B 0B 80 13 00 00 00 00 00 00 F2 [16:16:48]Write i2c OK [16:16:48]MH_I2C_Read... [16:16:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:48]Read from MH i2c: E2 [16:16:48]MH_I2C_Read... [16:16:48]Read from MH i2c: E2 62 00 [16:16:48]MH_I2C_Read... [16:16:48]Read from MH i2c: E2 62 00 6B 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6E B4 01 00 0E 04 04 00 85 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 CC [16:16:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6E B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:16:48]wFMCommunicate OK [16:16:48]SAM_PROTO_GetFieldsCounters done [16:16:48]requested_item shift.num is exist - process it [16:16:48]requested_item shift.opened is exist - process it [16:16:48]req_shift_opened [16:16:48]FM_GetShiftState [16:16:48]SAM_PROTO_GetShiftState [16:16:48]wFMCommunicate request_size=4 [16:16:48]MH_SAM_APDU [16:16:48]CAPDU: 80 13 01 00 [16:16:48]Write to MH i2c: E2 08 00 6C 0B 80 13 01 00 00 00 00 00 F4 [16:16:48]Write i2c OK [16:16:48]MH_I2C_Read... [16:16:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:48]Read from MH i2c: E2 [16:16:48]MH_I2C_Read... [16:16:48]Read from MH i2c: E2 0E 00 [16:16:48]MH_I2C_Read... [16:16:48]Read from MH i2c: E2 0E 00 6C 0B 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 6F [16:16:48]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [16:16:48]wFMCommunicate OK [16:16:48]SAM_PROTO_GetShiftState done [16:16:48]FM_GetShiftState done [16:16:48]req_shift_opened done [16:16:48]requested_item shift.open_date is exist - process it [16:16:48]req_shift_open_date [16:16:48]req_shift_open_date done [16:16:48]produce_requested_data done [16:16:48]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111726,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [16:16:48]process_action_free close_receipt [16:16:48]json_value_free [16:16:48]json_value_free done [16:16:48]process_json_proto returns [16:16:48]Send response to host [16:16:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111726,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [16:16:48]free response buf [16:16:48]execute_script done [16:16:48]execute_script returns [16:16:48]free content buf [16:16:48]Sock 7.Close socket [16:16:48]Sock 7.Thread stoped [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:42]OFD Sender: No OFD packet to send [16:17:47]OFD Sender: No OFD packet to send [16:17:52]OFD Sender: No OFD packet to send [16:17:57]OFD Sender: No OFD packet to send [16:18:02]OFD Sender: No OFD packet to send [16:18:07]OFD Sender: No OFD packet to send [16:18:12]OFD Sender: No OFD packet to send [16:18:17]OFD Sender: No OFD packet to send [16:18:22]OFD Sender: No OFD packet to send [16:18:27]OFD Sender: No OFD packet to send [16:18:32]OFD Sender: No OFD packet to send [16:18:37]OFD Sender: No OFD packet to send [16:18:42]OFD Sender: No OFD packet to send [16:18:47]OFD Sender: No OFD packet to send [16:18:52]OFD Sender: No OFD packet to send [16:18:57]OFD Sender: No OFD packet to send [16:19:02]OFD Sender: No OFD packet to send [16:19:07]OFD Sender: No OFD packet to send [16:19:12]OFD Sender: No OFD packet to send [16:19:17]OFD Sender: No OFD packet to send [16:19:22]OFD Sender: No OFD packet to send [16:19:27]OFD Sender: No OFD packet to send [16:19:32]OFD Sender: No OFD packet to send [16:19:37]OFD Sender: No OFD packet to send [16:19:42]OFD Sender: No OFD packet to send [16:19:47]OFD Sender: No OFD packet to send [16:19:52]OFD Sender: No OFD packet to send [16:19:57]OFD Sender: No OFD packet to send [16:20:02]OFD Sender: No OFD packet to send [16:20:07]OFD Sender: No OFD packet to send [16:20:12]OFD Sender: No OFD packet to send [16:20:17]OFD Sender: No OFD packet to send [16:20:22]OFD Sender: No OFD packet to send [16:20:27]OFD Sender: No OFD packet to send [16:20:28]accept exits with 9 [16:20:28]New connection [16:20:28]New thread 3067178340 created [16:20:28]Thread 3067321700 joined [16:20:28]Waiting for new connection... [16:20:28] Sock 9.Parse request [16:20:28]Sock 9.Check first char [16:20:28]Sock 9.First char is OK [16:20:28]request: POST /json_proto HTTP/1.0 [16:20:28]Method: POST [16:20:28]URL: /json_proto [16:20:28]Method is POST - this is cgi request [16:20:28]url: /json_proto [16:20:28]query_string will be loaded in cgi processing [16:20:28]execute_cgi json_proto POST (null) [16:20:28]execute_cgi path=json_proto method=POST [16:20:28]POST find Content-Length [16:20:28]Host: 172.17.59.68:8080 [16:20:28]Content-Length: 677 [16:20:28]Content-Type: application/json [16:20:28] [16:20:28]POST finish read [16:20:28]Found Content-Length = 677 [16:20:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:28]execute_script... [16:20: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)320345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:28]POST & json_proto [16:20:28]process_json_proto [16:20:28]json parsed OK: [16:20:28]protocol is kg_v1.0 [16:20:28]action value=close_receipt [16:20:28]process_action close_receipt [16:20:28]cmd_close_receipt [16:20:28]MH_GetDate [16:20:28]Write to MH i2c: F0 00 00 6D 0B 67 [16:20:28]Write i2c OK [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: F0 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: F0 09 00 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: F0 09 00 6D 0B 00 CF 56 74 66 BC EC 60 65 DC [16:20:28]GetLastDocTimeStamp 1718900208 [16:20:28]current date 1718900431 [16:20:28]FM_GetShiftState [16:20:28]SAM_PROTO_GetShiftState [16:20:28]wFMCommunicate request_size=4 [16:20:28]MH_SAM_APDU [16:20:28]CAPDU: 80 13 01 00 [16:20:28]Write to MH i2c: E2 08 00 6E 0B 80 13 01 00 00 00 00 00 F6 [16:20:28]Write i2c OK [16:20:28]MH_I2C_Read... [16:20:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:28]Read from MH i2c: E2 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: E2 0E 00 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: E2 0E 00 6E 0B 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 71 [16:20:28]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [16:20:28]wFMCommunicate OK [16:20:28]SAM_PROTO_GetShiftState done [16:20:28]FM_GetShiftState done [16:20:28]opened in 1718847247 [16:20:28]opened+sec_in_day 1718933647 [16:20:28]quantity*price = 50065 [16:20:28]sum+1 = 50067 [16:20:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 177 20.06.2024 16:20 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111727 ФПД: 234681060603102 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T162031&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111727&fm=234681060603102&tin=02508201610067®Number=0000000000092771&sum=50000 [16:20:29]StoreToDocumentArchive [16:20:29]shift 389 fd 111727 [16:20:29]save to /storage/0389/doc_00111727 [16:20:29]save last doc name /storage/0389/doc_00111727 to /storage/kkm_last_doc_name [16:20:29]save OK [16:20:29]Clear old archive folders... [16:20:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:20:29]tlvbuf is 016EC850 [16:20:29]SAM_PROTO_ClearQueue [16:20:29]wFMCommunicate request_size=4 [16:20:29]MH_SAM_APDU [16:20:29]CAPDU: 80 09 00 00 [16:20:29]Write to MH i2c: E2 08 00 7B 0B 80 09 00 00 00 00 00 00 F8 [16:20:29]Write i2c OK [16:20:29]MH_I2C_Read... [16:20:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:20:29]Read from MH i2c: E2 [16:20:29]MH_I2C_Read... [16:20:29]Read from MH i2c: E2 03 00 [16:20:29]MH_I2C_Read... [16:20:29]Read from MH i2c: E2 03 00 7B 0B 00 90 00 FA [16:20:29]RAPDU: 90 00 [16:20:29]wFMCommunicate OK [16:20:29]SAM_PROTO_ClearQueue done [16:20:29]KKMCreateOFDPacket [16:20:29]OFDProtocolAddRootSTLVToBuf [16:20:29]FM_MakeSignedData [16:20:29]FM_MakeSignedData [16:20:29]SAM_PROTO_SignData [16:20:29]wFMCommunicate request_size=4 [16:20:29]MH_SAM_APDU [16:20:29]CAPDU: 80 0D 01 02 [16:20:29]Write to MH i2c: E2 08 00 7C 0B 80 0D 01 02 00 00 00 00 00 [16:20:29]Write i2c OK [16:20:29]MH_I2C_Read... [16:20:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:20:29]Read from MH i2c: E2 [16:20:29]MH_I2C_Read... [16:20:29]Read from MH i2c: E2 03 00 [16:20:29]MH_I2C_Read... [16:20:29]Read from MH i2c: E2 03 00 7C 0B 00 90 00 FB [16:20:29]RAPDU: 90 00 [16:20:29]wFMCommunicate OK [16:20:29]wFMCommunicate request_size=255 [16:20:29]MH_SAM_APDU [16:20:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 CF 56 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6F B4 01 00 35 04 06 00 D5 [16:20:29]Write to MH i2c: E2 02 01 7D 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 CF 56 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6F B4 01 00 35 04 06 00 D5 00 00 E3 [16:20:29]Write i2c OK [16:20:29]MH_I2C_Read... [16:20:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:29]Read from MH i2c: E2 [16:20:29]MH_I2C_Read... [16:20:29]Read from MH i2c: E2 03 00 [16:20:29]MH_I2C_Read... [16:20:29]Read from MH i2c: E2 03 00 7D 0B 00 90 00 FC [16:20:29]RAPDU: 90 00 [16:20:29]wFMCommunicate OK [16:20:29]wFMCommunicate request_size=10 [16:20:29]MH_SAM_APDU [16:20:29]CAPDU: 80 0D 02 02 05 70 F1 40 B4 DE [16:20:29]Write to MH i2c: E2 0D 00 7E 0B 80 0D 02 02 05 00 70 F1 40 B4 DE 00 00 40 [16:20:29]Write i2c OK [16:20:29]MH_I2C_Read... [16:20:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:29]Read from MH i2c: E2 [16:20:29]MH_I2C_Read... [16:20:29]Read from MH i2c: E2 03 00 [16:20:29]MH_I2C_Read... [16:20:29]Read from MH i2c: E2 03 00 7E 0B 00 90 00 FD [16:20:29]RAPDU: 90 00 [16:20:29]wFMCommunicate OK [16:20:29]wFMCommunicate request_size=4 [16:20:29]MH_SAM_APDU [16:20:29]CAPDU: 80 0D 03 02 [16:20:29]Write to MH i2c: E2 08 00 7F 0B 80 0D 03 02 00 00 00 00 05 [16:20:29]Write i2c OK [16:20:29]MH_I2C_Read... [16:20:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:20:29]Read from MH i2c: E2 [16:20:29]MH_I2C_Read... [16:20:29]Read from MH i2c: E2 0B 00 [16:20:29]MH_I2C_Read... [16:20:29]Read from MH i2c: E2 0B 00 7F 0B 00 E0 E6 E9 44 DC 40 61 B2 90 00 28 [16:20:29]RAPDU: E0 E6 E9 44 DC 40 61 B2 90 00 [16:20:29]wFMCommunicate OK [16:20:29]SAM_PROTO_SignData done [16:20:29]FM_MakeSignedData done [16:20:29]CreateOFDProtocolMessage [16:20:29]wFMCommunicate request_size=4 [16:20:29]MH_SAM_APDU [16:20:29]CAPDU: 80 11 00 00 [16:20:29]Write to MH i2c: E2 08 00 80 0B 80 11 00 00 00 00 00 00 05 [16:20:29]Write i2c OK [16:20:29]MH_I2C_Read... [16:20:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:29]Read from MH i2c: E2 [16:20:29]MH_I2C_Read... [16:20:29]Read from MH i2c: E2 17 00 [16:20:29]MH_I2C_Read... [16:20:29]Read from MH i2c: E2 17 00 80 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 57 [16:20:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:20:29]wFMCommunicate OK [16:20:29]CreateOFDProtocolMessage done [16:20:29]OFDSenderStorePacket 111727 [16:20:29]StoreOFDPacket docnum=111727 [16:20:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E7 6E 07 01 72 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 CF 56 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6F B4 01 00 35 04 06 00 D5 70 F1 40 B4 DE E0 E6 E9 44 DC 40 61 B2 [16:20:29]CheckFolder [16:20:29]dirname=/storage/ofd_packets [16:20:29]CheckFolder done [16:20:29]ProducePacketName [16:20:29]name=ofd_packets/00111727 [16:20:29]NVStorageSaveData ofd_packets/00111727 [16:20:29]File name is /storage/ofd_packets/00111727 [16:20:29]Write 301 bytes [16:20:29]NVStorageSaveData done [16:20:29]OFDSenderStorePacket done [16:20:29]KKMCreateOFDPacket done [16:20:29]NVStorageSaveData kkm_last_timestamp [16:20:29]File name is /storage/kkm_last_timestamp [16:20:29]Write 4 bytes [16:20:29]NVStorageSaveData done [16:20:29]ExternCall_PrintAddStr [16:20:29]wPrintStart [16:20:29]Write to MH i2c: 01 00 00 81 0B 8C [16:20:29]Write i2c OK [16:20:29]MH_I2C_Read... [16:20:29]Read from MH i2c: 01 [16:20:29]MH_I2C_Read... [16:20:29]Read from MH i2c: 01 07 00 [16:20:29]MH_I2C_Read... [16:20:29]Read from MH i2c: 01 07 00 81 0B 00 00 00 00 00 FF 0F A1 [16:20:29]RasterBufferAndPrint [16:20:29]line Счет N : (1)320345 [16:20:29]line ИНН: 02508201610067 [16:20:29]line Контрольно-Кассовый Чек [16:20:29]line ПРОДАЖА [16:20:29]line ТРК (МРК, ГНК) : 11 [16:20:29]line Товар: 2710124130 [16:20:29]line Аи-92-К-5 [16:20:29]line 7.540 * 66.40 [16:20:29]line = 500.66 [16:20:29]line НДС 12% НСП 1% [16:20:29]line > о реализуемом товаре [16:20:29]line ОКРУГЛЕНИЕ: -0.66 [16:20:29]line ИТОГО: 500.00 [16:20:29]line Внесено: 500.00 [16:20:29]line СДАЧА: 0.00 [16:20:29]line НСП 1% : 4.43 [16:20:29]line НДС 12% : 53.17 [16:20:29]line Наличными: 500.00 [16:20:29]line Безнал.: 0.00 [16:20:29]line Место: АЗС № 65 "Партнер Нефть" [16:20:29]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:20:29]line СНО: Общий режим [16:20:29]line Чек 177 20.06.2024 16:20 [16:20:29]line Смена: 389 ФФД: 1.0 [16:20:29]line ЗНМ: 0300000198 [16:20:29]line РНМ: 0000000000092771 [16:20:29]line Версия ККМ: 001 [16:20:29]line ФМ: 0000000000875083 [16:20:29]line ФД: 111727 [16:20:29]line ФПД: 234681060603102 [16:20:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T162031&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111727&fm=234681060603102&tin=02508201610067®Number=0000000000092771&sum=50000 [16:20:30]OFD Sender: Processing packet 111727 [packets to send 38, broken 37] [16:20:30]ProducePacketName [16:20:30]name=ofd_packets/00111727 [16:20:30]OFD Sender: To server: pG, [16:20:30]CommunicateWithHost lk.salyk.kg:30040 [16:20:30]ConnectInit lk.salyk.kg [16:20:30]written 0, free lines is 4095 [16:20:30]Connected sock=10 [16:20:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E7 6E 07 01 72 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 CF 56 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6F B4 01 00 35 04 06 00 D5 70 F1 40 B4 DE E0 E6 E9 44 DC 40 61 B2 [16:20:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 10 B7 47 00 C4 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6F B4 01 00 F4 03 04 00 15 EE 73 66 B6 04 01 00 00 F1 0F D2 2C 14 F9 E9 CB [16:20:30]CommunicateWithHost err = 0 [16:20:30]CheckOFDResponse [16:20:30]1017 (14) - 77093643461234 [16:20:30]1041 (16) - 0000000000875083 [16:20:30]1040 (4) - 111727 [16:20:30]1012 (4) - 20.06.2024 08:53 [16:20:30]1206 (1) - 0 [16:20:30]OFD Sender: Remove packet 111727 [16:20:30]ProducePacketName [16:20:30]name=ofd_packets/00111727 [16:20:30]NVStorageDeleteData [16:20:30]Write to MH i2c: 01 00 00 AC 0B B7 [16:20:30]Write i2c OK [16:20:30]MH_I2C_Read... [16:20:30]Read from MH i2c: 01 [16:20:30]MH_I2C_Read... [16:20:30]Read from MH i2c: 01 07 00 [16:20:30]MH_I2C_Read... [16:20:30]Read from MH i2c: 01 07 00 AC 0B 00 00 00 00 00 E5 0C AF [16:20:30]RasterBufferAndPrint [16:20:30]line [16:20:30]line [16:20:30]line [16:20:30]line [16:20:30]line [16:20:30]written 0, free lines is 3307 [16:20:30]MH_Cut [16:20:30]Write to MH i2c: D1 01 00 B3 0B 01 90 [16:20:30]Write i2c OK [16:20:30]MH_I2C_Read... [16:20:30]Read from MH i2c: D1 [16:20:30]MH_I2C_Read... [16:20:30]Read from MH i2c: D1 01 00 [16:20:30]MH_I2C_Read... [16:20:30]Read from MH i2c: D1 01 00 B3 0B 00 8F [16:20:30]Write to MH i2c: 01 00 00 B4 0B BF [16:20:30]Write i2c OK [16:20:30]MH_I2C_Read... [16:20:31]OFD Sender: No OFD packet to send [16:20:31]*** Cut start [16:20:31]*** Partial cut [16:20:31]*** CUTSNS_PIN = 1 [16:20:31]*** CUTSNS_PIN = 0 [16:20:31]*** Brake cut motor [16:20:32]Read from MH i2c: 01 [16:20:32]MH_I2C_Read... [16:20:32]*** Stop cut motor [16:20:32]*** Cut end [16:20:32]Read from MH i2c: 01 07 00 [16:20:32]MH_I2C_Read... [16:20:32]Read from MH i2c: 01 07 00 B4 0B 00 00 00 00 00 FF 0F D4 [16:20:32]process_action close_receipt done [16:20:32]requested_data is exist [16:20:32]produce_requested_data [16:20:32]requested_item fm.sn is exist - process it [16:20:32]wFMCommunicate request_size=4 [16:20:32]MH_SAM_APDU [16:20:32]CAPDU: 80 11 00 00 [16:20:32]Write to MH i2c: E2 08 00 B5 0B 80 11 00 00 00 00 00 00 3A [16:20:32]Write i2c OK [16:20:32]MH_I2C_Read... [16:20:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:32]Read from MH i2c: E2 [16:20:32]MH_I2C_Read... [16:20:32]Read from MH i2c: E2 17 00 [16:20:32]MH_I2C_Read... [16:20:32]Read from MH i2c: E2 17 00 B5 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8C [16:20:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:20:32]wFMCommunicate OK [16:20:32]requested_item fd.num is exist - process it [16:20:32]SAM_PROTO_GetFieldsCounters [16:20:32]wFMCommunicate request_size=4 [16:20:32]MH_SAM_APDU [16:20:32]CAPDU: 80 13 00 00 [16:20:32]Write to MH i2c: E2 08 00 B6 0B 80 13 00 00 00 00 00 00 3D [16:20:32]Write i2c OK [16:20:32]MH_I2C_Read... [16:20:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:20:32]Read from MH i2c: E2 [16:20:32]MH_I2C_Read... [16:20:32]Read from MH i2c: E2 62 00 [16:20:32]MH_I2C_Read... [16:20:32]Read from MH i2c: E2 62 00 B6 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6F B4 01 00 0E 04 04 00 85 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 1B [16:20:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6F B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:20:32]wFMCommunicate OK [16:20:32]SAM_PROTO_GetFieldsCounters done [16:20:32]requested_item shift.num is exist - process it [16:20:32]requested_item shift.opened is exist - process it [16:20:32]req_shift_opened [16:20:32]FM_GetShiftState [16:20:32]SAM_PROTO_GetShiftState [16:20:32]wFMCommunicate request_size=4 [16:20:32]MH_SAM_APDU [16:20:32]CAPDU: 80 13 01 00 [16:20:32]Write to MH i2c: E2 08 00 B7 0B 80 13 01 00 00 00 00 00 3F [16:20:32]Write i2c OK [16:20:32]MH_I2C_Read... [16:20:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:32]Read from MH i2c: E2 [16:20:32]MH_I2C_Read... [16:20:32]Read from MH i2c: E2 0E 00 [16:20:32]MH_I2C_Read... [16:20:32]Read from MH i2c: E2 0E 00 B7 0B 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 BA [16:20:32]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [16:20:32]wFMCommunicate OK [16:20:32]SAM_PROTO_GetShiftState done [16:20:32]FM_GetShiftState done [16:20:32]req_shift_opened done [16:20:32]requested_item shift.open_date is exist - process it [16:20:32]req_shift_open_date [16:20:32]req_shift_open_date done [16:20:32]produce_requested_data done [16:20:32]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111727,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [16:20:32]process_action_free close_receipt [16:20:32]json_value_free [16:20:32]json_value_free done [16:20:32]process_json_proto returns [16:20:32]Send response to host [16:20:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111727,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [16:20:32]free response buf [16:20:32]execute_script done [16:20:32]execute_script returns [16:20:32]free content buf [16:20:32]Sock 9.Close socket [16:20:32]Sock 9.Thread stoped [16:20:36]OFD Sender: No OFD packet to send [16:20:41]OFD Sender: No OFD packet to send [16:20:46]OFD Sender: No OFD packet to send [16:20:51]OFD Sender: No OFD packet to send [16:20:56]OFD Sender: No OFD packet to send [16:21:01]OFD Sender: No OFD packet to send [16:21:06]OFD Sender: No OFD packet to send [16:21:11]OFD Sender: No OFD packet to send [16:21:16]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:21]OFD Sender: No OFD packet to send [16:24:26]OFD Sender: No OFD packet to send [16:24:31]OFD Sender: No OFD packet to send [16:24:36]OFD Sender: No OFD packet to send [16:24:41]OFD Sender: No OFD packet to send [16:24:46]OFD Sender: No OFD packet to send [16:24:51]OFD Sender: No OFD packet to send [16:24:56]OFD Sender: No OFD packet to send [16:25:01]OFD Sender: No OFD packet to send [16:25:06]OFD Sender: No OFD packet to send [16:25:11]OFD Sender: No OFD packet to send [16:25:16]OFD Sender: No OFD packet to send [16:25:21]OFD Sender: No OFD packet to send [16:25:26]OFD Sender: No OFD packet to send [16:25:31]OFD Sender: No OFD packet to send [16:25:36]OFD Sender: No OFD packet to send [16:25:41]OFD Sender: No OFD packet to send [16:25:46]OFD Sender: No OFD packet to send [16:25:51]OFD Sender: No OFD packet to send [16:25:56]OFD Sender: No OFD packet to send [16:26:01]OFD Sender: No OFD packet to send [16:26:06]OFD Sender: No OFD packet to send [16:26:11]OFD Sender: No OFD packet to send [16:26:16]OFD Sender: No OFD packet to send [16:26:21]OFD Sender: No OFD packet to send [16:26:26]OFD Sender: No OFD packet to send [16:26:31]OFD Sender: No OFD packet to send [16:26:36]OFD Sender: No OFD packet to send [16:26:41]OFD Sender: No OFD packet to send [16:26:46]OFD Sender: No OFD packet to send [16:26:51]OFD Sender: No OFD packet to send [16:26:56]OFD Sender: No OFD packet to send [16:27:01]OFD Sender: No OFD packet to send [16:27:06]OFD Sender: No OFD packet to send [16:27:11]OFD Sender: No OFD packet to send [16:27:16]OFD Sender: No OFD packet to send [16:27:21]OFD Sender: No OFD packet to send [16:27:24]accept exits with 7 [16:27:24]New connection [16:27:24]New thread 3067321700 created [16:27:24]Thread 3067178340 joined [16:27:24]Waiting for new connection... [16:27:24] Sock 7.Parse request [16:27:24]Sock 7.Check first char [16:27:24]Sock 7.First char is OK [16:27:24]request: POST /json_proto HTTP/1.0 [16:27:24]Method: POST [16:27:24]URL: /json_proto [16:27:24]Method is POST - this is cgi request [16:27:24]url: /json_proto [16:27:24]query_string will be loaded in cgi processing [16:27:24]execute_cgi json_proto POST (null) [16:27:24]execute_cgi path=json_proto method=POST [16:27:24]POST find Content-Length [16:27:24]Host: 172.17.59.68:8080 [16:27:24]Content-Length: 682 [16:27:24]Content-Type: application/json [16:27:24] [16:27:24]POST finish read [16:27:24]Found Content-Length = 682 [16:27:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:24]execute_script... [16:27: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)320346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:24]POST & json_proto [16:27:24]process_json_proto [16:27:24]json parsed OK: [16:27:24]protocol is kg_v1.0 [16:27:24]action value=close_receipt [16:27:24]process_action close_receipt [16:27:24]cmd_close_receipt [16:27:24]MH_GetDate [16:27:24]Write to MH i2c: F0 00 00 B8 0B B2 [16:27:24]Write i2c OK [16:27:24]MH_I2C_Read... [16:27:24]Read from MH i2c: F0 [16:27:24]MH_I2C_Read... [16:27:24]Read from MH i2c: F0 09 00 [16:27:24]MH_I2C_Read... [16:27:24]Read from MH i2c: F0 09 00 B8 0B 00 6F 58 74 66 BC EC 60 65 C9 [16:27:24]GetLastDocTimeStamp 1718900431 [16:27:24]current date 1718900847 [16:27:24]FM_GetShiftState [16:27:24]SAM_PROTO_GetShiftState [16:27:24]wFMCommunicate request_size=4 [16:27:24]MH_SAM_APDU [16:27:24]CAPDU: 80 13 01 00 [16:27:24]Write to MH i2c: E2 08 00 B9 0B 80 13 01 00 00 00 00 00 41 [16:27:24]Write i2c OK [16:27:24]MH_I2C_Read... [16:27:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:24]Read from MH i2c: E2 [16:27:24]MH_I2C_Read... [16:27:24]Read from MH i2c: E2 0E 00 [16:27:24]MH_I2C_Read... [16:27:24]Read from MH i2c: E2 0E 00 B9 0B 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 BC [16:27:24]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [16:27:24]wFMCommunicate OK [16:27:24]SAM_PROTO_GetShiftState done [16:27:24]FM_GetShiftState done [16:27:24]opened in 1718847247 [16:27:24]opened+sec_in_day 1718933647 [16:27:24]quantity*price = 200063 [16:27:24]sum+1 = 200064 [16:27:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 178 20.06.2024 16:27 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111728 ФПД: 61063737237172 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T162728&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111728&fm=61063737237172&tin=02508201610067®Number=0000000000092771&sum=200000 [16:27:25]StoreToDocumentArchive [16:27:25]shift 389 fd 111728 [16:27:25]save to /storage/0389/doc_00111728 [16:27:25]save last doc name /storage/0389/doc_00111728 to /storage/kkm_last_doc_name [16:27:25]save OK [16:27:25]Clear old archive folders... [16:27:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:27:25]tlvbuf is 01747270 [16:27:25]SAM_PROTO_ClearQueue [16:27:25]wFMCommunicate request_size=4 [16:27:25]MH_SAM_APDU [16:27:25]CAPDU: 80 09 00 00 [16:27:25]Write to MH i2c: E2 08 00 C6 0B 80 09 00 00 00 00 00 00 43 [16:27:25]Write i2c OK [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: E2 [16:27:25]MH_I2C_Read... [16:27:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:27:25]Read from MH i2c: E2 03 00 [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: E2 03 00 C6 0B 00 90 00 45 [16:27:25]RAPDU: 90 00 [16:27:25]wFMCommunicate OK [16:27:25]SAM_PROTO_ClearQueue done [16:27:25]KKMCreateOFDPacket [16:27:25]OFDProtocolAddRootSTLVToBuf [16:27:25]FM_MakeSignedData [16:27:25]FM_MakeSignedData [16:27:25]SAM_PROTO_SignData [16:27:25]wFMCommunicate request_size=4 [16:27:25]MH_SAM_APDU [16:27:25]CAPDU: 80 0D 01 02 [16:27:25]Write to MH i2c: E2 08 00 C7 0B 80 0D 01 02 00 00 00 00 4B [16:27:25]Write i2c OK [16:27:25]MH_I2C_Read... [16:27:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:27:25]Read from MH i2c: E2 [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: E2 03 00 [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: E2 03 00 C7 0B 00 90 00 46 [16:27:25]RAPDU: 90 00 [16:27:25]wFMCommunicate OK [16:27:25]wFMCommunicate request_size=255 [16:27:25]MH_SAM_APDU [16:27: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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 70 58 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 70 B4 01 00 35 04 06 00 37 [16:27:25]Write to MH i2c: E2 02 01 C8 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 70 58 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 70 B4 01 00 35 04 06 00 37 00 00 2A [16:27:25]Write i2c OK [16:27:25]MH_I2C_Read... [16:27:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:25]Read from MH i2c: E2 [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: E2 03 00 [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: E2 03 00 C8 0B 00 90 00 47 [16:27:25]RAPDU: 90 00 [16:27:25]wFMCommunicate OK [16:27:25]wFMCommunicate request_size=10 [16:27:25]MH_SAM_APDU [16:27:25]CAPDU: 80 0D 02 02 05 89 82 5D DE B4 [16:27:25]Write to MH i2c: E2 0D 00 C9 0B 80 0D 02 02 05 00 89 82 5D DE B4 00 00 52 [16:27:25]Write i2c OK [16:27:25]MH_I2C_Read... [16:27:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:25]Read from MH i2c: E2 [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: E2 03 00 [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: E2 03 00 C9 0B 00 90 00 48 [16:27:25]RAPDU: 90 00 [16:27:25]wFMCommunicate OK [16:27:25]wFMCommunicate request_size=4 [16:27:25]MH_SAM_APDU [16:27:25]CAPDU: 80 0D 03 02 [16:27:25]Write to MH i2c: E2 08 00 CA 0B 80 0D 03 02 00 00 00 00 50 [16:27:25]Write i2c OK [16:27:25]MH_I2C_Read... [16:27:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:27:25]Read from MH i2c: E2 [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: E2 0B 00 [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: E2 0B 00 CA 0B 00 25 F5 42 28 FE 77 54 EF 90 00 8D [16:27:25]RAPDU: 25 F5 42 28 FE 77 54 EF 90 00 [16:27:25]wFMCommunicate OK [16:27:25]SAM_PROTO_SignData done [16:27:25]FM_MakeSignedData done [16:27:25]CreateOFDProtocolMessage [16:27:25]wFMCommunicate request_size=4 [16:27:25]MH_SAM_APDU [16:27:25]CAPDU: 80 11 00 00 [16:27:25]Write to MH i2c: E2 08 00 CB 0B 80 11 00 00 00 00 00 00 50 [16:27:25]Write i2c OK [16:27:25]MH_I2C_Read... [16:27:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:25]Read from MH i2c: E2 [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: E2 17 00 [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: E2 17 00 CB 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A2 [16:27:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:27:25]wFMCommunicate OK [16:27:25]CreateOFDProtocolMessage done [16:27:25]OFDSenderStorePacket 111728 [16:27:25]StoreOFDPacket docnum=111728 [16:27:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 57 B8 07 01 6C 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 70 58 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 70 B4 01 00 35 04 06 00 37 89 82 5D DE B4 25 F5 42 28 FE 77 54 EF [16:27:25]CheckFolder [16:27:25]dirname=/storage/ofd_packets [16:27:25]CheckFolder done [16:27:25]ProducePacketName [16:27:25]name=ofd_packets/00111728 [16:27:25]NVStorageSaveData ofd_packets/00111728 [16:27:25]File name is /storage/ofd_packets/00111728 [16:27:25]Write 301 bytes [16:27:25]NVStorageSaveData done [16:27:25]OFDSenderStorePacket done [16:27:25]KKMCreateOFDPacket done [16:27:25]NVStorageSaveData kkm_last_timestamp [16:27:25]File name is /storage/kkm_last_timestamp [16:27:25]Write 4 bytes [16:27:25]NVStorageSaveData done [16:27:25]ExternCall_PrintAddStr [16:27:25]wPrintStart [16:27:25]Write to MH i2c: 01 00 00 CC 0B D7 [16:27:25]Write i2c OK [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: 01 [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: 01 07 00 [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: 01 07 00 CC 0B 00 00 00 00 00 FF 0F EC [16:27:25]RasterBufferAndPrint [16:27:25]line Счет N : (1)320346 [16:27:25]line ИНН: 02508201610067 [16:27:25]line Контрольно-Кассовый Чек [16:27:25]line ПРОДАЖА [16:27:25]line ТРК (МРК, ГНК) : 11 [16:27:25]line Товар: 2710124130 [16:27:25]line Аи-92-К-5 [16:27:25]line 30.130 * 66.40 [16:27:25]line = 2000.63 [16:27:25]line НДС 12% НСП 1% [16:27:25]line > о реализуемом товаре [16:27:25]line ОКРУГЛЕНИЕ: -0.63 [16:27:25]line ИТОГО: 2000.00 [16:27:25]line Внесено: 2000.00 [16:27:25]line СДАЧА: 0.00 [16:27:25]line НСП 1% : 17.70 [16:27:25]line НДС 12% : 212.46 [16:27:25]line Наличными: 2000.00 [16:27:25]line Безнал.: 0.00 [16:27:25]line Место: АЗС № 65 "Партнер Нефть" [16:27:25]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:27:25]line СНО: Общий режим [16:27:25]line Чек 178 20.06.2024 16:27 [16:27:25]line Смена: 389 ФФД: 1.0 [16:27:25]line ЗНМ: 0300000198 [16:27:25]line РНМ: 0000000000092771 [16:27:25]line Версия ККМ: 001 [16:27:25]line ФМ: 0000000000875083 [16:27:25]line ФД: 111728 [16:27:25]line ФПД: 61063737237172 [16:27:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T162728&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111728&fm=61063737237172&tin=02508201610067®Number=0000000000092771&sum=200000 [16:27:26]OFD Sender: Processing packet 111728 [packets to send 38, broken 37] [16:27:26]ProducePacketName [16:27:26]name=ofd_packets/00111728 [16:27:26]OFD Sender: To server: pG, [16:27:26]CommunicateWithHost lk.salyk.kg:30040 [16:27:26]ConnectInit lk.salyk.kg [16:27:26]written 0, free lines is 4095 [16:27:26]Connected sock=10 [16:27:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 57 B8 07 01 6C 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 70 58 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 70 B4 01 00 35 04 06 00 37 89 82 5D DE B4 25 F5 42 28 FE 77 54 EF [16:27:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C1 71 47 00 16 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 70 B4 01 00 F4 03 04 00 B5 EF 73 66 B6 04 01 00 00 91 24 91 DC D4 DC FD 75 [16:27:26]CommunicateWithHost err = 0 [16:27:26]CheckOFDResponse [16:27:26]1017 (14) - 77093643461234 [16:27:26]1041 (16) - 0000000000875083 [16:27:26]1040 (4) - 111728 [16:27:26]1012 (4) - 20.06.2024 09:00 [16:27:26]1206 (1) - 0 [16:27:26]OFD Sender: Remove packet 111728 [16:27:26]ProducePacketName [16:27:26]name=ofd_packets/00111728 [16:27:26]NVStorageDeleteData [16:27:26]Write to MH i2c: 01 00 00 F7 0B 02 [16:27:26]Write i2c OK [16:27:26]MH_I2C_Read... [16:27:26]Read from MH i2c: 01 [16:27:26]MH_I2C_Read... [16:27:26]Read from MH i2c: 01 07 00 [16:27:26]MH_I2C_Read... [16:27:26]Read from MH i2c: 01 07 00 F7 0B 00 00 00 00 00 EC 0C 01 [16:27:26]RasterBufferAndPrint [16:27:26]line [16:27:26]line [16:27:26]line [16:27:26]line [16:27:26]line [16:27:26]written 0, free lines is 3314 [16:27:26]MH_Cut [16:27:26]Write to MH i2c: D1 01 00 FE 0B 01 DB [16:27:26]Write i2c OK [16:27:26]MH_I2C_Read... [16:27:26]Read from MH i2c: D1 [16:27:26]MH_I2C_Read... [16:27:26]Read from MH i2c: D1 01 00 [16:27:26]MH_I2C_Read... [16:27:26]Read from MH i2c: D1 01 00 FE 0B 00 DA [16:27:26]Write to MH i2c: 01 00 00 FF 0B 0A [16:27:26]Write i2c OK [16:27:26]MH_I2C_Read... [16:27:27]OFD Sender: No OFD packet to send [16:27:27]*** Cut start [16:27:27]*** Partial cut [16:27:27]*** CUTSNS_PIN = 1 [16:27:27]*** CUTSNS_PIN = 0 [16:27:27]*** Brake cut motor [16:27:28]Read from MH i2c: 01 [16:27:28]MH_I2C_Read... [16:27:28]Read from MH i2c: 01 07 00 [16:27:28]MH_I2C_Read... [16:27:28]*** Stop cut motor [16:27:28]*** Cut end [16:27:28]Read from MH i2c: 01 07 00 FF 0B 00 00 00 00 00 FF 0F 1F [16:27:28]process_action close_receipt done [16:27:28]requested_data is exist [16:27:28]produce_requested_data [16:27:28]requested_item fm.sn is exist - process it [16:27:28]wFMCommunicate request_size=4 [16:27:28]MH_SAM_APDU [16:27:28]CAPDU: 80 11 00 00 [16:27:28]Write to MH i2c: E2 08 00 00 0C 80 11 00 00 00 00 00 00 86 [16:27:28]Write i2c OK [16:27:28]MH_I2C_Read... [16:27:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:28]Read from MH i2c: E2 [16:27:28]MH_I2C_Read... [16:27:28]Read from MH i2c: E2 17 00 [16:27:28]MH_I2C_Read... [16:27:28]Read from MH i2c: E2 17 00 00 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D8 [16:27:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:27:28]wFMCommunicate OK [16:27:28]requested_item fd.num is exist - process it [16:27:28]SAM_PROTO_GetFieldsCounters [16:27:28]wFMCommunicate request_size=4 [16:27:28]MH_SAM_APDU [16:27:28]CAPDU: 80 13 00 00 [16:27:28]Write to MH i2c: E2 08 00 01 0C 80 13 00 00 00 00 00 00 89 [16:27:28]Write i2c OK [16:27:28]MH_I2C_Read... [16:27:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:27:28]Read from MH i2c: E2 [16:27:28]MH_I2C_Read... [16:27:28]Read from MH i2c: E2 62 00 [16:27:28]MH_I2C_Read... [16:27:28]Read from MH i2c: E2 62 00 01 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 70 B4 01 00 0E 04 04 00 85 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 6B [16:27:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 70 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:27:28]wFMCommunicate OK [16:27:28]SAM_PROTO_GetFieldsCounters done [16:27:28]requested_item shift.num is exist - process it [16:27:28]requested_item shift.opened is exist - process it [16:27:28]req_shift_opened [16:27:28]FM_GetShiftState [16:27:28]SAM_PROTO_GetShiftState [16:27:28]wFMCommunicate request_size=4 [16:27:28]MH_SAM_APDU [16:27:28]CAPDU: 80 13 01 00 [16:27:28]Write to MH i2c: E2 08 00 02 0C 80 13 01 00 00 00 00 00 8B [16:27:28]Write i2c OK [16:27:28]MH_I2C_Read... [16:27:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:28]Read from MH i2c: E2 [16:27:28]MH_I2C_Read... [16:27:28]Read from MH i2c: E2 0E 00 [16:27:28]MH_I2C_Read... [16:27:28]Read from MH i2c: E2 0E 00 02 0C 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 06 [16:27:28]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [16:27:28]wFMCommunicate OK [16:27:28]SAM_PROTO_GetShiftState done [16:27:28]FM_GetShiftState done [16:27:28]req_shift_opened done [16:27:28]requested_item shift.open_date is exist - process it [16:27:28]req_shift_open_date [16:27:28]req_shift_open_date done [16:27:28]produce_requested_data done [16:27:28]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111728,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [16:27:28]process_action_free close_receipt [16:27:28]json_value_free [16:27:28]json_value_free done [16:27:28]process_json_proto returns [16:27:28]Send response to host [16:27:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111728,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [16:27:28]free response buf [16:27:28]execute_script done [16:27:28]execute_script returns [16:27:28]free content buf [16:27:28]Sock 7.Close socket [16:27:28]Sock 7.Thread stoped [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:27:58]accept exits with 9 [16:27:58]New connection [16:27:58]New thread 3067178340 created [16:27:58]Thread 3067321700 joined [16:27:58]Waiting for new connection... [16:27:58] Sock 9.Parse request [16:27:58]Sock 9.Check first char [16:27:58]Sock 9.First char is OK [16:27:58]request: POST /json_proto HTTP/1.0 [16:27:58]Method: POST [16:27:58]URL: /json_proto [16:27:58]Method is POST - this is cgi request [16:27:58]url: /json_proto [16:27:58]query_string will be loaded in cgi processing [16:27:58]execute_cgi json_proto POST (null) [16:27:58]execute_cgi path=json_proto method=POST [16:27:58]POST find Content-Length [16:27:58]Host: 172.17.59.68:8080 [16:27:58]Content-Length: 677 [16:27:58]Content-Type: application/json [16:27:58] [16:27:58]POST finish read [16:27:58]Found Content-Length = 677 [16:27:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:58]execute_script... [16:27:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:58]POST & json_proto [16:27:58]process_json_proto [16:27:58]json parsed OK: [16:27:58]protocol is kg_v1.0 [16:27:58]action value=close_receipt [16:27:58]process_action close_receipt [16:27:58]cmd_close_receipt [16:27:58]MH_GetDate [16:27:58]Write to MH i2c: F0 00 00 03 0C FE [16:27:58]Write i2c OK [16:27:58]MH_I2C_Read... [16:27:58]Read from MH i2c: F0 [16:27:58]MH_I2C_Read... [16:27:58]Read from MH i2c: F0 09 00 [16:27:58]MH_I2C_Read... [16:27:58]Read from MH i2c: F0 09 00 03 0C 00 92 58 74 66 BC EC 60 65 38 [16:27:58]GetLastDocTimeStamp 1718900848 [16:27:58]current date 1718900882 [16:27:58]FM_GetShiftState [16:27:58]SAM_PROTO_GetShiftState [16:27:58]wFMCommunicate request_size=4 [16:27:58]MH_SAM_APDU [16:27:58]CAPDU: 80 13 01 00 [16:27:58]Write to MH i2c: E2 08 00 04 0C 80 13 01 00 00 00 00 00 8D [16:27:58]Write i2c OK [16:27:58]MH_I2C_Read... [16:27:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:58]Read from MH i2c: E2 [16:27:58]MH_I2C_Read... [16:27:58]Read from MH i2c: E2 0E 00 [16:27:58]MH_I2C_Read... [16:27:58]Read from MH i2c: E2 0E 00 04 0C 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 08 [16:27:58]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [16:27:58]wFMCommunicate OK [16:27:58]SAM_PROTO_GetShiftState done [16:27:58]FM_GetShiftState done [16:27:58]opened in 1718847247 [16:27:58]opened+sec_in_day 1718933647 [16:27:58]quantity*price = 30012 [16:27:58]sum+1 = 30014 [16:27:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 179 20.06.2024 16:28 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111729 ФПД: 199304741004870 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T162802&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111729&fm=199304741004870&tin=02508201610067®Number=0000000000092771&sum=30000 [16:27:59]StoreToDocumentArchive [16:27:59]shift 389 fd 111729 [16:27:59]save to /storage/0389/doc_00111729 [16:27:59]save last doc name /storage/0389/doc_00111729 to /storage/kkm_last_doc_name [16:27:59]save OK [16:27:59]Clear old archive folders... [16:27:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:27:59]tlvbuf is 0175B0A0 [16:27:59]SAM_PROTO_ClearQueue [16:27:59]wFMCommunicate request_size=4 [16:27:59]MH_SAM_APDU [16:27:59]CAPDU: 80 09 00 00 [16:27:59]Write to MH i2c: E2 08 00 11 0C 80 09 00 00 00 00 00 00 8F [16:27:59]Write i2c OK [16:27:59]MH_I2C_Read... [16:27:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:27:59]Read from MH i2c: E2 [16:27:59]MH_I2C_Read... [16:27:59]Read from MH i2c: E2 03 00 [16:27:59]MH_I2C_Read... [16:27:59]Read from MH i2c: E2 03 00 11 0C 00 90 00 91 [16:27:59]RAPDU: 90 00 [16:27:59]wFMCommunicate OK [16:27:59]SAM_PROTO_ClearQueue done [16:27:59]KKMCreateOFDPacket [16:27:59]OFDProtocolAddRootSTLVToBuf [16:27:59]FM_MakeSignedData [16:27:59]FM_MakeSignedData [16:27:59]SAM_PROTO_SignData [16:27:59]wFMCommunicate request_size=4 [16:27:59]MH_SAM_APDU [16:27:59]CAPDU: 80 0D 01 02 [16:27:59]Write to MH i2c: E2 08 00 12 0C 80 0D 01 02 00 00 00 00 97 [16:27:59]Write i2c OK [16:27:59]MH_I2C_Read... [16:27:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:27:59]Read from MH i2c: E2 [16:27:59]MH_I2C_Read... [16:27:59]Read from MH i2c: E2 03 00 [16:27:59]MH_I2C_Read... [16:27:59]Read from MH i2c: E2 03 00 12 0C 00 90 00 92 [16:27:59]RAPDU: 90 00 [16:27:59]wFMCommunicate OK [16:27:59]wFMCommunicate request_size=255 [16:27:59]MH_SAM_APDU [16:27: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 92 58 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 71 B4 01 00 35 04 06 00 B5 [16:27:59]Write to MH i2c: E2 02 01 13 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 92 58 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 71 B4 01 00 35 04 06 00 B5 00 00 C1 [16:27:59]Write i2c OK [16:27:59]MH_I2C_Read... [16:28:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:00]Read from MH i2c: E2 [16:28:00]MH_I2C_Read... [16:28:00]Read from MH i2c: E2 03 00 [16:28:00]MH_I2C_Read... [16:28:00]Read from MH i2c: E2 03 00 13 0C 00 90 00 93 [16:28:00]RAPDU: 90 00 [16:28:00]wFMCommunicate OK [16:28:00]wFMCommunicate request_size=10 [16:28:00]MH_SAM_APDU [16:28:00]CAPDU: 80 0D 02 02 05 44 40 4A 26 46 [16:28:00]Write to MH i2c: E2 0D 00 14 0C 80 0D 02 02 05 00 44 40 4A 26 46 00 00 DE [16:28:00]Write i2c OK [16:28:00]MH_I2C_Read... [16:28:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:00]Read from MH i2c: E2 [16:28:00]MH_I2C_Read... [16:28:00]Read from MH i2c: E2 03 00 [16:28:00]MH_I2C_Read... [16:28:00]Read from MH i2c: E2 03 00 14 0C 00 90 00 94 [16:28:00]RAPDU: 90 00 [16:28:00]wFMCommunicate OK [16:28:00]wFMCommunicate request_size=4 [16:28:00]MH_SAM_APDU [16:28:00]CAPDU: 80 0D 03 02 [16:28:00]Write to MH i2c: E2 08 00 15 0C 80 0D 03 02 00 00 00 00 9C [16:28:00]Write i2c OK [16:28:00]MH_I2C_Read... [16:28:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:28:00]Read from MH i2c: E2 [16:28:00]MH_I2C_Read... [16:28:00]Read from MH i2c: E2 0B 00 [16:28:00]MH_I2C_Read... [16:28:00]Read from MH i2c: E2 0B 00 15 0C 00 D5 78 1E FF E1 6B 9E 10 90 00 01 [16:28:00]RAPDU: D5 78 1E FF E1 6B 9E 10 90 00 [16:28:00]wFMCommunicate OK [16:28:00]SAM_PROTO_SignData done [16:28:00]FM_MakeSignedData done [16:28:00]CreateOFDProtocolMessage [16:28:00]wFMCommunicate request_size=4 [16:28:00]MH_SAM_APDU [16:28:00]CAPDU: 80 11 00 00 [16:28:00]Write to MH i2c: E2 08 00 16 0C 80 11 00 00 00 00 00 00 9C [16:28:00]Write i2c OK [16:28:00]MH_I2C_Read... [16:28:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:00]Read from MH i2c: E2 [16:28:00]MH_I2C_Read... [16:28:00]Read from MH i2c: E2 17 00 [16:28:00]MH_I2C_Read... [16:28:00]Read from MH i2c: E2 17 00 16 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EE [16:28:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:28:00]wFMCommunicate OK [16:28:00]CreateOFDProtocolMessage done [16:28:00]OFDSenderStorePacket 111729 [16:28:00]StoreOFDPacket docnum=111729 [16:28:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1F 9F 07 01 66 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 92 58 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 71 B4 01 00 35 04 06 00 B5 44 40 4A 26 46 D5 78 1E FF E1 6B 9E 10 [16:28:00]CheckFolder [16:28:00]dirname=/storage/ofd_packets [16:28:00]CheckFolder done [16:28:00]ProducePacketName [16:28:00]name=ofd_packets/00111729 [16:28:00]NVStorageSaveData ofd_packets/00111729 [16:28:00]File name is /storage/ofd_packets/00111729 [16:28:00]Write 301 bytes [16:28:00]NVStorageSaveData done [16:28:00]OFDSenderStorePacket done [16:28:00]KKMCreateOFDPacket done [16:28:00]NVStorageSaveData kkm_last_timestamp [16:28:00]File name is /storage/kkm_last_timestamp [16:28:00]Write 4 bytes [16:28:00]NVStorageSaveData done [16:28:00]OFD Sender: Processing packet 111729 [packets to send 38, broken 37] [16:28:00]ProducePacketName [16:28:00]name=ofd_packets/00111729 [16:28:00]OFD Sender: To server: pG, [16:28:00]CommunicateWithHost lk.salyk.kg:30040 [16:28:00]ConnectInit lk.salyk.kg [16:28:00]ExternCall_PrintAddStr [16:28:00]wPrintStart [16:28:00]Write to MH i2c: 01 00 00 17 0C 23 [16:28:00]Write i2c OK [16:28:00]MH_I2C_Read... [16:28:00]Read from MH i2c: 01 [16:28:00]MH_I2C_Read... [16:28:00]Read from MH i2c: 01 07 00 [16:28:00]MH_I2C_Read... [16:28:00]Read from MH i2c: 01 07 00 17 0C 00 00 00 00 00 FF 0F 38 [16:28:00]RasterBufferAndPrint [16:28:00]line Счет N : (1)320347 [16:28:00]line ИНН: 02508201610067 [16:28:00]line Контрольно-Кассовый Чек [16:28:00]line ПРОДАЖА [16:28:00]line ТРК (МРК, ГНК) : 11 [16:28:00]line Товар: 2710124130 [16:28:00]line Аи-92-К-5 [16:28:00]line 4.520 * 66.40 [16:28:00]line = 300.13 [16:28:00]line НДС 12% НСП 1% [16:28:00]line > о реализуемом товаре [16:28:00]line ОКРУГЛЕНИЕ: -0.13 [16:28:00]line ИТОГО: 300.00 [16:28:00]line Внесено: 300.00 [16:28:00]line СДАЧА: 0.00 [16:28:00]line НСП 1% : 2.66 [16:28:00]line НДС 12% : 31.87 [16:28:00]line Наличными: 300.00 [16:28:00]line Безнал.: 0.00 [16:28:00]line Место: АЗС № 65 "Партнер Нефть" [16:28:00]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:28:00]line СНО: Общий режим [16:28:00]line Чек 179 20.06.2024 16:28 [16:28:00]line Смена: 389 ФФД: 1.0 [16:28:00]line ЗНМ: 0300000198 [16:28:00]line РНМ: 0000000000092771 [16:28:00]line Версия ККМ: 001 [16:28:00]line ФМ: 0000000000875083 [16:28:00]line ФД: 111729 [16:28:00]line ФПД: 199304741004870 [16:28:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T162802&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111729&fm=199304741004870&tin=02508201610067®Number=0000000000092771&sum=30000 [16:28:00]Connected sock=11 [16:28:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1F 9F 07 01 66 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 92 58 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 71 B4 01 00 35 04 06 00 B5 44 40 4A 26 46 D5 78 1E FF E1 6B 9E 10 [16:28:00]written 0, free lines is 4095 [16:28:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 18 E9 47 00 94 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 71 B4 01 00 F4 03 04 00 D7 EF 73 66 B6 04 01 00 00 31 2E 2A C7 8A 62 61 B8 [16:28:00]CommunicateWithHost err = 0 [16:28:00]CheckOFDResponse [16:28:00]1017 (14) - 77093643461234 [16:28:00]1041 (16) - 0000000000875083 [16:28:00]1040 (4) - 111729 [16:28:00]1012 (4) - 20.06.2024 09:01 [16:28:00]1206 (1) - 0 [16:28:00]OFD Sender: Remove packet 111729 [16:28:00]ProducePacketName [16:28:00]name=ofd_packets/00111729 [16:28:00]NVStorageDeleteData [16:28:01]Write to MH i2c: 01 00 00 42 0C 4E [16:28:01]Write i2c OK [16:28:01]MH_I2C_Read... [16:28:01]Read from MH i2c: 01 [16:28:01]MH_I2C_Read... [16:28:01]Read from MH i2c: 01 07 00 [16:28:01]MH_I2C_Read... [16:28:01]Read from MH i2c: 01 07 00 42 0C 00 00 00 00 00 E4 0C 45 [16:28:01]RasterBufferAndPrint [16:28:01]line [16:28:01]line [16:28:01]line [16:28:01]line [16:28:01]line [16:28:01]written 0, free lines is 3306 [16:28:01]MH_Cut [16:28:01]Write to MH i2c: D1 01 00 49 0C 01 27 [16:28:01]Write i2c OK [16:28:01]MH_I2C_Read... [16:28:01]Read from MH i2c: D1 [16:28:01]MH_I2C_Read... [16:28:01]Read from MH i2c: D1 01 00 [16:28:01]MH_I2C_Read... [16:28:01]Read from MH i2c: D1 01 00 49 0C 00 26 [16:28:01]Write to MH i2c: 01 00 00 4A 0C 56 [16:28:01]Write i2c OK [16:28:01]MH_I2C_Read... [16:28:01]OFD Sender: No OFD packet to send [16:28:01]*** Cut start [16:28:01]*** Partial cut [16:28:01]*** CUTSNS_PIN = 1 [16:28:02]*** CUTSNS_PIN = 0 [16:28:02]*** Brake cut motor [16:28:02]Read from MH i2c: 01 [16:28:02]MH_I2C_Read... [16:28:02]*** Stop cut motor [16:28:02]*** Cut end [16:28:02]Read from MH i2c: 01 07 00 [16:28:02]MH_I2C_Read... [16:28:02]Read from MH i2c: 01 07 00 4A 0C 00 00 00 00 00 FF 0F 6B [16:28:02]process_action close_receipt done [16:28:02]requested_data is exist [16:28:02]produce_requested_data [16:28:02]requested_item fm.sn is exist - process it [16:28:02]wFMCommunicate request_size=4 [16:28:02]MH_SAM_APDU [16:28:02]CAPDU: 80 11 00 00 [16:28:02]Write to MH i2c: E2 08 00 4B 0C 80 11 00 00 00 00 00 00 D1 [16:28:02]Write i2c OK [16:28:02]MH_I2C_Read... [16:28:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:02]Read from MH i2c: E2 [16:28:02]MH_I2C_Read... [16:28:02]Read from MH i2c: E2 17 00 [16:28:02]MH_I2C_Read... [16:28:02]Read from MH i2c: E2 17 00 4B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 23 [16:28:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:28:02]wFMCommunicate OK [16:28:02]requested_item fd.num is exist - process it [16:28:02]SAM_PROTO_GetFieldsCounters [16:28:02]wFMCommunicate request_size=4 [16:28:02]MH_SAM_APDU [16:28:02]CAPDU: 80 13 00 00 [16:28:02]Write to MH i2c: E2 08 00 4C 0C 80 13 00 00 00 00 00 00 D4 [16:28:02]Write i2c OK [16:28:02]MH_I2C_Read... [16:28:02]Read from MH i2c: E2 [16:28:02]MH_I2C_Read... [16:28:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:28:02]Read from MH i2c: E2 62 00 [16:28:02]MH_I2C_Read... [16:28:02]Read from MH i2c: E2 62 00 4C 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 71 B4 01 00 0E 04 04 00 85 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 BA [16:28:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 71 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:28:02]wFMCommunicate OK [16:28:02]SAM_PROTO_GetFieldsCounters done [16:28:02]requested_item shift.num is exist - process it [16:28:02]requested_item shift.opened is exist - process it [16:28:02]req_shift_opened [16:28:02]FM_GetShiftState [16:28:02]SAM_PROTO_GetShiftState [16:28:02]wFMCommunicate request_size=4 [16:28:02]MH_SAM_APDU [16:28:02]CAPDU: 80 13 01 00 [16:28:02]Write to MH i2c: E2 08 00 4D 0C 80 13 01 00 00 00 00 00 D6 [16:28:02]Write i2c OK [16:28:02]MH_I2C_Read... [16:28:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:02]Read from MH i2c: E2 [16:28:02]MH_I2C_Read... [16:28:02]Read from MH i2c: E2 0E 00 [16:28:02]MH_I2C_Read... [16:28:02]Read from MH i2c: E2 0E 00 4D 0C 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 51 [16:28:02]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [16:28:02]wFMCommunicate OK [16:28:02]SAM_PROTO_GetShiftState done [16:28:02]FM_GetShiftState done [16:28:02]req_shift_opened done [16:28:02]requested_item shift.open_date is exist - process it [16:28:02]req_shift_open_date [16:28:02]req_shift_open_date done [16:28:02]produce_requested_data done [16:28:02]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111729,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [16:28:02]process_action_free close_receipt [16:28:02]json_value_free [16:28:02]json_value_free done [16:28:02]process_json_proto returns [16:28:02]Send response to host [16:28:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111729,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [16:28:02]free response buf [16:28:02]execute_script done [16:28:02]execute_script returns [16:28:02]free content buf [16:28:02]Sock 9.Close socket [16:28:02]Sock 9.Thread stoped [16:28:06]OFD Sender: No OFD packet to send [16:28:11]OFD Sender: No OFD packet to send [16:28:16]OFD Sender: No OFD packet to send [16:28:21]OFD Sender: No OFD packet to send [16:28:26]OFD Sender: No OFD packet to send [16:28:31]OFD Sender: No OFD packet to send [16:28:36]OFD Sender: No OFD packet to send [16:28:41]OFD Sender: No OFD packet to send [16:28:46]OFD Sender: No OFD packet to send [16:28:51]OFD Sender: No OFD packet to send [16:28:56]OFD Sender: No OFD packet to send [16:29:01]OFD Sender: No OFD packet to send [16:29:06]OFD Sender: No OFD packet to send [16:29:11]OFD Sender: No OFD packet to send [16:29:16]OFD Sender: No OFD packet to send [16:29:21]OFD Sender: No OFD packet to send [16:29:26]OFD Sender: No OFD packet to send [16:29:27]accept exits with 7 [16:29:27]New connection [16:29:27]New thread 3067321700 created [16:29:27]Thread 3067178340 joined [16:29:27]Waiting for new connection... [16:29:27] Sock 7.Parse request [16:29:27]Sock 7.Check first char [16:29:27]Sock 7.First char is OK [16:29:27]request: POST /json_proto HTTP/1.0 [16:29:27]Method: POST [16:29:27]URL: /json_proto [16:29:27]Method is POST - this is cgi request [16:29:27]url: /json_proto [16:29:27]query_string will be loaded in cgi processing [16:29:27]execute_cgi json_proto POST (null) [16:29:27]execute_cgi path=json_proto method=POST [16:29:27]POST find Content-Length [16:29:27]Host: 172.17.59.68:8080 [16:29:27]Content-Length: 677 [16:29:27]Content-Type: application/json [16:29:27] [16:29:27]POST finish read [16:29:27]Found Content-Length = 677 [16:29:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:27]execute_script... [16: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)320348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:27]POST & json_proto [16:29:27]process_json_proto [16:29:27]json parsed OK: [16:29:27]protocol is kg_v1.0 [16:29:27]action value=close_receipt [16:29:27]process_action close_receipt [16:29:27]cmd_close_receipt [16:29:27]MH_GetDate [16:29:27]Write to MH i2c: F0 00 00 4E 0C 49 [16:29:27]Write i2c OK [16:29:27]MH_I2C_Read... [16:29:27]Read from MH i2c: F0 [16:29:27]MH_I2C_Read... [16:29:27]Read from MH i2c: F0 09 00 [16:29:27]MH_I2C_Read... [16:29:27]Read from MH i2c: F0 09 00 4E 0C 00 EB 58 74 66 BC EC 60 65 DC [16:29:27]GetLastDocTimeStamp 1718900882 [16:29:27]current date 1718900971 [16:29:27]FM_GetShiftState [16:29:27]SAM_PROTO_GetShiftState [16:29:27]wFMCommunicate request_size=4 [16:29:27]MH_SAM_APDU [16:29:27]CAPDU: 80 13 01 00 [16:29:27]Write to MH i2c: E2 08 00 4F 0C 80 13 01 00 00 00 00 00 D8 [16:29:27]Write i2c OK [16:29:27]MH_I2C_Read... [16:29:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:28]Read from MH i2c: E2 [16:29:28]MH_I2C_Read... [16:29:28]Read from MH i2c: E2 0E 00 [16:29:28]MH_I2C_Read... [16:29:28]Read from MH i2c: E2 0E 00 4F 0C 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 53 [16:29:28]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [16:29:28]wFMCommunicate OK [16:29:28]SAM_PROTO_GetShiftState done [16:29:28]FM_GetShiftState done [16:29:28]opened in 1718847247 [16:29:28]opened+sec_in_day 1718933647 [16:29:28]quantity*price = 50065 [16:29:28]sum+1 = 50067 [16:29:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 180 20.06.2024 16:29 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111730 ФПД: 188647375794013 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T162931&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111730&fm=188647375794013&tin=02508201610067®Number=0000000000092771&sum=50000 [16:29:29]StoreToDocumentArchive [16:29:29]shift 389 fd 111730 [16:29:29]save to /storage/0389/doc_00111730 [16:29:29]save last doc name /storage/0389/doc_00111730 to /storage/kkm_last_doc_name [16:29:29]save OK [16:29:29]Clear old archive folders... [16:29:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:29:29]tlvbuf is 017654D0 [16:29:29]SAM_PROTO_ClearQueue [16:29:29]wFMCommunicate request_size=4 [16:29:29]MH_SAM_APDU [16:29:29]CAPDU: 80 09 00 00 [16:29:29]Write to MH i2c: E2 08 00 5C 0C 80 09 00 00 00 00 00 00 DA [16:29:29]Write i2c OK [16:29:29]MH_I2C_Read... [16:29:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:29:29]Read from MH i2c: E2 [16:29:29]MH_I2C_Read... [16:29:29]Read from MH i2c: E2 03 00 [16:29:29]MH_I2C_Read... [16:29:29]Read from MH i2c: E2 03 00 5C 0C 00 90 00 DC [16:29:29]RAPDU: 90 00 [16:29:29]wFMCommunicate OK [16:29:29]SAM_PROTO_ClearQueue done [16:29:29]KKMCreateOFDPacket [16:29:29]OFDProtocolAddRootSTLVToBuf [16:29:29]FM_MakeSignedData [16:29:29]FM_MakeSignedData [16:29:29]SAM_PROTO_SignData [16:29:29]wFMCommunicate request_size=4 [16:29:29]MH_SAM_APDU [16:29:29]CAPDU: 80 0D 01 02 [16:29:29]Write to MH i2c: E2 08 00 5D 0C 80 0D 01 02 00 00 00 00 E2 [16:29:29]Write i2c OK [16:29:29]MH_I2C_Read... [16:29:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:29:29]Read from MH i2c: E2 [16:29:29]MH_I2C_Read... [16:29:29]Read from MH i2c: E2 03 00 [16:29:29]MH_I2C_Read... [16:29:29]Read from MH i2c: E2 03 00 5D 0C 00 90 00 DD [16:29:29]RAPDU: 90 00 [16:29:29]wFMCommunicate OK [16:29:29]wFMCommunicate request_size=255 [16:29:29]MH_SAM_APDU [16:29:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 EB 58 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 72 B4 01 00 35 04 06 00 AB [16:29:29]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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 EB 58 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 72 B4 01 00 35 04 06 00 AB 00 00 BF [16:29:29]Write i2c OK [16:29:29]MH_I2C_Read... [16:29:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:29]Read from MH i2c: E2 [16:29:29]MH_I2C_Read... [16:29:29]Read from MH i2c: E2 03 00 [16:29:29]MH_I2C_Read... [16:29:29]Read from MH i2c: E2 03 00 5E 0C 00 90 00 DE [16:29:29]RAPDU: 90 00 [16:29:29]wFMCommunicate OK [16:29:29]wFMCommunicate request_size=10 [16:29:29]MH_SAM_APDU [16:29:29]CAPDU: 80 0D 02 02 05 92 E3 D2 6F 5D [16:29:29]Write to MH i2c: E2 0D 00 5F 0C 80 0D 02 02 05 00 92 E3 D2 6F 5D 00 00 02 [16:29:29]Write i2c OK [16:29:29]MH_I2C_Read... [16:29:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:29]Read from MH i2c: E2 [16:29:29]MH_I2C_Read... [16:29:29]Read from MH i2c: E2 03 00 [16:29:29]MH_I2C_Read... [16:29:29]Read from MH i2c: E2 03 00 5F 0C 00 90 00 DF [16:29:29]RAPDU: 90 00 [16:29:29]wFMCommunicate OK [16:29:29]wFMCommunicate request_size=4 [16:29:29]MH_SAM_APDU [16:29:29]CAPDU: 80 0D 03 02 [16:29:29]Write to MH i2c: E2 08 00 60 0C 80 0D 03 02 00 00 00 00 E7 [16:29:29]Write i2c OK [16:29:29]MH_I2C_Read... [16:29:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:29:29]Read from MH i2c: E2 [16:29:29]MH_I2C_Read... [16:29:29]Read from MH i2c: E2 0B 00 [16:29:29]MH_I2C_Read... [16:29:29]Read from MH i2c: E2 0B 00 60 0C 00 B6 78 D6 CE 3E 0F 25 07 90 00 33 [16:29:29]RAPDU: B6 78 D6 CE 3E 0F 25 07 90 00 [16:29:29]wFMCommunicate OK [16:29:29]SAM_PROTO_SignData done [16:29:29]FM_MakeSignedData done [16:29:29]CreateOFDProtocolMessage [16:29:29]wFMCommunicate request_size=4 [16:29:29]MH_SAM_APDU [16:29:29]CAPDU: 80 11 00 00 [16:29:29]Write to MH i2c: E2 08 00 61 0C 80 11 00 00 00 00 00 00 E7 [16:29:29]Write i2c OK [16:29:29]MH_I2C_Read... [16:29:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:29]Read from MH i2c: E2 [16:29:29]MH_I2C_Read... [16:29:29]Read from MH i2c: E2 17 00 [16:29:29]MH_I2C_Read... [16:29:29]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 35 30 38 33 90 00 39 [16:29:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:29:29]wFMCommunicate OK [16:29:29]CreateOFDProtocolMessage done [16:29:29]OFDSenderStorePacket 111730 [16:29:29]StoreOFDPacket docnum=111730 [16:29:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E1 AE 07 01 BF 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 EB 58 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 72 B4 01 00 35 04 06 00 AB 92 E3 D2 6F 5D B6 78 D6 CE 3E 0F 25 07 [16:29:29]CheckFolder [16:29:29]dirname=/storage/ofd_packets [16:29:29]CheckFolder done [16:29:29]ProducePacketName [16:29:29]name=ofd_packets/00111730 [16:29:29]NVStorageSaveData ofd_packets/00111730 [16:29:29]File name is /storage/ofd_packets/00111730 [16:29:29]Write 301 bytes [16:29:29]NVStorageSaveData done [16:29:29]OFDSenderStorePacket done [16:29:29]KKMCreateOFDPacket done [16:29:29]NVStorageSaveData kkm_last_timestamp [16:29:29]File name is /storage/kkm_last_timestamp [16:29:29]Write 4 bytes [16:29:29]NVStorageSaveData done [16:29:29]ExternCall_PrintAddStr [16:29:29]wPrintStart [16:29:29]Write to MH i2c: 01 00 00 62 0C 6E [16:29:29]Write i2c OK [16:29:29]MH_I2C_Read... [16:29:29]Read from MH i2c: 01 [16:29:29]MH_I2C_Read... [16:29:29]Read from MH i2c: 01 07 00 [16:29:29]MH_I2C_Read... [16:29:29]Read from MH i2c: 01 07 00 62 0C 00 00 00 00 00 FF 0F 83 [16:29:29]RasterBufferAndPrint [16:29:29]line Счет N : (1)320348 [16:29:29]line ИНН: 02508201610067 [16:29:29]line Контрольно-Кассовый Чек [16:29:29]line ПРОДАЖА [16:29:29]line ТРК (МРК, ГНК) : 11 [16:29:29]line Товар: 2710124130 [16:29:29]line Аи-92-К-5 [16:29:29]line 7.540 * 66.40 [16:29:29]line = 500.66 [16:29:29]line НДС 12% НСП 1% [16:29:29]line > о реализуемом товаре [16:29:29]line ОКРУГЛЕНИЕ: -0.66 [16:29:29]line ИТОГО: 500.00 [16:29:29]line Внесено: 500.00 [16:29:29]line СДАЧА: 0.00 [16:29:29]line НСП 1% : 4.43 [16:29:29]line НДС 12% : 53.17 [16:29:29]line Наличными: 500.00 [16:29:29]line Безнал.: 0.00 [16:29:29]line Место: АЗС № 65 "Партнер Нефть" [16:29:29]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:29:29]line СНО: Общий режим [16:29:29]line Чек 180 20.06.2024 16:29 [16:29:29]line Смена: 389 ФФД: 1.0 [16:29:29]line ЗНМ: 0300000198 [16:29:29]line РНМ: 0000000000092771 [16:29:29]line Версия ККМ: 001 [16:29:29]line ФМ: 0000000000875083 [16:29:29]line ФД: 111730 [16:29:29]line ФПД: 188647375794013 [16:29:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T162931&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111730&fm=188647375794013&tin=02508201610067®Number=0000000000092771&sum=50000 [16:29:29]written 0, free lines is 4095 [16:29:29]OFD Sender: Processing packet 111730 [packets to send 38, broken 37] [16:29:29]ProducePacketName [16:29:29]name=ofd_packets/00111730 [16:29:29]OFD Sender: To server: pG, [16:29:29]CommunicateWithHost lk.salyk.kg:30040 [16:29:29]ConnectInit lk.salyk.kg [16:29:29]Connected sock=10 [16:29:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E1 AE 07 01 BF 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 EB 58 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 72 B4 01 00 35 04 06 00 AB 92 E3 D2 6F 5D B6 78 D6 CE 3E 0F 25 07 [16:29:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 06 E3 47 00 E5 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 72 B4 01 00 F4 03 04 00 30 F0 73 66 B6 04 01 00 00 05 31 F7 3D 4E EC C3 FF [16:29:30]CommunicateWithHost err = 0 [16:29:30]CheckOFDResponse [16:29:30]1017 (14) - 77093643461234 [16:29:30]1041 (16) - 0000000000875083 [16:29:30]1040 (4) - 111730 [16:29:30]1012 (4) - 20.06.2024 09:02 [16:29:30]1206 (1) - 0 [16:29:30]OFD Sender: Remove packet 111730 [16:29:30]ProducePacketName [16:29:30]name=ofd_packets/00111730 [16:29:30]NVStorageDeleteData [16:29:30]Write to MH i2c: 01 00 00 8D 0C 99 [16:29:30]Write i2c OK [16:29:30]MH_I2C_Read... [16:29:30]Read from MH i2c: 01 [16:29:30]MH_I2C_Read... [16:29:30]Read from MH i2c: 01 07 00 [16:29:30]MH_I2C_Read... [16:29:30]Read from MH i2c: 01 07 00 8D 0C 00 00 00 00 00 EB 0C 97 [16:29:30]RasterBufferAndPrint [16:29:30]line [16:29:30]line [16:29:30]line [16:29:30]line [16:29:30]line [16:29:30]written 0, free lines is 3313 [16:29:30]MH_Cut [16:29:30]Write to MH i2c: D1 01 00 94 0C 01 72 [16:29:30]Write i2c OK [16:29:30]MH_I2C_Read... [16:29:30]Read from MH i2c: D1 [16:29:30]MH_I2C_Read... [16:29:30]Read from MH i2c: D1 01 00 [16:29:30]MH_I2C_Read... [16:29:30]Read from MH i2c: D1 01 00 94 0C 00 71 [16:29:30]Write to MH i2c: 01 00 00 95 0C A1 [16:29:30]Write i2c OK [16:29:30]MH_I2C_Read... [16:29:30]OFD Sender: No OFD packet to send [16:29:30]*** Cut start [16:29:30]*** Partial cut [16:29:30]*** CUTSNS_PIN = 1 [16:29:30]*** CUTSNS_PIN = 0 [16:29:31]*** Brake cut motor [16:29:31]Read from MH i2c: 01 [16:29:31]MH_I2C_Read... [16:29:31]*** Stop cut motor [16:29:31]*** Cut end [16:29:31]Read from MH i2c: 01 07 00 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: 01 07 00 95 0C 00 00 00 00 00 FF 0F B6 [16:29:31]process_action close_receipt done [16:29:31]requested_data is exist [16:29:31]produce_requested_data [16:29:31]requested_item fm.sn is exist - process it [16:29:31]wFMCommunicate request_size=4 [16:29:31]MH_SAM_APDU [16:29:31]CAPDU: 80 11 00 00 [16:29:31]Write to MH i2c: E2 08 00 96 0C 80 11 00 00 00 00 00 00 1C [16:29:31]Write i2c OK [16:29:31]MH_I2C_Read... [16:29:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:31]Read from MH i2c: E2 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: E2 17 00 [16:29:31]MH_I2C_Read... [16:29:31]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 35 30 38 33 90 00 6E [16:29:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:29:31]wFMCommunicate OK [16:29:31]requested_item fd.num is exist - process it [16:29:31]SAM_PROTO_GetFieldsCounters [16:29:31]wFMCommunicate request_size=4 [16:29:31]MH_SAM_APDU [16:29:31]CAPDU: 80 13 00 00 [16:29:31]Write to MH i2c: E2 08 00 97 0C 80 13 00 00 00 00 00 00 1F [16:29:31]Write i2c OK [16:29:31]MH_I2C_Read... [16:29:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:31]Read from MH i2c: E2 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: E2 62 00 [16:29:31]MH_I2C_Read... [16:29:31]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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 72 B4 01 00 0E 04 04 00 85 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 09 [16:29:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 72 B4 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:29:31]wFMCommunicate OK [16:29:31]SAM_PROTO_GetFieldsCounters done [16:29:31]requested_item shift.num is exist - process it [16:29:31]requested_item shift.opened is exist - process it [16:29:31]req_shift_opened [16:29:31]FM_GetShiftState [16:29:31]SAM_PROTO_GetShiftState [16:29:31]wFMCommunicate request_size=4 [16:29:31]MH_SAM_APDU [16:29:31]CAPDU: 80 13 01 00 [16:29:31]Write to MH i2c: E2 08 00 98 0C 80 13 01 00 00 00 00 00 21 [16:29:31]Write i2c OK [16:29:31]MH_I2C_Read... [16:29:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:31]Read from MH i2c: E2 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: E2 0E 00 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: E2 0E 00 98 0C 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 9C [16:29:31]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [16:29:31]wFMCommunicate OK [16:29:31]SAM_PROTO_GetShiftState done [16:29:31]FM_GetShiftState done [16:29:31]req_shift_opened done [16:29:31]requested_item shift.open_date is exist - process it [16:29:31]req_shift_open_date [16:29:31]req_shift_open_date done [16:29:31]produce_requested_data done [16:29:31]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111730,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [16:29:31]process_action_free close_receipt [16:29:31]json_value_free [16:29:31]json_value_free done [16:29:31]process_json_proto returns [16:29:31]Send response to host [16:29:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111730,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [16:29:31]free response buf [16:29:31]execute_script done [16:29:31]execute_script returns [16:29:31]free content buf [16:29:31]Sock 7.Close socket [16:29:31]Sock 7.Thread stoped [16:29:35]OFD Sender: No OFD packet to send [16:29:40]OFD Sender: No OFD packet to send [16:29:45]OFD Sender: No OFD packet to send [16:29:50]OFD Sender: No OFD packet to send [16:29:55]OFD Sender: No OFD packet to send [16:30:00]OFD Sender: No OFD packet to send [16:30:05]OFD Sender: No OFD packet to send [16:30:10]OFD Sender: No OFD packet to send [16:30:15]OFD Sender: No OFD packet to send [16:30:20]OFD Sender: No OFD packet to send [16:30:25]OFD Sender: No OFD packet to send [16:30:30]OFD Sender: No OFD packet to send [16:30:35]OFD Sender: No OFD packet to send [16:30:36]accept exits with 9 [16:30:36]New connection [16:30:36]New thread 3067178340 created [16:30:36]Thread 3067321700 joined [16:30:36]Waiting for new connection... [16:30:36] Sock 9.Parse request [16:30:36]Sock 9.Check first char [16:30:36]Sock 9.First char is OK [16:30:36]request: POST /json_proto HTTP/1.0 [16:30:36]Method: POST [16:30:36]URL: /json_proto [16:30:36]Method is POST - this is cgi request [16:30:36]url: /json_proto [16:30:36]query_string will be loaded in cgi processing [16:30:36]execute_cgi json_proto POST (null) [16:30:36]execute_cgi path=json_proto method=POST [16:30:36]POST find Content-Length [16:30:36]Host: 172.17.59.68:8080 [16:30:36]Content-Length: 677 [16:30:36]Content-Type: application/json [16:30:36] [16:30:36]POST finish read [16:30:36]Found Content-Length = 677 [16:30:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:36]execute_script... [16:30: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)320349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:36]POST & json_proto [16:30:36]process_json_proto [16:30:36]json parsed OK: [16:30:36]protocol is kg_v1.0 [16:30:36]action value=close_receipt [16:30:36]process_action close_receipt [16:30:36]cmd_close_receipt [16:30:36]MH_GetDate [16:30:36]Write to MH i2c: F0 00 00 99 0C 94 [16:30:36]Write i2c OK [16:30:36]MH_I2C_Read... [16:30:36]Read from MH i2c: F0 [16:30:36]MH_I2C_Read... [16:30:36]Read from MH i2c: F0 09 00 [16:30:36]MH_I2C_Read... [16:30:36]Read from MH i2c: F0 09 00 99 0C 00 30 59 74 66 BC EC 60 65 6D [16:30:36]GetLastDocTimeStamp 1718900971 [16:30:36]current date 1718901040 [16:30:36]FM_GetShiftState [16:30:36]SAM_PROTO_GetShiftState [16:30:36]wFMCommunicate request_size=4 [16:30:36]MH_SAM_APDU [16:30:36]CAPDU: 80 13 01 00 [16:30:36]Write to MH i2c: E2 08 00 9A 0C 80 13 01 00 00 00 00 00 23 [16:30:36]Write i2c OK [16:30:36]MH_I2C_Read... [16:30:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:36]Read from MH i2c: E2 [16:30:36]MH_I2C_Read... [16:30:36]Read from MH i2c: E2 0E 00 [16:30:36]MH_I2C_Read... [16:30:36]Read from MH i2c: E2 0E 00 9A 0C 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 9E [16:30:36]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [16:30:36]wFMCommunicate OK [16:30:36]SAM_PROTO_GetShiftState done [16:30:36]FM_GetShiftState done [16:30:36]opened in 1718847247 [16:30:36]opened+sec_in_day 1718933647 [16:30:36]quantity*price = 40039 [16:30:36]sum+1 = 40040 [16:30:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 181 20.06.2024 16:30 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111731 ФПД: 96440096695312 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T163040&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111731&fm=96440096695312&tin=02508201610067®Number=0000000000092771&sum=40000 [16:30:37]StoreToDocumentArchive [16:30:37]shift 389 fd 111731 [16:30:37]save to /storage/0389/doc_00111731 [16:30:37]save last doc name /storage/0389/doc_00111731 to /storage/kkm_last_doc_name [16:30:38]save OK [16:30:38]Clear old archive folders... [16:30:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:30:38]tlvbuf is 0174AE60 [16:30:38]SAM_PROTO_ClearQueue [16:30:38]wFMCommunicate request_size=4 [16:30:38]MH_SAM_APDU [16:30:38]CAPDU: 80 09 00 00 [16:30:38]Write to MH i2c: E2 08 00 A7 0C 80 09 00 00 00 00 00 00 25 [16:30:38]Write i2c OK [16:30:38]MH_I2C_Read... [16:30:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:30:38]Read from MH i2c: E2 [16:30:38]MH_I2C_Read... [16:30:38]Read from MH i2c: E2 03 00 [16:30:38]MH_I2C_Read... [16:30:38]Read from MH i2c: E2 03 00 A7 0C 00 90 00 27 [16:30:38]RAPDU: 90 00 [16:30:38]wFMCommunicate OK [16:30:38]SAM_PROTO_ClearQueue done [16:30:38]KKMCreateOFDPacket [16:30:38]OFDProtocolAddRootSTLVToBuf [16:30:38]FM_MakeSignedData [16:30:38]FM_MakeSignedData [16:30:38]SAM_PROTO_SignData [16:30:38]wFMCommunicate request_size=4 [16:30:38]MH_SAM_APDU [16:30:38]CAPDU: 80 0D 01 02 [16:30:38]Write to MH i2c: E2 08 00 A8 0C 80 0D 01 02 00 00 00 00 2D [16:30:38]Write i2c OK [16:30:38]MH_I2C_Read... [16:30:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:30:38]Read from MH i2c: E2 [16:30:38]MH_I2C_Read... [16:30:38]Read from MH i2c: E2 03 00 [16:30:38]MH_I2C_Read... [16:30:38]Read from MH i2c: E2 03 00 A8 0C 00 90 00 28 [16:30:38]RAPDU: 90 00 [16:30:38]wFMCommunicate OK [16:30:38]wFMCommunicate request_size=255 [16:30:38]MH_SAM_APDU [16:30:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 30 59 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 73 B4 01 00 35 04 06 00 57 [16:30:38]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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 30 59 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 73 B4 01 00 35 04 06 00 57 00 00 CC [16:30:38]Write i2c OK [16:30:38]MH_I2C_Read... [16:30:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:38]Read from MH i2c: E2 [16:30:38]MH_I2C_Read... [16:30:38]Read from MH i2c: E2 03 00 [16:30:38]MH_I2C_Read... [16:30:38]Read from MH i2c: E2 03 00 A9 0C 00 90 00 29 [16:30:38]RAPDU: 90 00 [16:30:38]wFMCommunicate OK [16:30:38]wFMCommunicate request_size=10 [16:30:38]MH_SAM_APDU [16:30:38]CAPDU: 80 0D 02 02 05 B6 35 B4 A4 10 [16:30:38]Write to MH i2c: E2 0D 00 AA 0C 80 0D 02 02 05 00 B6 35 B4 A4 10 00 00 8D [16:30:38]Write i2c OK [16:30:38]MH_I2C_Read... [16:30:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:38]Read from MH i2c: E2 [16:30:38]MH_I2C_Read... [16:30:38]Read from MH i2c: E2 03 00 [16:30:38]MH_I2C_Read... [16:30:38]Read from MH i2c: E2 03 00 AA 0C 00 90 00 2A [16:30:38]RAPDU: 90 00 [16:30:38]wFMCommunicate OK [16:30:38]wFMCommunicate request_size=4 [16:30:38]MH_SAM_APDU [16:30:38]CAPDU: 80 0D 03 02 [16:30:38]Write to MH i2c: E2 08 00 AB 0C 80 0D 03 02 00 00 00 00 32 [16:30:38]Write i2c OK [16:30:38]MH_I2C_Read... [16:30:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:30:38]Read from MH i2c: E2 [16:30:38]MH_I2C_Read... [16:30:38]Read from MH i2c: E2 0B 00 [16:30:38]MH_I2C_Read... [16:30:38]Read from MH i2c: E2 0B 00 AB 0C 00 38 95 19 AE 39 A9 42 E4 90 00 CF [16:30:38]RAPDU: 38 95 19 AE 39 A9 42 E4 90 00 [16:30:38]wFMCommunicate OK [16:30:38]SAM_PROTO_SignData done [16:30:38]FM_MakeSignedData done [16:30:38]CreateOFDProtocolMessage [16:30:38]wFMCommunicate request_size=4 [16:30:38]MH_SAM_APDU [16:30:38]CAPDU: 80 11 00 00 [16:30:38]Write to MH i2c: E2 08 00 AC 0C 80 11 00 00 00 00 00 00 32 [16:30:38]Write i2c OK [16:30:38]MH_I2C_Read... [16:30:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:38]Read from MH i2c: E2 [16:30:38]MH_I2C_Read... [16:30:38]Read from MH i2c: E2 17 00 [16:30:38]MH_I2C_Read... [16:30:38]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 35 30 38 33 90 00 84 [16:30:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:30:38]wFMCommunicate OK [16:30:38]CreateOFDProtocolMessage done [16:30:38]OFDSenderStorePacket 111731 [16:30:38]StoreOFDPacket docnum=111731 [16:30:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F6 B3 07 01 C2 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 30 59 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 73 B4 01 00 35 04 06 00 57 B6 35 B4 A4 10 38 95 19 AE 39 A9 42 E4 [16:30:38]CheckFolder [16:30:38]dirname=/storage/ofd_packets [16:30:38]CheckFolder done [16:30:38]ProducePacketName [16:30:38]name=ofd_packets/00111731 [16:30:38]NVStorageSaveData ofd_packets/00111731 [16:30:38]File name is /storage/ofd_packets/00111731 [16:30:38]Write 301 bytes [16:30:38]NVStorageSaveData done [16:30:38]OFDSenderStorePacket done [16:30:38]KKMCreateOFDPacket done [16:30:38]NVStorageSaveData kkm_last_timestamp [16:30:38]File name is /storage/kkm_last_timestamp [16:30:38]Write 4 bytes [16:30:38]NVStorageSaveData done [16:30:38]OFD Sender: Processing packet 111731 [packets to send 38, broken 37] [16:30:38]ProducePacketName [16:30:38]name=ofd_packets/00111731 [16:30:38]OFD Sender: To server: pG, [16:30:38]CommunicateWithHost lk.salyk.kg:30040 [16:30:38]ConnectInit lk.salyk.kg [16:30:38]ExternCall_PrintAddStr [16:30:38]wPrintStart [16:30:38]Write to MH i2c: 01 00 00 AD 0C B9 [16:30:38]Write i2c OK [16:30:38]MH_I2C_Read... [16:30:38]Read from MH i2c: 01 [16:30:38]MH_I2C_Read... [16:30:38]Read from MH i2c: 01 07 00 [16:30:38]MH_I2C_Read... [16:30:38]Read from MH i2c: 01 07 00 AD 0C 00 00 00 00 00 FF 0F CE [16:30:38]RasterBufferAndPrint [16:30:38]line Счет N : (1)320349 [16:30:38]line ИНН: 02508201610067 [16:30:38]line Контрольно-Кассовый Чек [16:30:38]line ПРОДАЖА [16:30:38]line ТРК (МРК, ГНК) : 11 [16:30:38]line Товар: 2710124130 [16:30:38]line Аи-92-К-5 [16:30:38]line 6.030 * 66.40 [16:30:38]line = 400.39 [16:30:38]line НДС 12% НСП 1% [16:30:38]line > о реализуемом товаре [16:30:38]line ОКРУГЛЕНИЕ: -0.39 [16:30:38]line ИТОГО: 400.00 [16:30:38]line Внесено: 400.00 [16:30:38]line СДАЧА: 0.00 [16:30:38]line НСП 1% : 3.54 [16:30:38]line НДС 12% : 42.52 [16:30:38]line Наличными: 400.00 [16:30:38]line Безнал.: 0.00 [16:30:38]line Место: АЗС № 65 "Партнер Нефть" [16:30:38]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:30:38]line СНО: Общий режим [16:30:38]line Чек 181 20.06.2024 16:30 [16:30:38]line Смена: 389 ФФД: 1.0 [16:30:38]line ЗНМ: 0300000198 [16:30:38]line РНМ: 0000000000092771 [16:30:38]line Версия ККМ: 001 [16:30:38]line ФМ: 0000000000875083 [16:30:38]line ФД: 111731 [16:30:38]line ФПД: 96440096695312 [16:30:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T163040&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111731&fm=96440096695312&tin=02508201610067®Number=0000000000092771&sum=40000 [16:30:38]Connected sock=11 [16:30:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F6 B3 07 01 C2 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 30 59 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 73 B4 01 00 35 04 06 00 57 B6 35 B4 A4 10 38 95 19 AE 39 A9 42 E4 [16:30:38]written 0, free lines is 4095 [16:30:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 BB 61 47 00 C4 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 73 B4 01 00 F4 03 04 00 76 F0 73 66 B6 04 01 00 00 90 D5 E2 24 09 6C 0B F9 [16:30:39]CommunicateWithHost err = 0 [16:30:39]CheckOFDResponse [16:30:39]1017 (14) - 77093643461234 [16:30:39]1041 (16) - 0000000000875083 [16:30:39]1040 (4) - 111731 [16:30:39]1012 (4) - 20.06.2024 09:03 [16:30:39]1206 (1) - 0 [16:30:39]OFD Sender: Remove packet 111731 [16:30:39]ProducePacketName [16:30:39]name=ofd_packets/00111731 [16:30:39]NVStorageDeleteData [16:30:39]Write to MH i2c: 01 00 00 D8 0C E4 [16:30:39]Write i2c OK [16:30:39]MH_I2C_Read... [16:30:39]Read from MH i2c: 01 [16:30:39]MH_I2C_Read... [16:30:39]Read from MH i2c: 01 07 00 [16:30:39]MH_I2C_Read... [16:30:39]Read from MH i2c: 01 07 00 D8 0C 00 00 00 00 00 E4 0C DB [16:30:39]RasterBufferAndPrint [16:30:39]line [16:30:39]line [16:30:39]line [16:30:39]line [16:30:39]line [16:30:39]written 0, free lines is 3306 [16:30:39]MH_Cut [16:30:39]Write to MH i2c: D1 01 00 DF 0C 01 BD [16:30:39]Write i2c OK [16:30:39]MH_I2C_Read... [16:30:39]Read from MH i2c: D1 [16:30:39]MH_I2C_Read... [16:30:39]Read from MH i2c: D1 01 00 [16:30:39]MH_I2C_Read... [16:30:39]Read from MH i2c: D1 01 00 DF 0C 00 BC [16:30:39]Write to MH i2c: 01 00 00 E0 0C EC [16:30:39]Write i2c OK [16:30:39]MH_I2C_Read... [16:30:39]OFD Sender: No OFD packet to send [16:30:40]*** Cut start [16:30:40]*** Partial cut [16:30:40]*** CUTSNS_PIN = 1 [16:30:40]*** CUTSNS_PIN = 0 [16:30:40]*** Brake cut motor [16:30:40]Read from MH i2c: 01 [16:30:40]MH_I2C_Read... [16:30:40]*** Stop cut motor [16:30:40]*** Cut end [16:30:40]Read from MH i2c: 01 07 00 [16:30:40]MH_I2C_Read... [16:30:40]Read from MH i2c: 01 07 00 E0 0C 00 00 00 00 00 FF 0F 01 [16:30:40]process_action close_receipt done [16:30:40]requested_data is exist [16:30:40]produce_requested_data [16:30:40]requested_item fm.sn is exist - process it [16:30:40]wFMCommunicate request_size=4 [16:30:40]MH_SAM_APDU [16:30:40]CAPDU: 80 11 00 00 [16:30:40]Write to MH i2c: E2 08 00 E1 0C 80 11 00 00 00 00 00 00 67 [16:30:40]Write i2c OK [16:30:40]MH_I2C_Read... [16:30:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:40]Read from MH i2c: E2 [16:30:40]MH_I2C_Read... [16:30:40]Read from MH i2c: E2 17 00 [16:30:40]MH_I2C_Read... [16:30:40]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 35 30 38 33 90 00 B9 [16:30:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:30:40]wFMCommunicate OK [16:30:40]requested_item fd.num is exist - process it [16:30:40]SAM_PROTO_GetFieldsCounters [16:30:40]wFMCommunicate request_size=4 [16:30:40]MH_SAM_APDU [16:30:40]CAPDU: 80 13 00 00 [16:30:40]Write to MH i2c: E2 08 00 E2 0C 80 13 00 00 00 00 00 00 6A [16:30:40]Write i2c OK [16:30:40]MH_I2C_Read... [16:30:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:30:40]Read from MH i2c: E2 [16:30:40]MH_I2C_Read... [16:30:40]Read from MH i2c: E2 62 00 [16:30:40]MH_I2C_Read... [16:30:40]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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 73 B4 01 00 0E 04 04 00 85 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 58 [16:30:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 73 B4 01 00 0E 04 04 00 85 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 [16:30:40]wFMCommunicate OK [16:30:40]SAM_PROTO_GetFieldsCounters done [16:30:40]requested_item shift.num is exist - process it [16:30:40]requested_item shift.opened is exist - process it [16:30:40]req_shift_opened [16:30:40]FM_GetShiftState [16:30:40]SAM_PROTO_GetShiftState [16:30:40]wFMCommunicate request_size=4 [16:30:40]MH_SAM_APDU [16:30:40]CAPDU: 80 13 01 00 [16:30:40]Write to MH i2c: E2 08 00 E3 0C 80 13 01 00 00 00 00 00 6C [16:30:40]Write i2c OK [16:30:40]MH_I2C_Read... [16:30:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:40]Read from MH i2c: E2 [16:30:40]MH_I2C_Read... [16:30:40]Read from MH i2c: E2 0E 00 [16:30:40]MH_I2C_Read... [16:30:40]Read from MH i2c: E2 0E 00 E3 0C 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 E7 [16:30:40]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [16:30:40]wFMCommunicate OK [16:30:40]SAM_PROTO_GetShiftState done [16:30:40]FM_GetShiftState done [16:30:40]req_shift_opened done [16:30:40]requested_item shift.open_date is exist - process it [16:30:40]req_shift_open_date [16:30:40]req_shift_open_date done [16:30:40]produce_requested_data done [16:30:40]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111731,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [16:30:40]process_action_free close_receipt [16:30:40]json_value_free [16:30:40]json_value_free done [16:30:40]process_json_proto returns [16:30:40]Send response to host [16:30:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111731,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [16:30:40]free response buf [16:30:40]execute_script done [16:30:40]execute_script returns [16:30:40]free content buf [16:30:40]Sock 9.Close socket [16:30:40]Sock 9.Thread stoped [16:30:44]OFD Sender: No OFD packet to send [16:30:49]OFD Sender: No OFD packet to send [16:30:54]OFD Sender: No OFD packet to send [16:30:59]OFD Sender: No OFD packet to send [16:31:04]OFD Sender: No OFD packet to send [16:31:09]OFD Sender: No OFD packet to send [16:31:14]OFD Sender: No OFD packet to send [16:31:19]OFD Sender: No OFD packet to send [16:31:24]OFD Sender: No OFD packet to send [16:31:29]OFD Sender: No OFD packet to send [16:31:31]accept exits with 7 [16:31:31]New connection [16:31:31]New thread 3067321700 created [16:31:31]Thread 3067178340 joined [16:31:31]Waiting for new connection... [16:31:31] Sock 7.Parse request [16:31:31]Sock 7.Check first char [16:31:31]Sock 7.First char is OK [16:31:31]request: POST /json_proto HTTP/1.0 [16:31:31]Method: POST [16:31:31]URL: /json_proto [16:31:31]Method is POST - this is cgi request [16:31:31]url: /json_proto [16:31:31]query_string will be loaded in cgi processing [16:31:31]execute_cgi json_proto POST (null) [16:31:31]execute_cgi path=json_proto method=POST [16:31:31]POST find Content-Length [16:31:31]Host: 172.17.59.68:8080 [16:31:31]Content-Length: 677 [16:31:31]Content-Type: application/json [16:31:31] [16:31:31]POST finish read [16:31:31]Found Content-Length = 677 [16:31:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.820, "sum" : 320.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:31]execute_script... [16:31: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)320350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.820, "sum" : 320.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:31]POST & json_proto [16:31:31]process_json_proto [16:31:31]json parsed OK: [16:31:31]protocol is kg_v1.0 [16:31:31]action value=close_receipt [16:31:31]process_action close_receipt [16:31:31]cmd_close_receipt [16:31:31]MH_GetDate [16:31:31]Write to MH i2c: F0 00 00 E4 0C DF [16:31:31]Write i2c OK [16:31:31]MH_I2C_Read... [16:31:31]Read from MH i2c: F0 [16:31:31]MH_I2C_Read... [16:31:31]Read from MH i2c: F0 09 00 [16:31:31]MH_I2C_Read... [16:31:31]Read from MH i2c: F0 09 00 E4 0C 00 67 59 74 66 BC EC 60 65 EF [16:31:31]GetLastDocTimeStamp 1718901040 [16:31:31]current date 1718901095 [16:31:31]FM_GetShiftState [16:31:31]SAM_PROTO_GetShiftState [16:31:31]wFMCommunicate request_size=4 [16:31:31]MH_SAM_APDU [16:31:31]CAPDU: 80 13 01 00 [16:31:31]Write to MH i2c: E2 08 00 E5 0C 80 13 01 00 00 00 00 00 6E [16:31:31]Write i2c OK [16:31:31]MH_I2C_Read... [16:31:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:31]Read from MH i2c: E2 [16:31:31]MH_I2C_Read... [16:31:31]Read from MH i2c: E2 0E 00 [16:31:31]MH_I2C_Read... [16:31:31]Read from MH i2c: E2 0E 00 E5 0C 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 E9 [16:31:31]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [16:31:31]wFMCommunicate OK [16:31:31]SAM_PROTO_GetShiftState done [16:31:31]FM_GetShiftState done [16:31:31]opened in 1718847247 [16:31:31]opened+sec_in_day 1718933647 [16:31:31]quantity*price = 32004 [16:31:31]sum+1 = 32006 [16:31:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.83 НДС 12% : 33.99 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 182 20.06.2024 16:31 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111732 ФПД: 240334946645102 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T163135&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111732&fm=240334946645102&tin=02508201610067®Number=0000000000092771&sum=32000 [16:31:32]StoreToDocumentArchive [16:31:32]shift 389 fd 111732 [16:31:32]save to /storage/0389/doc_00111732 [16:31:32]save last doc name /storage/0389/doc_00111732 to /storage/kkm_last_doc_name [16:31:32]save OK [16:31:32]Clear old archive folders... [16:31:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:31:32]tlvbuf is 0175A6E0 [16:31:32]SAM_PROTO_ClearQueue [16:31:32]wFMCommunicate request_size=4 [16:31:32]MH_SAM_APDU [16:31:32]CAPDU: 80 09 00 00 [16:31:32]Write to MH i2c: E2 08 00 F2 0C 80 09 00 00 00 00 00 00 70 [16:31:32]Write i2c OK [16:31:32]MH_I2C_Read... [16:31:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:31:32]Read from MH i2c: E2 [16:31:32]MH_I2C_Read... [16:31:32]Read from MH i2c: E2 03 00 [16:31:32]MH_I2C_Read... [16:31:32]Read from MH i2c: E2 03 00 F2 0C 00 90 00 72 [16:31:32]RAPDU: 90 00 [16:31:32]wFMCommunicate OK [16:31:32]SAM_PROTO_ClearQueue done [16:31:32]KKMCreateOFDPacket [16:31:32]OFDProtocolAddRootSTLVToBuf [16:31:32]FM_MakeSignedData [16:31:32]FM_MakeSignedData [16:31:32]SAM_PROTO_SignData [16:31:32]wFMCommunicate request_size=4 [16:31:32]MH_SAM_APDU [16:31:32]CAPDU: 80 0D 01 02 [16:31:32]Write to MH i2c: E2 08 00 F3 0C 80 0D 01 02 00 00 00 00 78 [16:31:32]Write i2c OK [16:31:32]MH_I2C_Read... [16:31:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:31:32]Read from MH i2c: E2 [16:31:32]MH_I2C_Read... [16:31:32]Read from MH i2c: E2 03 00 [16:31:32]MH_I2C_Read... [16:31:32]Read from MH i2c: E2 03 00 F3 0C 00 90 00 73 [16:31:32]RAPDU: 90 00 [16:31:32]wFMCommunicate OK [16:31:32]wFMCommunicate request_size=255 [16:31:32]MH_SAM_APDU [16:31: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 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 67 59 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 74 B4 01 00 35 04 06 00 DA [16:31:32]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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 67 59 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 74 B4 01 00 35 04 06 00 DA 00 00 36 [16:31:32]Write i2c OK [16:31:32]MH_I2C_Read... [16:31:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:33]Read from MH i2c: E2 [16:31:33]MH_I2C_Read... [16:31:33]Read from MH i2c: E2 03 00 [16:31:33]MH_I2C_Read... [16:31:33]Read from MH i2c: E2 03 00 F4 0C 00 90 00 74 [16:31:33]RAPDU: 90 00 [16:31:33]wFMCommunicate OK [16:31:33]wFMCommunicate request_size=10 [16:31:33]MH_SAM_APDU [16:31:33]CAPDU: 80 0D 02 02 05 95 57 1F 34 6E [16:31:33]Write to MH i2c: E2 0D 00 F5 0C 80 0D 02 02 05 00 95 57 1F 34 6E 00 00 32 [16:31:33]Write i2c OK [16:31:33]MH_I2C_Read... [16:31:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:33]Read from MH i2c: E2 [16:31:33]MH_I2C_Read... [16:31:33]Read from MH i2c: E2 03 00 [16:31:33]MH_I2C_Read... [16:31:33]Read from MH i2c: E2 03 00 F5 0C 00 90 00 75 [16:31:33]RAPDU: 90 00 [16:31:33]wFMCommunicate OK [16:31:33]wFMCommunicate request_size=4 [16:31:33]MH_SAM_APDU [16:31:33]CAPDU: 80 0D 03 02 [16:31:33]Write to MH i2c: E2 08 00 F6 0C 80 0D 03 02 00 00 00 00 7D [16:31:33]Write i2c OK [16:31:33]MH_I2C_Read... [16:31:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:31:33]Read from MH i2c: E2 [16:31:33]MH_I2C_Read... [16:31:33]Read from MH i2c: E2 0B 00 [16:31:33]MH_I2C_Read... [16:31:33]Read from MH i2c: E2 0B 00 F6 0C 00 6B E6 4B D8 A5 0D DF 67 90 00 EA [16:31:33]RAPDU: 6B E6 4B D8 A5 0D DF 67 90 00 [16:31:33]wFMCommunicate OK [16:31:33]SAM_PROTO_SignData done [16:31:33]FM_MakeSignedData done [16:31:33]CreateOFDProtocolMessage [16:31:33]wFMCommunicate request_size=4 [16:31:33]MH_SAM_APDU [16:31:33]CAPDU: 80 11 00 00 [16:31:33]Write to MH i2c: E2 08 00 F7 0C 80 11 00 00 00 00 00 00 7D [16:31:33]Write i2c OK [16:31:33]MH_I2C_Read... [16:31:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:33]Read from MH i2c: E2 [16:31:33]MH_I2C_Read... [16:31:33]Read from MH i2c: E2 17 00 [16:31:33]MH_I2C_Read... [16:31:33]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 35 30 38 33 90 00 CF [16:31:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:31:33]wFMCommunicate OK [16:31:33]CreateOFDProtocolMessage done [16:31:33]OFDSenderStorePacket 111732 [16:31:33]StoreOFDPacket docnum=111732 [16:31:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 38 72 07 01 1D 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 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 67 59 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 74 B4 01 00 35 04 06 00 DA 95 57 1F 34 6E 6B E6 4B D8 A5 0D DF 67 [16:31:33]CheckFolder [16:31:33]dirname=/storage/ofd_packets [16:31:33]CheckFolder done [16:31:33]ProducePacketName [16:31:33]name=ofd_packets/00111732 [16:31:33]NVStorageSaveData ofd_packets/00111732 [16:31:33]File name is /storage/ofd_packets/00111732 [16:31:33]Write 301 bytes [16:31:33]NVStorageSaveData done [16:31:33]OFDSenderStorePacket done [16:31:33]KKMCreateOFDPacket done [16:31:33]NVStorageSaveData kkm_last_timestamp [16:31:33]File name is /storage/kkm_last_timestamp [16:31:33]Write 4 bytes [16:31:33]NVStorageSaveData done [16:31:33]ExternCall_PrintAddStr [16:31:33]wPrintStart [16:31:33]Write to MH i2c: 01 00 00 F8 0C 04 [16:31:33]Write i2c OK [16:31:33]MH_I2C_Read... [16:31:33]Read from MH i2c: 01 [16:31:33]MH_I2C_Read... [16:31:33]Read from MH i2c: 01 07 00 [16:31:33]MH_I2C_Read... [16:31:33]Read from MH i2c: 01 07 00 F8 0C 00 00 00 00 00 FF 0F 19 [16:31:33]RasterBufferAndPrint [16:31:33]line Счет N : (1)320350 [16:31:33]line ИНН: 02508201610067 [16:31:33]line Контрольно-Кассовый Чек [16:31:33]line ПРОДАЖА [16:31:33]line ТРК (МРК, ГНК) : 11 [16:31:33]line Товар: 2710124130 [16:31:33]line Аи-92-К-5 [16:31:33]line 4.820 * 66.40 [16:31:33]line = 320.05 [16:31:33]line НДС 12% НСП 1% [16:31:33]line > о реализуемом товаре [16:31:33]line ОКРУГЛЕНИЕ: -0.05 [16:31:33]line ИТОГО: 320.00 [16:31:33]line Внесено: 320.00 [16:31:33]line СДАЧА: 0.00 [16:31:33]line НСП 1% : 2.83 [16:31:33]line НДС 12% : 33.99 [16:31:33]line Наличными: 320.00 [16:31:33]line Безнал.: 0.00 [16:31:33]line Место: АЗС № 65 "Партнер Нефть" [16:31:33]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:31:33]line СНО: Общий режим [16:31:33]line Чек 182 20.06.2024 16:31 [16:31:33]line Смена: 389 ФФД: 1.0 [16:31:33]line ЗНМ: 0300000198 [16:31:33]line РНМ: 0000000000092771 [16:31:33]line Версия ККМ: 001 [16:31:33]line ФМ: 0000000000875083 [16:31:33]line ФД: 111732 [16:31:33]line ФПД: 240334946645102 [16:31:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T163135&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111732&fm=240334946645102&tin=02508201610067®Number=0000000000092771&sum=32000 [16:31:33]OFD Sender: Processing packet 111732 [packets to send 38, broken 37] [16:31:33]ProducePacketName [16:31:33]name=ofd_packets/00111732 [16:31:33]OFD Sender: To server: pG, [16:31:33]CommunicateWithHost lk.salyk.kg:30040 [16:31:33]ConnectInit lk.salyk.kg [16:31:33]written 0, free lines is 4095 [16:31:33]Connected sock=10 [16:31:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 38 72 07 01 1D 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 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 67 59 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 74 B4 01 00 35 04 06 00 DA 95 57 1F 34 6E 6B E6 4B D8 A5 0D DF 67 [16:31:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 FC 07 47 00 CB 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 74 B4 01 00 F4 03 04 00 AC F0 73 66 B6 04 01 00 00 53 9E 03 EB FF 86 86 74 [16:31:33]CommunicateWithHost err = 0 [16:31:33]CheckOFDResponse [16:31:33]1017 (14) - 77093643461234 [16:31:33]1041 (16) - 0000000000875083 [16:31:33]1040 (4) - 111732 [16:31:33]1012 (4) - 20.06.2024 09:04 [16:31:33]1206 (1) - 0 [16:31:33]OFD Sender: Remove packet 111732 [16:31:33]ProducePacketName [16:31:33]name=ofd_packets/00111732 [16:31:33]NVStorageDeleteData [16:31:33]Write to MH i2c: 01 00 00 23 0D 30 [16:31:33]Write i2c OK [16:31:33]MH_I2C_Read... [16:31:33]Read from MH i2c: 01 [16:31:33]MH_I2C_Read... [16:31:33]Read from MH i2c: 01 07 00 [16:31:33]MH_I2C_Read... [16:31:33]Read from MH i2c: 01 07 00 23 0D 00 00 00 00 00 E3 0C 26 [16:31:33]RasterBufferAndPrint [16:31:33]line [16:31:33]line [16:31:33]line [16:31:33]line [16:31:33]line [16:31:33]written 0, free lines is 3305 [16:31:33]MH_Cut [16:31:33]Write to MH i2c: D1 01 00 2A 0D 01 09 [16:31:33]Write i2c OK [16:31:33]MH_I2C_Read... [16:31:33]Read from MH i2c: D1 [16:31:33]MH_I2C_Read... [16:31:33]Read from MH i2c: D1 01 00 [16:31:33]MH_I2C_Read... [16:31:33]Read from MH i2c: D1 01 00 2A 0D 00 08 [16:31:33]Write to MH i2c: 01 00 00 2B 0D 38 [16:31:33]Write i2c OK [16:31:33]MH_I2C_Read... [16:31:34]OFD Sender: No OFD packet to send [16:31:34]*** Cut start [16:31:34]*** Partial cut [16:31:34]*** CUTSNS_PIN = 1 [16:31:34]*** CUTSNS_PIN = 0 [16:31:34]*** Brake cut motor [16:31:35]Read from MH i2c: 01 [16:31:35]MH_I2C_Read... [16:31:35]*** Stop cut motor [16:31:35]*** Cut end [16:31:35]Read from MH i2c: 01 07 00 [16:31:35]MH_I2C_Read... [16:31:35]Read from MH i2c: 01 07 00 2B 0D 00 00 00 00 00 FF 0F 4D [16:31:35]process_action close_receipt done [16:31:35]requested_data is exist [16:31:35]produce_requested_data [16:31:35]requested_item fm.sn is exist - process it [16:31:35]wFMCommunicate request_size=4 [16:31:35]MH_SAM_APDU [16:31:35]CAPDU: 80 11 00 00 [16:31:35]Write to MH i2c: E2 08 00 2C 0D 80 11 00 00 00 00 00 00 B3 [16:31:35]Write i2c OK [16:31:35]MH_I2C_Read... [16:31:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:35]Read from MH i2c: E2 [16:31:35]MH_I2C_Read... [16:31:35]Read from MH i2c: E2 17 00 [16:31:35]MH_I2C_Read... [16:31:35]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 35 30 38 33 90 00 05 [16:31:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:31:35]wFMCommunicate OK [16:31:35]requested_item fd.num is exist - process it [16:31:35]SAM_PROTO_GetFieldsCounters [16:31:35]wFMCommunicate request_size=4 [16:31:35]MH_SAM_APDU [16:31:35]CAPDU: 80 13 00 00 [16:31:35]Write to MH i2c: E2 08 00 2D 0D 80 13 00 00 00 00 00 00 B6 [16:31:35]Write i2c OK [16:31:35]MH_I2C_Read... [16:31:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:31:35]Read from MH i2c: E2 [16:31:35]MH_I2C_Read... [16:31:35]Read from MH i2c: E2 62 00 [16:31:35]MH_I2C_Read... [16:31:35]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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 74 B4 01 00 0E 04 04 00 85 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 A8 [16:31:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 74 B4 01 00 0E 04 04 00 85 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 [16:31:35]wFMCommunicate OK [16:31:35]SAM_PROTO_GetFieldsCounters done [16:31:35]requested_item shift.num is exist - process it [16:31:35]requested_item shift.opened is exist - process it [16:31:35]req_shift_opened [16:31:35]FM_GetShiftState [16:31:35]SAM_PROTO_GetShiftState [16:31:35]wFMCommunicate request_size=4 [16:31:35]MH_SAM_APDU [16:31:35]CAPDU: 80 13 01 00 [16:31:35]Write to MH i2c: E2 08 00 2E 0D 80 13 01 00 00 00 00 00 B8 [16:31:35]Write i2c OK [16:31:35]MH_I2C_Read... [16:31:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:35]Read from MH i2c: E2 [16:31:35]MH_I2C_Read... [16:31:35]Read from MH i2c: E2 0E 00 [16:31:35]MH_I2C_Read... [16:31:35]Read from MH i2c: E2 0E 00 2E 0D 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 33 [16:31:35]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [16:31:35]wFMCommunicate OK [16:31:35]SAM_PROTO_GetShiftState done [16:31:35]FM_GetShiftState done [16:31:35]req_shift_opened done [16:31:35]requested_item shift.open_date is exist - process it [16:31:35]req_shift_open_date [16:31:35]req_shift_open_date done [16:31:35]produce_requested_data done [16:31:35]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111732,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [16:31:35]process_action_free close_receipt [16:31:35]json_value_free [16:31:35]json_value_free done [16:31:35]process_json_proto returns [16:31:35]Send response to host [16:31:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111732,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [16:31:35]free response buf [16:31:35]execute_script done [16:31:35]execute_script returns [16:31:35]free content buf [16:31:35]Sock 7.Close socket [16:31:35]Sock 7.Thread stoped [16:31:39]OFD Sender: No OFD packet to send [16:31:44]OFD Sender: No OFD packet to send [16:31:49]OFD Sender: No OFD packet to send [16:31:54]OFD Sender: No OFD packet to send [16:31:59]OFD Sender: No OFD packet to send [16:32:04]OFD Sender: No OFD packet to send [16:32:09]OFD Sender: No OFD packet to send [16:32:14]OFD Sender: No OFD packet to send [16:32:19]OFD Sender: No OFD packet to send [16:32:24]OFD Sender: No OFD packet to send [16:32:29]OFD Sender: No OFD packet to send [16:32:34]OFD Sender: No OFD packet to send [16:32:39]OFD Sender: No OFD packet to send [16:32:44]OFD Sender: No OFD packet to send [16:32:49]OFD Sender: No OFD packet to send [16:32:54]OFD Sender: No OFD packet to send [16:32:59]OFD Sender: No OFD packet to send [16:33:04]OFD Sender: No OFD packet to send [16:33:09]OFD Sender: No OFD packet to send [16:33:14]OFD Sender: No OFD packet to send [16:33:19]OFD Sender: No OFD packet to send [16:33:24]OFD Sender: No OFD packet to send [16:33:29]OFD Sender: No OFD packet to send [16:33:34]OFD Sender: No OFD packet to send [16:33:39]OFD Sender: No OFD packet to send [16:33:44]OFD Sender: No OFD packet to send [16:33:49]OFD Sender: No OFD packet to send [16:33:54]OFD Sender: No OFD packet to send [16:33:59]OFD Sender: No OFD packet to send [16:34:04]OFD Sender: No OFD packet to send [16:34:09]OFD Sender: No OFD packet to send [16:34:14]OFD Sender: No OFD packet to send [16:34:19]OFD Sender: No OFD packet to send [16:34:24]OFD Sender: No OFD packet to send [16:34:29]OFD Sender: No OFD packet to send [16:34:34]OFD Sender: No OFD packet to send [16:34:39]OFD Sender: No OFD packet to send [16:34:43]accept exits with 9 [16:34:43]New connection [16:34:43]New thread 3067178340 created [16:34:43]Thread 3067321700 joined [16:34:43]Waiting for new connection... [16:34:43] Sock 9.Parse request [16:34:43]Sock 9.Check first char [16:34:43]Sock 9.First char is OK [16:34:43]request: POST /json_proto HTTP/1.0 [16:34:43]Method: POST [16:34:43]URL: /json_proto [16:34:43]Method is POST - this is cgi request [16:34:43]url: /json_proto [16:34:43]query_string will be loaded in cgi processing [16:34:43]execute_cgi json_proto POST (null) [16:34:43]execute_cgi path=json_proto method=POST [16:34:43]POST find Content-Length [16:34:43]Host: 172.17.59.68:8080 [16:34:43]Content-Length: 640 [16:34:43]Content-Type: application/json [16:34:43] [16:34:43]POST finish read [16:34:43]Found Content-Length = 640 [16:34:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:43]execute_script... [16:34:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:43]POST & json_proto [16:34:43]process_json_proto [16:34:43]json parsed OK: [16:34:43]protocol is kg_v1.0 [16:34:43]action value=close_receipt [16:34:43]process_action close_receipt [16:34:43]cmd_close_receipt [16:34:43]MH_GetDate [16:34:43]Write to MH i2c: F0 00 00 2F 0D 2B [16:34:43]Write i2c OK [16:34:43]MH_I2C_Read... [16:34:43]Read from MH i2c: F0 [16:34:43]MH_I2C_Read... [16:34:43]Read from MH i2c: F0 09 00 [16:34:43]MH_I2C_Read... [16:34:43]Read from MH i2c: F0 09 00 2F 0D 00 27 5A 74 66 BC EC 60 65 FC [16:34:43]GetLastDocTimeStamp 1718901095 [16:34:43]current date 1718901287 [16:34:43]FM_GetShiftState [16:34:43]SAM_PROTO_GetShiftState [16:34:43]wFMCommunicate request_size=4 [16:34:43]MH_SAM_APDU [16:34:43]CAPDU: 80 13 01 00 [16:34:43]Write to MH i2c: E2 08 00 30 0D 80 13 01 00 00 00 00 00 BA [16:34:43]Write i2c OK [16:34:43]MH_I2C_Read... [16:34:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:43]Read from MH i2c: E2 [16:34:43]MH_I2C_Read... [16:34:43]Read from MH i2c: E2 0E 00 [16:34:43]MH_I2C_Read... [16:34:43]Read from MH i2c: E2 0E 00 30 0D 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 35 [16:34:43]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [16:34:43]wFMCommunicate OK [16:34:43]SAM_PROTO_GetShiftState done [16:34:43]FM_GetShiftState done [16:34:43]opened in 1718847247 [16:34:43]opened+sec_in_day 1718933647 [16:34:43]quantity*price = 66400 [16:34:43]sum+1 = 66401 [16:34:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 664.00 НСП 1% : 5.88 НДС 12% : 70.51 Наличными: 664.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 183 20.06.2024 16:34 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111733 ФПД: 243684999518503 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T163447&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111733&fm=243684999518503&tin=02508201610067®Number=0000000000092771&sum=66400 [16:34:44]StoreToDocumentArchive [16:34:44]shift 389 fd 111733 [16:34:44]save to /storage/0389/doc_00111733 [16:34:44]save last doc name /storage/0389/doc_00111733 to /storage/kkm_last_doc_name [16:34:44]save OK [16:34:44]Clear old archive folders... [16:34:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:34:44]tlvbuf is 0175ABC0 [16:34:44]SAM_PROTO_ClearQueue [16:34:44]wFMCommunicate request_size=4 [16:34:44]MH_SAM_APDU [16:34:44]CAPDU: 80 09 00 00 [16:34:44]Write to MH i2c: E2 08 00 3D 0D 80 09 00 00 00 00 00 00 BC [16:34:44]Write i2c OK [16:34:44]MH_I2C_Read... [16:34:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:34:44]Read from MH i2c: E2 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 03 00 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 03 00 3D 0D 00 90 00 BE [16:34:44]RAPDU: 90 00 [16:34:44]wFMCommunicate OK [16:34:44]SAM_PROTO_ClearQueue done [16:34:44]KKMCreateOFDPacket [16:34:44]OFDProtocolAddRootSTLVToBuf [16:34:44]FM_MakeSignedData [16:34:44]FM_MakeSignedData [16:34:44]SAM_PROTO_SignData [16:34:44]wFMCommunicate request_size=4 [16:34:44]MH_SAM_APDU [16:34:44]CAPDU: 80 0D 01 02 [16:34:44]Write to MH i2c: E2 08 00 3E 0D 80 0D 01 02 00 00 00 00 C4 [16:34:44]Write i2c OK [16:34:44]MH_I2C_Read... [16:34:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:34:44]Read from MH i2c: E2 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 03 00 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 03 00 3E 0D 00 90 00 BF [16:34:44]RAPDU: 90 00 [16:34:44]wFMCommunicate OK [16:34:44]wFMCommunicate request_size=255 [16:34:44]MH_SAM_APDU [16:34:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 27 5A 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 75 B4 01 00 35 04 06 00 DD [16:34:44]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 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 27 5A 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 75 B4 01 00 35 04 06 00 DD 00 00 CD [16:34:44]Write i2c OK [16:34:44]MH_I2C_Read... [16:34:44]OFD Sender: No OFD packet to send [16:34:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:44]Read from MH i2c: E2 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 03 00 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 03 00 3F 0D 00 90 00 C0 [16:34:44]RAPDU: 90 00 [16:34:44]wFMCommunicate OK [16:34:44]wFMCommunicate request_size=10 [16:34:44]MH_SAM_APDU [16:34:44]CAPDU: 80 0D 02 02 05 A1 55 D5 59 27 [16:34:44]Write to MH i2c: E2 0D 00 40 0D 80 0D 02 02 05 00 A1 55 D5 59 27 00 00 1C [16:34:44]Write i2c OK [16:34:44]MH_I2C_Read... [16:34:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:44]Read from MH i2c: E2 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 03 00 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 03 00 40 0D 00 90 00 C1 [16:34:44]RAPDU: 90 00 [16:34:44]wFMCommunicate OK [16:34:44]wFMCommunicate request_size=4 [16:34:44]MH_SAM_APDU [16:34:44]CAPDU: 80 0D 03 02 [16:34:44]Write to MH i2c: E2 08 00 41 0D 80 0D 03 02 00 00 00 00 C9 [16:34:44]Write i2c OK [16:34:44]MH_I2C_Read... [16:34:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:34:44]Read from MH i2c: E2 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 0B 00 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 0B 00 41 0D 00 19 46 1D F3 86 9F DB B2 90 00 EB [16:34:44]RAPDU: 19 46 1D F3 86 9F DB B2 90 00 [16:34:44]wFMCommunicate OK [16:34:44]SAM_PROTO_SignData done [16:34:44]FM_MakeSignedData done [16:34:44]CreateOFDProtocolMessage [16:34:44]wFMCommunicate request_size=4 [16:34:44]MH_SAM_APDU [16:34:44]CAPDU: 80 11 00 00 [16:34:44]Write to MH i2c: E2 08 00 42 0D 80 11 00 00 00 00 00 00 C9 [16:34:44]Write i2c OK [16:34:44]MH_I2C_Read... [16:34:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:44]Read from MH i2c: E2 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 17 00 [16:34:44]MH_I2C_Read... [16:34:44]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 35 30 38 33 90 00 1B [16:34:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:34:44]wFMCommunicate OK [16:34:44]CreateOFDProtocolMessage done [16:34:44]OFDSenderStorePacket 111733 [16:34:44]StoreOFDPacket docnum=111733 [16:34:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 05 83 07 01 58 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 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 27 5A 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 75 B4 01 00 35 04 06 00 DD A1 55 D5 59 27 19 46 1D F3 86 9F DB B2 [16:34:44]CheckFolder [16:34:44]dirname=/storage/ofd_packets [16:34:44]CheckFolder done [16:34:44]ProducePacketName [16:34:44]name=ofd_packets/00111733 [16:34:44]NVStorageSaveData ofd_packets/00111733 [16:34:44]File name is /storage/ofd_packets/00111733 [16:34:44]Write 301 bytes [16:34:44]NVStorageSaveData done [16:34:44]OFDSenderStorePacket done [16:34:44]KKMCreateOFDPacket done [16:34:44]NVStorageSaveData kkm_last_timestamp [16:34:44]File name is /storage/kkm_last_timestamp [16:34:44]Write 4 bytes [16:34:44]NVStorageSaveData done [16:34:44]ExternCall_PrintAddStr [16:34:44]wPrintStart [16:34:44]Write to MH i2c: 01 00 00 43 0D 50 [16:34:44]Write i2c OK [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: 01 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: 01 07 00 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: 01 07 00 43 0D 00 00 00 00 00 FF 0F 65 [16:34:44]RasterBufferAndPrint [16:34:44]line Счет N : (1)320351 [16:34:44]line ИНН: 02508201610067 [16:34:44]line Контрольно-Кассовый Чек [16:34:44]line ПРОДАЖА [16:34:44]line ТРК (МРК, ГНК) : 11 [16:34:44]line Товар: 2710124130 [16:34:44]line Аи-92-К-5 [16:34:44]line 10.000 * 66.40 [16:34:44]line = 664.00 [16:34:44]line НДС 12% НСП 1% [16:34:44]line > о реализуемом товаре [16:34:44]line ИТОГО: 664.00 [16:34:44]line НСП 1% : 5.88 [16:34:44]line НДС 12% : 70.51 [16:34:44]line Наличными: 664.00 [16:34:44]line Безнал.: 0.00 [16:34:44]line Место: АЗС № 65 "Партнер Нефть" [16:34:44]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:34:44]line СНО: Общий режим [16:34:44]line Чек 183 20.06.2024 16:34 [16:34:44]line Смена: 389 ФФД: 1.0 [16:34:44]line ЗНМ: 0300000198 [16:34:44]line РНМ: 0000000000092771 [16:34:44]line Версия ККМ: 001 [16:34:44]line ФМ: 0000000000875083 [16:34:44]line ФД: 111733 [16:34:44]line ФПД: 243684999518503 [16:34:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T163447&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111733&fm=243684999518503&tin=02508201610067®Number=0000000000092771&sum=66400 [16:34:45]OFD Sender: Processing packet 111733 [packets to send 38, broken 37] [16:34:45]ProducePacketName [16:34:45]name=ofd_packets/00111733 [16:34:45]OFD Sender: To server: pG, [16:34:45]CommunicateWithHost lk.salyk.kg:30040 [16:34:45]ConnectInit lk.salyk.kg [16:34:45]written 0, free lines is 4095 [16:34:45]Connected sock=10 [16:34:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 05 83 07 01 58 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 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 27 5A 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 75 B4 01 00 35 04 06 00 DD A1 55 D5 59 27 19 46 1D F3 86 9F DB B2 [16:34:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 50 B9 47 00 4F FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 75 B4 01 00 F4 03 04 00 6C F1 73 66 B6 04 01 00 00 AF 85 15 DA FB 2A E3 E2 [16:34:45]CommunicateWithHost err = 0 [16:34:45]CheckOFDResponse [16:34:45]1017 (14) - 77093643461234 [16:34:45]1041 (16) - 0000000000875083 [16:34:45]1040 (4) - 111733 [16:34:45]1012 (4) - 20.06.2024 09:07 [16:34:45]1206 (1) - 0 [16:34:45]OFD Sender: Remove packet 111733 [16:34:45]ProducePacketName [16:34:45]name=ofd_packets/00111733 [16:34:45]NVStorageDeleteData [16:34:45]Write to MH i2c: 01 00 00 6B 0D 78 [16:34:45]Write i2c OK [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: 01 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: 01 07 00 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: 01 07 00 6B 0D 00 00 00 00 00 10 0D 9C [16:34:45]RasterBufferAndPrint [16:34:45]line [16:34:45]line [16:34:45]line [16:34:45]line [16:34:45]line [16:34:45]written 0, free lines is 3350 [16:34:45]MH_Cut [16:34:45]Write to MH i2c: D1 01 00 72 0D 01 51 [16:34:45]Write i2c OK [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: D1 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: D1 01 00 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: D1 01 00 72 0D 00 50 [16:34:45]Write to MH i2c: 01 00 00 73 0D 80 [16:34:45]Write i2c OK [16:34:45]MH_I2C_Read... [16:34:46]OFD Sender: No OFD packet to send [16:34:46]*** Cut start [16:34:46]*** Partial cut [16:34:46]*** CUTSNS_PIN = 1 [16:34:46]*** CUTSNS_PIN = 0 [16:34:46]*** Brake cut motor [16:34:46]Read from MH i2c: 01 [16:34:46]MH_I2C_Read... [16:34:46]*** Stop cut motor [16:34:46]*** Cut end [16:34:46]Read from MH i2c: 01 07 00 [16:34:46]MH_I2C_Read... [16:34:46]Read from MH i2c: 01 07 00 73 0D 00 00 00 00 00 FF 0F 95 [16:34:46]process_action close_receipt done [16:34:46]requested_data is exist [16:34:46]produce_requested_data [16:34:46]requested_item fm.sn is exist - process it [16:34:46]wFMCommunicate request_size=4 [16:34:46]MH_SAM_APDU [16:34:46]CAPDU: 80 11 00 00 [16:34:46]Write to MH i2c: E2 08 00 74 0D 80 11 00 00 00 00 00 00 FB [16:34:46]Write i2c OK [16:34:46]MH_I2C_Read... [16:34:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:47]Read from MH i2c: E2 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 17 00 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 17 00 74 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4D [16:34:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:34:47]wFMCommunicate OK [16:34:47]requested_item fd.num is exist - process it [16:34:47]SAM_PROTO_GetFieldsCounters [16:34:47]wFMCommunicate request_size=4 [16:34:47]MH_SAM_APDU [16:34:47]CAPDU: 80 13 00 00 [16:34:47]Write to MH i2c: E2 08 00 75 0D 80 13 00 00 00 00 00 00 FE [16:34:47]Write i2c OK [16:34:47]MH_I2C_Read... [16:34:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:34:47]Read from MH i2c: E2 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 62 00 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 62 00 75 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 75 B4 01 00 0E 04 04 00 85 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 F4 [16:34:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 75 B4 01 00 0E 04 04 00 85 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 [16:34:47]wFMCommunicate OK [16:34:47]SAM_PROTO_GetFieldsCounters done [16:34:47]requested_item shift.num is exist - process it [16:34:47]requested_item shift.opened is exist - process it [16:34:47]req_shift_opened [16:34:47]FM_GetShiftState [16:34:47]SAM_PROTO_GetShiftState [16:34:47]wFMCommunicate request_size=4 [16:34:47]MH_SAM_APDU [16:34:47]CAPDU: 80 13 01 00 [16:34:47]Write to MH i2c: E2 08 00 76 0D 80 13 01 00 00 00 00 00 00 [16:34:47]Write i2c OK [16:34:47]MH_I2C_Read... [16:34:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:47]Read from MH i2c: E2 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 0E 00 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 0E 00 76 0D 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 7B [16:34:47]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [16:34:47]wFMCommunicate OK [16:34:47]SAM_PROTO_GetShiftState done [16:34:47]FM_GetShiftState done [16:34:47]req_shift_opened done [16:34:47]requested_item shift.open_date is exist - process it [16:34:47]req_shift_open_date [16:34:47]req_shift_open_date done [16:34:47]produce_requested_data done [16:34:47]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111733,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [16:34:47]process_action_free close_receipt [16:34:47]json_value_free [16:34:47]json_value_free done [16:34:47]process_json_proto returns [16:34:47]Send response to host [16:34:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111733,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [16:34:47]free response buf [16:34:47]execute_script done [16:34:47]execute_script returns [16:34:47]free content buf [16:34:47]Sock 9.Close socket [16:34:47]Sock 9.Thread stoped [16:34:51]OFD Sender: No OFD packet to send [16:34:56]OFD Sender: No OFD packet to send [16:35:01]OFD Sender: No OFD packet to send [16:35:06]OFD Sender: No OFD packet to send [16:35:11]OFD Sender: No OFD packet to send [16:35:16]OFD Sender: No OFD packet to send [16:35:21]OFD Sender: No OFD packet to send [16:35:26]OFD Sender: No OFD packet to send [16:35:31]OFD Sender: No OFD packet to send [16:35:36]OFD Sender: No OFD packet to send [16:35:41]OFD Sender: No OFD packet to send [16:35:46]OFD Sender: No OFD packet to send [16:35:51]OFD Sender: No OFD packet to send [16:35:56]OFD Sender: No OFD packet to send [16:36:01]OFD Sender: No OFD packet to send [16:36:06]OFD Sender: No OFD packet to send [16:36:11]OFD Sender: No OFD packet to send [16:36:16]OFD Sender: No OFD packet to send [16:36:21]OFD Sender: No OFD packet to send [16:36:26]OFD Sender: No OFD packet to send [16:36:31]OFD Sender: No OFD packet to send [16:36:36]OFD Sender: No OFD packet to send [16:36:41]OFD Sender: No OFD packet to send [16:36:46]OFD Sender: No OFD packet to send [16:36:51]OFD Sender: No OFD packet to send [16:36:56]OFD Sender: No OFD packet to send [16:37:01]OFD Sender: No OFD packet to send [16:37:06]OFD Sender: No OFD packet to send [16:37:11]OFD Sender: No OFD packet to send [16:37:16]OFD Sender: No OFD packet to send [16:37:21]OFD Sender: No OFD packet to send [16:37:26]OFD Sender: No OFD packet to send [16:37:31]OFD Sender: No OFD packet to send [16:37:36]OFD Sender: No OFD packet to send [16:37:41]OFD Sender: No OFD packet to send [16:37:46]OFD Sender: No OFD packet to send [16:37:51]OFD Sender: No OFD packet to send [16:37:56]OFD Sender: No OFD packet to send [16:38:01]OFD Sender: No OFD packet to send [16:38:06]OFD Sender: No OFD packet to send [16:38:11]OFD Sender: No OFD packet to send [16:38:16]OFD Sender: No OFD packet to send [16:38:21]OFD Sender: No OFD packet to send [16:38:26]OFD Sender: No OFD packet to send [16:38:31]OFD Sender: No OFD packet to send [16:38:36]OFD Sender: No OFD packet to send [16:38:41]OFD Sender: No OFD packet to send [16:38:46]OFD Sender: No OFD packet to send [16:38:51]OFD Sender: No OFD packet to send [16:38:56]OFD Sender: No OFD packet to send [16:39:01]OFD Sender: No OFD packet to send [16:39:06]OFD Sender: No OFD packet to send [16:39:11]OFD Sender: No OFD packet to send [16:39:16]OFD Sender: No OFD packet to send [16:39:19]accept exits with 7 [16:39:19]New connection [16:39:19]New thread 3067321700 created [16:39:19]Thread 3067178340 joined [16:39:19]Waiting for new connection... [16:39:19] Sock 7.Parse request [16:39:19]Sock 7.Check first char [16:39:19]Sock 7.First char is OK [16:39:19]request: POST /json_proto HTTP/1.0 [16:39:19]Method: POST [16:39:19]URL: /json_proto [16:39:19]Method is POST - this is cgi request [16:39:19]url: /json_proto [16:39:19]query_string will be loaded in cgi processing [16:39:19]execute_cgi json_proto POST (null) [16:39:19]execute_cgi path=json_proto method=POST [16:39:19]POST find Content-Length [16:39:19]Host: 172.17.59.68:8080 [16:39:19]Content-Length: 677 [16:39:19]Content-Type: application/json [16:39:19] [16:39:19]POST finish read [16:39:19]Found Content-Length = 677 [16:39:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:19]execute_script... [16:39: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)320352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:19]POST & json_proto [16:39:19]process_json_proto [16:39:19]json parsed OK: [16:39:19]protocol is kg_v1.0 [16:39:19]action value=close_receipt [16:39:19]process_action close_receipt [16:39:19]cmd_close_receipt [16:39:19]MH_GetDate [16:39:19]Write to MH i2c: F0 00 00 77 0D 73 [16:39:19]Write i2c OK [16:39:19]MH_I2C_Read... [16:39:19]Read from MH i2c: F0 [16:39:19]MH_I2C_Read... [16:39:19]Read from MH i2c: F0 09 00 [16:39:19]MH_I2C_Read... [16:39:19]Read from MH i2c: F0 09 00 77 0D 00 3B 5B 74 66 BC EC 60 65 59 [16:39:19]GetLastDocTimeStamp 1718901287 [16:39:19]current date 1718901563 [16:39:19]FM_GetShiftState [16:39:19]SAM_PROTO_GetShiftState [16:39:19]wFMCommunicate request_size=4 [16:39:19]MH_SAM_APDU [16:39:19]CAPDU: 80 13 01 00 [16:39:19]Write to MH i2c: E2 08 00 78 0D 80 13 01 00 00 00 00 00 02 [16:39:19]Write i2c OK [16:39:19]MH_I2C_Read... [16:39:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:19]Read from MH i2c: E2 [16:39:19]MH_I2C_Read... [16:39:19]Read from MH i2c: E2 0E 00 [16:39:19]MH_I2C_Read... [16:39:19]Read from MH i2c: E2 0E 00 78 0D 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 7D [16:39:19]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [16:39:19]wFMCommunicate OK [16:39:19]SAM_PROTO_GetShiftState done [16:39:19]FM_GetShiftState done [16:39:19]opened in 1718847247 [16:39:19]opened+sec_in_day 1718933647 [16:39:19]quantity*price = 50065 [16:39:19]sum+1 = 50067 [16:39:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 184 20.06.2024 16:39 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111734 ФПД: 243481297070190 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T163923&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111734&fm=243481297070190&tin=02508201610067®Number=0000000000092771&sum=50000 [16:39:20]StoreToDocumentArchive [16:39:20]shift 389 fd 111734 [16:39:20]save to /storage/0389/doc_00111734 [16:39:20]save last doc name /storage/0389/doc_00111734 to /storage/kkm_last_doc_name [16:39:20]save OK [16:39:20]Clear old archive folders... [16:39:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:39:20]tlvbuf is 01765260 [16:39:20]SAM_PROTO_ClearQueue [16:39:20]wFMCommunicate request_size=4 [16:39:20]MH_SAM_APDU [16:39:20]CAPDU: 80 09 00 00 [16:39:20]Write to MH i2c: E2 08 00 85 0D 80 09 00 00 00 00 00 00 04 [16:39:20]Write i2c OK [16:39:20]MH_I2C_Read... [16:39:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:39:20]Read from MH i2c: E2 [16:39:20]MH_I2C_Read... [16:39:20]Read from MH i2c: E2 03 00 [16:39:20]MH_I2C_Read... [16:39:20]Read from MH i2c: E2 03 00 85 0D 00 90 00 06 [16:39:20]RAPDU: 90 00 [16:39:20]wFMCommunicate OK [16:39:20]SAM_PROTO_ClearQueue done [16:39:20]KKMCreateOFDPacket [16:39:20]OFDProtocolAddRootSTLVToBuf [16:39:20]FM_MakeSignedData [16:39:20]FM_MakeSignedData [16:39:20]SAM_PROTO_SignData [16:39:20]wFMCommunicate request_size=4 [16:39:20]MH_SAM_APDU [16:39:20]CAPDU: 80 0D 01 02 [16:39:20]Write to MH i2c: E2 08 00 86 0D 80 0D 01 02 00 00 00 00 0C [16:39:20]Write i2c OK [16:39:20]MH_I2C_Read... [16:39:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:39:20]Read from MH i2c: E2 [16:39:20]MH_I2C_Read... [16:39:20]Read from MH i2c: E2 03 00 [16:39:20]MH_I2C_Read... [16:39:20]Read from MH i2c: E2 03 00 86 0D 00 90 00 07 [16:39:20]RAPDU: 90 00 [16:39:20]wFMCommunicate OK [16:39:20]wFMCommunicate request_size=255 [16:39:20]MH_SAM_APDU [16:39: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 3B 5B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 76 B4 01 00 35 04 06 00 DD [16:39:20]Write to MH i2c: E2 02 01 87 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 3B 5B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 76 B4 01 00 35 04 06 00 DD 00 00 76 [16:39:21]Write i2c OK [16:39:21]MH_I2C_Read... [16:39:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:21]Read from MH i2c: E2 [16:39:21]MH_I2C_Read... [16:39:21]Read from MH i2c: E2 03 00 [16:39:21]MH_I2C_Read... [16:39:21]Read from MH i2c: E2 03 00 87 0D 00 90 00 08 [16:39:21]RAPDU: 90 00 [16:39:21]wFMCommunicate OK [16:39:21]wFMCommunicate request_size=10 [16:39:21]MH_SAM_APDU [16:39:21]CAPDU: 80 0D 02 02 05 71 E8 38 A8 6E [16:39:21]Write to MH i2c: E2 0D 00 88 0D 80 0D 02 02 05 00 71 E8 38 A8 6E 00 00 C0 [16:39:21]Write i2c OK [16:39:21]MH_I2C_Read... [16:39:21]OFD Sender: No OFD packet to send [16:39:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:21]Read from MH i2c: E2 [16:39:21]MH_I2C_Read... [16:39:21]Read from MH i2c: E2 03 00 [16:39:21]MH_I2C_Read... [16:39:21]Read from MH i2c: E2 03 00 88 0D 00 90 00 09 [16:39:21]RAPDU: 90 00 [16:39:21]wFMCommunicate OK [16:39:21]wFMCommunicate request_size=4 [16:39:21]MH_SAM_APDU [16:39:21]CAPDU: 80 0D 03 02 [16:39:21]Write to MH i2c: E2 08 00 89 0D 80 0D 03 02 00 00 00 00 11 [16:39:21]Write i2c OK [16:39:21]MH_I2C_Read... [16:39:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:39:21]Read from MH i2c: E2 [16:39:21]MH_I2C_Read... [16:39:21]Read from MH i2c: E2 0B 00 [16:39:21]MH_I2C_Read... [16:39:21]Read from MH i2c: E2 0B 00 89 0D 00 72 E4 29 3C A5 6D 2F B9 90 00 C7 [16:39:21]RAPDU: 72 E4 29 3C A5 6D 2F B9 90 00 [16:39:21]wFMCommunicate OK [16:39:21]SAM_PROTO_SignData done [16:39:21]FM_MakeSignedData done [16:39:21]CreateOFDProtocolMessage [16:39:21]wFMCommunicate request_size=4 [16:39:21]MH_SAM_APDU [16:39:21]CAPDU: 80 11 00 00 [16:39:21]Write to MH i2c: E2 08 00 8A 0D 80 11 00 00 00 00 00 00 11 [16:39:21]Write i2c OK [16:39:21]MH_I2C_Read... [16:39:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:21]Read from MH i2c: E2 [16:39:21]MH_I2C_Read... [16:39:21]Read from MH i2c: E2 17 00 [16:39:21]MH_I2C_Read... [16:39:21]Read from MH i2c: E2 17 00 8A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 63 [16:39:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:39:21]wFMCommunicate OK [16:39:21]CreateOFDProtocolMessage done [16:39:21]OFDSenderStorePacket 111734 [16:39:21]StoreOFDPacket docnum=111734 [16:39:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D4 D5 07 01 04 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 3B 5B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 76 B4 01 00 35 04 06 00 DD 71 E8 38 A8 6E 72 E4 29 3C A5 6D 2F B9 [16:39:21]CheckFolder [16:39:21]dirname=/storage/ofd_packets [16:39:21]CheckFolder done [16:39:21]ProducePacketName [16:39:21]name=ofd_packets/00111734 [16:39:21]NVStorageSaveData ofd_packets/00111734 [16:39:21]File name is /storage/ofd_packets/00111734 [16:39:21]Write 301 bytes [16:39:21]NVStorageSaveData done [16:39:21]OFDSenderStorePacket done [16:39:21]KKMCreateOFDPacket done [16:39:21]NVStorageSaveData kkm_last_timestamp [16:39:21]File name is /storage/kkm_last_timestamp [16:39:21]Write 4 bytes [16:39:21]NVStorageSaveData done [16:39:21]ExternCall_PrintAddStr [16:39:21]wPrintStart [16:39:21]Write to MH i2c: 01 00 00 8B 0D 98 [16:39:21]Write i2c OK [16:39:21]MH_I2C_Read... [16:39:21]Read from MH i2c: 01 [16:39:21]MH_I2C_Read... [16:39:21]Read from MH i2c: 01 07 00 [16:39:21]MH_I2C_Read... [16:39:21]Read from MH i2c: 01 07 00 8B 0D 00 00 00 00 00 FF 0F AD [16:39:21]RasterBufferAndPrint [16:39:21]line Счет N : (1)320352 [16:39:21]line ИНН: 02508201610067 [16:39:21]line Контрольно-Кассовый Чек [16:39:21]line ПРОДАЖА [16:39:21]line ТРК (МРК, ГНК) : 11 [16:39:21]line Товар: 2710124130 [16:39:21]line Аи-92-К-5 [16:39:21]line 7.540 * 66.40 [16:39:21]line = 500.66 [16:39:21]line НДС 12% НСП 1% [16:39:21]line > о реализуемом товаре [16:39:21]line ОКРУГЛЕНИЕ: -0.66 [16:39:21]line ИТОГО: 500.00 [16:39:21]line Внесено: 500.00 [16:39:21]line СДАЧА: 0.00 [16:39:21]line НСП 1% : 4.43 [16:39:21]line НДС 12% : 53.17 [16:39:21]line Наличными: 500.00 [16:39:21]line Безнал.: 0.00 [16:39:21]line Место: АЗС № 65 "Партнер Нефть" [16:39:21]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:39:21]line СНО: Общий режим [16:39:21]line Чек 184 20.06.2024 16:39 [16:39:21]line Смена: 389 ФФД: 1.0 [16:39:21]line ЗНМ: 0300000198 [16:39:21]line РНМ: 0000000000092771 [16:39:21]line Версия ККМ: 001 [16:39:21]line ФМ: 0000000000875083 [16:39:21]line ФД: 111734 [16:39:21]line ФПД: 243481297070190 [16:39:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T163923&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111734&fm=243481297070190&tin=02508201610067®Number=0000000000092771&sum=50000 [16:39:21]OFD Sender: Processing packet 111734 [packets to send 38, broken 37] [16:39:21]ProducePacketName [16:39:21]name=ofd_packets/00111734 [16:39:21]OFD Sender: To server: pG, [16:39:21]CommunicateWithHost lk.salyk.kg:30040 [16:39:21]ConnectInit lk.salyk.kg [16:39:21]written 0, free lines is 4095 [16:39:21]Connected sock=10 [16:39:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D4 D5 07 01 04 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 3B 5B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 76 B4 01 00 35 04 06 00 DD 71 E8 38 A8 6E 72 E4 29 3C A5 6D 2F B9 [16:39:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 84 DF 47 00 7C EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 76 B4 01 00 F4 03 04 00 80 F2 73 66 B6 04 01 00 00 FD 1F C1 6F BD C5 39 A9 [16:39:22]CommunicateWithHost err = 0 [16:39:22]CheckOFDResponse [16:39:22]1017 (14) - 77093643461234 [16:39:22]1041 (16) - 0000000000875083 [16:39:22]1040 (4) - 111734 [16:39:22]1012 (4) - 20.06.2024 09:12 [16:39:22]1206 (1) - 0 [16:39:22]OFD Sender: Remove packet 111734 [16:39:22]ProducePacketName [16:39:22]name=ofd_packets/00111734 [16:39:22]NVStorageDeleteData [16:39:22]Write to MH i2c: 01 00 00 B6 0D C3 [16:39:22]Write i2c OK [16:39:22]MH_I2C_Read... [16:39:22]Read from MH i2c: 01 [16:39:22]MH_I2C_Read... [16:39:22]Read from MH i2c: 01 07 00 [16:39:22]MH_I2C_Read... [16:39:22]Read from MH i2c: 01 07 00 B6 0D 00 00 00 00 00 E3 0C B9 [16:39:22]RasterBufferAndPrint [16:39:22]line [16:39:22]line [16:39:22]line [16:39:22]line [16:39:22]line [16:39:22]written 0, free lines is 3305 [16:39:22]MH_Cut [16:39:22]Write to MH i2c: D1 01 00 BD 0D 01 9C [16:39:22]Write i2c OK [16:39:22]MH_I2C_Read... [16:39:22]Read from MH i2c: D1 [16:39:22]MH_I2C_Read... [16:39:22]Read from MH i2c: D1 01 00 [16:39:22]MH_I2C_Read... [16:39:22]Read from MH i2c: D1 01 00 BD 0D 00 9B [16:39:22]Write to MH i2c: 01 00 00 BE 0D CB [16:39:22]Write i2c OK [16:39:22]MH_I2C_Read... [16:39:22]OFD Sender: No OFD packet to send [16:39:22]*** Cut start [16:39:22]*** Partial cut [16:39:22]*** CUTSNS_PIN = 1 [16:39:22]*** CUTSNS_PIN = 0 [16:39:23]*** Brake cut motor [16:39:23]Read from MH i2c: 01 [16:39:23]MH_I2C_Read... [16:39:23]*** Stop cut motor [16:39:23]*** Cut end [16:39:23]Read from MH i2c: 01 07 00 [16:39:23]MH_I2C_Read... [16:39:23]Read from MH i2c: 01 07 00 BE 0D 00 00 00 00 00 FF 0F E0 [16:39:23]process_action close_receipt done [16:39:23]requested_data is exist [16:39:23]produce_requested_data [16:39:23]requested_item fm.sn is exist - process it [16:39:23]wFMCommunicate request_size=4 [16:39:23]MH_SAM_APDU [16:39:23]CAPDU: 80 11 00 00 [16:39:23]Write to MH i2c: E2 08 00 BF 0D 80 11 00 00 00 00 00 00 46 [16:39:23]Write i2c OK [16:39:23]MH_I2C_Read... [16:39:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:23]Read from MH i2c: E2 [16:39:23]MH_I2C_Read... [16:39:23]Read from MH i2c: E2 17 00 [16:39:23]MH_I2C_Read... [16:39:23]Read from MH i2c: E2 17 00 BF 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 98 [16:39:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:39:23]wFMCommunicate OK [16:39:23]requested_item fd.num is exist - process it [16:39:23]SAM_PROTO_GetFieldsCounters [16:39:23]wFMCommunicate request_size=4 [16:39:23]MH_SAM_APDU [16:39:23]CAPDU: 80 13 00 00 [16:39:23]Write to MH i2c: E2 08 00 C0 0D 80 13 00 00 00 00 00 00 49 [16:39:23]Write i2c OK [16:39:23]MH_I2C_Read... [16:39:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:39:23]Read from MH i2c: E2 [16:39:23]MH_I2C_Read... [16:39:23]Read from MH i2c: E2 62 00 [16:39:23]MH_I2C_Read... [16:39:23]Read from MH i2c: E2 62 00 C0 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 76 B4 01 00 0E 04 04 00 85 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 43 [16:39:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 76 B4 01 00 0E 04 04 00 85 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 [16:39:23]wFMCommunicate OK [16:39:23]SAM_PROTO_GetFieldsCounters done [16:39:23]requested_item shift.num is exist - process it [16:39:23]requested_item shift.opened is exist - process it [16:39:23]req_shift_opened [16:39:23]FM_GetShiftState [16:39:23]SAM_PROTO_GetShiftState [16:39:23]wFMCommunicate request_size=4 [16:39:23]MH_SAM_APDU [16:39:23]CAPDU: 80 13 01 00 [16:39:23]Write to MH i2c: E2 08 00 C1 0D 80 13 01 00 00 00 00 00 4B [16:39:23]Write i2c OK [16:39:23]MH_I2C_Read... [16:39:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:23]Read from MH i2c: E2 [16:39:23]MH_I2C_Read... [16:39:23]Read from MH i2c: E2 0E 00 [16:39:23]MH_I2C_Read... [16:39:23]Read from MH i2c: E2 0E 00 C1 0D 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 C6 [16:39:23]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [16:39:23]wFMCommunicate OK [16:39:23]SAM_PROTO_GetShiftState done [16:39:23]FM_GetShiftState done [16:39:23]req_shift_opened done [16:39:23]requested_item shift.open_date is exist - process it [16:39:23]req_shift_open_date [16:39:23]req_shift_open_date done [16:39:23]produce_requested_data done [16:39:23]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111734,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [16:39:23]process_action_free close_receipt [16:39:23]json_value_free [16:39:23]json_value_free done [16:39:23]process_json_proto returns [16:39:23]Send response to host [16:39:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111734,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [16:39:23]free response buf [16:39:23]execute_script done [16:39:23]execute_script returns [16:39:23]free content buf [16:39:23]Sock 7.Close socket [16:39:23]Sock 7.Thread stoped [16:39:27]OFD Sender: No OFD packet to send [16:39:32]OFD Sender: No OFD packet to send [16:39:37]OFD Sender: No OFD packet to send [16:39:42]OFD Sender: No OFD packet to send [16:39:47]OFD Sender: No OFD packet to send [16:39:52]OFD Sender: No OFD packet to send [16:39:57]OFD Sender: No OFD packet to send [16:40:02]OFD Sender: No OFD packet to send [16:40:07]OFD Sender: No OFD packet to send [16:40:12]OFD Sender: No OFD packet to send [16:40:17]OFD Sender: No OFD packet to send [16:40:22]OFD Sender: No OFD packet to send [16:40:27]OFD Sender: No OFD packet to send [16:40:32]OFD Sender: No OFD packet to send [16:40:37]OFD Sender: No OFD packet to send [16:40:42]OFD Sender: No OFD packet to send [16:40:47]OFD Sender: No OFD packet to send [16:40:52]OFD Sender: No OFD packet to send [16:40:57]OFD Sender: No OFD packet to send [16:41:02]OFD Sender: No OFD packet to send [16:41:07]OFD Sender: No OFD packet to send [16:41:12]OFD Sender: No OFD packet to send [16:41:17]OFD Sender: No OFD packet to send [16:41:22]OFD Sender: No OFD packet to send [16:41:27]OFD Sender: No OFD packet to send [16:41:32]OFD Sender: No OFD packet to send [16:41:37]OFD Sender: No OFD packet to send [16:41:42]OFD Sender: No OFD packet to send [16:41:47]OFD Sender: No OFD packet to send [16:41:52]OFD Sender: No OFD packet to send [16:41:57]OFD Sender: No OFD packet to send [16:42:02]OFD Sender: No OFD packet to send [16:42:07]OFD Sender: No OFD packet to send [16:42:12]OFD Sender: No OFD packet to send [16:42:17]OFD Sender: No OFD packet to send [16:42:22]OFD Sender: No OFD packet to send [16:42:27]OFD Sender: No OFD packet to send [16:42:32]OFD Sender: No OFD packet to send [16:42:37]OFD Sender: No OFD packet to send [16:42:42]OFD Sender: No OFD packet to send [16:42:47]OFD Sender: No OFD packet to send [16:42:52]OFD Sender: No OFD packet to send [16:42:57]OFD Sender: No OFD packet to send [16:43:02]OFD Sender: No OFD packet to send [16:43:07]OFD Sender: No OFD packet to send [16:43:12]OFD Sender: No OFD packet to send [16:43:17]OFD Sender: No OFD packet to send [16:43:22]OFD Sender: No OFD packet to send [16:43:27]OFD Sender: No OFD packet to send [16:43:32]OFD Sender: No OFD packet to send [16:43:37]OFD Sender: No OFD packet to send [16:43:42]OFD Sender: No OFD packet to send [16:43:47]OFD Sender: No OFD packet to send [16:43:52]OFD Sender: No OFD packet to send [16:43:57]OFD Sender: No OFD packet to send [16:44:02]OFD Sender: No OFD packet to send [16:44:07]OFD Sender: No OFD packet to send [16:44:12]OFD Sender: No OFD packet to send [16:44:17]OFD Sender: No OFD packet to send [16:44:22]OFD Sender: No OFD packet to send [16:44:27]OFD Sender: No OFD packet to send [16:44:32]OFD Sender: No OFD packet to send [16:44:37]OFD Sender: No OFD packet to send [16:44:42]OFD Sender: No OFD packet to send [16:44:47]OFD Sender: No OFD packet to send [16:44:52]OFD Sender: No OFD packet to send [16:44:57]OFD Sender: No OFD packet to send [16:45:02]OFD Sender: No OFD packet to send [16:45:07]OFD Sender: No OFD packet to send [16:45:12]OFD Sender: No OFD packet to send [16:45:17]OFD Sender: No OFD packet to send [16:45:22]OFD Sender: No OFD packet to send [16:45:27]OFD Sender: No OFD packet to send [16:45:32]OFD Sender: No OFD packet to send [16:45:37]OFD Sender: No OFD packet to send [16:45:42]OFD Sender: No OFD packet to send [16:45:47]OFD Sender: No OFD packet to send [16:45:52]OFD Sender: No OFD packet to send [16:45:57]OFD Sender: No OFD packet to send [16:46:02]OFD Sender: No OFD packet to send [16:46:07]OFD Sender: No OFD packet to send [16:46:12]OFD Sender: No OFD packet to send [16:46:17]OFD Sender: No OFD packet to send [16:46:22]OFD Sender: No OFD packet to send [16:46:27]OFD Sender: No OFD packet to send [16:46:32]OFD Sender: No OFD packet to send [16:46:37]OFD Sender: No OFD packet to send [16:46:42]OFD Sender: No OFD packet to send [16:46:47]OFD Sender: No OFD packet to send [16:46:52]OFD Sender: No OFD packet to send [16:46:57]OFD Sender: No OFD packet to send [16:47:02]OFD Sender: No OFD packet to send [16:47:07]OFD Sender: No OFD packet to send [16:47:12]OFD Sender: No OFD packet to send [16:47:17]OFD Sender: No OFD packet to send [16:47:22]OFD Sender: No OFD packet to send [16:47:27]OFD Sender: No OFD packet to send [16:47:32]OFD Sender: No OFD packet to send [16:47:37]OFD Sender: No OFD packet to send [16:47:42]OFD Sender: No OFD packet to send [16:47:47]OFD Sender: No OFD packet to send [16:47:52]OFD Sender: No OFD packet to send [16:47:57]OFD Sender: No OFD packet to send [16:48:02]OFD Sender: No OFD packet to send [16:48:07]OFD Sender: No OFD packet to send [16:48:11]accept exits with 9 [16:48:11]New connection [16:48:11]New thread 3067178340 created [16:48:11]Thread 3067321700 joined [16:48:11]Waiting for new connection... [16:48:11] Sock 9.Parse request [16:48:11]Sock 9.Check first char [16:48:11]Sock 9.First char is OK [16:48:11]request: POST /json_proto HTTP/1.0 [16:48:11]Method: POST [16:48:11]URL: /json_proto [16:48:11]Method is POST - this is cgi request [16:48:11]url: /json_proto [16:48:11]query_string will be loaded in cgi processing [16:48:11]execute_cgi json_proto POST (null) [16:48:11]execute_cgi path=json_proto method=POST [16:48:11]POST find Content-Length [16:48:11]Host: 172.17.59.68:8080 [16:48:11]Content-Length: 677 [16:48:11]Content-Type: application/json [16:48:11] [16:48:11]POST finish read [16:48:11]Found Content-Length = 677 [16:48:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:11]execute_script... [16:48: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)320353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:11]POST & json_proto [16:48:11]process_json_proto [16:48:11]json parsed OK: [16:48:11]protocol is kg_v1.0 [16:48:11]action value=close_receipt [16:48:11]process_action close_receipt [16:48:11]cmd_close_receipt [16:48:11]MH_GetDate [16:48:11]Write to MH i2c: F0 00 00 C2 0D BE [16:48:11]Write i2c OK [16:48:11]MH_I2C_Read... [16:48:11]Read from MH i2c: F0 [16:48:11]MH_I2C_Read... [16:48:11]Read from MH i2c: F0 09 00 [16:48:11]MH_I2C_Read... [16:48:11]Read from MH i2c: F0 09 00 C2 0D 00 4F 5D 74 66 BC EC 60 65 BA [16:48:11]GetLastDocTimeStamp 1718901563 [16:48:11]current date 1718902095 [16:48:11]FM_GetShiftState [16:48:11]SAM_PROTO_GetShiftState [16:48:11]wFMCommunicate request_size=4 [16:48:11]MH_SAM_APDU [16:48:11]CAPDU: 80 13 01 00 [16:48:11]Write to MH i2c: E2 08 00 C3 0D 80 13 01 00 00 00 00 00 4D [16:48:11]Write i2c OK [16:48:11]MH_I2C_Read... [16:48:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:11]Read from MH i2c: E2 [16:48:11]MH_I2C_Read... [16:48:11]Read from MH i2c: E2 0E 00 [16:48:11]MH_I2C_Read... [16:48:11]Read from MH i2c: E2 0E 00 C3 0D 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 C8 [16:48:11]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [16:48:11]wFMCommunicate OK [16:48:11]SAM_PROTO_GetShiftState done [16:48:11]FM_GetShiftState done [16:48:11]opened in 1718847247 [16:48:11]opened+sec_in_day 1718933647 [16:48:11]quantity*price = 40039 [16:48:11]sum+1 = 40040 [16:48:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 185 20.06.2024 16:48 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111735 ФПД: 225197026088528 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T164815&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111735&fm=225197026088528&tin=02508201610067®Number=0000000000092771&sum=40000 [16:48:12]StoreToDocumentArchive [16:48:12]shift 389 fd 111735 [16:48:12]save to /storage/0389/doc_00111735 [16:48:12]save last doc name /storage/0389/doc_00111735 to /storage/kkm_last_doc_name [16:48:12]save OK [16:48:12]Clear old archive folders... [16:48:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:48:12]tlvbuf is 01743180 [16:48:12]SAM_PROTO_ClearQueue [16:48:12]wFMCommunicate request_size=4 [16:48:12]MH_SAM_APDU [16:48:12]CAPDU: 80 09 00 00 [16:48:12]Write to MH i2c: E2 08 00 D0 0D 80 09 00 00 00 00 00 00 4F [16:48:12]Write i2c OK [16:48:12]MH_I2C_Read... [16:48:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:12]Read from MH i2c: E2 [16:48:12]MH_I2C_Read... [16:48:12]Read from MH i2c: E2 03 00 [16:48:12]MH_I2C_Read... [16:48:12]Read from MH i2c: E2 03 00 D0 0D 00 90 00 51 [16:48:12]RAPDU: 90 00 [16:48:12]wFMCommunicate OK [16:48:12]SAM_PROTO_ClearQueue done [16:48:12]KKMCreateOFDPacket [16:48:12]OFDProtocolAddRootSTLVToBuf [16:48:12]FM_MakeSignedData [16:48:12]FM_MakeSignedData [16:48:12]SAM_PROTO_SignData [16:48:12]wFMCommunicate request_size=4 [16:48:12]MH_SAM_APDU [16:48:12]CAPDU: 80 0D 01 02 [16:48:12]Write to MH i2c: E2 08 00 D1 0D 80 0D 01 02 00 00 00 00 57 [16:48:12]Write i2c OK [16:48:12]MH_I2C_Read... [16:48:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:12]Read from MH i2c: E2 [16:48:12]MH_I2C_Read... [16:48:12]Read from MH i2c: E2 03 00 [16:48:12]MH_I2C_Read... [16:48:12]Read from MH i2c: E2 03 00 D1 0D 00 90 00 52 [16:48:12]RAPDU: 90 00 [16:48:12]wFMCommunicate OK [16:48:12]wFMCommunicate request_size=255 [16:48:12]MH_SAM_APDU [16:48: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 4F 5D 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 77 B4 01 00 35 04 06 00 CC [16:48:12]Write to MH i2c: E2 02 01 D2 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 4F 5D 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 77 B4 01 00 35 04 06 00 CC 00 00 96 [16:48:12]Write i2c OK [16:48:12]MH_I2C_Read... [16:48:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:12]Read from MH i2c: E2 [16:48:12]MH_I2C_Read... [16:48:12]Read from MH i2c: E2 03 00 [16:48:12]MH_I2C_Read... [16:48:12]Read from MH i2c: E2 03 00 D2 0D 00 90 00 53 [16:48:12]RAPDU: 90 00 [16:48:12]wFMCommunicate OK [16:48:12]wFMCommunicate request_size=10 [16:48:12]MH_SAM_APDU [16:48:12]CAPDU: 80 0D 02 02 05 D0 C4 BE 96 50 [16:48:12]Write to MH i2c: E2 0D 00 D3 0D 80 0D 02 02 05 00 D0 C4 BE 96 50 00 00 9C [16:48:12]Write i2c OK [16:48:12]MH_I2C_Read... [16:48:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:12]Read from MH i2c: E2 [16:48:12]MH_I2C_Read... [16:48:12]Read from MH i2c: E2 03 00 [16:48:12]MH_I2C_Read... [16:48:12]Read from MH i2c: E2 03 00 D3 0D 00 90 00 54 [16:48:12]RAPDU: 90 00 [16:48:12]wFMCommunicate OK [16:48:12]wFMCommunicate request_size=4 [16:48:12]MH_SAM_APDU [16:48:12]CAPDU: 80 0D 03 02 [16:48:12]Write to MH i2c: E2 08 00 D4 0D 80 0D 03 02 00 00 00 00 5C [16:48:12]Write i2c OK [16:48:12]MH_I2C_Read... [16:48:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:13]Read from MH i2c: E2 [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: E2 0B 00 [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: E2 0B 00 D4 0D 00 5A B0 A7 B0 9A E6 43 87 90 00 08 [16:48:13]RAPDU: 5A B0 A7 B0 9A E6 43 87 90 00 [16:48:13]wFMCommunicate OK [16:48:13]SAM_PROTO_SignData done [16:48:13]FM_MakeSignedData done [16:48:13]CreateOFDProtocolMessage [16:48:13]wFMCommunicate request_size=4 [16:48:13]MH_SAM_APDU [16:48:13]CAPDU: 80 11 00 00 [16:48:13]Write to MH i2c: E2 08 00 D5 0D 80 11 00 00 00 00 00 00 5C [16:48:13]Write i2c OK [16:48:13]MH_I2C_Read... [16:48:13]OFD Sender: No OFD packet to send [16:48:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:13]Read from MH i2c: E2 [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: E2 17 00 [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: E2 17 00 D5 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AE [16:48:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:48:13]wFMCommunicate OK [16:48:13]CreateOFDProtocolMessage done [16:48:13]OFDSenderStorePacket 111735 [16:48:13]StoreOFDPacket docnum=111735 [16:48:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 08 21 07 01 F8 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 4F 5D 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 77 B4 01 00 35 04 06 00 CC D0 C4 BE 96 50 5A B0 A7 B0 9A E6 43 87 [16:48:13]CheckFolder [16:48:13]dirname=/storage/ofd_packets [16:48:13]CheckFolder done [16:48:13]ProducePacketName [16:48:13]name=ofd_packets/00111735 [16:48:13]NVStorageSaveData ofd_packets/00111735 [16:48:13]File name is /storage/ofd_packets/00111735 [16:48:13]Write 301 bytes [16:48:13]NVStorageSaveData done [16:48:13]OFDSenderStorePacket done [16:48:13]KKMCreateOFDPacket done [16:48:13]NVStorageSaveData kkm_last_timestamp [16:48:13]File name is /storage/kkm_last_timestamp [16:48:13]Write 4 bytes [16:48:13]NVStorageSaveData done [16:48:13]ExternCall_PrintAddStr [16:48:13]wPrintStart [16:48:13]Write to MH i2c: 01 00 00 D6 0D E3 [16:48:13]Write i2c OK [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: 01 [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: 01 07 00 [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: 01 07 00 D6 0D 00 00 00 00 00 FF 0F F8 [16:48:13]RasterBufferAndPrint [16:48:13]line Счет N : (1)320353 [16:48:13]line ИНН: 02508201610067 [16:48:13]line Контрольно-Кассовый Чек [16:48:13]line ПРОДАЖА [16:48:13]line ТРК (МРК, ГНК) : 11 [16:48:13]line Товар: 2710124130 [16:48:13]line Аи-92-К-5 [16:48:13]line 6.030 * 66.40 [16:48:13]line = 400.39 [16:48:13]line НДС 12% НСП 1% [16:48:13]line > о реализуемом товаре [16:48:13]line ОКРУГЛЕНИЕ: -0.39 [16:48:13]line ИТОГО: 400.00 [16:48:13]line Внесено: 400.00 [16:48:13]line СДАЧА: 0.00 [16:48:13]line НСП 1% : 3.54 [16:48:13]line НДС 12% : 42.52 [16:48:13]line Наличными: 400.00 [16:48:13]line Безнал.: 0.00 [16:48:13]line Место: АЗС № 65 "Партнер Нефть" [16:48:13]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:48:13]line СНО: Общий режим [16:48:13]line Чек 185 20.06.2024 16:48 [16:48:13]line Смена: 389 ФФД: 1.0 [16:48:13]line ЗНМ: 0300000198 [16:48:13]line РНМ: 0000000000092771 [16:48:13]line Версия ККМ: 001 [16:48:13]line ФМ: 0000000000875083 [16:48:13]line ФД: 111735 [16:48:13]line ФПД: 225197026088528 [16:48:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T164815&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111735&fm=225197026088528&tin=02508201610067®Number=0000000000092771&sum=40000 [16:48:13]OFD Sender: Processing packet 111735 [packets to send 38, broken 37] [16:48:13]ProducePacketName [16:48:13]name=ofd_packets/00111735 [16:48:13]OFD Sender: To server: pG, [16:48:13]CommunicateWithHost lk.salyk.kg:30040 [16:48:13]ConnectInit lk.salyk.kg [16:48:13]written 0, free lines is 4095 [16:48:13]Connected sock=10 [16:48:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 08 21 07 01 F8 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 4F 5D 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 77 B4 01 00 35 04 06 00 CC D0 C4 BE 96 50 5A B0 A7 B0 9A E6 43 87 [16:48:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 38 24 47 00 83 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 77 B4 01 00 F4 03 04 00 94 F4 73 66 B6 04 01 00 00 F9 1A 88 E2 50 D6 1C EA [16:48:13]CommunicateWithHost err = 0 [16:48:13]CheckOFDResponse [16:48:13]1017 (14) - 77093643461234 [16:48:13]1041 (16) - 0000000000875083 [16:48:13]1040 (4) - 111735 [16:48:13]1012 (4) - 20.06.2024 09:21 [16:48:13]1206 (1) - 0 [16:48:13]OFD Sender: Remove packet 111735 [16:48:13]ProducePacketName [16:48:13]name=ofd_packets/00111735 [16:48:13]NVStorageDeleteData [16:48:13]Write to MH i2c: 01 00 00 01 0E 0F [16:48:13]Write i2c OK [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: 01 [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: 01 07 00 [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: 01 07 00 01 0E 00 00 00 00 00 DD 0C FF [16:48:13]RasterBufferAndPrint [16:48:13]line [16:48:13]line [16:48:13]line [16:48:13]line [16:48:13]line [16:48:13]written 0, free lines is 3299 [16:48:13]MH_Cut [16:48:13]Write to MH i2c: D1 01 00 08 0E 01 E8 [16:48:13]Write i2c OK [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: D1 [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: D1 01 00 [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: D1 01 00 08 0E 00 E7 [16:48:13]Write to MH i2c: 01 00 00 09 0E 17 [16:48:13]Write i2c OK [16:48:13]MH_I2C_Read... [16:48:14]OFD Sender: No OFD packet to send [16:48:14]*** Cut start [16:48:14]*** Partial cut [16:48:14]*** CUTSNS_PIN = 1 [16:48:14]*** CUTSNS_PIN = 0 [16:48:14]*** Brake cut motor [16:48:15]Read from MH i2c: 01 [16:48:15]MH_I2C_Read... [16:48:15]*** Stop cut motor [16:48:15]*** Cut end [16:48:15]Read from MH i2c: 01 07 00 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: 01 07 00 09 0E 00 00 00 00 00 FF 0F 2C [16:48:15]process_action close_receipt done [16:48:15]requested_data is exist [16:48:15]produce_requested_data [16:48:15]requested_item fm.sn is exist - process it [16:48:15]wFMCommunicate request_size=4 [16:48:15]MH_SAM_APDU [16:48:15]CAPDU: 80 11 00 00 [16:48:15]Write to MH i2c: E2 08 00 0A 0E 80 11 00 00 00 00 00 00 92 [16:48:15]Write i2c OK [16:48:15]MH_I2C_Read... [16:48:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:15]Read from MH i2c: E2 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 17 00 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 17 00 0A 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E4 [16:48:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:48:15]wFMCommunicate OK [16:48:15]requested_item fd.num is exist - process it [16:48:15]SAM_PROTO_GetFieldsCounters [16:48:15]wFMCommunicate request_size=4 [16:48:15]MH_SAM_APDU [16:48:15]CAPDU: 80 13 00 00 [16:48:15]Write to MH i2c: E2 08 00 0B 0E 80 13 00 00 00 00 00 00 95 [16:48:15]Write i2c OK [16:48:15]MH_I2C_Read... [16:48:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:15]Read from MH i2c: E2 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 62 00 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 62 00 0B 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 77 B4 01 00 0E 04 04 00 85 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 93 [16:48:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 77 B4 01 00 0E 04 04 00 85 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 [16:48:15]wFMCommunicate OK [16:48:15]SAM_PROTO_GetFieldsCounters done [16:48:15]requested_item shift.num is exist - process it [16:48:15]requested_item shift.opened is exist - process it [16:48:15]req_shift_opened [16:48:15]FM_GetShiftState [16:48:15]SAM_PROTO_GetShiftState [16:48:15]wFMCommunicate request_size=4 [16:48:15]MH_SAM_APDU [16:48:15]CAPDU: 80 13 01 00 [16:48:15]Write to MH i2c: E2 08 00 0C 0E 80 13 01 00 00 00 00 00 97 [16:48:15]Write i2c OK [16:48:15]MH_I2C_Read... [16:48:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:15]Read from MH i2c: E2 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 0E 00 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 0E 00 0C 0E 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 12 [16:48:15]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [16:48:15]wFMCommunicate OK [16:48:15]SAM_PROTO_GetShiftState done [16:48:15]FM_GetShiftState done [16:48:15]req_shift_opened done [16:48:15]requested_item shift.open_date is exist - process it [16:48:15]req_shift_open_date [16:48:15]req_shift_open_date done [16:48:15]produce_requested_data done [16:48:15]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111735,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [16:48:15]process_action_free close_receipt [16:48:15]json_value_free [16:48:15]json_value_free done [16:48:15]process_json_proto returns [16:48:15]Send response to host [16:48:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111735,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [16:48:15]free response buf [16:48:15]execute_script done [16:48:15]execute_script returns [16:48:15]free content buf [16:48:15]Sock 9.Close socket [16:48:15]Sock 9.Thread stoped [16:48:19]OFD Sender: No OFD packet to send [16:48:24]OFD Sender: No OFD packet to send [16:48:29]OFD Sender: No OFD packet to send [16:48:34]OFD Sender: No OFD packet to send [16:48:39]OFD Sender: No OFD packet to send [16:48:44]OFD Sender: No OFD packet to send [16:48:49]OFD Sender: No OFD packet to send [16:48:54]OFD Sender: No OFD packet to send [16:48:59]OFD Sender: No OFD packet to send [16:49:04]OFD Sender: No OFD packet to send [16:49:09]OFD Sender: No OFD packet to send [16:49:14]OFD Sender: No OFD packet to send [16:49:19]OFD Sender: No OFD packet to send [16:49:24]OFD Sender: No OFD packet to send [16:49:29]OFD Sender: No OFD packet to send [16:49:34]OFD Sender: No OFD packet to send [16:49:39]OFD Sender: No OFD packet to send [16:49:44]OFD Sender: No OFD packet to send [16:49:49]OFD Sender: No OFD packet to send [16:49:54]OFD Sender: No OFD packet to send [16:49:59]OFD Sender: No OFD packet to send [16:50:04]OFD Sender: No OFD packet to send [16:50:09]OFD Sender: No OFD packet to send [16:50:14]OFD Sender: No OFD packet to send [16:50:19]OFD Sender: No OFD packet to send [16:50:24]OFD Sender: No OFD packet to send [16:50:29]OFD Sender: No OFD packet to send [16:50:34]OFD Sender: No OFD packet to send [16:50:39]OFD Sender: No OFD packet to send [16:50:44]OFD Sender: No OFD packet to send [16:50:49]OFD Sender: No OFD packet to send [16:50:54]OFD Sender: No OFD packet to send [16:50:59]OFD Sender: No OFD packet to send [16:51:04]OFD Sender: No OFD packet to send [16:51:09]OFD Sender: No OFD packet to send [16:51:14]OFD Sender: No OFD packet to send [16:51:19]OFD Sender: No OFD packet to send [16:51:21]accept exits with 7 [16:51:21]New connection [16:51:21]New thread 3067321700 created [16:51:21]Thread 3067178340 joined [16:51:21]Waiting for new connection... [16:51:21] Sock 7.Parse request [16:51:21]Sock 7.Check first char [16:51:21]Sock 7.First char is OK [16:51:21]request: POST /json_proto HTTP/1.0 [16:51:21]Method: POST [16:51:21]URL: /json_proto [16:51:21]Method is POST - this is cgi request [16:51:21]url: /json_proto [16:51:21]query_string will be loaded in cgi processing [16:51:21]execute_cgi json_proto POST (null) [16:51:21]execute_cgi path=json_proto method=POST [16:51:21]POST find Content-Length [16:51:21]Host: 172.17.59.68:8080 [16:51:21]Content-Length: 677 [16:51:21]Content-Type: application/json [16:51:21] [16:51:21]POST finish read [16:51:21]Found Content-Length = 677 [16:51:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:21]execute_script... [16:51: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)320354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:21]POST & json_proto [16:51:21]process_json_proto [16:51:21]json parsed OK: [16:51:21]protocol is kg_v1.0 [16:51:21]action value=close_receipt [16:51:21]process_action close_receipt [16:51:21]cmd_close_receipt [16:51:21]MH_GetDate [16:51:21]Write to MH i2c: F0 00 00 0D 0E 0A [16:51:21]Write i2c OK [16:51:21]MH_I2C_Read... [16:51:21]Read from MH i2c: F0 [16:51:21]MH_I2C_Read... [16:51:21]Read from MH i2c: F0 09 00 [16:51:21]MH_I2C_Read... [16:51:21]Read from MH i2c: F0 09 00 0D 0E 00 0D 5E 74 66 BC EC 60 65 C5 [16:51:21]GetLastDocTimeStamp 1718902095 [16:51:21]current date 1718902285 [16:51:21]FM_GetShiftState [16:51:21]SAM_PROTO_GetShiftState [16:51:21]wFMCommunicate request_size=4 [16:51:21]MH_SAM_APDU [16:51:21]CAPDU: 80 13 01 00 [16:51:21]Write to MH i2c: E2 08 00 0E 0E 80 13 01 00 00 00 00 00 99 [16:51:21]Write i2c OK [16:51:21]MH_I2C_Read... [16:51:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:21]Read from MH i2c: E2 [16:51:21]MH_I2C_Read... [16:51:21]Read from MH i2c: E2 0E 00 [16:51:21]MH_I2C_Read... [16:51:21]Read from MH i2c: E2 0E 00 0E 0E 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 14 [16:51:21]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [16:51:21]wFMCommunicate OK [16:51:21]SAM_PROTO_GetShiftState done [16:51:21]FM_GetShiftState done [16:51:21]opened in 1718847247 [16:51:21]opened+sec_in_day 1718933647 [16:51:21]quantity*price = 50065 [16:51:21]sum+1 = 50067 [16:51:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 186 20.06.2024 16:51 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111736 ФПД: 220496857982325 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T165125&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111736&fm=220496857982325&tin=02508201610067®Number=0000000000092771&sum=50000 [16:51:22]StoreToDocumentArchive [16:51:22]shift 389 fd 111736 [16:51:22]save to /storage/0389/doc_00111736 [16:51:22]save last doc name /storage/0389/doc_00111736 to /storage/kkm_last_doc_name [16:51:22]save OK [16:51:22]Clear old archive folders... [16:51:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:51:22]tlvbuf is B6F34BF0 [16:51:22]SAM_PROTO_ClearQueue [16:51:22]wFMCommunicate request_size=4 [16:51:22]MH_SAM_APDU [16:51:22]CAPDU: 80 09 00 00 [16:51:22]Write to MH i2c: E2 08 00 1B 0E 80 09 00 00 00 00 00 00 9B [16:51:22]Write i2c OK [16:51:22]MH_I2C_Read... [16:51:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:51:22]Read from MH i2c: E2 [16:51:22]MH_I2C_Read... [16:51:22]Read from MH i2c: E2 03 00 [16:51:22]MH_I2C_Read... [16:51:22]Read from MH i2c: E2 03 00 1B 0E 00 90 00 9D [16:51:22]RAPDU: 90 00 [16:51:22]wFMCommunicate OK [16:51:22]SAM_PROTO_ClearQueue done [16:51:22]KKMCreateOFDPacket [16:51:22]OFDProtocolAddRootSTLVToBuf [16:51:22]FM_MakeSignedData [16:51:22]FM_MakeSignedData [16:51:22]SAM_PROTO_SignData [16:51:22]wFMCommunicate request_size=4 [16:51:22]MH_SAM_APDU [16:51:22]CAPDU: 80 0D 01 02 [16:51:22]Write to MH i2c: E2 08 00 1C 0E 80 0D 01 02 00 00 00 00 A3 [16:51:22]Write i2c OK [16:51:22]MH_I2C_Read... [16:51:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:51:22]Read from MH i2c: E2 [16:51:22]MH_I2C_Read... [16:51:22]Read from MH i2c: E2 03 00 [16:51:22]MH_I2C_Read... [16:51:22]Read from MH i2c: E2 03 00 1C 0E 00 90 00 9E [16:51:22]RAPDU: 90 00 [16:51:22]wFMCommunicate OK [16:51:22]wFMCommunicate request_size=255 [16:51:22]MH_SAM_APDU [16:51: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 0D 5E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 78 B4 01 00 35 04 06 00 C8 [16:51:22]Write to MH i2c: E2 02 01 1D 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 0D 5E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 78 B4 01 00 35 04 06 00 C8 00 00 D1 [16:51:22]Write i2c OK [16:51:22]MH_I2C_Read... [16:51:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:22]Read from MH i2c: E2 [16:51:22]MH_I2C_Read... [16:51:22]Read from MH i2c: E2 03 00 [16:51:22]MH_I2C_Read... [16:51:22]Read from MH i2c: E2 03 00 1D 0E 00 90 00 9F [16:51:22]RAPDU: 90 00 [16:51:22]wFMCommunicate OK [16:51:22]wFMCommunicate request_size=10 [16:51:22]MH_SAM_APDU [16:51:22]CAPDU: 80 0D 02 02 05 8A 6C E4 E5 75 [16:51:22]Write to MH i2c: E2 0D 00 1E 0E 80 0D 02 02 05 00 8A 6C E4 E5 75 00 00 E4 [16:51:22]Write i2c OK [16:51:22]MH_I2C_Read... [16:51:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:22]Read from MH i2c: E2 [16:51:22]MH_I2C_Read... [16:51:22]Read from MH i2c: E2 03 00 [16:51:22]MH_I2C_Read... [16:51:22]Read from MH i2c: E2 03 00 1E 0E 00 90 00 A0 [16:51:22]RAPDU: 90 00 [16:51:22]wFMCommunicate OK [16:51:22]wFMCommunicate request_size=4 [16:51:22]MH_SAM_APDU [16:51:22]CAPDU: 80 0D 03 02 [16:51:22]Write to MH i2c: E2 08 00 1F 0E 80 0D 03 02 00 00 00 00 A8 [16:51:22]Write i2c OK [16:51:22]MH_I2C_Read... [16:51:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:51:23]Read from MH i2c: E2 [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: E2 0B 00 [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: E2 0B 00 1F 0E 00 B1 34 DE D8 10 ED 3F EF 90 00 6F [16:51:23]RAPDU: B1 34 DE D8 10 ED 3F EF 90 00 [16:51:23]wFMCommunicate OK [16:51:23]SAM_PROTO_SignData done [16:51:23]FM_MakeSignedData done [16:51:23]CreateOFDProtocolMessage [16:51:23]wFMCommunicate request_size=4 [16:51:23]MH_SAM_APDU [16:51:23]CAPDU: 80 11 00 00 [16:51:23]Write to MH i2c: E2 08 00 20 0E 80 11 00 00 00 00 00 00 A8 [16:51:23]Write i2c OK [16:51:23]MH_I2C_Read... [16:51:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:23]Read from MH i2c: E2 [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: E2 17 00 [16:51:23]MH_I2C_Read... [16:51:23]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 35 30 38 33 90 00 FA [16:51:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:51:23]wFMCommunicate OK [16:51:23]CreateOFDProtocolMessage done [16:51:23]OFDSenderStorePacket 111736 [16:51:23]StoreOFDPacket docnum=111736 [16:51:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 93 C4 07 01 45 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 0D 5E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 78 B4 01 00 35 04 06 00 C8 8A 6C E4 E5 75 B1 34 DE D8 10 ED 3F EF [16:51:23]CheckFolder [16:51:23]dirname=/storage/ofd_packets [16:51:23]CheckFolder done [16:51:23]ProducePacketName [16:51:23]name=ofd_packets/00111736 [16:51:23]NVStorageSaveData ofd_packets/00111736 [16:51:23]File name is /storage/ofd_packets/00111736 [16:51:23]Write 301 bytes [16:51:23]NVStorageSaveData done [16:51:23]OFDSenderStorePacket done [16:51:23]KKMCreateOFDPacket done [16:51:23]NVStorageSaveData kkm_last_timestamp [16:51:23]File name is /storage/kkm_last_timestamp [16:51:23]Write 4 bytes [16:51:23]NVStorageSaveData done [16:51:23]ExternCall_PrintAddStr [16:51:23]wPrintStart [16:51:23]Write to MH i2c: 01 00 00 21 0E 2F [16:51:23]Write i2c OK [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: 01 [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: 01 07 00 [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: 01 07 00 21 0E 00 00 00 00 00 FF 0F 44 [16:51:23]RasterBufferAndPrint [16:51:23]line Счет N : (1)320354 [16:51:23]line ИНН: 02508201610067 [16:51:23]line Контрольно-Кассовый Чек [16:51:23]line ПРОДАЖА [16:51:23]line ТРК (МРК, ГНК) : 11 [16:51:23]line Товар: 2710124130 [16:51:23]line Аи-92-К-5 [16:51:23]line 7.540 * 66.40 [16:51:23]line = 500.66 [16:51:23]line НДС 12% НСП 1% [16:51:23]line > о реализуемом товаре [16:51:23]line ОКРУГЛЕНИЕ: -0.66 [16:51:23]line ИТОГО: 500.00 [16:51:23]line Внесено: 500.00 [16:51:23]line СДАЧА: 0.00 [16:51:23]line НСП 1% : 4.43 [16:51:23]line НДС 12% : 53.17 [16:51:23]line Наличными: 500.00 [16:51:23]line Безнал.: 0.00 [16:51:23]line Место: АЗС № 65 "Партнер Нефть" [16:51:23]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:51:23]line СНО: Общий режим [16:51:23]line Чек 186 20.06.2024 16:51 [16:51:23]line Смена: 389 ФФД: 1.0 [16:51:23]line ЗНМ: 0300000198 [16:51:23]line РНМ: 0000000000092771 [16:51:23]line Версия ККМ: 001 [16:51:23]line ФМ: 0000000000875083 [16:51:23]line ФД: 111736 [16:51:23]line ФПД: 220496857982325 [16:51:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T165125&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111736&fm=220496857982325&tin=02508201610067®Number=0000000000092771&sum=50000 [16:51:23]OFD Sender: Processing packet 111736 [packets to send 38, broken 37] [16:51:23]ProducePacketName [16:51:23]name=ofd_packets/00111736 [16:51:23]OFD Sender: To server: pG, [16:51:23]CommunicateWithHost lk.salyk.kg:30040 [16:51:23]ConnectInit lk.salyk.kg [16:51:23]written 0, free lines is 4095 [16:51:23]Connected sock=10 [16:51:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 93 C4 07 01 45 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 0D 5E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 78 B4 01 00 35 04 06 00 C8 8A 6C E4 E5 75 B1 34 DE D8 10 ED 3F EF [16:51:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D5 33 47 00 59 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 35 30 38 33 10 04 04 00 78 B4 01 00 F4 03 04 00 52 F5 73 66 B6 04 01 00 00 06 77 72 C9 F9 45 0C 26 [16:51:23]CommunicateWithHost err = 0 [16:51:23]CheckOFDResponse [16:51:23]1017 (14) - 77093643461234 [16:51:23]1041 (16) - 0000000000875083 [16:51:23]1040 (4) - 111736 [16:51:23]1012 (4) - 20.06.2024 09:24 [16:51:23]1206 (1) - 0 [16:51:23]OFD Sender: Remove packet 111736 [16:51:23]ProducePacketName [16:51:23]name=ofd_packets/00111736 [16:51:23]NVStorageDeleteData [16:51:23]Write to MH i2c: 01 00 00 4C 0E 5A [16:51:23]Write i2c OK [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: 01 [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: 01 07 00 [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: 01 07 00 4C 0E 00 00 00 00 00 EA 0C 57 [16:51:23]RasterBufferAndPrint [16:51:23]line [16:51:23]line [16:51:23]line [16:51:23]line [16:51:23]line [16:51:23]written 0, free lines is 3312 [16:51:23]MH_Cut [16:51:23]Write to MH i2c: D1 01 00 53 0E 01 33 [16:51:23]Write i2c OK [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: D1 [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: D1 01 00 [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: D1 01 00 53 0E 00 32 [16:51:23]Write to MH i2c: 01 00 00 54 0E 62 [16:51:23]Write i2c OK [16:51:23]MH_I2C_Read... [16:51:24]OFD Sender: No OFD packet to send [16:51:24]*** Cut start [16:51:24]*** Partial cut [16:51:24]*** CUTSNS_PIN = 1 [16:51:24]*** CUTSNS_PIN = 0 [16:51:24]*** Brake cut motor [16:51:25]Read from MH i2c: 01 [16:51:25]MH_I2C_Read... [16:51:25]*** Stop cut motor [16:51:25]*** Cut end [16:51:25]Read from MH i2c: 01 07 00 [16:51:25]MH_I2C_Read... [16:51:25]Read from MH i2c: 01 07 00 54 0E 00 00 00 00 00 FF 0F 77 [16:51:25]process_action close_receipt done [16:51:25]requested_data is exist [16:51:25]produce_requested_data [16:51:25]requested_item fm.sn is exist - process it [16:51:25]wFMCommunicate request_size=4 [16:51:25]MH_SAM_APDU [16:51:25]CAPDU: 80 11 00 00 [16:51:25]Write to MH i2c: E2 08 00 55 0E 80 11 00 00 00 00 00 00 DD [16:51:25]Write i2c OK [16:51:25]MH_I2C_Read... [16:51:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:25]Read from MH i2c: E2 [16:51:25]MH_I2C_Read... [16:51:25]Read from MH i2c: E2 17 00 [16:51:25]MH_I2C_Read... [16:51:25]Read from MH i2c: E2 17 00 55 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2F [16:51:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:51:25]wFMCommunicate OK [16:51:25]requested_item fd.num is exist - process it [16:51:25]SAM_PROTO_GetFieldsCounters [16:51:25]wFMCommunicate request_size=4 [16:51:25]MH_SAM_APDU [16:51:25]CAPDU: 80 13 00 00 [16:51:25]Write to MH i2c: E2 08 00 56 0E 80 13 00 00 00 00 00 00 E0 [16:51:25]Write i2c OK [16:51:25]MH_I2C_Read... [16:51:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:51:25]Read from MH i2c: E2 [16:51:25]MH_I2C_Read... [16:51:25]Read from MH i2c: E2 62 00 [16:51:25]MH_I2C_Read... [16:51:25]Read from MH i2c: E2 62 00 56 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 78 B4 01 00 0E 04 04 00 85 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 E2 [16:51:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 78 B4 01 00 0E 04 04 00 85 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 [16:51:25]wFMCommunicate OK [16:51:25]SAM_PROTO_GetFieldsCounters done [16:51:25]requested_item shift.num is exist - process it [16:51:25]requested_item shift.opened is exist - process it [16:51:25]req_shift_opened [16:51:25]FM_GetShiftState [16:51:25]SAM_PROTO_GetShiftState [16:51:25]wFMCommunicate request_size=4 [16:51:25]MH_SAM_APDU [16:51:25]CAPDU: 80 13 01 00 [16:51:25]Write to MH i2c: E2 08 00 57 0E 80 13 01 00 00 00 00 00 E2 [16:51:25]Write i2c OK [16:51:25]MH_I2C_Read... [16:51:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:25]Read from MH i2c: E2 [16:51:25]MH_I2C_Read... [16:51:25]Read from MH i2c: E2 0E 00 [16:51:25]MH_I2C_Read... [16:51:25]Read from MH i2c: E2 0E 00 57 0E 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 5D [16:51:25]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [16:51:25]wFMCommunicate OK [16:51:25]SAM_PROTO_GetShiftState done [16:51:25]FM_GetShiftState done [16:51:25]req_shift_opened done [16:51:25]requested_item shift.open_date is exist - process it [16:51:25]req_shift_open_date [16:51:25]req_shift_open_date done [16:51:25]produce_requested_data done [16:51:25]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111736,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [16:51:25]process_action_free close_receipt [16:51:25]json_value_free [16:51:25]json_value_free done [16:51:25]process_json_proto returns [16:51:25]Send response to host [16:51:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111736,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [16:51:25]free response buf [16:51:25]execute_script done [16:51:25]execute_script returns [16:51:25]free content buf [16:51:25]Sock 7.Close socket [16:51:25]Sock 7.Thread stoped [16:51:29]OFD Sender: No OFD packet to send [16:51:34]OFD Sender: No OFD packet to send [16:51:39]OFD Sender: No OFD packet to send [16:51:44]OFD Sender: No OFD packet to send [16:51:49]OFD Sender: No OFD packet to send [16:51:54]OFD Sender: No OFD packet to send [16:51:59]OFD Sender: No OFD packet to send [16:52:04]OFD Sender: No OFD packet to send [16:52:09]OFD Sender: No OFD packet to send [16:52:14]OFD Sender: No OFD packet to send [16:52:19]OFD Sender: No OFD packet to send [16:52:24]OFD Sender: No OFD packet to send [16:52:29]OFD Sender: No OFD packet to send [16:52:34]OFD Sender: No OFD packet to send [16:52:39]OFD Sender: No OFD packet to send [16:52:44]OFD Sender: No OFD packet to send [16:52:49]OFD Sender: No OFD packet to send [16:52:54]OFD Sender: No OFD packet to send [16:52:59]OFD Sender: No OFD packet to send [16:53:04]OFD Sender: No OFD packet to send [16:53:09]OFD Sender: No OFD packet to send [16:53:14]OFD Sender: No OFD packet to send [16:53:19]OFD Sender: No OFD packet to send [16:53:24]OFD Sender: No OFD packet to send [16:53:29]OFD Sender: No OFD packet to send [16:53:34]OFD Sender: No OFD packet to send [16:53:39]OFD Sender: No OFD packet to send [16:53:44]OFD Sender: No OFD packet to send [16:53:49]OFD Sender: No OFD packet to send [16:53:54]OFD Sender: No OFD packet to send [16:53:59]OFD Sender: No OFD packet to send [16:54:04]OFD Sender: No OFD packet to send [16:54:09]OFD Sender: No OFD packet to send [16:54:14]OFD Sender: No OFD packet to send [16:54:19]OFD Sender: No OFD packet to send [16:54:24]OFD Sender: No OFD packet to send [16:54:29]OFD Sender: No OFD packet to send [16:54:34]OFD Sender: No OFD packet to send [16:54:39]OFD Sender: No OFD packet to send [16:54:44]OFD Sender: No OFD packet to send [16:54:49]OFD Sender: No OFD packet to send [16:54:54]OFD Sender: No OFD packet to send [16:54:59]OFD Sender: No OFD packet to send [16:55:04]OFD Sender: No OFD packet to send [16:55:09]accept exits with 9 [16:55:09]New connection [16:55:09]New thread 3067178340 created [16:55:09]Thread 3067321700 joined [16:55:09]Waiting for new connection... [16:55:09] Sock 9.Parse request [16:55:09]Sock 9.Check first char [16:55:09]Sock 9.First char is OK [16:55:09]request: POST /json_proto HTTP/1.0 [16:55:09]Method: POST [16:55:09]URL: /json_proto [16:55:09]Method is POST - this is cgi request [16:55:09]url: /json_proto [16:55:09]query_string will be loaded in cgi processing [16:55:09]execute_cgi json_proto POST (null) [16:55:09]execute_cgi path=json_proto method=POST [16:55:09]POST find Content-Length [16:55:09]Host: 172.17.59.68:8080 [16:55:09]Content-Length: 677 [16:55:09]Content-Type: application/json [16:55:09] [16:55:09]POST finish read [16:55:09]Found Content-Length = 677 [16:55:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:09]execute_script... [16:55:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:09]POST & json_proto [16:55:09]process_json_proto [16:55:09]json parsed OK: [16:55:09]protocol is kg_v1.0 [16:55:09]action value=close_receipt [16:55:09]process_action close_receipt [16:55:09]cmd_close_receipt [16:55:09]MH_GetDate [16:55:09]Write to MH i2c: F0 00 00 58 0E 55 [16:55:09]Write i2c OK [16:55:09]MH_I2C_Read... [16:55:09]Read from MH i2c: F0 [16:55:09]MH_I2C_Read... [16:55:09]Read from MH i2c: F0 09 00 [16:55:09]MH_I2C_Read... [16:55:09]Read from MH i2c: F0 09 00 58 0E 00 F1 5E 74 66 BC EC 60 65 F4 [16:55:09]GetLastDocTimeStamp 1718902285 [16:55:09]current date 1718902513 [16:55:09]FM_GetShiftState [16:55:09]SAM_PROTO_GetShiftState [16:55:09]wFMCommunicate request_size=4 [16:55:09]MH_SAM_APDU [16:55:09]CAPDU: 80 13 01 00 [16:55:09]Write to MH i2c: E2 08 00 59 0E 80 13 01 00 00 00 00 00 E4 [16:55:09]Write i2c OK [16:55:09]MH_I2C_Read... [16:55:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:09]Read from MH i2c: E2 [16:55:09]MH_I2C_Read... [16:55:09]Read from MH i2c: E2 0E 00 [16:55:09]MH_I2C_Read... [16:55:09]Read from MH i2c: E2 0E 00 59 0E 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 5F [16:55:09]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [16:55:09]wFMCommunicate OK [16:55:09]SAM_PROTO_GetShiftState done [16:55:09]FM_GetShiftState done [16:55:09]opened in 1718847247 [16:55:09]opened+sec_in_day 1718933647 [16:55:09]quantity*price = 40039 [16:55:09]sum+1 = 40040 [16:55:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 187 20.06.2024 16:55 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111737 ФПД: 29690379550742 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T165513&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111737&fm=29690379550742&tin=02508201610067®Number=0000000000092771&sum=40000 [16:55:10]StoreToDocumentArchive [16:55:10]shift 389 fd 111737 [16:55:10]save to /storage/0389/doc_00111737 [16:55:10]save last doc name /storage/0389/doc_00111737 to /storage/kkm_last_doc_name [16:55:10]save OK [16:55:10]Clear old archive folders... [16:55:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:55:10]tlvbuf is 016EA990 [16:55:10]SAM_PROTO_ClearQueue [16:55:10]wFMCommunicate request_size=4 [16:55:10]MH_SAM_APDU [16:55:10]CAPDU: 80 09 00 00 [16:55:10]Write to MH i2c: E2 08 00 66 0E 80 09 00 00 00 00 00 00 E6 [16:55:10]Write i2c OK [16:55:10]MH_I2C_Read... [16:55:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:10]Read from MH i2c: E2 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: E2 03 00 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: E2 03 00 66 0E 00 90 00 E8 [16:55:10]RAPDU: 90 00 [16:55:10]wFMCommunicate OK [16:55:10]SAM_PROTO_ClearQueue done [16:55:10]KKMCreateOFDPacket [16:55:10]OFDProtocolAddRootSTLVToBuf [16:55:10]FM_MakeSignedData [16:55:10]FM_MakeSignedData [16:55:10]SAM_PROTO_SignData [16:55:10]wFMCommunicate request_size=4 [16:55:10]MH_SAM_APDU [16:55:10]CAPDU: 80 0D 01 02 [16:55:10]Write to MH i2c: E2 08 00 67 0E 80 0D 01 02 00 00 00 00 EE [16:55:10]Write i2c OK [16:55:10]MH_I2C_Read... [16:55:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:10]Read from MH i2c: E2 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: E2 03 00 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: E2 03 00 67 0E 00 90 00 E9 [16:55:10]RAPDU: 90 00 [16:55:10]wFMCommunicate OK [16:55:10]wFMCommunicate request_size=255 [16:55:10]MH_SAM_APDU [16:55: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 F1 5E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 79 B4 01 00 35 04 06 00 1B [16:55:10]Write to MH i2c: E2 02 01 68 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 F1 5E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 79 B4 01 00 35 04 06 00 1B 00 00 23 [16:55:10]Write i2c OK [16:55:10]MH_I2C_Read... [16:55:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:10]Read from MH i2c: E2 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: E2 03 00 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: E2 03 00 68 0E 00 90 00 EA [16:55:10]RAPDU: 90 00 [16:55:10]wFMCommunicate OK [16:55:10]wFMCommunicate request_size=10 [16:55:10]MH_SAM_APDU [16:55:10]CAPDU: 80 0D 02 02 05 00 D4 86 C0 16 [16:55:10]Write to MH i2c: E2 0D 00 69 0E 80 0D 02 02 05 00 00 D4 86 C0 16 00 00 2B [16:55:10]Write i2c OK [16:55:10]MH_I2C_Read... [16:55:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:10]Read from MH i2c: E2 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: E2 03 00 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: E2 03 00 69 0E 00 90 00 EB [16:55:10]RAPDU: 90 00 [16:55:10]wFMCommunicate OK [16:55:10]wFMCommunicate request_size=4 [16:55:10]MH_SAM_APDU [16:55:10]CAPDU: 80 0D 03 02 [16:55:10]Write to MH i2c: E2 08 00 6A 0E 80 0D 03 02 00 00 00 00 F3 [16:55:10]Write i2c OK [16:55:10]MH_I2C_Read... [16:55:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:10]Read from MH i2c: E2 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: E2 0B 00 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: E2 0B 00 6A 0E 00 7F 8A A7 35 06 1A F5 6B 90 00 59 [16:55:10]RAPDU: 7F 8A A7 35 06 1A F5 6B 90 00 [16:55:10]wFMCommunicate OK [16:55:10]SAM_PROTO_SignData done [16:55:10]FM_MakeSignedData done [16:55:10]CreateOFDProtocolMessage [16:55:10]wFMCommunicate request_size=4 [16:55:10]MH_SAM_APDU [16:55:10]CAPDU: 80 11 00 00 [16:55:10]Write to MH i2c: E2 08 00 6B 0E 80 11 00 00 00 00 00 00 F3 [16:55:10]Write i2c OK [16:55:10]MH_I2C_Read... [16:55:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:10]Read from MH i2c: E2 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: E2 17 00 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: E2 17 00 6B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 45 [16:55:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:55:10]wFMCommunicate OK [16:55:10]CreateOFDProtocolMessage done [16:55:10]OFDSenderStorePacket 111737 [16:55:10]StoreOFDPacket docnum=111737 [16:55:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1A 50 07 01 1A 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 F1 5E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 79 B4 01 00 35 04 06 00 1B 00 D4 86 C0 16 7F 8A A7 35 06 1A F5 6B [16:55:10]CheckFolder [16:55:10]dirname=/storage/ofd_packets [16:55:10]CheckFolder done [16:55:10]ProducePacketName [16:55:10]name=ofd_packets/00111737 [16:55:10]NVStorageSaveData ofd_packets/00111737 [16:55:10]File name is /storage/ofd_packets/00111737 [16:55:10]Write 301 bytes [16:55:10]NVStorageSaveData done [16:55:10]OFDSenderStorePacket done [16:55:10]KKMCreateOFDPacket done [16:55:10]NVStorageSaveData kkm_last_timestamp [16:55:10]File name is /storage/kkm_last_timestamp [16:55:10]Write 4 bytes [16:55:10]NVStorageSaveData done [16:55:10]ExternCall_PrintAddStr [16:55:10]wPrintStart [16:55:10]Write to MH i2c: 01 00 00 6C 0E 7A [16:55:10]Write i2c OK [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: 01 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: 01 07 00 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: 01 07 00 6C 0E 00 00 00 00 00 FF 0F 8F [16:55:10]RasterBufferAndPrint [16:55:10]line Счет N : (1)320355 [16:55:10]line ИНН: 02508201610067 [16:55:10]line Контрольно-Кассовый Чек [16:55:10]line ПРОДАЖА [16:55:10]line ТРК (МРК, ГНК) : 11 [16:55:10]line Товар: 2710124130 [16:55:10]line Аи-92-К-5 [16:55:10]line 6.030 * 66.40 [16:55:10]line = 400.39 [16:55:10]line НДС 12% НСП 1% [16:55:10]line > о реализуемом товаре [16:55:10]line ОКРУГЛЕНИЕ: -0.39 [16:55:10]line ИТОГО: 400.00 [16:55:10]line Внесено: 400.00 [16:55:10]line СДАЧА: 0.00 [16:55:10]line НСП 1% : 3.54 [16:55:10]line НДС 12% : 42.52 [16:55:10]line Наличными: 400.00 [16:55:10]line Безнал.: 0.00 [16:55:10]line Место: АЗС № 65 "Партнер Нефть" [16:55:10]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:55:10]line СНО: Общий режим [16:55:10]line Чек 187 20.06.2024 16:55 [16:55:10]line Смена: 389 ФФД: 1.0 [16:55:10]line ЗНМ: 0300000198 [16:55:10]line РНМ: 0000000000092771 [16:55:10]line Версия ККМ: 001 [16:55:10]line ФМ: 0000000000875083 [16:55:10]line ФД: 111737 [16:55:10]line ФПД: 29690379550742 [16:55:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T165513&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111737&fm=29690379550742&tin=02508201610067®Number=0000000000092771&sum=40000 [16:55:11]OFD Sender: Processing packet 111737 [packets to send 38, broken 37] [16:55:11]ProducePacketName [16:55:11]name=ofd_packets/00111737 [16:55:11]OFD Sender: To server: pG, [16:55:11]CommunicateWithHost lk.salyk.kg:30040 [16:55:11]ConnectInit lk.salyk.kg [16:55:11]written 0, free lines is 4095 [16:55:11]Connected sock=10 [16:55:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1A 50 07 01 1A 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 F1 5E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 79 B4 01 00 35 04 06 00 1B 00 D4 86 C0 16 7F 8A A7 35 06 1A F5 6B [16:55:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D3 59 47 00 5F FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 79 B4 01 00 F4 03 04 00 36 F6 73 66 B6 04 01 00 00 D2 29 66 CA 0B A9 0F FC [16:55:11]CommunicateWithHost err = 0 [16:55:11]CheckOFDResponse [16:55:11]1017 (14) - 77093643461234 [16:55:11]1041 (16) - 0000000000875083 [16:55:11]1040 (4) - 111737 [16:55:11]1012 (4) - 20.06.2024 09:28 [16:55:11]1206 (1) - 0 [16:55:11]OFD Sender: Remove packet 111737 [16:55:11]ProducePacketName [16:55:11]name=ofd_packets/00111737 [16:55:11]NVStorageDeleteData [16:55:11]Write to MH i2c: 01 00 00 97 0E A5 [16:55:11]Write i2c OK [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: 01 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: 01 07 00 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: 01 07 00 97 0E 00 00 00 00 00 DD 0C 95 [16:55:11]RasterBufferAndPrint [16:55:11]line [16:55:11]line [16:55:11]line [16:55:11]line [16:55:11]line [16:55:11]written 0, free lines is 3299 [16:55:11]MH_Cut [16:55:11]Write to MH i2c: D1 01 00 9E 0E 01 7E [16:55:11]Write i2c OK [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: D1 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: D1 01 00 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: D1 01 00 9E 0E 00 7D [16:55:11]Write to MH i2c: 01 00 00 9F 0E AD [16:55:11]Write i2c OK [16:55:11]MH_I2C_Read... [16:55:11]OFD Sender: No OFD packet to send [16:55:12]*** Cut start [16:55:12]*** Partial cut [16:55:12]*** CUTSNS_PIN = 1 [16:55:12]*** CUTSNS_PIN = 0 [16:55:12]*** Brake cut motor [16:55:12]Read from MH i2c: 01 [16:55:12]MH_I2C_Read... [16:55:12]*** Stop cut motor [16:55:12]*** Cut end [16:55:12]Read from MH i2c: 01 07 00 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: 01 07 00 9F 0E 00 00 00 00 00 FF 0F C2 [16:55:12]process_action close_receipt done [16:55:12]requested_data is exist [16:55:12]produce_requested_data [16:55:12]requested_item fm.sn is exist - process it [16:55:12]wFMCommunicate request_size=4 [16:55:12]MH_SAM_APDU [16:55:12]CAPDU: 80 11 00 00 [16:55:12]Write to MH i2c: E2 08 00 A0 0E 80 11 00 00 00 00 00 00 28 [16:55:12]Write i2c OK [16:55:12]MH_I2C_Read... [16:55:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:12]Read from MH i2c: E2 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: E2 17 00 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: E2 17 00 A0 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7A [16:55:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:55:12]wFMCommunicate OK [16:55:12]requested_item fd.num is exist - process it [16:55:12]SAM_PROTO_GetFieldsCounters [16:55:12]wFMCommunicate request_size=4 [16:55:12]MH_SAM_APDU [16:55:12]CAPDU: 80 13 00 00 [16:55:12]Write to MH i2c: E2 08 00 A1 0E 80 13 00 00 00 00 00 00 2B [16:55:12]Write i2c OK [16:55:12]MH_I2C_Read... [16:55:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:13]Read from MH i2c: E2 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: E2 62 00 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: E2 62 00 A1 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 79 B4 01 00 0E 04 04 00 85 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 31 [16:55:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 79 B4 01 00 0E 04 04 00 85 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 [16:55:13]wFMCommunicate OK [16:55:13]SAM_PROTO_GetFieldsCounters done [16:55:13]requested_item shift.num is exist - process it [16:55:13]requested_item shift.opened is exist - process it [16:55:13]req_shift_opened [16:55:13]FM_GetShiftState [16:55:13]SAM_PROTO_GetShiftState [16:55:13]wFMCommunicate request_size=4 [16:55:13]MH_SAM_APDU [16:55:13]CAPDU: 80 13 01 00 [16:55:13]Write to MH i2c: E2 08 00 A2 0E 80 13 01 00 00 00 00 00 2D [16:55:13]Write i2c OK [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: E2 [16:55:13]MH_I2C_Read... [16:55:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:13]Read from MH i2c: E2 0E 00 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: E2 0E 00 A2 0E 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 A8 [16:55:13]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [16:55:13]wFMCommunicate OK [16:55:13]SAM_PROTO_GetShiftState done [16:55:13]FM_GetShiftState done [16:55:13]req_shift_opened done [16:55:13]requested_item shift.open_date is exist - process it [16:55:13]req_shift_open_date [16:55:13]req_shift_open_date done [16:55:13]produce_requested_data done [16:55:13]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111737,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [16:55:13]process_action_free close_receipt [16:55:13]json_value_free [16:55:13]json_value_free done [16:55:13]process_json_proto returns [16:55:13]Send response to host [16:55:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111737,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [16:55:13]free response buf [16:55:13]execute_script done [16:55:13]execute_script returns [16:55:13]free content buf [16:55:13]Sock 9.Close socket [16:55:13]Sock 9.Thread stoped [16:55:16]OFD Sender: No OFD packet to send [16:55:21]OFD Sender: No OFD packet to send [16:55:26]OFD Sender: No OFD packet to send [16:55:31]OFD Sender: No OFD packet to send [16:55:36]OFD Sender: No OFD packet to send [16:55:41]OFD Sender: No OFD packet to send [16:55:46]OFD Sender: No OFD packet to send [16:55:51]OFD Sender: No OFD packet to send [16:55:56]OFD Sender: No OFD packet to send [16:56:01]OFD Sender: No OFD packet to send [16:56:06]OFD Sender: No OFD packet to send [16:56:07]accept exits with 7 [16:56:07]New connection [16:56:07]New thread 3067321700 created [16:56:07]Thread 3067178340 joined [16:56:07]Waiting for new connection... [16:56:07] Sock 7.Parse request [16:56:07]Sock 7.Check first char [16:56:07]Sock 7.First char is OK [16:56:07]request: POST /json_proto HTTP/1.0 [16:56:07]Method: POST [16:56:07]URL: /json_proto [16:56:07]Method is POST - this is cgi request [16:56:07]url: /json_proto [16:56:07]query_string will be loaded in cgi processing [16:56:07]execute_cgi json_proto POST (null) [16:56:07]execute_cgi path=json_proto method=POST [16:56:07]POST find Content-Length [16:56:07]Host: 172.17.59.68:8080 [16:56:07]Content-Length: 805 [16:56:07]Content-Type: application/json [16:56:07] [16:56:07]POST finish read [16:56:07]Found Content-Length = 805 [16:56:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:07]execute_script... [16:56: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)320356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:07]POST & json_proto [16:56:07]process_json_proto [16:56:07]json parsed OK: [16:56:07]protocol is kg_v1.0 [16:56:07]action value=close_receipt [16:56:07]process_action close_receipt [16:56:07]cmd_close_receipt [16:56:07]MH_GetDate [16:56:07]Write to MH i2c: F0 00 00 A3 0E A0 [16:56:07]Write i2c OK [16:56:07]MH_I2C_Read... [16:56:07]Read from MH i2c: F0 [16:56:07]MH_I2C_Read... [16:56:07]Read from MH i2c: F0 09 00 [16:56:07]MH_I2C_Read... [16:56:07]Read from MH i2c: F0 09 00 A3 0E 00 2C 5F 74 66 BC EC 60 65 7B [16:56:07]GetLastDocTimeStamp 1718902513 [16:56:07]current date 1718902572 [16:56:07]FM_GetShiftState [16:56:07]SAM_PROTO_GetShiftState [16:56:07]wFMCommunicate request_size=4 [16:56:07]MH_SAM_APDU [16:56:07]CAPDU: 80 13 01 00 [16:56:07]Write to MH i2c: E2 08 00 A4 0E 80 13 01 00 00 00 00 00 2F [16:56:07]Write i2c OK [16:56:07]MH_I2C_Read... [16:56:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:07]Read from MH i2c: E2 [16:56:07]MH_I2C_Read... [16:56:07]Read from MH i2c: E2 0E 00 [16:56:07]MH_I2C_Read... [16:56:07]Read from MH i2c: E2 0E 00 A4 0E 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 AA [16:56:07]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [16:56:07]wFMCommunicate OK [16:56:07]SAM_PROTO_GetShiftState done [16:56:07]FM_GetShiftState done [16:56:07]opened in 1718847247 [16:56:07]opened+sec_in_day 1718933647 [16:56:07]quantity*price = 50065 [16:56:07]sum+1 = 50067 [16:56:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.66 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 0.00 Безнал.: 500.66 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 188 20.06.2024 16:56 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111738 ФПД: 28545128473215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T165612&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111738&fm=28545128473215&tin=02508201610067®Number=0000000000092771&sum=50066 [16:56:09]StoreToDocumentArchive [16:56:09]shift 389 fd 111738 [16:56:09]save to /storage/0389/doc_00111738 [16:56:09]save last doc name /storage/0389/doc_00111738 to /storage/kkm_last_doc_name [16:56:09]save OK [16:56:09]Clear old archive folders... [16:56:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:56:09]tlvbuf is 0174A910 [16:56:09]SAM_PROTO_ClearQueue [16:56:09]wFMCommunicate request_size=4 [16:56:09]MH_SAM_APDU [16:56:09]CAPDU: 80 09 00 00 [16:56:09]Write to MH i2c: E2 08 00 B1 0E 80 09 00 00 00 00 00 00 31 [16:56:09]Write i2c OK [16:56:09]MH_I2C_Read... [16:56:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:56:09]Read from MH i2c: E2 [16:56:09]MH_I2C_Read... [16:56:09]Read from MH i2c: E2 03 00 [16:56:09]MH_I2C_Read... [16:56:09]Read from MH i2c: E2 03 00 B1 0E 00 90 00 33 [16:56:09]RAPDU: 90 00 [16:56:09]wFMCommunicate OK [16:56:09]SAM_PROTO_ClearQueue done [16:56:09]KKMCreateOFDPacket [16:56:09]OFDProtocolAddRootSTLVToBuf [16:56:09]FM_MakeSignedData [16:56:09]FM_MakeSignedData [16:56:09]SAM_PROTO_SignData [16:56:09]wFMCommunicate request_size=4 [16:56:09]MH_SAM_APDU [16:56:09]CAPDU: 80 0D 01 02 [16:56:09]Write to MH i2c: E2 08 00 B2 0E 80 0D 01 02 00 00 00 00 39 [16:56:09]Write i2c OK [16:56:09]MH_I2C_Read... [16:56:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:56:09]Read from MH i2c: E2 [16:56:09]MH_I2C_Read... [16:56:09]Read from MH i2c: E2 03 00 [16:56:09]MH_I2C_Read... [16:56:09]Read from MH i2c: E2 03 00 B2 0E 00 90 00 34 [16:56:09]RAPDU: 90 00 [16:56:09]wFMCommunicate OK [16:56:09]wFMCommunicate request_size=255 [16:56:09]MH_SAM_APDU [16:56:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 2C 5F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7A B4 01 00 35 04 06 00 19 [16:56:09]Write to MH i2c: E2 02 01 B3 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 2C 5F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7A B4 01 00 35 04 06 00 19 00 00 60 [16:56:09]Write i2c OK [16:56:09]MH_I2C_Read... [16:56:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:09]Read from MH i2c: E2 [16:56:09]MH_I2C_Read... [16:56:09]Read from MH i2c: E2 03 00 [16:56:09]MH_I2C_Read... [16:56:09]Read from MH i2c: E2 03 00 B3 0E 00 90 00 35 [16:56:09]RAPDU: 90 00 [16:56:09]wFMCommunicate OK [16:56:09]wFMCommunicate request_size=10 [16:56:09]MH_SAM_APDU [16:56:09]CAPDU: 80 0D 02 02 05 F6 2E 3E 22 7F [16:56:09]Write to MH i2c: E2 0D 00 B4 0E 80 0D 02 02 05 00 F6 2E 3E 22 7F 00 00 49 [16:56:09]Write i2c OK [16:56:09]MH_I2C_Read... [16:56:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:09]Read from MH i2c: E2 [16:56:09]MH_I2C_Read... [16:56:09]Read from MH i2c: E2 03 00 [16:56:09]MH_I2C_Read... [16:56:09]Read from MH i2c: E2 03 00 B4 0E 00 90 00 36 [16:56:09]RAPDU: 90 00 [16:56:09]wFMCommunicate OK [16:56:09]wFMCommunicate request_size=4 [16:56:09]MH_SAM_APDU [16:56:09]CAPDU: 80 0D 03 02 [16:56:09]Write to MH i2c: E2 08 00 B5 0E 80 0D 03 02 00 00 00 00 3E [16:56:09]Write i2c OK [16:56:09]MH_I2C_Read... [16:56:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:56:09]Read from MH i2c: E2 [16:56:09]MH_I2C_Read... [16:56:09]Read from MH i2c: E2 0B 00 [16:56:09]MH_I2C_Read... [16:56:09]Read from MH i2c: E2 0B 00 B5 0E 00 49 29 16 AA 3C 94 AE 21 90 00 10 [16:56:09]RAPDU: 49 29 16 AA 3C 94 AE 21 90 00 [16:56:09]wFMCommunicate OK [16:56:09]SAM_PROTO_SignData done [16:56:09]FM_MakeSignedData done [16:56:09]CreateOFDProtocolMessage [16:56:09]wFMCommunicate request_size=4 [16:56:09]MH_SAM_APDU [16:56:09]CAPDU: 80 11 00 00 [16:56:09]Write to MH i2c: E2 08 00 B6 0E 80 11 00 00 00 00 00 00 3E [16:56:09]Write i2c OK [16:56:09]MH_I2C_Read... [16:56:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:09]Read from MH i2c: E2 [16:56:09]MH_I2C_Read... [16:56:09]Read from MH i2c: E2 17 00 [16:56:09]MH_I2C_Read... [16:56:09]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 35 30 38 33 90 00 90 [16:56:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:56:09]wFMCommunicate OK [16:56:09]CreateOFDProtocolMessage done [16:56:09]OFDSenderStorePacket 111738 [16:56:09]StoreOFDPacket docnum=111738